@novu/api 0.0.1-alpha.192 → 0.0.1-alpha.195

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 (407) hide show
  1. package/funcs/adminIdempotencyGet.js +1 -1
  2. package/funcs/adminIdempotencyPost.js +1 -1
  3. package/funcs/cancel.js +1 -1
  4. package/funcs/integrationsCreate.js +1 -1
  5. package/funcs/integrationsDelete.js +1 -1
  6. package/funcs/integrationsList.js +1 -1
  7. package/funcs/integrationsListActive.js +1 -1
  8. package/funcs/integrationsSetAsPrimary.js +1 -1
  9. package/funcs/integrationsUpdate.js +1 -1
  10. package/funcs/integrationsWebhooksRetrieve.js +1 -1
  11. package/funcs/messagesDelete.js +1 -1
  12. package/funcs/messagesDeleteByTransactionId.js +1 -1
  13. package/funcs/messagesRetrieve.js +1 -1
  14. package/funcs/notificationsList.js +1 -1
  15. package/funcs/notificationsRetrieve.js +1 -1
  16. package/funcs/notificationsStatsGraph.js +1 -1
  17. package/funcs/notificationsStatsRetrieve.js +1 -1
  18. package/funcs/subscribersAuthenticationChatAccessOauth.js +1 -1
  19. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +1 -1
  20. package/funcs/subscribersCreate.js +1 -1
  21. package/funcs/subscribersCreateBulk.js +1 -1
  22. package/funcs/subscribersCredentialsAppend.js +1 -1
  23. package/funcs/subscribersCredentialsDelete.js +1 -1
  24. package/funcs/subscribersCredentialsUpdate.js +1 -1
  25. package/funcs/subscribersDelete.js +1 -1
  26. package/funcs/subscribersList.js +1 -1
  27. package/funcs/subscribersMessagesMarkAll.js +1 -1
  28. package/funcs/subscribersMessagesMarkAllAs.js +1 -1
  29. package/funcs/subscribersMessagesUpdateAsSeen.js +1 -1
  30. package/funcs/subscribersNotificationsFeed.js +1 -1
  31. package/funcs/subscribersNotificationsUnseenCount.js +1 -1
  32. package/funcs/subscribersPreferencesList.js +1 -1
  33. package/funcs/subscribersPreferencesRetrieveByLevel.js +1 -1
  34. package/funcs/subscribersPreferencesUpdate.js +1 -1
  35. package/funcs/subscribersPreferencesUpdateGlobal.js +1 -1
  36. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -1
  37. package/funcs/subscribersRetrieve.js +1 -1
  38. package/funcs/subscribersUpdate.js +1 -1
  39. package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +1 -1
  40. package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +1 -1
  41. package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +1 -1
  42. package/funcs/topicsCreate.js +1 -1
  43. package/funcs/topicsDelete.js +1 -1
  44. package/funcs/topicsList.js +1 -1
  45. package/funcs/topicsRename.js +1 -1
  46. package/funcs/topicsRetrieve.js +1 -1
  47. package/funcs/topicsSubscribersAssign.js +1 -1
  48. package/funcs/topicsSubscribersRemove.js +1 -1
  49. package/funcs/topicsSubscribersRetrieve.js +1 -1
  50. package/funcs/trigger.js +1 -1
  51. package/funcs/triggerBroadcast.js +1 -1
  52. package/funcs/triggerBulk.js +1 -1
  53. package/hooks/novu-custom-hook.js +2 -2
  54. package/hooks/novu-custom-hook.js.map +1 -1
  55. package/lib/config.d.ts +3 -3
  56. package/lib/config.js +3 -3
  57. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +4 -83
  58. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
  59. package/models/components/activitynotificationexecutiondetailresponsedto.js +7 -56
  60. package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
  61. package/models/components/activitynotificationjobresponsedto.d.ts +3 -3
  62. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  63. package/models/components/activitynotificationjobresponsedto.js +3 -3
  64. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  65. package/models/components/activitynotificationresponsedto.d.ts +112 -0
  66. package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
  67. package/models/components/activitynotificationresponsedto.js +94 -1
  68. package/models/components/activitynotificationresponsedto.js.map +1 -1
  69. package/models/components/activitynotificationstepresponsedto.d.ts +139 -3
  70. package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
  71. package/models/components/activitynotificationstepresponsedto.js +117 -4
  72. package/models/components/activitynotificationstepresponsedto.js.map +1 -1
  73. package/models/components/activitynotificationtemplateresponsedto.d.ts +3 -3
  74. package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
  75. package/models/components/activitynotificationtemplateresponsedto.js +3 -3
  76. package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
  77. package/models/components/{builderfieldtype.d.ts → builderfieldtypeenum.d.ts} +8 -8
  78. package/models/components/builderfieldtypeenum.d.ts.map +1 -0
  79. package/models/components/{builderfieldtype.js → builderfieldtypeenum.js} +12 -12
  80. package/models/components/builderfieldtypeenum.js.map +1 -0
  81. package/models/components/{digestwitheventsdto.d.ts → digestmetadatadto.d.ts} +47 -14
  82. package/models/components/digestmetadatadto.d.ts.map +1 -0
  83. package/models/components/{digestwitheventsdto.js → digestmetadatadto.js} +32 -17
  84. package/models/components/digestmetadatadto.js.map +1 -0
  85. package/models/components/digesttimedconfigdto.d.ts +106 -0
  86. package/models/components/digesttimedconfigdto.d.ts.map +1 -0
  87. package/models/components/digesttimedconfigdto.js +99 -0
  88. package/models/components/digesttimedconfigdto.js.map +1 -0
  89. package/models/components/digesttypeenum.d.ts +37 -0
  90. package/models/components/digesttypeenum.d.ts.map +1 -0
  91. package/models/components/digesttypeenum.js +54 -0
  92. package/models/components/digesttypeenum.js.map +1 -0
  93. package/models/components/digestunitenum.d.ts +46 -0
  94. package/models/components/digestunitenum.d.ts.map +1 -0
  95. package/models/components/digestunitenum.js +57 -0
  96. package/models/components/digestunitenum.js.map +1 -0
  97. package/models/components/executiondetailssourceenum.d.ts +40 -0
  98. package/models/components/executiondetailssourceenum.d.ts.map +1 -0
  99. package/models/components/executiondetailssourceenum.js +55 -0
  100. package/models/components/executiondetailssourceenum.js.map +1 -0
  101. package/models/components/executiondetailsstatusenum.d.ts +46 -0
  102. package/models/components/executiondetailsstatusenum.d.ts.map +1 -0
  103. package/models/components/executiondetailsstatusenum.js +57 -0
  104. package/models/components/executiondetailsstatusenum.js.map +1 -0
  105. package/models/components/index.d.ts +14 -5
  106. package/models/components/index.d.ts.map +1 -1
  107. package/models/components/index.js +14 -5
  108. package/models/components/index.js.map +1 -1
  109. package/models/components/monthlytypeenum.d.ts +34 -0
  110. package/models/components/monthlytypeenum.d.ts.map +1 -0
  111. package/models/components/monthlytypeenum.js +53 -0
  112. package/models/components/monthlytypeenum.js.map +1 -0
  113. package/models/components/notificationstepdata.d.ts +113 -0
  114. package/models/components/notificationstepdata.d.ts.map +1 -0
  115. package/models/components/notificationstepdata.js +142 -0
  116. package/models/components/notificationstepdata.js.map +1 -0
  117. package/models/components/notificationstepdto.d.ts +116 -0
  118. package/models/components/notificationstepdto.d.ts.map +1 -0
  119. package/models/components/notificationstepdto.js +145 -0
  120. package/models/components/notificationstepdto.js.map +1 -0
  121. package/models/components/notificationtrigger.d.ts +8 -26
  122. package/models/components/notificationtrigger.d.ts.map +1 -1
  123. package/models/components/notificationtrigger.js +13 -16
  124. package/models/components/notificationtrigger.js.map +1 -1
  125. package/models/components/notificationtriggerdto.d.ts +77 -0
  126. package/models/components/notificationtriggerdto.d.ts.map +1 -0
  127. package/models/components/notificationtriggerdto.js +89 -0
  128. package/models/components/notificationtriggerdto.js.map +1 -0
  129. package/models/components/ordinalenum.d.ts +46 -0
  130. package/models/components/ordinalenum.d.ts.map +1 -0
  131. package/models/components/{stepfilter.js → ordinalenum.js} +23 -20
  132. package/models/components/ordinalenum.js.map +1 -0
  133. package/models/components/ordinalvalueenum.d.ts +58 -0
  134. package/models/components/ordinalvalueenum.d.ts.map +1 -0
  135. package/models/components/ordinalvalueenum.js +61 -0
  136. package/models/components/ordinalvalueenum.js.map +1 -0
  137. package/models/components/replycallback.d.ts +37 -0
  138. package/models/components/replycallback.d.ts.map +1 -0
  139. package/models/components/replycallback.js +61 -0
  140. package/models/components/replycallback.js.map +1 -0
  141. package/models/components/stepfilterdto.d.ts +2 -2
  142. package/models/components/stepfilterdto.d.ts.map +1 -1
  143. package/models/components/stepfilterdto.js +3 -3
  144. package/models/components/stepfilterdto.js.map +1 -1
  145. package/models/components/timedconfig.d.ts +8 -8
  146. package/models/components/timedconfig.d.ts.map +1 -1
  147. package/models/components/timedconfig.js +13 -14
  148. package/models/components/timedconfig.js.map +1 -1
  149. package/models/components/workflowresponse.d.ts +3 -3
  150. package/models/components/workflowresponse.d.ts.map +1 -1
  151. package/models/components/workflowresponse.js +3 -3
  152. package/models/components/workflowresponse.js.map +1 -1
  153. package/models/operations/eventscontrollerbroadcasteventtoall.d.ts +1 -1
  154. package/models/operations/eventscontrollerbroadcasteventtoall.js +3 -3
  155. package/models/operations/eventscontrollercancel.d.ts +1 -1
  156. package/models/operations/eventscontrollercancel.js +3 -3
  157. package/models/operations/eventscontrollertrigger.d.ts +1 -1
  158. package/models/operations/eventscontrollertrigger.js +3 -3
  159. package/models/operations/eventscontrollertriggerbulk.d.ts +1 -1
  160. package/models/operations/eventscontrollertriggerbulk.js +3 -3
  161. package/models/operations/integrationscontrollercreateintegration.d.ts +1 -1
  162. package/models/operations/integrationscontrollercreateintegration.js +3 -3
  163. package/models/operations/integrationscontrollergetactiveintegrations.d.ts +1 -1
  164. package/models/operations/integrationscontrollergetactiveintegrations.js +3 -3
  165. package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +1 -1
  166. package/models/operations/integrationscontrollergetwebhooksupportstatus.js +3 -3
  167. package/models/operations/integrationscontrollerlistintegrations.d.ts +1 -1
  168. package/models/operations/integrationscontrollerlistintegrations.js +3 -3
  169. package/models/operations/integrationscontrollerremoveintegration.d.ts +1 -1
  170. package/models/operations/integrationscontrollerremoveintegration.js +3 -3
  171. package/models/operations/integrationscontrollersetintegrationasprimary.d.ts +1 -1
  172. package/models/operations/integrationscontrollersetintegrationasprimary.js +3 -3
  173. package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts +1 -1
  174. package/models/operations/integrationscontrollerupdateintegrationbyid.js +3 -3
  175. package/models/operations/messagescontrollerdeletemessage.d.ts +1 -1
  176. package/models/operations/messagescontrollerdeletemessage.js +3 -3
  177. package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +1 -1
  178. package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +3 -3
  179. package/models/operations/messagescontrollergetmessages.d.ts +1 -1
  180. package/models/operations/messagescontrollergetmessages.js +3 -3
  181. package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +1 -1
  182. package/models/operations/notificationscontrollergetactivitygraphstats.js +3 -3
  183. package/models/operations/notificationscontrollergetactivitystats.d.ts +1 -1
  184. package/models/operations/notificationscontrollergetactivitystats.js +3 -3
  185. package/models/operations/notificationscontrollergetnotification.d.ts +1 -1
  186. package/models/operations/notificationscontrollergetnotification.js +3 -3
  187. package/models/operations/notificationscontrollerlistnotifications.d.ts +1 -1
  188. package/models/operations/notificationscontrollerlistnotifications.js +3 -3
  189. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +1 -1
  190. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +3 -3
  191. package/models/operations/subscriberscontrollerchataccessoauth.d.ts +1 -1
  192. package/models/operations/subscriberscontrollerchataccessoauth.js +3 -3
  193. package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +1 -1
  194. package/models/operations/subscriberscontrollerchatoauthcallback.js +3 -3
  195. package/models/operations/subscriberscontrollercreatesubscriber.d.ts +1 -1
  196. package/models/operations/subscriberscontrollercreatesubscriber.js +3 -3
  197. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +1 -1
  198. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +3 -3
  199. package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +1 -1
  200. package/models/operations/subscriberscontrollergetnotificationsfeed.js +3 -3
  201. package/models/operations/subscriberscontrollergetsubscriber.d.ts +1 -1
  202. package/models/operations/subscriberscontrollergetsubscriber.js +3 -3
  203. package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +1 -1
  204. package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +3 -3
  205. package/models/operations/subscriberscontrollergetunseencount.d.ts +1 -1
  206. package/models/operations/subscriberscontrollergetunseencount.js +3 -3
  207. package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +1 -1
  208. package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +3 -3
  209. package/models/operations/subscriberscontrollerlistsubscribers.d.ts +1 -1
  210. package/models/operations/subscriberscontrollerlistsubscribers.js +3 -3
  211. package/models/operations/subscriberscontrollermarkactionasseen.d.ts +1 -1
  212. package/models/operations/subscriberscontrollermarkactionasseen.js +3 -3
  213. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +1 -1
  214. package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -3
  215. package/models/operations/subscriberscontrollermarkmessagesas.d.ts +1 -1
  216. package/models/operations/subscriberscontrollermarkmessagesas.js +3 -3
  217. package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +1 -1
  218. package/models/operations/subscriberscontrollermodifysubscriberchannel.js +3 -3
  219. package/models/operations/subscriberscontrollerremovesubscriber.d.ts +1 -1
  220. package/models/operations/subscriberscontrollerremovesubscriber.js +3 -3
  221. package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +1 -1
  222. package/models/operations/subscriberscontrollerupdatesubscriber.js +3 -3
  223. package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +1 -1
  224. package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +3 -3
  225. package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +1 -1
  226. package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +3 -3
  227. package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +1 -1
  228. package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +3 -3
  229. package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +1 -1
  230. package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +3 -3
  231. package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.d.ts +1 -1
  232. package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.js +3 -3
  233. package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.d.ts +1 -1
  234. package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.js +3 -3
  235. package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.d.ts +1 -1
  236. package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.js +3 -3
  237. package/models/operations/testingcontrolleridempotency.d.ts +1 -1
  238. package/models/operations/testingcontrolleridempotency.js +3 -3
  239. package/models/operations/testingcontrolleridempotencyget.d.ts +1 -1
  240. package/models/operations/testingcontrolleridempotencyget.js +3 -3
  241. package/models/operations/topicscontrollerassign.d.ts +1 -1
  242. package/models/operations/topicscontrollerassign.js +3 -3
  243. package/models/operations/topicscontrollercreatetopic.d.ts +1 -1
  244. package/models/operations/topicscontrollercreatetopic.js +3 -3
  245. package/models/operations/topicscontrollerdeletetopic.d.ts +1 -1
  246. package/models/operations/topicscontrollerdeletetopic.js +3 -3
  247. package/models/operations/topicscontrollergettopic.d.ts +1 -1
  248. package/models/operations/topicscontrollergettopic.js +3 -3
  249. package/models/operations/topicscontrollergettopicsubscriber.d.ts +1 -1
  250. package/models/operations/topicscontrollergettopicsubscriber.js +3 -3
  251. package/models/operations/topicscontrollerlisttopics.d.ts +1 -1
  252. package/models/operations/topicscontrollerlisttopics.js +3 -3
  253. package/models/operations/topicscontrollerremovesubscribers.d.ts +1 -1
  254. package/models/operations/topicscontrollerremovesubscribers.js +3 -3
  255. package/models/operations/topicscontrollerrenametopic.d.ts +1 -1
  256. package/models/operations/topicscontrollerrenametopic.js +3 -3
  257. package/package.json +1 -1
  258. package/src/funcs/adminIdempotencyGet.ts +3 -3
  259. package/src/funcs/adminIdempotencyPost.ts +3 -3
  260. package/src/funcs/cancel.ts +3 -3
  261. package/src/funcs/integrationsCreate.ts +3 -3
  262. package/src/funcs/integrationsDelete.ts +3 -3
  263. package/src/funcs/integrationsList.ts +3 -3
  264. package/src/funcs/integrationsListActive.ts +3 -3
  265. package/src/funcs/integrationsSetAsPrimary.ts +3 -3
  266. package/src/funcs/integrationsUpdate.ts +3 -3
  267. package/src/funcs/integrationsWebhooksRetrieve.ts +3 -3
  268. package/src/funcs/messagesDelete.ts +3 -3
  269. package/src/funcs/messagesDeleteByTransactionId.ts +3 -3
  270. package/src/funcs/messagesRetrieve.ts +3 -3
  271. package/src/funcs/notificationsList.ts +3 -3
  272. package/src/funcs/notificationsRetrieve.ts +3 -3
  273. package/src/funcs/notificationsStatsGraph.ts +3 -3
  274. package/src/funcs/notificationsStatsRetrieve.ts +3 -3
  275. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +3 -3
  276. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +3 -3
  277. package/src/funcs/subscribersCreate.ts +3 -3
  278. package/src/funcs/subscribersCreateBulk.ts +3 -3
  279. package/src/funcs/subscribersCredentialsAppend.ts +3 -3
  280. package/src/funcs/subscribersCredentialsDelete.ts +3 -3
  281. package/src/funcs/subscribersCredentialsUpdate.ts +3 -3
  282. package/src/funcs/subscribersDelete.ts +3 -3
  283. package/src/funcs/subscribersList.ts +3 -3
  284. package/src/funcs/subscribersMessagesMarkAll.ts +3 -3
  285. package/src/funcs/subscribersMessagesMarkAllAs.ts +3 -3
  286. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +3 -3
  287. package/src/funcs/subscribersNotificationsFeed.ts +3 -3
  288. package/src/funcs/subscribersNotificationsUnseenCount.ts +3 -3
  289. package/src/funcs/subscribersPreferencesList.ts +3 -3
  290. package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +3 -3
  291. package/src/funcs/subscribersPreferencesUpdate.ts +3 -3
  292. package/src/funcs/subscribersPreferencesUpdateGlobal.ts +3 -3
  293. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +3 -3
  294. package/src/funcs/subscribersRetrieve.ts +3 -3
  295. package/src/funcs/subscribersUpdate.ts +3 -3
  296. package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +3 -3
  297. package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +3 -3
  298. package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +3 -3
  299. package/src/funcs/topicsCreate.ts +3 -3
  300. package/src/funcs/topicsDelete.ts +3 -3
  301. package/src/funcs/topicsList.ts +3 -3
  302. package/src/funcs/topicsRename.ts +3 -3
  303. package/src/funcs/topicsRetrieve.ts +3 -3
  304. package/src/funcs/topicsSubscribersAssign.ts +3 -3
  305. package/src/funcs/topicsSubscribersRemove.ts +3 -3
  306. package/src/funcs/topicsSubscribersRetrieve.ts +3 -3
  307. package/src/funcs/trigger.ts +3 -3
  308. package/src/funcs/triggerBroadcast.ts +3 -3
  309. package/src/funcs/triggerBulk.ts +3 -3
  310. package/src/hooks/novu-custom-hook.ts +2 -2
  311. package/src/lib/config.ts +3 -3
  312. package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +16 -81
  313. package/src/models/components/activitynotificationjobresponsedto.ts +9 -9
  314. package/src/models/components/activitynotificationresponsedto.ts +228 -0
  315. package/src/models/components/activitynotificationstepresponsedto.ts +294 -9
  316. package/src/models/components/activitynotificationtemplateresponsedto.ts +9 -9
  317. package/src/models/components/builderfieldtypeenum.ts +39 -0
  318. package/src/models/components/digestmetadatadto.ts +185 -0
  319. package/src/models/components/digesttimedconfigdto.ts +157 -0
  320. package/src/models/components/digesttypeenum.ts +40 -0
  321. package/src/models/components/digestunitenum.ts +43 -0
  322. package/src/models/components/executiondetailssourceenum.ts +43 -0
  323. package/src/models/components/executiondetailsstatusenum.ts +45 -0
  324. package/src/models/components/index.ts +14 -5
  325. package/src/models/components/monthlytypeenum.ts +39 -0
  326. package/src/models/components/notificationstepdata.ts +287 -0
  327. package/src/models/components/notificationstepdto.ts +297 -0
  328. package/src/models/components/notificationtrigger.ts +18 -33
  329. package/src/models/components/notificationtriggerdto.ts +130 -0
  330. package/src/models/components/ordinalenum.ts +41 -0
  331. package/src/models/components/ordinalvalueenum.ts +47 -0
  332. package/src/models/components/replycallback.ts +72 -0
  333. package/src/models/components/stepfilterdto.ts +7 -7
  334. package/src/models/components/timedconfig.ts +16 -14
  335. package/src/models/components/workflowresponse.ts +9 -9
  336. package/src/models/operations/eventscontrollerbroadcasteventtoall.ts +4 -4
  337. package/src/models/operations/eventscontrollercancel.ts +4 -4
  338. package/src/models/operations/eventscontrollertrigger.ts +4 -4
  339. package/src/models/operations/eventscontrollertriggerbulk.ts +4 -4
  340. package/src/models/operations/integrationscontrollercreateintegration.ts +4 -4
  341. package/src/models/operations/integrationscontrollergetactiveintegrations.ts +4 -4
  342. package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +4 -4
  343. package/src/models/operations/integrationscontrollerlistintegrations.ts +4 -4
  344. package/src/models/operations/integrationscontrollerremoveintegration.ts +4 -4
  345. package/src/models/operations/integrationscontrollersetintegrationasprimary.ts +4 -4
  346. package/src/models/operations/integrationscontrollerupdateintegrationbyid.ts +4 -4
  347. package/src/models/operations/messagescontrollerdeletemessage.ts +4 -4
  348. package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +4 -4
  349. package/src/models/operations/messagescontrollergetmessages.ts +4 -4
  350. package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +4 -4
  351. package/src/models/operations/notificationscontrollergetactivitystats.ts +4 -4
  352. package/src/models/operations/notificationscontrollergetnotification.ts +4 -4
  353. package/src/models/operations/notificationscontrollerlistnotifications.ts +4 -4
  354. package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +4 -4
  355. package/src/models/operations/subscriberscontrollerchataccessoauth.ts +4 -4
  356. package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +4 -4
  357. package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -4
  358. package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +4 -4
  359. package/src/models/operations/subscriberscontrollergetnotificationsfeed.ts +4 -4
  360. package/src/models/operations/subscriberscontrollergetsubscriber.ts +4 -4
  361. package/src/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.ts +4 -4
  362. package/src/models/operations/subscriberscontrollergetunseencount.ts +4 -4
  363. package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +4 -4
  364. package/src/models/operations/subscriberscontrollerlistsubscribers.ts +4 -4
  365. package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -4
  366. package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -4
  367. package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -4
  368. package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +4 -4
  369. package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
  370. package/src/models/operations/subscriberscontrollerupdatesubscriber.ts +4 -4
  371. package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +4 -4
  372. package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +4 -4
  373. package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +4 -4
  374. package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +4 -4
  375. package/src/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.ts +4 -4
  376. package/src/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.ts +4 -4
  377. package/src/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.ts +4 -4
  378. package/src/models/operations/testingcontrolleridempotency.ts +4 -4
  379. package/src/models/operations/testingcontrolleridempotencyget.ts +4 -4
  380. package/src/models/operations/topicscontrollerassign.ts +4 -4
  381. package/src/models/operations/topicscontrollercreatetopic.ts +4 -4
  382. package/src/models/operations/topicscontrollerdeletetopic.ts +4 -4
  383. package/src/models/operations/topicscontrollergettopic.ts +4 -4
  384. package/src/models/operations/topicscontrollergettopicsubscriber.ts +4 -4
  385. package/src/models/operations/topicscontrollerlisttopics.ts +4 -4
  386. package/src/models/operations/topicscontrollerremovesubscribers.ts +4 -4
  387. package/src/models/operations/topicscontrollerrenametopic.ts +4 -4
  388. package/models/components/builderfieldtype.d.ts.map +0 -1
  389. package/models/components/builderfieldtype.js.map +0 -1
  390. package/models/components/digestwitheventsdto.d.ts.map +0 -1
  391. package/models/components/digestwitheventsdto.js.map +0 -1
  392. package/models/components/notificationstep.d.ts +0 -121
  393. package/models/components/notificationstep.d.ts.map +0 -1
  394. package/models/components/notificationstep.js +0 -190
  395. package/models/components/notificationstep.js.map +0 -1
  396. package/models/components/notificationstepvariant.d.ts +0 -118
  397. package/models/components/notificationstepvariant.d.ts.map +0 -1
  398. package/models/components/notificationstepvariant.js +0 -189
  399. package/models/components/notificationstepvariant.js.map +0 -1
  400. package/models/components/stepfilter.d.ts +0 -25
  401. package/models/components/stepfilter.d.ts.map +0 -1
  402. package/models/components/stepfilter.js.map +0 -1
  403. package/src/models/components/builderfieldtype.ts +0 -39
  404. package/src/models/components/digestwitheventsdto.ts +0 -127
  405. package/src/models/components/notificationstep.ts +0 -341
  406. package/src/models/components/notificationstepvariant.ts +0 -358
  407. package/src/models/components/stepfilter.ts +0 -54
