@novu/api 3.19.1 → 3.20.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 (529) hide show
  1. package/README.md +2 -2
  2. package/funcs/agentsIntegrationsCreate.d.ts +1 -2
  3. package/funcs/agentsIntegrationsCreate.d.ts.map +1 -1
  4. package/funcs/agentsIntegrationsCreate.js +5 -9
  5. package/funcs/agentsIntegrationsCreate.js.map +1 -1
  6. package/funcs/agentsSendReply.d.ts +5 -4
  7. package/funcs/agentsSendReply.d.ts.map +1 -1
  8. package/funcs/agentsSendReply.js +5 -4
  9. package/funcs/agentsSendReply.js.map +1 -1
  10. package/funcs/contextsList.js +1 -0
  11. package/funcs/contextsList.js.map +1 -1
  12. package/funcs/environmentsDiff.d.ts +1 -1
  13. package/funcs/environmentsDiff.js +1 -1
  14. package/funcs/environmentsPublish.d.ts +1 -1
  15. package/funcs/environmentsPublish.js +1 -1
  16. package/funcs/layoutsDelete.js +1 -1
  17. package/funcs/layoutsDelete.js.map +1 -1
  18. package/funcs/subscribersNotificationsFeed.js +1 -0
  19. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  20. package/funcs/subscribersNotificationsList.js +1 -0
  21. package/funcs/subscribersNotificationsList.js.map +1 -1
  22. package/funcs/subscribersNotificationsUnseenCount.js +1 -0
  23. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  24. package/jsr.json +1 -1
  25. package/lib/config.d.ts +4 -4
  26. package/lib/config.js +4 -4
  27. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +1 -1
  28. package/models/components/activitynotificationjobresponsedto.d.ts +4 -9
  29. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  30. package/models/components/activitynotificationjobresponsedto.js +2 -8
  31. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  32. package/models/components/activitynotificationresponsedto.d.ts +4 -1
  33. package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
  34. package/models/components/activitynotificationresponsedto.js.map +1 -1
  35. package/models/components/activitynotificationstepresponsedto.d.ts +3 -8
  36. package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
  37. package/models/components/activitynotificationstepresponsedto.js +2 -8
  38. package/models/components/activitynotificationstepresponsedto.js.map +1 -1
  39. package/models/components/activitynotificationsubscriberresponsedto.d.ts +4 -4
  40. package/models/components/activitynotificationsubscriberresponsedto.d.ts.map +1 -1
  41. package/models/components/activitynotificationsubscriberresponsedto.js +4 -4
  42. package/models/components/activitynotificationsubscriberresponsedto.js.map +1 -1
  43. package/models/components/activitynotificationtemplateresponsedto.d.ts +1 -1
  44. package/models/components/agentbehaviordto.d.ts +23 -14
  45. package/models/components/agentbehaviordto.d.ts.map +1 -1
  46. package/models/components/agentbehaviordto.js +18 -16
  47. package/models/components/agentbehaviordto.js.map +1 -1
  48. package/models/components/agentintegrationresponsedto.d.ts +4 -0
  49. package/models/components/agentintegrationresponsedto.d.ts.map +1 -1
  50. package/models/components/agentintegrationresponsedto.js +1 -0
  51. package/models/components/agentintegrationresponsedto.js.map +1 -1
  52. package/models/components/agentintegrationresponseintegrationdto.d.ts +0 -3
  53. package/models/components/agentintegrationresponseintegrationdto.d.ts.map +1 -1
  54. package/models/components/agentintegrationresponseintegrationdto.js.map +1 -1
  55. package/models/components/agentintegrationsummarydto.d.ts +0 -3
  56. package/models/components/agentintegrationsummarydto.d.ts.map +1 -1
  57. package/models/components/agentintegrationsummarydto.js.map +1 -1
  58. package/models/components/buttontypeenum.d.ts +2 -2
  59. package/models/components/buttontypeenum.js +1 -1
  60. package/models/components/channeltypeenum.d.ts +0 -6
  61. package/models/components/channeltypeenum.d.ts.map +1 -1
  62. package/models/components/channeltypeenum.js +0 -3
  63. package/models/components/channeltypeenum.js.map +1 -1
  64. package/models/components/chatcontroldto.d.ts +0 -7
  65. package/models/components/chatcontroldto.d.ts.map +1 -1
  66. package/models/components/chatcontroldto.js +2 -15
  67. package/models/components/chatcontroldto.js.map +1 -1
  68. package/models/components/chatcontrolsmetadataresponsedto.d.ts +40 -2
  69. package/models/components/chatcontrolsmetadataresponsedto.d.ts.map +1 -1
  70. package/models/components/chatcontrolsmetadataresponsedto.js +24 -3
  71. package/models/components/chatcontrolsmetadataresponsedto.js.map +1 -1
  72. package/models/components/chatorpushproviderenum.d.ts +2 -0
  73. package/models/components/chatorpushproviderenum.d.ts.map +1 -1
  74. package/models/components/chatorpushproviderenum.js +2 -0
  75. package/models/components/chatorpushproviderenum.js.map +1 -1
  76. package/models/components/chatstepresponsedto.d.ts +12 -2
  77. package/models/components/chatstepresponsedto.d.ts.map +1 -1
  78. package/models/components/chatstepresponsedto.js +2 -0
  79. package/models/components/chatstepresponsedto.js.map +1 -1
  80. package/models/components/chatstepupsertdto.d.ts +18 -1
  81. package/models/components/chatstepupsertdto.d.ts.map +1 -1
  82. package/models/components/chatstepupsertdto.js +2 -0
  83. package/models/components/chatstepupsertdto.js.map +1 -1
  84. package/models/components/controlsmetadatadto.d.ts +6 -0
  85. package/models/components/controlsmetadatadto.d.ts.map +1 -1
  86. package/models/components/controlsmetadatadto.js +1 -0
  87. package/models/components/controlsmetadatadto.js.map +1 -1
  88. package/models/components/createintegrationrequestdto.d.ts +18 -12
  89. package/models/components/createintegrationrequestdto.d.ts.map +1 -1
  90. package/models/components/createintegrationrequestdto.js +3 -8
  91. package/models/components/createintegrationrequestdto.js.map +1 -1
  92. package/models/components/createworkflowdto.d.ts +1 -1
  93. package/models/components/credentialsdto.d.ts +19 -0
  94. package/models/components/credentialsdto.d.ts.map +1 -1
  95. package/models/components/credentialsdto.js +14 -1
  96. package/models/components/credentialsdto.js.map +1 -1
  97. package/models/components/customcontroldto.d.ts +0 -5
  98. package/models/components/customcontroldto.d.ts.map +1 -1
  99. package/models/components/customcontroldto.js +1 -10
  100. package/models/components/customcontroldto.js.map +1 -1
  101. package/models/components/customcontrolsmetadataresponsedto.d.ts +18 -2
  102. package/models/components/customcontrolsmetadataresponsedto.d.ts.map +1 -1
  103. package/models/components/customcontrolsmetadataresponsedto.js +11 -3
  104. package/models/components/customcontrolsmetadataresponsedto.js.map +1 -1
  105. package/models/components/customstepresponsedto.d.ts +12 -2
  106. package/models/components/customstepresponsedto.d.ts.map +1 -1
  107. package/models/components/customstepresponsedto.js +2 -0
  108. package/models/components/customstepresponsedto.js.map +1 -1
  109. package/models/components/customstepupsertdto.d.ts +1 -1
  110. package/models/components/delaycontroldto.d.ts +0 -9
  111. package/models/components/delaycontroldto.d.ts.map +1 -1
  112. package/models/components/delaycontroldto.js +3 -20
  113. package/models/components/delaycontroldto.js.map +1 -1
  114. package/models/components/delaycontrolsmetadataresponsedto.d.ts +65 -2
  115. package/models/components/delaycontrolsmetadataresponsedto.d.ts.map +1 -1
  116. package/models/components/delaycontrolsmetadataresponsedto.js +37 -3
  117. package/models/components/delaycontrolsmetadataresponsedto.js.map +1 -1
  118. package/models/components/delaystepresponsedto.d.ts +12 -2
  119. package/models/components/delaystepresponsedto.d.ts.map +1 -1
  120. package/models/components/delaystepresponsedto.js +2 -0
  121. package/models/components/delaystepresponsedto.js.map +1 -1
  122. package/models/components/delaystepupsertdto.d.ts +1 -1
  123. package/models/components/diffenvironmentrequestdto.d.ts +1 -1
  124. package/models/components/digestcontroldto.d.ts +0 -9
  125. package/models/components/digestcontroldto.d.ts.map +1 -1
  126. package/models/components/digestcontroldto.js +3 -22
  127. package/models/components/digestcontroldto.js.map +1 -1
  128. package/models/components/digestcontrolsmetadataresponsedto.d.ts +74 -2
  129. package/models/components/digestcontrolsmetadataresponsedto.d.ts.map +1 -1
  130. package/models/components/digestcontrolsmetadataresponsedto.js +40 -3
  131. package/models/components/digestcontrolsmetadataresponsedto.js.map +1 -1
  132. package/models/components/digeststepresponsedto.d.ts +12 -2
  133. package/models/components/digeststepresponsedto.d.ts.map +1 -1
  134. package/models/components/digeststepresponsedto.js +2 -0
  135. package/models/components/digeststepresponsedto.js.map +1 -1
  136. package/models/components/digeststepupsertdto.d.ts +1 -1
  137. package/models/components/emailcontroldto.d.ts +0 -7
  138. package/models/components/emailcontroldto.d.ts.map +1 -1
  139. package/models/components/emailcontroldto.js +2 -22
  140. package/models/components/emailcontroldto.js.map +1 -1
  141. package/models/components/emailcontrolsdto.d.ts +0 -7
  142. package/models/components/emailcontrolsdto.d.ts.map +1 -1
  143. package/models/components/emailcontrolsdto.js +2 -14
  144. package/models/components/emailcontrolsdto.js.map +1 -1
  145. package/models/components/emailcontrolsmetadataresponsedto.d.ts +69 -2
  146. package/models/components/emailcontrolsmetadataresponsedto.d.ts.map +1 -1
  147. package/models/components/emailcontrolsmetadataresponsedto.js +32 -3
  148. package/models/components/emailcontrolsmetadataresponsedto.js.map +1 -1
  149. package/models/components/emailstepresponsedto.d.ts +12 -2
  150. package/models/components/emailstepresponsedto.d.ts.map +1 -1
  151. package/models/components/emailstepresponsedto.js +2 -0
  152. package/models/components/emailstepresponsedto.js.map +1 -1
  153. package/models/components/emailstepupsertdto.d.ts +1 -1
  154. package/models/components/getchannelconnectionresponsedto.d.ts +3 -0
  155. package/models/components/getchannelconnectionresponsedto.d.ts.map +1 -1
  156. package/models/components/getchannelconnectionresponsedto.js +3 -0
  157. package/models/components/getchannelconnectionresponsedto.js.map +1 -1
  158. package/models/components/getchannelendpointresponsedto.d.ts +3 -0
  159. package/models/components/getchannelendpointresponsedto.d.ts.map +1 -1
  160. package/models/components/getchannelendpointresponsedto.js +3 -0
  161. package/models/components/getchannelendpointresponsedto.js.map +1 -1
  162. package/models/components/getpreferencesresponsedto.d.ts +4 -9
  163. package/models/components/getpreferencesresponsedto.d.ts.map +1 -1
  164. package/models/components/getpreferencesresponsedto.js +2 -8
  165. package/models/components/getpreferencesresponsedto.js.map +1 -1
  166. package/models/components/httprequestcontroldto.d.ts +0 -8
  167. package/models/components/httprequestcontroldto.d.ts.map +1 -1
  168. package/models/components/httprequestcontroldto.js +1 -24
  169. package/models/components/httprequestcontroldto.js.map +1 -1
  170. package/models/components/httprequestcontrolsmetadataresponsedto.d.ts +51 -2
  171. package/models/components/httprequestcontrolsmetadataresponsedto.d.ts.map +1 -1
  172. package/models/components/httprequestcontrolsmetadataresponsedto.js +27 -3
  173. package/models/components/httprequestcontrolsmetadataresponsedto.js.map +1 -1
  174. package/models/components/httprequeststepresponsedto.d.ts +12 -2
  175. package/models/components/httprequeststepresponsedto.d.ts.map +1 -1
  176. package/models/components/httprequeststepresponsedto.js +2 -0
  177. package/models/components/httprequeststepresponsedto.js.map +1 -1
  178. package/models/components/httprequeststepupsertdto.d.ts +1 -1
  179. package/models/components/humansignaldto.d.ts +7 -7
  180. package/models/components/humansignaldto.d.ts.map +1 -1
  181. package/models/components/humansignaldto.js +2 -2
  182. package/models/components/humansignaldto.js.map +1 -1
  183. package/models/components/inappcontroldto.d.ts +0 -5
  184. package/models/components/inappcontroldto.d.ts.map +1 -1
  185. package/models/components/inappcontroldto.js +1 -18
  186. package/models/components/inappcontroldto.js.map +1 -1
  187. package/models/components/inappcontrolsmetadataresponsedto.d.ts +54 -2
  188. package/models/components/inappcontrolsmetadataresponsedto.d.ts.map +1 -1
  189. package/models/components/inappcontrolsmetadataresponsedto.js +20 -3
  190. package/models/components/inappcontrolsmetadataresponsedto.js.map +1 -1
  191. package/models/components/inappstepresponsedto.d.ts +12 -2
  192. package/models/components/inappstepresponsedto.d.ts.map +1 -1
  193. package/models/components/inappstepresponsedto.js +2 -0
  194. package/models/components/inappstepresponsedto.js.map +1 -1
  195. package/models/components/inappstepupsertdto.d.ts +1 -1
  196. package/models/components/inboxnotificationdto.d.ts +1 -4
  197. package/models/components/inboxnotificationdto.d.ts.map +1 -1
  198. package/models/components/inboxnotificationdto.js.map +1 -1
  199. package/models/components/index.d.ts +1 -1
  200. package/models/components/index.d.ts.map +1 -1
  201. package/models/components/index.js +1 -1
  202. package/models/components/index.js.map +1 -1
  203. package/models/components/integrationresponsedto.d.ts +9 -1
  204. package/models/components/integrationresponsedto.d.ts.map +1 -1
  205. package/models/components/integrationresponsedto.js +1 -0
  206. package/models/components/integrationresponsedto.js.map +1 -1
  207. package/models/components/layoutcontrolsdto.d.ts +3 -2
  208. package/models/components/layoutcontrolsdto.d.ts.map +1 -1
  209. package/models/components/layoutcontrolsdto.js +1 -2
  210. package/models/components/layoutcontrolsdto.js.map +1 -1
  211. package/models/components/layoutresponsedto.d.ts +1 -1
  212. package/models/components/markmessageactionasseendto.d.ts +6 -11
  213. package/models/components/markmessageactionasseendto.d.ts.map +1 -1
  214. package/models/components/markmessageactionasseendto.js +2 -9
  215. package/models/components/markmessageactionasseendto.js.map +1 -1
  216. package/models/components/messageactionresult.d.ts +1 -1
  217. package/models/components/messagebutton.d.ts +1 -1
  218. package/models/components/messageresponsedto.d.ts +0 -3
  219. package/models/components/messageresponsedto.d.ts.map +1 -1
  220. package/models/components/messageresponsedto.js.map +1 -1
  221. package/models/components/metadatasetsignaldto.d.ts +12 -4
  222. package/models/components/metadatasetsignaldto.d.ts.map +1 -1
  223. package/models/components/metadatasetsignaldto.js +14 -2
  224. package/models/components/metadatasetsignaldto.js.map +1 -1
  225. package/models/components/notificationfeeditemdto.d.ts +0 -3
  226. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  227. package/models/components/notificationfeeditemdto.js.map +1 -1
  228. package/models/components/notificationworkflowdto.d.ts +1 -1
  229. package/models/components/providersidenum.d.ts +5 -2
  230. package/models/components/providersidenum.d.ts.map +1 -1
  231. package/models/components/providersidenum.js +4 -1
  232. package/models/components/providersidenum.js.map +1 -1
  233. package/models/components/publishenvironmentrequestdto.d.ts +1 -1
  234. package/models/components/pushcontroldto.d.ts +0 -5
  235. package/models/components/pushcontroldto.d.ts.map +1 -1
  236. package/models/components/pushcontroldto.js +1 -12
  237. package/models/components/pushcontroldto.js.map +1 -1
  238. package/models/components/pushcontrolsmetadataresponsedto.d.ts +26 -2
  239. package/models/components/pushcontrolsmetadataresponsedto.d.ts.map +1 -1
  240. package/models/components/pushcontrolsmetadataresponsedto.js +13 -3
  241. package/models/components/pushcontrolsmetadataresponsedto.js.map +1 -1
  242. package/models/components/pushstepresponsedto.d.ts +12 -2
  243. package/models/components/pushstepresponsedto.d.ts.map +1 -1
  244. package/models/components/pushstepresponsedto.js +2 -0
  245. package/models/components/pushstepresponsedto.js.map +1 -1
  246. package/models/components/pushstepupsertdto.d.ts +1 -1
  247. package/models/components/resourcediffdto.d.ts +8 -0
  248. package/models/components/resourcediffdto.d.ts.map +1 -1
  249. package/models/components/resourcediffdto.js +2 -0
  250. package/models/components/resourcediffdto.js.map +1 -1
  251. package/models/components/resourcediffresultdto.d.ts +8 -0
  252. package/models/components/resourcediffresultdto.d.ts.map +1 -1
  253. package/models/components/resourcediffresultdto.js +2 -0
  254. package/models/components/resourcediffresultdto.js.map +1 -1
  255. package/models/components/resourceoriginenum.d.ts +2 -2
  256. package/models/components/resourceoriginenum.js +1 -1
  257. package/models/components/runtimeissuedto.d.ts +12 -1
  258. package/models/components/runtimeissuedto.d.ts.map +1 -1
  259. package/models/components/runtimeissuedto.js +6 -1
  260. package/models/components/runtimeissuedto.js.map +1 -1
  261. package/models/components/severitylevelenum.d.ts +2 -2
  262. package/models/components/severitylevelenum.js +1 -1
  263. package/models/components/smscontroldto.d.ts +0 -5
  264. package/models/components/smscontroldto.d.ts.map +1 -1
  265. package/models/components/smscontroldto.js +1 -11
  266. package/models/components/smscontroldto.js.map +1 -1
  267. package/models/components/smscontrolsmetadataresponsedto.d.ts +22 -2
  268. package/models/components/smscontrolsmetadataresponsedto.d.ts.map +1 -1
  269. package/models/components/smscontrolsmetadataresponsedto.js +12 -3
  270. package/models/components/smscontrolsmetadataresponsedto.js.map +1 -1
  271. package/models/components/smsstepresponsedto.d.ts +12 -2
  272. package/models/components/smsstepresponsedto.d.ts.map +1 -1
  273. package/models/components/smsstepresponsedto.js +2 -0
  274. package/models/components/smsstepresponsedto.js.map +1 -1
  275. package/models/components/smsstepupsertdto.d.ts +1 -1
  276. package/models/components/steplistresponsedto.d.ts +1 -1
  277. package/models/components/stepresponsedto.d.ts +12 -2
  278. package/models/components/stepresponsedto.d.ts.map +1 -1
  279. package/models/components/stepresponsedto.js +2 -0
  280. package/models/components/stepresponsedto.js.map +1 -1
  281. package/models/components/subscriberchanneldto.d.ts +2 -0
  282. package/models/components/subscriberchanneldto.d.ts.map +1 -1
  283. package/models/components/subscriberchanneldto.js +2 -0
  284. package/models/components/subscriberchanneldto.js.map +1 -1
  285. package/models/components/subscriberpreferenceoverridedto.d.ts +0 -3
  286. package/models/components/subscriberpreferenceoverridedto.d.ts.map +1 -1
  287. package/models/components/subscriberpreferenceoverridedto.js.map +1 -1
  288. package/models/components/subscriptionpreferencedto.d.ts +4 -9
  289. package/models/components/subscriptionpreferencedto.d.ts.map +1 -1
  290. package/models/components/subscriptionpreferencedto.js +2 -8
  291. package/models/components/subscriptionpreferencedto.js.map +1 -1
  292. package/models/components/tenantpayloaddto.d.ts +6 -8
  293. package/models/components/tenantpayloaddto.d.ts.map +1 -1
  294. package/models/components/tenantpayloaddto.js +2 -8
  295. package/models/components/tenantpayloaddto.js.map +1 -1
  296. package/models/components/throttlecontroldto.d.ts +0 -9
  297. package/models/components/throttlecontroldto.d.ts.map +1 -1
  298. package/models/components/throttlecontroldto.js +3 -22
  299. package/models/components/throttlecontroldto.js.map +1 -1
  300. package/models/components/throttlecontrolsmetadataresponsedto.d.ts +70 -2
  301. package/models/components/throttlecontrolsmetadataresponsedto.d.ts.map +1 -1
  302. package/models/components/throttlecontrolsmetadataresponsedto.js +38 -3
  303. package/models/components/throttlecontrolsmetadataresponsedto.js.map +1 -1
  304. package/models/components/throttlestepresponsedto.d.ts +12 -2
  305. package/models/components/throttlestepresponsedto.d.ts.map +1 -1
  306. package/models/components/throttlestepresponsedto.js +2 -0
  307. package/models/components/throttlestepresponsedto.js.map +1 -1
  308. package/models/components/throttlestepupsertdto.d.ts +1 -1
  309. package/models/components/toolapprovalrequestpayloaddto.d.ts +24 -0
  310. package/models/components/toolapprovalrequestpayloaddto.d.ts.map +1 -1
  311. package/models/components/toolapprovalrequestpayloaddto.js +11 -1
  312. package/models/components/toolapprovalrequestpayloaddto.js.map +1 -1
  313. package/models/components/toolcontroldto.d.ts +0 -5
  314. package/models/components/toolcontroldto.d.ts.map +1 -1
  315. package/models/components/toolcontroldto.js +1 -11
  316. package/models/components/toolcontroldto.js.map +1 -1
  317. package/models/components/toolcontrolsmetadataresponsedto.d.ts +22 -2
  318. package/models/components/toolcontrolsmetadataresponsedto.d.ts.map +1 -1
  319. package/models/components/toolcontrolsmetadataresponsedto.js +12 -3
  320. package/models/components/toolcontrolsmetadataresponsedto.js.map +1 -1
  321. package/models/components/toolstepresponsedto.d.ts +12 -2
  322. package/models/components/toolstepresponsedto.d.ts.map +1 -1
  323. package/models/components/toolstepresponsedto.js +2 -0
  324. package/models/components/toolstepresponsedto.js.map +1 -1
  325. package/models/components/toolstepupsertdto.d.ts +18 -1
  326. package/models/components/toolstepupsertdto.d.ts.map +1 -1
  327. package/models/components/toolstepupsertdto.js +2 -0
  328. package/models/components/toolstepupsertdto.js.map +1 -1
  329. package/models/components/toolwebhookendpointdto.d.ts +6 -14
  330. package/models/components/toolwebhookendpointdto.d.ts.map +1 -1
  331. package/models/components/toolwebhookendpointdto.js +3 -15
  332. package/models/components/toolwebhookendpointdto.js.map +1 -1
  333. package/models/components/triggereventrequestdto.d.ts +1 -1
  334. package/models/components/triggereventtoallrequestdto.d.ts +1 -1
  335. package/models/components/triggersignaldto.d.ts +4 -4
  336. package/models/components/triggersignaldto.d.ts.map +1 -1
  337. package/models/components/triggersignaldto.js +5 -6
  338. package/models/components/triggersignaldto.js.map +1 -1
  339. package/models/components/updateintegrationrequestdto.d.ts +20 -11
  340. package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
  341. package/models/components/updateintegrationrequestdto.js +3 -8
  342. package/models/components/updateintegrationrequestdto.js.map +1 -1
  343. package/models/components/updateworkflowdto.d.ts +2 -2
  344. package/models/components/workflowissuetypeenum.d.ts +13 -0
  345. package/models/components/workflowissuetypeenum.d.ts.map +1 -0
  346. package/models/components/{layoutcontrolvaluesdto.js → workflowissuetypeenum.js} +10 -11
  347. package/models/components/workflowissuetypeenum.js.map +1 -0
  348. package/models/components/workflowlistresponsedto.d.ts +1 -1
  349. package/models/components/workflowpreferencedto.d.ts +9 -0
  350. package/models/components/workflowpreferencedto.d.ts.map +1 -1
  351. package/models/components/workflowpreferencedto.js +2 -0
  352. package/models/components/workflowpreferencedto.js.map +1 -1
  353. package/models/components/workflowresponse.d.ts +3 -5
  354. package/models/components/workflowresponse.d.ts.map +1 -1
  355. package/models/components/workflowresponse.js +2 -8
  356. package/models/components/workflowresponse.js.map +1 -1
  357. package/models/components/workflowresponsedto.d.ts +3 -3
  358. package/models/components/workflowresponsedto.d.ts.map +1 -1
  359. package/models/components/workflowresponsedto.js +1 -1
  360. package/models/components/workflowresponsedto.js.map +1 -1
  361. package/models/operations/agentintegrationscontrolleraddagentintegration.d.ts +2 -0
  362. package/models/operations/agentintegrationscontrolleraddagentintegration.d.ts.map +1 -1
  363. package/models/operations/agentintegrationscontrolleraddagentintegration.js +2 -0
  364. package/models/operations/agentintegrationscontrolleraddagentintegration.js.map +1 -1
  365. package/models/operations/contextscontrollerlistcontexts.d.ts +5 -0
  366. package/models/operations/contextscontrollerlistcontexts.d.ts.map +1 -1
  367. package/models/operations/contextscontrollerlistcontexts.js +1 -0
  368. package/models/operations/contextscontrollerlistcontexts.js.map +1 -1
  369. package/models/operations/messagescontrollergetmessages.d.ts +0 -3
  370. package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
  371. package/models/operations/messagescontrollergetmessages.js.map +1 -1
  372. package/models/operations/subscriberscontrollergetsubscribernotifications.d.ts +5 -0
  373. package/models/operations/subscriberscontrollergetsubscribernotifications.d.ts.map +1 -1
  374. package/models/operations/subscriberscontrollergetsubscribernotifications.js +1 -0
  375. package/models/operations/subscriberscontrollergetsubscribernotifications.js.map +1 -1
  376. package/models/operations/subscriberscontrollersearchsubscribers.d.ts +2 -2
  377. package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts +2 -0
  378. package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts.map +1 -1
  379. package/models/operations/subscribersv1controllergetnotificationsfeed.js +1 -0
  380. package/models/operations/subscribersv1controllergetnotificationsfeed.js.map +1 -1
  381. package/models/operations/subscribersv1controllergetunseencount.d.ts +5 -0
  382. package/models/operations/subscribersv1controllergetunseencount.d.ts.map +1 -1
  383. package/models/operations/subscribersv1controllergetunseencount.js +1 -0
  384. package/models/operations/subscribersv1controllergetunseencount.js.map +1 -1
  385. package/models/operations/subscribersv1controllermarkactionasseen.d.ts +10 -2
  386. package/models/operations/subscribersv1controllermarkactionasseen.d.ts.map +1 -1
  387. package/models/operations/subscribersv1controllermarkactionasseen.js +8 -2
  388. package/models/operations/subscribersv1controllermarkactionasseen.js.map +1 -1
  389. package/package.json +2 -2
  390. package/sdk/agents.d.ts +5 -4
  391. package/sdk/agents.d.ts.map +1 -1
  392. package/sdk/agents.js +5 -4
  393. package/sdk/agents.js.map +1 -1
  394. package/sdk/environments.d.ts +2 -2
  395. package/sdk/environments.js +2 -2
  396. package/sdk/novuintegrations.d.ts +1 -2
  397. package/sdk/novuintegrations.d.ts.map +1 -1
  398. package/sdk/novuintegrations.js +2 -2
  399. package/sdk/novuintegrations.js.map +1 -1
  400. package/src/funcs/agentsIntegrationsCreate.ts +9 -18
  401. package/src/funcs/agentsSendReply.ts +5 -4
  402. package/src/funcs/contextsList.ts +1 -0
  403. package/src/funcs/environmentsDiff.ts +1 -1
  404. package/src/funcs/environmentsPublish.ts +1 -1
  405. package/src/funcs/layoutsDelete.ts +1 -1
  406. package/src/funcs/subscribersNotificationsFeed.ts +1 -0
  407. package/src/funcs/subscribersNotificationsList.ts +1 -0
  408. package/src/funcs/subscribersNotificationsUnseenCount.ts +1 -0
  409. package/src/lib/config.ts +4 -4
  410. package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +1 -1
  411. package/src/models/components/activitynotificationjobresponsedto.ts +3 -22
  412. package/src/models/components/activitynotificationresponsedto.ts +4 -1
  413. package/src/models/components/activitynotificationstepresponsedto.ts +2 -24
  414. package/src/models/components/activitynotificationsubscriberresponsedto.ts +8 -8
  415. package/src/models/components/activitynotificationtemplateresponsedto.ts +1 -1
  416. package/src/models/components/agentbehaviordto.ts +31 -45
  417. package/src/models/components/agentintegrationresponsedto.ts +5 -0
  418. package/src/models/components/agentintegrationresponseintegrationdto.ts +0 -3
  419. package/src/models/components/agentintegrationsummarydto.ts +0 -3
  420. package/src/models/components/buttontypeenum.ts +2 -2
  421. package/src/models/components/channeltypeenum.ts +0 -6
  422. package/src/models/components/chatcontroldto.ts +1 -27
  423. package/src/models/components/chatcontrolsmetadataresponsedto.ts +73 -7
  424. package/src/models/components/chatorpushproviderenum.ts +2 -0
  425. package/src/models/components/chatstepresponsedto.ts +11 -2
  426. package/src/models/components/chatstepupsertdto.ts +14 -1
  427. package/src/models/components/controlsmetadatadto.ts +5 -0
  428. package/src/models/components/createintegrationrequestdto.ts +12 -23
  429. package/src/models/components/createworkflowdto.ts +1 -1
  430. package/src/models/components/credentialsdto.ts +25 -0
  431. package/src/models/components/customcontroldto.ts +0 -20
  432. package/src/models/components/customcontrolsmetadataresponsedto.ts +47 -7
  433. package/src/models/components/customstepresponsedto.ts +11 -2
  434. package/src/models/components/customstepupsertdto.ts +1 -1
  435. package/src/models/components/delaycontroldto.ts +2 -32
  436. package/src/models/components/delaycontrolsmetadataresponsedto.ts +107 -7
  437. package/src/models/components/delaystepresponsedto.ts +11 -2
  438. package/src/models/components/delaystepupsertdto.ts +1 -1
  439. package/src/models/components/diffenvironmentrequestdto.ts +1 -1
  440. package/src/models/components/digestcontroldto.ts +2 -37
  441. package/src/models/components/digestcontrolsmetadataresponsedto.ts +125 -6
  442. package/src/models/components/digeststepresponsedto.ts +11 -2
  443. package/src/models/components/digeststepupsertdto.ts +1 -1
  444. package/src/models/components/emailcontroldto.ts +1 -35
  445. package/src/models/components/emailcontrolsdto.ts +1 -25
  446. package/src/models/components/emailcontrolsmetadataresponsedto.ts +111 -6
  447. package/src/models/components/emailstepresponsedto.ts +11 -2
  448. package/src/models/components/emailstepupsertdto.ts +1 -1
  449. package/src/models/components/getchannelconnectionresponsedto.ts +3 -0
  450. package/src/models/components/getchannelendpointresponsedto.ts +3 -0
  451. package/src/models/components/getpreferencesresponsedto.ts +3 -25
  452. package/src/models/components/httprequestcontroldto.ts +0 -41
  453. package/src/models/components/httprequestcontrolsmetadataresponsedto.ts +117 -6
  454. package/src/models/components/httprequeststepresponsedto.ts +11 -2
  455. package/src/models/components/httprequeststepupsertdto.ts +1 -1
  456. package/src/models/components/humansignaldto.ts +9 -9
  457. package/src/models/components/inappcontroldto.ts +0 -30
  458. package/src/models/components/inappcontrolsmetadataresponsedto.ts +79 -7
  459. package/src/models/components/inappstepresponsedto.ts +11 -2
  460. package/src/models/components/inappstepupsertdto.ts +1 -1
  461. package/src/models/components/inboxnotificationdto.ts +1 -4
  462. package/src/models/components/index.ts +1 -1
  463. package/src/models/components/integrationresponsedto.ts +8 -1
  464. package/src/models/components/layoutcontrolsdto.ts +2 -6
  465. package/src/models/components/layoutresponsedto.ts +1 -1
  466. package/src/models/components/markmessageactionasseendto.ts +3 -29
  467. package/src/models/components/messageactionresult.ts +1 -1
  468. package/src/models/components/messagebutton.ts +1 -1
  469. package/src/models/components/messageresponsedto.ts +0 -3
  470. package/src/models/components/metadatasetsignaldto.ts +22 -6
  471. package/src/models/components/notificationfeeditemdto.ts +0 -3
  472. package/src/models/components/notificationworkflowdto.ts +1 -1
  473. package/src/models/components/providersidenum.ts +5 -2
  474. package/src/models/components/publishenvironmentrequestdto.ts +1 -1
  475. package/src/models/components/pushcontroldto.ts +0 -22
  476. package/src/models/components/pushcontrolsmetadataresponsedto.ts +52 -7
  477. package/src/models/components/pushstepresponsedto.ts +11 -2
  478. package/src/models/components/pushstepupsertdto.ts +1 -1
  479. package/src/models/components/resourcediffdto.ts +10 -0
  480. package/src/models/components/resourcediffresultdto.ts +10 -0
  481. package/src/models/components/resourceoriginenum.ts +2 -2
  482. package/src/models/components/runtimeissuedto.ts +20 -2
  483. package/src/models/components/severitylevelenum.ts +2 -2
  484. package/src/models/components/smscontroldto.ts +0 -21
  485. package/src/models/components/smscontrolsmetadataresponsedto.ts +47 -4
  486. package/src/models/components/smsstepresponsedto.ts +11 -2
  487. package/src/models/components/smsstepupsertdto.ts +1 -1
  488. package/src/models/components/steplistresponsedto.ts +1 -1
  489. package/src/models/components/stepresponsedto.ts +11 -2
  490. package/src/models/components/subscriberchanneldto.ts +2 -0
  491. package/src/models/components/subscriberpreferenceoverridedto.ts +0 -3
  492. package/src/models/components/subscriptionpreferencedto.ts +3 -25
  493. package/src/models/components/tenantpayloaddto.ts +3 -16
  494. package/src/models/components/throttlecontroldto.ts +2 -36
  495. package/src/models/components/throttlecontrolsmetadataresponsedto.ts +119 -7
  496. package/src/models/components/throttlestepresponsedto.ts +11 -2
  497. package/src/models/components/throttlestepupsertdto.ts +1 -1
  498. package/src/models/components/toolapprovalrequestpayloaddto.ts +34 -0
  499. package/src/models/components/toolcontroldto.ts +0 -21
  500. package/src/models/components/toolcontrolsmetadataresponsedto.ts +47 -7
  501. package/src/models/components/toolstepresponsedto.ts +11 -2
  502. package/src/models/components/toolstepupsertdto.ts +14 -1
  503. package/src/models/components/toolwebhookendpointdto.ts +4 -35
  504. package/src/models/components/triggereventrequestdto.ts +1 -1
  505. package/src/models/components/triggereventtoallrequestdto.ts +1 -1
  506. package/src/models/components/triggersignaldto.ts +17 -10
  507. package/src/models/components/updateintegrationrequestdto.ts +14 -34
  508. package/src/models/components/updateworkflowdto.ts +2 -2
  509. package/src/models/components/workflowissuetypeenum.ts +20 -0
  510. package/src/models/components/workflowlistresponsedto.ts +1 -1
  511. package/src/models/components/workflowpreferencedto.ts +7 -0
  512. package/src/models/components/workflowresponse.ts +2 -21
  513. package/src/models/components/workflowresponsedto.ts +4 -4
  514. package/src/models/operations/agentintegrationscontrolleraddagentintegration.ts +4 -0
  515. package/src/models/operations/contextscontrollerlistcontexts.ts +6 -0
  516. package/src/models/operations/messagescontrollergetmessages.ts +0 -3
  517. package/src/models/operations/subscriberscontrollergetsubscribernotifications.ts +6 -0
  518. package/src/models/operations/subscriberscontrollersearchsubscribers.ts +2 -2
  519. package/src/models/operations/subscribersv1controllergetnotificationsfeed.ts +3 -0
  520. package/src/models/operations/subscribersv1controllergetunseencount.ts +6 -0
  521. package/src/models/operations/subscribersv1controllermarkactionasseen.ts +15 -3
  522. package/src/sdk/agents.ts +5 -4
  523. package/src/sdk/environments.ts +2 -2
  524. package/src/sdk/novuintegrations.ts +2 -7
  525. package/temp/example.ts +10 -0
  526. package/models/components/layoutcontrolvaluesdto.d.ts +0 -14
  527. package/models/components/layoutcontrolvaluesdto.d.ts.map +0 -1
  528. package/models/components/layoutcontrolvaluesdto.js.map +0 -1
  529. package/src/models/components/layoutcontrolvaluesdto.ts +0 -38