@@ -31,6 +31,21 @@ import {
31
31
  StepTypeEnum$outboundSchema,
32
32
  } from "./steptypeenum.js";
33
33
 
34
+ /**
35
+ * Payload of the notification
36
+ */
37
+ export type ActivityNotificationResponseDtoPayload = {};
38
+
39
+ /**
40
+ * Controls associated with the notification
41
+ */
42
+ export type Controls = {};
43
+
44
+ /**
45
+ * To field for subscriber definition
46
+ */
47
+ export type ActivityNotificationResponseDtoTo = {};
48
+
34
49
  export type ActivityNotificationResponseDto = {
35
50
  /**
36
51
  * Unique identifier of the notification
@@ -44,14 +59,30 @@ export type ActivityNotificationResponseDto = {
44
59
  * Organization ID of the notification
45
60
  */
46
61
  organizationId: string;
62
+ /**
63
+ * Subscriber ID of the notification
64
+ */
65
+ subscriberId: string;
47
66
  /**
48
67
  * Transaction ID of the notification
49
68
  */
50
69
  transactionId: string;
70
+ /**
71
+ * Template ID of the notification
72
+ */
73
+ templateId?: string | undefined;
74
+ /**
75
+ * Digested Notification ID
76
+ */
77
+ digestedNotificationId?: string | undefined;
51
78
  /**
52
79
  * Creation time of the notification
53
80
  */
54
81
  createdAt?: string | undefined;
82
+ /**
83
+ * Last updated time of the notification
84
+ */
85
+ updatedAt?: string | undefined;
55
86
  channels?: Array<StepTypeEnum> | undefined;
56
87
  /**
57
88
  * Subscriber of the notification
@@ -65,8 +96,173 @@ export type ActivityNotificationResponseDto = {
65
96
  * Jobs of the notification
66
97
  */
67
98
  jobs?: Array<ActivityNotificationJobResponseDto> | undefined;
99
+ /**
100
+ * Payload of the notification
101
+ */
102
+ payload?: ActivityNotificationResponseDtoPayload | undefined;
103
+ /**
104
+ * Tags associated with the notification
105
+ */
106
+ tags?: Array<string> | undefined;
107
+ /**
108
+ * Controls associated with the notification
109
+ */
110
+ controls?: Controls | undefined;
111
+ /**
112
+ * To field for subscriber definition
113
+ */
114
+ to?: ActivityNotificationResponseDtoTo | undefined;
68
115
  };
69
116
 
117
+ /** @internal */
118
+ export const ActivityNotificationResponseDtoPayload$inboundSchema: z.ZodType<
119
+ ActivityNotificationResponseDtoPayload,
120
+ z.ZodTypeDef,
121
+ unknown
122
+ > = z.object({});
123
+
124
+ /** @internal */
125
+ export type ActivityNotificationResponseDtoPayload$Outbound = {};
126
+
127
+ /** @internal */
128
+ export const ActivityNotificationResponseDtoPayload$outboundSchema: z.ZodType<
129
+ ActivityNotificationResponseDtoPayload$Outbound,
130
+ z.ZodTypeDef,
131
+ ActivityNotificationResponseDtoPayload
132
+ > = z.object({});
133
+
134
+ /**
135
+ * @internal
136
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
137
+ */
138
+ export namespace ActivityNotificationResponseDtoPayload$ {
139
+ /** @deprecated use `ActivityNotificationResponseDtoPayload$inboundSchema` instead. */
140
+ export const inboundSchema =
141
+ ActivityNotificationResponseDtoPayload$inboundSchema;
142
+ /** @deprecated use `ActivityNotificationResponseDtoPayload$outboundSchema` instead. */
143
+ export const outboundSchema =
144
+ ActivityNotificationResponseDtoPayload$outboundSchema;
145
+ /** @deprecated use `ActivityNotificationResponseDtoPayload$Outbound` instead. */
146
+ export type Outbound = ActivityNotificationResponseDtoPayload$Outbound;
147
+ }
148
+
149
+ export function activityNotificationResponseDtoPayloadToJSON(
150
+ activityNotificationResponseDtoPayload:
151
+ ActivityNotificationResponseDtoPayload,
152
+ ): string {
153
+ return JSON.stringify(
154
+ ActivityNotificationResponseDtoPayload$outboundSchema.parse(
155
+ activityNotificationResponseDtoPayload,
156
+ ),
157
+ );
158
+ }
159
+
160
+ export function activityNotificationResponseDtoPayloadFromJSON(
161
+ jsonString: string,
162
+ ): SafeParseResult<ActivityNotificationResponseDtoPayload, SDKValidationError> {
163
+ return safeParse(
164
+ jsonString,
165
+ (x) =>
166
+ ActivityNotificationResponseDtoPayload$inboundSchema.parse(JSON.parse(x)),
167
+ `Failed to parse 'ActivityNotificationResponseDtoPayload' from JSON`,
168
+ );
169
+ }
170
+
171
+ /** @internal */
172
+ export const Controls$inboundSchema: z.ZodType<
173
+ Controls,
174
+ z.ZodTypeDef,
175
+ unknown
176
+ > = z.object({});
177
+
178
+ /** @internal */
179
+ export type Controls$Outbound = {};
180
+
181
+ /** @internal */
182
+ export const Controls$outboundSchema: z.ZodType<
183
+ Controls$Outbound,
184
+ z.ZodTypeDef,
185
+ Controls
186
+ > = z.object({});
187
+
188
+ /**
189
+ * @internal
190
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
191
+ */
192
+ export namespace Controls$ {
193
+ /** @deprecated use `Controls$inboundSchema` instead. */
194
+ export const inboundSchema = Controls$inboundSchema;
195
+ /** @deprecated use `Controls$outboundSchema` instead. */
196
+ export const outboundSchema = Controls$outboundSchema;
197
+ /** @deprecated use `Controls$Outbound` instead. */
198
+ export type Outbound = Controls$Outbound;
199
+ }
200
+
201
+ export function controlsToJSON(controls: Controls): string {
202
+ return JSON.stringify(Controls$outboundSchema.parse(controls));
203
+ }
204
+
205
+ export function controlsFromJSON(
206
+ jsonString: string,
207
+ ): SafeParseResult<Controls, SDKValidationError> {
208
+ return safeParse(
209
+ jsonString,
210
+ (x) => Controls$inboundSchema.parse(JSON.parse(x)),
211
+ `Failed to parse 'Controls' from JSON`,
212
+ );
213
+ }
214
+
215
+ /** @internal */
216
+ export const ActivityNotificationResponseDtoTo$inboundSchema: z.ZodType<
217
+ ActivityNotificationResponseDtoTo,
218
+ z.ZodTypeDef,
219
+ unknown
220
+ > = z.object({});
221
+
222
+ /** @internal */
223
+ export type ActivityNotificationResponseDtoTo$Outbound = {};
224
+
225
+ /** @internal */
226
+ export const ActivityNotificationResponseDtoTo$outboundSchema: z.ZodType<
227
+ ActivityNotificationResponseDtoTo$Outbound,
228
+ z.ZodTypeDef,
229
+ ActivityNotificationResponseDtoTo
230
+ > = z.object({});
231
+
232
+ /**
233
+ * @internal
234
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
235
+ */
236
+ export namespace ActivityNotificationResponseDtoTo$ {
237
+ /** @deprecated use `ActivityNotificationResponseDtoTo$inboundSchema` instead. */
238
+ export const inboundSchema = ActivityNotificationResponseDtoTo$inboundSchema;
239
+ /** @deprecated use `ActivityNotificationResponseDtoTo$outboundSchema` instead. */
240
+ export const outboundSchema =
241
+ ActivityNotificationResponseDtoTo$outboundSchema;
242
+ /** @deprecated use `ActivityNotificationResponseDtoTo$Outbound` instead. */
243
+ export type Outbound = ActivityNotificationResponseDtoTo$Outbound;
244
+ }
245
+
246
+ export function activityNotificationResponseDtoToToJSON(
247
+ activityNotificationResponseDtoTo: ActivityNotificationResponseDtoTo,
248
+ ): string {
249
+ return JSON.stringify(
250
+ ActivityNotificationResponseDtoTo$outboundSchema.parse(
251
+ activityNotificationResponseDtoTo,
252
+ ),
253
+ );
254
+ }
255
+
256
+ export function activityNotificationResponseDtoToFromJSON(
257
+ jsonString: string,
258
+ ): SafeParseResult<ActivityNotificationResponseDtoTo, SDKValidationError> {
259
+ return safeParse(
260
+ jsonString,
261
+ (x) => ActivityNotificationResponseDtoTo$inboundSchema.parse(JSON.parse(x)),
262
+ `Failed to parse 'ActivityNotificationResponseDtoTo' from JSON`,
263
+ );
264
+ }
265
+
70
266
  /** @internal */