@@ -31,10 +31,9 @@ import { Result } from "../types/fp.js";
31
31
  * Send an agent reply
32
32
  *
33
33
  * @remarks
34
- * Send a message or side-effect into an existing agent conversation from your backend.
35
- *
36
- * Use this endpoint when you are not using `@novu/framework` (for example Python, Go, PHP, .NET, or Java SDKs),
37
- * or when a server process outside the bridge needs to post into a live conversation.
34
+ * **Deprecated** — use `POST /v1/agents/events/ingest` (AgentEvent protocol).
35
+ * This route stays live for old `@novu/framework` and existing OpenAPI `sendReply` clients.
36
+ * Do not use it for new integrations.
38
37
  *
39
38
  * **Message actions**
40
39
  * - `reply` — markdown, interactive card, or tool-approval card (optional `files`)
@@ -54,6 +53,8 @@ import { Result } from "../types/fp.js";
54
53
  *
55
54
  * Returns `{ data: { messageId, platformThreadId } }` when a reply or edit is delivered;
56
55
  * otherwise `{ data: null }`.
56
+ *
57
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
57
58
  */
58
59
  export function agentsSendReply(
59
60
  client: NovuCore,
@@ -108,6 +108,7 @@ async function $do(
108
108
  "orderBy": payload.orderBy,
109
109
  "orderDirection": payload.orderDirection,
110
110
  "search": payload.search,
111
+ "type": payload.type,
111
112
  });