71
267
  export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
72
268
  ActivityNotificationResponseDto,
@@ -76,18 +272,30 @@ export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
76
272
  _id: z.string().optional(),
77
273
  _environmentId: z.string(),
78
274
  _organizationId: z.string(),
275
+ _subscriberId: z.string(),
79
276
  transactionId: z.string(),
277
+ _templateId: z.string().optional(),
278
+ _digestedNotificationId: z.string().optional(),
80
279
  createdAt: z.string().optional(),
280
+ updatedAt: z.string().optional(),
81
281
  channels: z.array(StepTypeEnum$inboundSchema).optional(),
82
282
  subscriber: ActivityNotificationSubscriberResponseDto$inboundSchema
83
283
  .optional(),
84
284
  template: ActivityNotificationTemplateResponseDto$inboundSchema.optional(),
85
285
  jobs: z.array(ActivityNotificationJobResponseDto$inboundSchema).optional(),
286
+ payload: z.lazy(() => ActivityNotificationResponseDtoPayload$inboundSchema)
287
+ .optional(),
288
+ tags: z.array(z.string()).optional(),
289
+ controls: z.lazy(() => Controls$inboundSchema).optional(),
290
+ to: z.lazy(() => ActivityNotificationResponseDtoTo$inboundSchema).optional(),
86
291
  }).transform((v) => {
87
292
  return remap$(v, {
88
293
  "_id": "id",
89
294
  "_environmentId": "environmentId",
90
295
  "_organizationId": "organizationId",
296
+ "_subscriberId": "subscriberId",
297
+ "_templateId": "templateId",
298
+ "_digestedNotificationId": "digestedNotificationId",
91
299
  });
92
300
  });
93
301
 
@@ -96,12 +304,20 @@ export type ActivityNotificationResponseDto$Outbound = {
96
304
  _id?: string | undefined;
97
305
  _environmentId: string;
98
306
  _organizationId: string;
307
+ _subscriberId: string;
99
308
  transactionId: string;
309
+ _templateId?: string | undefined;
310
+ _digestedNotificationId?: string | undefined;
100
311
  createdAt?: string | undefined;
312
+ updatedAt?: string | undefined;
101
313
  channels?: Array<string> | undefined;
102
314
  subscriber?: ActivityNotificationSubscriberResponseDto$Outbound | undefined;
103
315
  template?: ActivityNotificationTemplateResponseDto$Outbound | undefined;
104
316
  jobs?: Array<ActivityNotificationJobResponseDto$Outbound> | undefined;
317
+ payload?: ActivityNotificationResponseDtoPayload$Outbound | undefined;
318
+ tags?: Array<string> | undefined;
319
+ controls?: Controls$Outbound | undefined;
320
+ to?: ActivityNotificationResponseDtoTo$Outbound | undefined;
105
321
  };
106
322
 
107
323
  /** @internal */
@@ -113,18 +329,30 @@ export const ActivityNotificationResponseDto$outboundSchema: z.ZodType<
113
329
  id: z.string().optional(),