112
113
 
113
114
  const headers = new Headers(compactMap({
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Compare resources between environments
32
32
  *
33
33
  * @remarks
34
- * Compares workflows and other resources between the source and target environments, returning detailed diff information including additions, modifications, and deletions.
34
+ * Compares workflows and other resources between the development and target environments, returning detailed diff information including additions, modifications, and deletions.
35
35
  */
36
36
  export function environmentsDiff(
37
37
  client: NovuCore,
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Publish resources to target environment
32
32
  *
33
33
  * @remarks
34
- * Publishes all workflows and resources from the source environment to the target environment. Optionally specify specific resources to publish or use dryRun mode to preview changes.
34
+ * Publishes all workflows and resources from the development environment to the target environment. Optionally specify specific resources to publish or use dryRun mode to preview changes.
35
35
  */
36
36
  export function environmentsPublish(
37
37
  client: NovuCore,
@@ -124,7 +124,7 @@ async function $do(
124
124
  const context = {
125
125
  options: client._options,
126
126
  baseURL: options?.serverURL ?? client._baseURL ?? "",
127
- operationID: "LayoutsController__delete",
127
+ operationID: "LayoutsController_delete",
128
128
  oAuth2Scopes: null,
129
129
 
130
130
  resolvedSecurity: requestSecurity,
@@ -107,6 +107,7 @@ async function $do(
107
107
  );
108
108
 
109
109
  const query = encodeFormQuery({
110
+ "feedIdentifier": payload.feedIdentifier,
110
111
  "limit": payload.limit,
111
112
  "page": payload.page,
112
113
  "payload": payload.payload,
@@ -118,6 +118,7 @@ async function $do(
118
118
  "seen": payload.seen,
119
119
  "severity": payload.severity,
120
120
  "snoozed": payload.snoozed,
121
+ "tags": payload.tags,
121
122
  });
122
123
 
123
124
  const headers = new Headers(compactMap({
@@ -106,6 +106,7 @@ async function $do(
106
106
  )(pathParams);
107
107
 
108
108
  const query = encodeFormQuery({
109
+ "feedId": payload.feedId,
109
110
  "limit": payload.limit,
110
111
  "seen": payload.seen,
111
112
  });
package/src/lib/config.ts CHANGED
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
 
59
59
  export const SDK_METADATA = {
60
60
  language: "typescript",
61
- openapiDocVersion: "3.19.0",
62
- sdkVersion: "3.19.1",
63
- genVersion: "2.933.0",
64
- userAgent: "speakeasy-sdk/typescript 3.19.1 2.933.0 3.19.0 @novu/api",
61
+ openapiDocVersion: "3.19.2",
62
+ sdkVersion: "3.20.0",
63
+ genVersion: "2.961.1",
64
+ userAgent: "speakeasy-sdk/typescript 3.20.0 2.961.1 3.19.2 @novu/api",
65
65
  } as const;
@@ -46,7 +46,7 @@ export type ActivityNotificationExecutionDetailResponseDto = {
46
46
  */
47
47
  isTest: boolean;
48
48
  /**
49
- * Provider ID of the job
49
+ * Provider ID of the execution
50
50
  */
51
51
  providerId?: ProvidersIdEnum | undefined;
52
52
  /**
@@ -49,11 +49,6 @@ export type ActivityNotificationJobResponseDtoType = ClosedEnum<
49
49
  typeof ActivityNotificationJobResponseDtoType
50
50
  >;
51
51
 
52
- /**
53
- * Optional payload for the job
54
- */
55
- export type Payload = {};
56
-
57
52
  export type ActivityNotificationJobResponseDto = {
58
53
  /**
59
54
  * Unique identifier of the job
@@ -82,9 +77,9 @@ export type ActivityNotificationJobResponseDto = {
82
77
  /**
83
78
  * Optional payload for the job
84
79
  */
85
- payload?: Payload | undefined;
80
+ payload?: { [k: string]: any } | undefined;
86
81
  /**
87
- * Provider ID of the job
82
+ * Provider ID of the execution
88
83
  */
89
84
  providerId: ProvidersIdEnum;
90
85
  /**
@@ -107,20 +102,6 @@ export const ActivityNotificationJobResponseDtoType$inboundSchema:
107
102
  ActivityNotificationJobResponseDtoType,
108
103
  );
109
104
 
110
- /** @internal */
111
- export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
112
- z.object({});
113
-
114
- export function payloadFromJSON(
115
- jsonString: string,
116
- ): SafeParseResult<Payload, SDKValidationError> {
117
- return safeParse(
118
- jsonString,
119
- (x) => Payload$inboundSchema.parse(JSON.parse(x)),
120
- `Failed to parse 'Payload' from JSON`,
121
- );
122
- }
123
-
124
105
  /** @internal */
125
106
  export const ActivityNotificationJobResponseDto$inboundSchema: z.ZodType<
126
107
  ActivityNotificationJobResponseDto,
@@ -135,7 +116,7 @@ export const ActivityNotificationJobResponseDto$inboundSchema: z.ZodType<
135
116
  ),
136
117
  step: ActivityNotificationStepResponseDto$inboundSchema,
137
118
  overrides: z.record(z.any()).optional(),
138
- payload: z.lazy(() => Payload$inboundSchema).optional(),
119
+ payload: z.record(z.any()).optional(),
139
120
  providerId: ProvidersIdEnum$inboundSchema,
140
121
  status: z.string(),
141
122
  updatedAt: z.string().optional(),
@@ -65,6 +65,9 @@ export type ActivityNotificationResponseDto = {
65
65
  * Last updated time of the notification
66
66
  */
67
67
  updatedAt?: string | undefined;
68
+ /**
69
+ * Channels of the notification
70
+ */
68
71
  channels?: Array<string> | undefined;
69
72
  /**
70
73
  * Subscriber of the notification
@@ -99,7 +102,7 @@ export type ActivityNotificationResponseDto = {
99
102
  */
100
103
  topics?: Array<ActivityTopicDto> | undefined;
101
104
  /**
102
- * Severity of the workflow
105
+ * Override the severity of the workflow
103
106
  */
104
107
  severity?: SeverityLevelEnum | undefined;
105
108
  /**
@@ -18,11 +18,6 @@ import { StepFilterDto, StepFilterDto$inboundSchema } from "./stepfilterdto.js";
18
18
  */
19
19
  export type ActivityNotificationStepResponseDtoReplyCallback = {};
20
20
 
21
- /**
22
- * Control variables
23
- */
24
- export type ControlVariables = {};
25
-
26
21
  /**
27
22
  * Metadata for the workflow step
28
23
  */
@@ -49,7 +44,7 @@ export type ActivityNotificationStepResponseDto = {
49
44
  /**
50
45
  * Control variables
51
46
  */
52
- controlVariables?: ControlVariables | undefined;
47
+ controlVariables?: { [k: string]: any } | undefined;
53
48
  /**
54
49
  * Metadata for the workflow step
55
50
  */
@@ -108,23 +103,6 @@ export function activityNotificationStepResponseDtoReplyCallbackFromJSON(
108
103
  );
109
104
  }
110
105
 
111
- /** @internal */
112
- export const ControlVariables$inboundSchema: z.ZodType<
113
- ControlVariables,
114
- z.ZodTypeDef,
115
- unknown
116
- > = z.object({});
117
-
118
- export function controlVariablesFromJSON(
119
- jsonString: string,
120
- ): SafeParseResult<ControlVariables, SDKValidationError> {
121
- return safeParse(
122
- jsonString,
123
- (x) => ControlVariables$inboundSchema.parse(JSON.parse(x)),
124
- `Failed to parse 'ControlVariables' from JSON`,
125
- );
126
- }
127
-
128
106
  /** @internal */
129
107
  export const ActivityNotificationStepResponseDtoMetadata$inboundSchema:
130
108
  z.ZodType<
@@ -174,7 +152,7 @@ export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
174
152
  replyCallback: z.lazy(() =>
175
153
  ActivityNotificationStepResponseDtoReplyCallback$inboundSchema
176
154
  ).optional(),
177
- controlVariables: z.lazy(() => ControlVariables$inboundSchema).optional(),
155
+ controlVariables: z.record(z.any()).optional(),
178
156
  metadata: z.lazy(() =>
179
157
  ActivityNotificationStepResponseDtoMetadata$inboundSchema
180
158
  ).optional(),
@@ -12,7 +12,7 @@ export type ActivityNotificationSubscriberResponseDto = {
12
12
  /**
13
13
  * First name of the subscriber
14
14
  */
15
- firstName?: string | undefined;
15
+ firstName?: string | null | undefined;
16
16
  /**
17
17
  * External unique identifier of the subscriber
18
18
  */
@@ -24,15 +24,15 @@ export type ActivityNotificationSubscriberResponseDto = {
24
24
  /**
25
25
  * Last name of the subscriber
26
26
  */
27
- lastName?: string | undefined;
27
+ lastName?: string | null | undefined;
28
28
  /**
29
29
  * Email address of the subscriber
30
30
  */
31
- email?: string | undefined;
31
+ email?: string | null | undefined;
32
32
  /**
33
33
  * Phone number of the subscriber
34
34
  */
35
- phone?: string | undefined;
35
+ phone?: string | null | undefined;
36
36
  };
37
37
 
38
38
  /** @internal */
@@ -41,12 +41,12 @@ export const ActivityNotificationSubscriberResponseDto$inboundSchema: z.ZodType<
41
41
  z.ZodTypeDef,
42
42
  unknown
43
43
  > = z.object({
44
- firstName: z.string().optional(),
44
+ firstName: z.nullable(z.string()).optional(),
45
45
  subscriberId: z.string(),
46
46
  _id: z.string(),
47
- lastName: z.string().optional(),
48
- email: z.string().optional(),
49
- phone: z.string().optional(),
47
+ lastName: z.nullable(z.string()).optional(),
48
+ email: z.nullable(z.string()).optional(),
49
+ phone: z.nullable(z.string()).optional(),
50
50
  }).transform((v) => {
51
51
  return remap$(v, {
52
52
  "_id": "id",
@@ -26,7 +26,7 @@ export type ActivityNotificationTemplateResponseDto = {
26
26
  */
27
27
  name: string;
28
28
  /**
29
- * Origin of the layout
29
+ * Origin of the workflow
30
30
  */
31
31
  origin?: ResourceOriginEnum | undefined;
32
32
  /**
@@ -8,11 +8,6 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- /**
12
- * Cross-platform emoji name for resolved conversations (e.g. "check", "star"). Set to null to disable. Default: "check"
13
- */
14
- export type ReactionOnResolved = {};
15
-
16
11
  /**
17
12
  * Controls whether the agent accepts inbound messages from senders not yet linked to a subscriber, across all channels. "open" on managed agents auto-creates a lightweight subscriber so the agent can reply; on custom-code / self-hosted agents, the turn is forwarded to the bridge with a null subscriber. "restricted" rejects unknown senders with a managed denial reply (any runtime). Optional on update (partial PATCH). Persisted agents always have a value — managed create defaults to "open"; self-hosted create defaults to "restricted".
18
13
  */
@@ -25,6 +20,19 @@ export const SubscriberAccess = {
25
20
  */
26
21
  export type SubscriberAccess = ClosedEnum<typeof SubscriberAccess>;
27
22
 
23
+ /**
24
+ * How the agent replies in shared rooms. "mention_only" requires an @mention in every shared room. "auto_reply" replies to unmentioned follow-ups in a nested Slack or Teams thread after the agent has joined. "smart" behaves like auto_reply while one person is talking to the agent in a thread, then requires an @mention there once someone else or another agent joins, or the incumbent @mentions another teammate. Create persists "smart". An omitted field on existing agents still means "auto_reply". DMs always reply without a mention. Optional on update (partial PATCH).
25
+ */
26
+ export const ReplyPolicy = {
27
+ MentionOnly: "mention_only",
28
+ AutoReply: "auto_reply",
29
+ Smart: "smart",
30
+ } as const;
31
+ /**
32
+ * How the agent replies in shared rooms. "mention_only" requires an @mention in every shared room. "auto_reply" replies to unmentioned follow-ups in a nested Slack or Teams thread after the agent has joined. "smart" behaves like auto_reply while one person is talking to the agent in a thread, then requires an @mention there once someone else or another agent joins, or the incumbent @mentions another teammate. Create persists "smart". An omitted field on existing agents still means "auto_reply". DMs always reply without a mention. Optional on update (partial PATCH).
33
+ */
34
+ export type ReplyPolicy = ClosedEnum<typeof ReplyPolicy>;
35
+
28
36
  export type AgentBehaviorDto = {
29
37
  /**
30
38
  * Acknowledge incoming messages. On platforms that support a native typing indicator (e.g. Slack, WhatsApp, Microsoft Teams, Telegram), shows a "Typing…" indicator while the agent processes the message. On platforms that do not (e.g. Email), reacts with an "eyes" emoji to the first inbound message in a thread. Default: true
@@ -33,46 +41,17 @@ export type AgentBehaviorDto = {
33
41
  /**
34
42
  * Cross-platform emoji name for resolved conversations (e.g. "check", "star"). Set to null to disable. Default: "check"
35
43
  */
36
- reactionOnResolved?: ReactionOnResolved | null | undefined;
44
+ reactionOnResolved?: string | null | undefined;
37
45
  /**
38
46
  * Controls whether the agent accepts inbound messages from senders not yet linked to a subscriber, across all channels. "open" on managed agents auto-creates a lightweight subscriber so the agent can reply; on custom-code / self-hosted agents, the turn is forwarded to the bridge with a null subscriber. "restricted" rejects unknown senders with a managed denial reply (any runtime). Optional on update (partial PATCH). Persisted agents always have a value — managed create defaults to "open"; self-hosted create defaults to "restricted".
39
47
  */
40
48
  subscriberAccess?: SubscriberAccess | undefined;
49
+ /**
50
+ * How the agent replies in shared rooms. "mention_only" requires an @mention in every shared room. "auto_reply" replies to unmentioned follow-ups in a nested Slack or Teams thread after the agent has joined. "smart" behaves like auto_reply while one person is talking to the agent in a thread, then requires an @mention there once someone else or another agent joins, or the incumbent @mentions another teammate. Create persists "smart". An omitted field on existing agents still means "auto_reply". DMs always reply without a mention. Optional on update (partial PATCH).
51
+ */
52
+ replyPolicy?: ReplyPolicy | undefined;
41
53
  };
42
54
 
43
- /** @internal */
44
- export const ReactionOnResolved$inboundSchema: z.ZodType<
45
- ReactionOnResolved,
46
- z.ZodTypeDef,
47
- unknown
48
- > = z.object({});
49
- /** @internal */
50
- export type ReactionOnResolved$Outbound = {};
51
-
52
- /** @internal */
53
- export const ReactionOnResolved$outboundSchema: z.ZodType<
54
- ReactionOnResolved$Outbound,
55
- z.ZodTypeDef,
56
- ReactionOnResolved
57
- > = z.object({});
58
-
59
- export function reactionOnResolvedToJSON(
60
- reactionOnResolved: ReactionOnResolved,
61
- ): string {
62
- return JSON.stringify(
63
- ReactionOnResolved$outboundSchema.parse(reactionOnResolved),
64
- );
65
- }
66
- export function reactionOnResolvedFromJSON(
67
- jsonString: string,
68
- ): SafeParseResult<ReactionOnResolved, SDKValidationError> {
69
- return safeParse(
70
- jsonString,
71
- (x) => ReactionOnResolved$inboundSchema.parse(JSON.parse(x)),
72
- `Failed to parse 'ReactionOnResolved' from JSON`,
73
- );
74
- }
75
-
76
55
  /** @internal */
77
56
  export const SubscriberAccess$inboundSchema: z.ZodNativeEnum<
78
57
  typeof SubscriberAccess
@@ -82,6 +61,13 @@ export const SubscriberAccess$outboundSchema: z.ZodNativeEnum<
82
61
  typeof SubscriberAccess
83
62
  > = SubscriberAccess$inboundSchema;
84
63
 
64
+ /** @internal */
65
+ export const ReplyPolicy$inboundSchema: z.ZodNativeEnum<typeof ReplyPolicy> = z
66
+ .nativeEnum(ReplyPolicy);
67
+ /** @internal */
68
+ export const ReplyPolicy$outboundSchema: z.ZodNativeEnum<typeof ReplyPolicy> =
69
+ ReplyPolicy$inboundSchema;
70
+
85
71
  /** @internal */
86
72
  export const AgentBehaviorDto$inboundSchema: z.ZodType<
87
73
  AgentBehaviorDto,
@@ -89,15 +75,16 @@ export const AgentBehaviorDto$inboundSchema: z.ZodType<
89
75
  unknown
90
76
  > = z.object({
91
77
  acknowledgeOnReceived: z.boolean().default(true),
92
- reactionOnResolved: z.nullable(z.lazy(() => ReactionOnResolved$inboundSchema))
93
- .optional(),
78
+ reactionOnResolved: z.nullable(z.string().default("check")),
94
79
  subscriberAccess: SubscriberAccess$inboundSchema.optional(),
80
+ replyPolicy: ReplyPolicy$inboundSchema.default("auto_reply"),
95
81
  });
96
82
  /** @internal */
97
83
  export type AgentBehaviorDto$Outbound = {
98
84
  acknowledgeOnReceived: boolean;
99
- reactionOnResolved?: ReactionOnResolved$Outbound | null | undefined;
85
+ reactionOnResolved: string | null;
100
86
  subscriberAccess?: string | undefined;
87
+ replyPolicy: string;
101
88
  };
102
89
 
103
90
  /** @internal */
@@ -107,10 +94,9 @@ export const AgentBehaviorDto$outboundSchema: z.ZodType<
107
94
  AgentBehaviorDto
108
95
  > = z.object({
109
96
  acknowledgeOnReceived: z.boolean().default(true),
110
- reactionOnResolved: z.nullable(
111
- z.lazy(() => ReactionOnResolved$outboundSchema),
112
- ).optional(),
97
+ reactionOnResolved: z.nullable(z.string().default("check")),
113
98
  subscriberAccess: SubscriberAccess$outboundSchema.optional(),
99
+ replyPolicy: ReplyPolicy$outboundSchema.default("auto_reply"),
114
100
  });
115
101
 
116
102
  export function agentBehaviorDtoToJSON(
@@ -36,6 +36,10 @@ export type AgentIntegrationResponseDto = {
36
36
  * Cloud only. `true` when this channel type (provider) falls outside the organization plan active-channel limit (by connection order). Active channels are counted per channel type, so multiple integrations of the same provider (e.g. several Slack workspaces) count as a single active channel. Over-limit channels keep their configuration but the agent will not respond on them until the plan is upgraded or older channel types are disconnected.
37
37
  */
38
38
  exceedsPlanLimit?: boolean | undefined;
39
+ /**
40
+ * `true` when at least one person has linked their chat on this integration (it has a channel endpoint), so the agent has someone to reach there. Only returned by the list, and only when true. Email has no channel endpoints, so it never carries the flag.
41
+ */
42
+ hasChannelEndpoints?: boolean | undefined;
39
43
  };
40
44
 
41
45
  /** @internal */
@@ -70,6 +74,7 @@ export const AgentIntegrationResponseDto$inboundSchema: z.ZodType<
70
74
  createdAt: z.string(),
71
75
  updatedAt: z.string(),
72
76
  exceedsPlanLimit: z.boolean().optional(),
77
+ hasChannelEndpoints: z.boolean().optional(),
73
78
  }).transform((v) => {
74
79
  return remap$(v, {
75
80
  "_id": "id",
@@ -23,9 +23,6 @@ export type AgentIntegrationResponseIntegrationDto = {
23
23
  identifier: string;
24
24
  name: string;
25
25
  providerId: string;
26
- /**
27
- * Channel type through which the message is sent
28
- */
29
26
  channel?: ChannelTypeEnum | undefined;
30
27
  active: boolean;
31
28
  /**
@@ -19,9 +19,6 @@ export type AgentIntegrationSummaryDto = {
19
19
  providerId: string;
20
20
  name: string;
21
21
  identifier: string;
22
- /**
23
- * Channel type through which the message is sent
24
- */
25
22
  channel?: ChannelTypeEnum | undefined;
26
23
  active: boolean;
27
24
  };
@@ -6,14 +6,14 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  /**
9
- * Type of button for the action result
9
+ * Type of the button
10
10
  */
11
11
  export const ButtonTypeEnum = {
12
12
  Primary: "primary",
13
13
  Secondary: "secondary",
14
14
  } as const;
15
15
  /**
16
- * Type of button for the action result
16
+ * Type of the button
17
17
  */
18
18
  export type ButtonTypeEnum = ClosedEnum<typeof ButtonTypeEnum>;
19
19
 
@@ -5,9 +5,6 @@
5
5
  import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
- /**
9
- * Channel type through which the message is sent
10
- */
11
8
  export const ChannelTypeEnum = {
12
9
  InApp: "in_app",
13
10
  Email: "email",
@@ -16,9 +13,6 @@ export const ChannelTypeEnum = {
16
13
  Push: "push",
17
14
  Tool: "tool",
18
15
  } as const;
19
- /**
20
- * Channel type through which the message is sent
21
- */
22
16
  export type ChannelTypeEnum = ClosedEnum<typeof ChannelTypeEnum>;
23
17
 
24
18
  /** @internal */
@@ -3,10 +3,7 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
6
  import { ClosedEnum } from "../../types/enums.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
7
 
11
8
  /**
12
9
  * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
@@ -37,25 +34,11 @@ export type ChatControlDto = {
37
34
  editorType?: ChatControlDtoEditorType | undefined;
38
35
  };
39
36
 
40
- /** @internal */
41
- export const ChatControlDtoEditorType$inboundSchema: z.ZodNativeEnum<
42
- typeof ChatControlDtoEditorType
43
- > = z.nativeEnum(ChatControlDtoEditorType);
44
37
  /** @internal */
45
38
  export const ChatControlDtoEditorType$outboundSchema: z.ZodNativeEnum<
46
39
  typeof ChatControlDtoEditorType
47
- > = ChatControlDtoEditorType$inboundSchema;
40
+ > = z.nativeEnum(ChatControlDtoEditorType);
48
41
 
49
- /** @internal */
50
- export const ChatControlDto$inboundSchema: z.ZodType<
51
- ChatControlDto,
52
- z.ZodTypeDef,
53
- unknown
54
- > = z.object({
55
- skip: z.record(z.any()).optional(),
56
- body: z.string().optional(),
57
- editorType: ChatControlDtoEditorType$inboundSchema.optional(),
58
- });
59
42
  /** @internal */
60
43
  export type ChatControlDto$Outbound = {
61
44
  skip?: { [k: string]: any } | undefined;
@@ -77,12 +60,3 @@ export const ChatControlDto$outboundSchema: z.ZodType<
77
60
  export function chatControlDtoToJSON(chatControlDto: ChatControlDto): string {
78
61
  return JSON.stringify(ChatControlDto$outboundSchema.parse(chatControlDto));
79
62
  }
80
- export function chatControlDtoFromJSON(
81
- jsonString: string,
82
- ): SafeParseResult<ChatControlDto, SDKValidationError> {
83
- return safeParse(
84
- jsonString,
85
- (x) => ChatControlDto$inboundSchema.parse(JSON.parse(x)),
86
- `Failed to parse 'ChatControlDto' from JSON`,
87
- );
88
- }
@@ -3,15 +3,48 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
6
+ import {
7
+ collectExtraKeys as collectExtraKeys$,
8
+ safeParse,
9
+ } from "../../lib/schemas.js";
10
+ import { ClosedEnum } from "../../types/enums.js";
7
11
  import { Result as SafeParseResult } from "../../types/fp.js";
8
12
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- ChatControlDto,
11
- ChatControlDto$inboundSchema,
12
- } from "./chatcontroldto.js";
13
13
  import { UiSchema, UiSchema$inboundSchema } from "./uischema.js";
14
14
 
15
+ /**
16
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
17
+ */
18
+ export const ChatControlsMetadataResponseDtoEditorType = {
19
+ Block: "block",
20
+ Text: "text",
21
+ } as const;
22
+ /**
23
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
24
+ */
25
+ export type ChatControlsMetadataResponseDtoEditorType = ClosedEnum<
26
+ typeof ChatControlsMetadataResponseDtoEditorType
27
+ >;
28
+
29
+ /**
30
+ * Control values specific to Chat
31
+ */
32
+ export type ChatControlsMetadataResponseDtoValues = {
33
+ /**
34
+ * JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference.
35
+ */
36
+ skip?: { [k: string]: any } | undefined;
37
+ /**
38
+ * Content of the chat message.
39
+ */
40
+ body?: string | undefined;
41
+ /**
42
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
43
+ */
44
+ editorType?: ChatControlsMetadataResponseDtoEditorType | undefined;
45
+ additionalProperties?: { [k: string]: any } | undefined;
46
+ };
47
+
15
48
  export type ChatControlsMetadataResponseDto = {
16
49
  /**
17
50
  * JSON Schema for data
@@ -24,9 +57,41 @@ export type ChatControlsMetadataResponseDto = {
24
57
  /**
25
58
  * Control values specific to Chat
26
59
  */
27
- values: ChatControlDto;
60
+ values?: ChatControlsMetadataResponseDtoValues | undefined;
28
61
  };
29
62
 
63
+ /** @internal */
64
+ export const ChatControlsMetadataResponseDtoEditorType$inboundSchema:
65
+ z.ZodNativeEnum<typeof ChatControlsMetadataResponseDtoEditorType> = z
66
+ .nativeEnum(ChatControlsMetadataResponseDtoEditorType);
67
+
68
+ /** @internal */
69
+ export const ChatControlsMetadataResponseDtoValues$inboundSchema: z.ZodType<
70
+ ChatControlsMetadataResponseDtoValues,
71
+ z.ZodTypeDef,
72
+ unknown
73
+ > = collectExtraKeys$(
74
+ z.object({
75
+ skip: z.record(z.any()).optional(),
76
+ body: z.string().optional(),
77
+ editorType: ChatControlsMetadataResponseDtoEditorType$inboundSchema
78
+ .optional(),
79
+ }).catchall(z.any()),
80
+ "additionalProperties",
81
+ true,
82
+ );
83
+
84
+ export function chatControlsMetadataResponseDtoValuesFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<ChatControlsMetadataResponseDtoValues, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) =>
90
+ ChatControlsMetadataResponseDtoValues$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'ChatControlsMetadataResponseDtoValues' from JSON`,
92
+ );
93
+ }
94
+
30
95
  /** @internal */
31
96
  export const ChatControlsMetadataResponseDto$inboundSchema: z.ZodType<
32
97
  ChatControlsMetadataResponseDto,
@@ -35,7 +100,8 @@ export const ChatControlsMetadataResponseDto$inboundSchema: z.ZodType<
35
100
  > = z.object({
36
101
  dataSchema: z.record(z.any()).optional(),
37
102
  uiSchema: UiSchema$inboundSchema.optional(),
38
- values: ChatControlDto$inboundSchema,
103
+ values: z.lazy(() => ChatControlsMetadataResponseDtoValues$inboundSchema)
104
+ .optional(),
39
105
  });
40
106
 
41
107
  export function chatControlsMetadataResponseDtoFromJSON(