114
330
  environmentId: z.string(),
115
331
  organizationId: z.string(),
332
+ subscriberId: z.string(),
116
333
  transactionId: z.string(),
334
+ templateId: z.string().optional(),
335
+ digestedNotificationId: z.string().optional(),
117
336
  createdAt: z.string().optional(),
337
+ updatedAt: z.string().optional(),
118
338
  channels: z.array(StepTypeEnum$outboundSchema).optional(),
119
339
  subscriber: ActivityNotificationSubscriberResponseDto$outboundSchema
120
340
  .optional(),
121
341
  template: ActivityNotificationTemplateResponseDto$outboundSchema.optional(),
122
342
  jobs: z.array(ActivityNotificationJobResponseDto$outboundSchema).optional(),
343
+ payload: z.lazy(() => ActivityNotificationResponseDtoPayload$outboundSchema)
344
+ .optional(),
345
+ tags: z.array(z.string()).optional(),
346
+ controls: z.lazy(() => Controls$outboundSchema).optional(),
347
+ to: z.lazy(() => ActivityNotificationResponseDtoTo$outboundSchema).optional(),
123
348
  }).transform((v) => {
124
349
  return remap$(v, {
125
350
  id: "_id",
126
351
  environmentId: "_environmentId",
127
352
  organizationId: "_organizationId",
353
+ subscriberId: "_subscriberId",
354
+ templateId: "_templateId",
355
+ digestedNotificationId: "_digestedNotificationId",
128
356
  });
129
357
  });
130
358
 
@@ -14,11 +14,31 @@ import {
14
14
  MessageTemplateDto$outboundSchema,
15
15
  } from "./messagetemplatedto.js";
16
16
  import {
17
- StepFilter,
18
- StepFilter$inboundSchema,
19
- StepFilter$Outbound,
20
- StepFilter$outboundSchema,
21
- } from "./stepfilter.js";
17
+ StepFilterDto,
18
+ StepFilterDto$inboundSchema,
19
+ StepFilterDto$Outbound,
20
+ StepFilterDto$outboundSchema,
21
+ } from "./stepfilterdto.js";
22
+
23
+ /**
24
+ * Reply callback settings
25
+ */
26
+ export type ActivityNotificationStepResponseDtoReplyCallback = {};
27
+
28
+ /**
29
+ * Control variables
30
+ */
31
+ export type ControlVariables = {};
32
+
33
+ /**
34
+ * Metadata for the workflow step
35
+ */
36
+ export type Metadata = {};
37
+
38
+ /**
39
+ * Step issues
40
+ */
41
+ export type Issues = {};
22
42
 
23
43
  export type ActivityNotificationStepResponseDto = {
24
44
  /**
@@ -29,16 +49,243 @@ export type ActivityNotificationStepResponseDto = {
29
49
  * Whether the step is active or not
30
50
  */
31
51
  active: boolean;
52
+ /**
53
+ * Reply callback settings
54
+ */
55
+ replyCallback?: ActivityNotificationStepResponseDtoReplyCallback | undefined;
56
+ /**
57
+ * Control variables
58
+ */
59
+ controlVariables?: ControlVariables | undefined;
60
+ /**
61
+ * Metadata for the workflow step
62
+ */
63
+ metadata?: Metadata | undefined;
64
+ /**
65
+ * Step issues
66
+ */
67
+ issues?: Issues | undefined;
32
68
  /**
33
69
  * Filter criteria for the step
34
70
  */
35
- filters: Array<StepFilter>;
71
+ filters: Array<StepFilterDto>;
36
72
  /**
37
73
  * Optional template for the step
38
74
  */
39
75
  template?: MessageTemplateDto | undefined;
76
+ /**
77
+ * Variants of the step
78
+ */
79
+ variants?: Array<ActivityNotificationStepResponseDto> | undefined;
80
+ /**
81
+ * The identifier for the template associated with this step
82
+ */
83
+ templateId: string;
84
+ /**
85
+ * The name of the step
86
+ */
87
+ name?: string | undefined;
88
+ /**
89
+ * The unique identifier for the parent step
90
+ */
91
+ parentId?: string | null | undefined;
40
92
  };
41
93
 
94
+ /** @internal */
95
+ export const ActivityNotificationStepResponseDtoReplyCallback$inboundSchema:
96
+ z.ZodType<
97
+ ActivityNotificationStepResponseDtoReplyCallback,
98
+ z.ZodTypeDef,
99
+ unknown
100
+ > = z.object({});
101
+
102
+ /** @internal */
103
+ export type ActivityNotificationStepResponseDtoReplyCallback$Outbound = {};
104
+
105
+ /** @internal */
106
+ export const ActivityNotificationStepResponseDtoReplyCallback$outboundSchema:
107
+ z.ZodType<
108
+ ActivityNotificationStepResponseDtoReplyCallback$Outbound,
109
+ z.ZodTypeDef,
110
+ ActivityNotificationStepResponseDtoReplyCallback
111
+ > = z.object({});
112
+
113
+ /**
114
+ * @internal
115
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
116
+ */
117
+ export namespace ActivityNotificationStepResponseDtoReplyCallback$ {
118
+ /** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$inboundSchema` instead. */
119
+ export const inboundSchema =
120
+ ActivityNotificationStepResponseDtoReplyCallback$inboundSchema;
121
+ /** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$outboundSchema` instead. */
122
+ export const outboundSchema =
123
+ ActivityNotificationStepResponseDtoReplyCallback$outboundSchema;
124
+ /** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$Outbound` instead. */
125
+ export type Outbound =
126
+ ActivityNotificationStepResponseDtoReplyCallback$Outbound;
127
+ }
128
+
129
+ export function activityNotificationStepResponseDtoReplyCallbackToJSON(
130
+ activityNotificationStepResponseDtoReplyCallback:
131
+ ActivityNotificationStepResponseDtoReplyCallback,
132
+ ): string {
133
+ return JSON.stringify(
134
+ ActivityNotificationStepResponseDtoReplyCallback$outboundSchema.parse(
135
+ activityNotificationStepResponseDtoReplyCallback,
136
+ ),
137
+ );
138
+ }
139
+
140
+ export function activityNotificationStepResponseDtoReplyCallbackFromJSON(
141
+ jsonString: string,
142
+ ): SafeParseResult<
143
+ ActivityNotificationStepResponseDtoReplyCallback,
144
+ SDKValidationError
145
+ > {
146
+ return safeParse(
147
+ jsonString,
148
+ (x) =>
149
+ ActivityNotificationStepResponseDtoReplyCallback$inboundSchema.parse(
150
+ JSON.parse(x),
151
+ ),
152
+ `Failed to parse 'ActivityNotificationStepResponseDtoReplyCallback' from JSON`,
153
+ );
154
+ }
155
+
156
+ /** @internal */
157
+ export const ControlVariables$inboundSchema: z.ZodType<
158
+ ControlVariables,
159
+ z.ZodTypeDef,
160
+ unknown
161
+ > = z.object({});
162
+
163
+ /** @internal */
164
+ export type ControlVariables$Outbound = {};
165
+
166
+ /** @internal */
167
+ export const ControlVariables$outboundSchema: z.ZodType<
168
+ ControlVariables$Outbound,
169
+ z.ZodTypeDef,
170
+ ControlVariables
171
+ > = z.object({});
172
+
173
+ /**
174
+ * @internal
175
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
176
+ */
177
+ export namespace ControlVariables$ {
178
+ /** @deprecated use `ControlVariables$inboundSchema` instead. */
179
+ export const inboundSchema = ControlVariables$inboundSchema;
180
+ /** @deprecated use `ControlVariables$outboundSchema` instead. */
181
+ export const outboundSchema = ControlVariables$outboundSchema;
182
+ /** @deprecated use `ControlVariables$Outbound` instead. */
183
+ export type Outbound = ControlVariables$Outbound;
184
+ }
185
+
186
+ export function controlVariablesToJSON(
187
+ controlVariables: ControlVariables,
188
+ ): string {
189
+ return JSON.stringify(
190
+ ControlVariables$outboundSchema.parse(controlVariables),
191
+ );
192
+ }
193
+
194
+ export function controlVariablesFromJSON(
195
+ jsonString: string,
196
+ ): SafeParseResult<ControlVariables, SDKValidationError> {
197
+ return safeParse(
198
+ jsonString,
199
+ (x) => ControlVariables$inboundSchema.parse(JSON.parse(x)),
200
+ `Failed to parse 'ControlVariables' from JSON`,
201
+ );
202
+ }
203
+
204
+ /** @internal */
205
+ export const Metadata$inboundSchema: z.ZodType<
206
+ Metadata,
207
+ z.ZodTypeDef,
208
+ unknown
209
+ > = z.object({});
210
+
211
+ /** @internal */
212
+ export type Metadata$Outbound = {};
213
+
214
+ /** @internal */
215
+ export const Metadata$outboundSchema: z.ZodType<
216
+ Metadata$Outbound,
217
+ z.ZodTypeDef,
218
+ Metadata
219
+ > = z.object({});
220
+
221
+ /**
222
+ * @internal
223
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
224
+ */
225
+ export namespace Metadata$ {
226
+ /** @deprecated use `Metadata$inboundSchema` instead. */
227
+ export const inboundSchema = Metadata$inboundSchema;
228
+ /** @deprecated use `Metadata$outboundSchema` instead. */
229
+ export const outboundSchema = Metadata$outboundSchema;
230
+ /** @deprecated use `Metadata$Outbound` instead. */
231
+ export type Outbound = Metadata$Outbound;
232
+ }
233
+
234
+ export function metadataToJSON(metadata: Metadata): string {
235
+ return JSON.stringify(Metadata$outboundSchema.parse(metadata));
236
+ }
237
+
238
+ export function metadataFromJSON(
239
+ jsonString: string,
240
+ ): SafeParseResult<Metadata, SDKValidationError> {
241
+ return safeParse(
242
+ jsonString,
243
+ (x) => Metadata$inboundSchema.parse(JSON.parse(x)),
244
+ `Failed to parse 'Metadata' from JSON`,
245
+ );
246
+ }
247
+
248
+ /** @internal */
249
+ export const Issues$inboundSchema: z.ZodType<Issues, z.ZodTypeDef, unknown> = z
250
+ .object({});
251
+
252
+ /** @internal */
253
+ export type Issues$Outbound = {};
254
+
255
+ /** @internal */
256
+ export const Issues$outboundSchema: z.ZodType<
257
+ Issues$Outbound,
258
+ z.ZodTypeDef,
259
+ Issues
260
+ > = z.object({});
261
+
262
+ /**
263
+ * @internal
264
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
265
+ */
266
+ export namespace Issues$ {
267
+ /** @deprecated use `Issues$inboundSchema` instead. */
268
+ export const inboundSchema = Issues$inboundSchema;
269
+ /** @deprecated use `Issues$outboundSchema` instead. */
270
+ export const outboundSchema = Issues$outboundSchema;
271
+ /** @deprecated use `Issues$Outbound` instead. */
272
+ export type Outbound = Issues$Outbound;
273
+ }
274
+
275
+ export function issuesToJSON(issues: Issues): string {
276
+ return JSON.stringify(Issues$outboundSchema.parse(issues));
277
+ }
278
+
279
+ export function issuesFromJSON(
280
+ jsonString: string,
281
+ ): SafeParseResult<Issues, SDKValidationError> {
282
+ return safeParse(
283
+ jsonString,
284
+ (x) => Issues$inboundSchema.parse(JSON.parse(x)),
285
+ `Failed to parse 'Issues' from JSON`,
286
+ );
287
+ }
288
+
42
289
  /** @internal */
43
290
  export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
44
291
  ActivityNotificationStepResponseDto,
@@ -47,11 +294,25 @@ export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
47
294
  > = z.object({
48
295
  _id: z.string(),
49
296
  active: z.boolean(),
50
- filters: z.array(StepFilter$inboundSchema),
297
+ replyCallback: z.lazy(() =>
298
+ ActivityNotificationStepResponseDtoReplyCallback$inboundSchema
299
+ ).optional(),
300
+ controlVariables: z.lazy(() => ControlVariables$inboundSchema).optional(),
301
+ metadata: z.lazy(() => Metadata$inboundSchema).optional(),
302
+ issues: z.lazy(() => Issues$inboundSchema).optional(),
303
+ filters: z.array(StepFilterDto$inboundSchema),
51
304
  template: MessageTemplateDto$inboundSchema.optional(),
305
+ variants: z.array(
306
+ z.lazy(() => ActivityNotificationStepResponseDto$inboundSchema),
307
+ ).optional(),
308
+ _templateId: z.string(),
309
+ name: z.string().optional(),
310
+ _parentId: z.nullable(z.string()).optional(),
52
311
  }).transform((v) => {
53
312
  return remap$(v, {
54
313
  "_id": "id",
314
+ "_templateId": "templateId",
315
+ "_parentId": "parentId",
55
316
  });
56
317
  });
57
318
 
@@ -59,8 +320,18 @@ export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
59
320
  export type ActivityNotificationStepResponseDto$Outbound = {
60
321
  _id: string;
61
322
  active: boolean;
62
- filters: Array<StepFilter$Outbound>;
323
+ replyCallback?:
324
+ | ActivityNotificationStepResponseDtoReplyCallback$Outbound
325
+ | undefined;
326
+ controlVariables?: ControlVariables$Outbound | undefined;
327
+ metadata?: Metadata$Outbound | undefined;
328
+ issues?: Issues$Outbound | undefined;
329
+ filters: Array<StepFilterDto$Outbound>;
63
330
  template?: MessageTemplateDto$Outbound | undefined;
331
+ variants?: Array<ActivityNotificationStepResponseDto$Outbound> | undefined;
332
+ _templateId: string;
333
+ name?: string | undefined;
334
+ _parentId?: string | null | undefined;
64
335
  };
65
336
 
66
337
  /** @internal */
@@ -71,11 +342,25 @@ export const ActivityNotificationStepResponseDto$outboundSchema: z.ZodType<
71
342
  > = z.object({
72
343
  id: z.string(),
73
344
  active: z.boolean(),
74
- filters: z.array(StepFilter$outboundSchema),
345
+ replyCallback: z.lazy(() =>
346
+ ActivityNotificationStepResponseDtoReplyCallback$outboundSchema
347
+ ).optional(),
348
+ controlVariables: z.lazy(() => ControlVariables$outboundSchema).optional(),
349
+ metadata: z.lazy(() => Metadata$outboundSchema).optional(),
350
+ issues: z.lazy(() => Issues$outboundSchema).optional(),
351
+ filters: z.array(StepFilterDto$outboundSchema),
75
352
  template: MessageTemplateDto$outboundSchema.optional(),
353
+ variants: z.array(
354
+ z.lazy(() => ActivityNotificationStepResponseDto$outboundSchema),
355
+ ).optional(),
356
+ templateId: z.string(),
357
+ name: z.string().optional(),
358
+ parentId: z.nullable(z.string()).optional(),
76
359
  }).transform((v) => {
77
360
  return remap$(v, {
78
361
  id: "_id",
362
+ templateId: "_templateId",
363
+ parentId: "_parentId",
79
364
  });
80
365
  });
81
366