@novu/api 2.6.5 → 2.6.6

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 (339) hide show
  1. package/FUNCTIONS.md +124 -0
  2. package/REACT_QUERY.md +354 -0
  3. package/README.md +1032 -0
  4. package/docs/sdks/authentication/README.md +247 -0
  5. package/docs/sdks/credentials/README.md +372 -0
  6. package/docs/sdks/integrations/README.md +631 -0
  7. package/docs/sdks/messages/README.md +318 -0
  8. package/docs/sdks/notifications/README.md +226 -0
  9. package/docs/sdks/novu/README.md +598 -0
  10. package/docs/sdks/novumessages/README.md +329 -0
  11. package/docs/sdks/novunotifications/README.md +235 -0
  12. package/docs/sdks/novusubscribers/README.md +340 -0
  13. package/docs/sdks/preferences/README.md +221 -0
  14. package/docs/sdks/properties/README.md +111 -0
  15. package/docs/sdks/stats/README.md +226 -0
  16. package/docs/sdks/subscribers/README.md +763 -0
  17. package/docs/sdks/topics/README.md +541 -0
  18. package/docs/sdks/webhooks/README.md +117 -0
  19. package/docs/sdks/workflows/README.md +1123 -0
  20. package/funcs/cancel.d.ts.map +1 -1
  21. package/funcs/cancel.js +1 -0
  22. package/funcs/cancel.js.map +1 -1
  23. package/funcs/environmentsGenerateSession.d.ts +10 -0
  24. package/funcs/environmentsGenerateSession.d.ts.map +1 -0
  25. package/funcs/environmentsGenerateSession.js +131 -0
  26. package/funcs/environmentsGenerateSession.js.map +1 -0
  27. package/funcs/environmentsRetrieve.d.ts +10 -0
  28. package/funcs/environmentsRetrieve.d.ts.map +1 -0
  29. package/funcs/environmentsRetrieve.js +131 -0
  30. package/funcs/environmentsRetrieve.js.map +1 -0
  31. package/funcs/integrationsCreate.d.ts.map +1 -1
  32. package/funcs/integrationsCreate.js +1 -0
  33. package/funcs/integrationsCreate.js.map +1 -1
  34. package/funcs/integrationsDelete.d.ts.map +1 -1
  35. package/funcs/integrationsDelete.js +1 -0
  36. package/funcs/integrationsDelete.js.map +1 -1
  37. package/funcs/integrationsList.d.ts.map +1 -1
  38. package/funcs/integrationsList.js +1 -0
  39. package/funcs/integrationsList.js.map +1 -1
  40. package/funcs/integrationsListActive.d.ts.map +1 -1
  41. package/funcs/integrationsListActive.js +1 -0
  42. package/funcs/integrationsListActive.js.map +1 -1
  43. package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
  44. package/funcs/integrationsSetAsPrimary.js +1 -0
  45. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  46. package/funcs/integrationsUpdate.d.ts.map +1 -1
  47. package/funcs/integrationsUpdate.js +1 -0
  48. package/funcs/integrationsUpdate.js.map +1 -1
  49. package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
  50. package/funcs/integrationsWebhooksRetrieve.js +1 -0
  51. package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
  52. package/funcs/messagesDelete.d.ts.map +1 -1
  53. package/funcs/messagesDelete.js +1 -0
  54. package/funcs/messagesDelete.js.map +1 -1
  55. package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
  56. package/funcs/messagesDeleteByTransactionId.js +1 -0
  57. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  58. package/funcs/messagesRetrieve.d.ts.map +1 -1
  59. package/funcs/messagesRetrieve.js +1 -0
  60. package/funcs/messagesRetrieve.js.map +1 -1
  61. package/funcs/notificationsList.d.ts.map +1 -1
  62. package/funcs/notificationsList.js +2 -0
  63. package/funcs/notificationsList.js.map +1 -1
  64. package/funcs/notificationsRetrieve.d.ts.map +1 -1
  65. package/funcs/notificationsRetrieve.js +1 -0
  66. package/funcs/notificationsRetrieve.js.map +1 -1
  67. package/funcs/notificationsStatsGraph.d.ts.map +1 -1
  68. package/funcs/notificationsStatsGraph.js +1 -0
  69. package/funcs/notificationsStatsGraph.js.map +1 -1
  70. package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
  71. package/funcs/notificationsStatsRetrieve.js +1 -0
  72. package/funcs/notificationsStatsRetrieve.js.map +1 -1
  73. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
  74. package/funcs/subscribersAuthenticationChatAccessOauth.js +1 -0
  75. package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
  76. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
  77. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +1 -0
  78. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
  79. package/funcs/subscribersCreate.d.ts.map +1 -1
  80. package/funcs/subscribersCreate.js +2 -1
  81. package/funcs/subscribersCreate.js.map +1 -1
  82. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  83. package/funcs/subscribersCreateBulk.js +1 -0
  84. package/funcs/subscribersCreateBulk.js.map +1 -1
  85. package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
  86. package/funcs/subscribersCredentialsAppend.js +1 -0
  87. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  88. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  89. package/funcs/subscribersCredentialsDelete.js +1 -0
  90. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  91. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  92. package/funcs/subscribersCredentialsUpdate.js +1 -0
  93. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  94. package/funcs/subscribersDelete.d.ts.map +1 -1
  95. package/funcs/subscribersDelete.js +1 -0
  96. package/funcs/subscribersDelete.js.map +1 -1
  97. package/funcs/subscribersList.d.ts.map +1 -1
  98. package/funcs/subscribersList.js +1 -0
  99. package/funcs/subscribersList.js.map +1 -1
  100. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  101. package/funcs/subscribersMessagesMarkAll.js +1 -0
  102. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  103. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  104. package/funcs/subscribersMessagesMarkAllAs.js +1 -0
  105. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  106. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  107. package/funcs/subscribersMessagesUpdateAsSeen.js +1 -0
  108. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  109. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  110. package/funcs/subscribersNotificationsFeed.js +1 -0
  111. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  112. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  113. package/funcs/subscribersNotificationsUnseenCount.js +1 -0
  114. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  115. package/funcs/subscribersPatch.d.ts.map +1 -1
  116. package/funcs/subscribersPatch.js +1 -0
  117. package/funcs/subscribersPatch.js.map +1 -1
  118. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  119. package/funcs/subscribersPreferencesList.js +1 -0
  120. package/funcs/subscribersPreferencesList.js.map +1 -1
  121. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  122. package/funcs/subscribersPreferencesUpdate.js +1 -0
  123. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  124. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
  125. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -0
  126. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  127. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  128. package/funcs/subscribersRetrieve.js +1 -0
  129. package/funcs/subscribersRetrieve.js.map +1 -1
  130. package/funcs/subscribersSearch.d.ts.map +1 -1
  131. package/funcs/subscribersSearch.js +1 -0
  132. package/funcs/subscribersSearch.js.map +1 -1
  133. package/funcs/topicsCreate.d.ts.map +1 -1
  134. package/funcs/topicsCreate.js +1 -0
  135. package/funcs/topicsCreate.js.map +1 -1
  136. package/funcs/topicsDelete.d.ts.map +1 -1
  137. package/funcs/topicsDelete.js +1 -0
  138. package/funcs/topicsDelete.js.map +1 -1
  139. package/funcs/topicsList.d.ts.map +1 -1
  140. package/funcs/topicsList.js +1 -0
  141. package/funcs/topicsList.js.map +1 -1
  142. package/funcs/topicsRename.d.ts.map +1 -1
  143. package/funcs/topicsRename.js +1 -0
  144. package/funcs/topicsRename.js.map +1 -1
  145. package/funcs/topicsRetrieve.d.ts.map +1 -1
  146. package/funcs/topicsRetrieve.js +1 -0
  147. package/funcs/topicsRetrieve.js.map +1 -1
  148. package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
  149. package/funcs/topicsSubscribersAssign.js +1 -0
  150. package/funcs/topicsSubscribersAssign.js.map +1 -1
  151. package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
  152. package/funcs/topicsSubscribersRemove.js +1 -0
  153. package/funcs/topicsSubscribersRemove.js.map +1 -1
  154. package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
  155. package/funcs/topicsSubscribersRetrieve.js +1 -0
  156. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  157. package/funcs/trigger.d.ts.map +1 -1
  158. package/funcs/trigger.js +1 -0
  159. package/funcs/trigger.js.map +1 -1
  160. package/funcs/triggerBroadcast.d.ts.map +1 -1
  161. package/funcs/triggerBroadcast.js +1 -0
  162. package/funcs/triggerBroadcast.js.map +1 -1
  163. package/funcs/triggerBulk.d.ts.map +1 -1
  164. package/funcs/triggerBulk.js +1 -0
  165. package/funcs/triggerBulk.js.map +1 -1
  166. package/funcs/workflowsCreate.d.ts.map +1 -1
  167. package/funcs/workflowsCreate.js +1 -0
  168. package/funcs/workflowsCreate.js.map +1 -1
  169. package/funcs/workflowsDelete.d.ts.map +1 -1
  170. package/funcs/workflowsDelete.js +1 -0
  171. package/funcs/workflowsDelete.js.map +1 -1
  172. package/funcs/workflowsGetStepData.d.ts.map +1 -1
  173. package/funcs/workflowsGetStepData.js +1 -0
  174. package/funcs/workflowsGetStepData.js.map +1 -1
  175. package/funcs/workflowsGetWorkflowTestData.d.ts.map +1 -1
  176. package/funcs/workflowsGetWorkflowTestData.js +1 -0
  177. package/funcs/workflowsGetWorkflowTestData.js.map +1 -1
  178. package/funcs/workflowsRetrieve.d.ts.map +1 -1
  179. package/funcs/workflowsRetrieve.js +1 -0
  180. package/funcs/workflowsRetrieve.js.map +1 -1
  181. package/funcs/workflowsUpdate.d.ts.map +1 -1
  182. package/funcs/workflowsUpdate.js +1 -0
  183. package/funcs/workflowsUpdate.js.map +1 -1
  184. package/funcs/workflowsWorkflowControllerGeneratePreview.d.ts.map +1 -1
  185. package/funcs/workflowsWorkflowControllerGeneratePreview.js +1 -0
  186. package/funcs/workflowsWorkflowControllerGeneratePreview.js.map +1 -1
  187. package/funcs/workflowsWorkflowControllerPatchWorkflow.d.ts.map +1 -1
  188. package/funcs/workflowsWorkflowControllerPatchWorkflow.js +1 -0
  189. package/funcs/workflowsWorkflowControllerPatchWorkflow.js.map +1 -1
  190. package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.d.ts.map +1 -1
  191. package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.js +1 -0
  192. package/funcs/workflowsWorkflowControllerPatchWorkflowStepData.js.map +1 -1
  193. package/funcs/workflowsWorkflowControllerSearchWorkflows.d.ts.map +1 -1
  194. package/funcs/workflowsWorkflowControllerSearchWorkflows.js +1 -0
  195. package/funcs/workflowsWorkflowControllerSearchWorkflows.js.map +1 -1
  196. package/funcs/workflowsWorkflowControllerSync.d.ts.map +1 -1
  197. package/funcs/workflowsWorkflowControllerSync.js +1 -0
  198. package/funcs/workflowsWorkflowControllerSync.js.map +1 -1
  199. package/hooks/types.d.ts +1 -0
  200. package/hooks/types.d.ts.map +1 -1
  201. package/lib/config.d.ts +2 -2
  202. package/lib/config.js +2 -2
  203. package/lib/security.d.ts.map +1 -1
  204. package/lib/security.js.map +1 -1
  205. package/models/components/activitynotificationtemplateresponsedto.d.ts +6 -0
  206. package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
  207. package/models/components/activitynotificationtemplateresponsedto.js +3 -0
  208. package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
  209. package/models/components/createsubscriberrequestdto.d.ts +28 -50
  210. package/models/components/createsubscriberrequestdto.d.ts.map +1 -1
  211. package/models/components/createsubscriberrequestdto.js +17 -41
  212. package/models/components/createsubscriberrequestdto.js.map +1 -1
  213. package/models/components/getenvironmenttagsdto.d.ts +29 -0
  214. package/models/components/getenvironmenttagsdto.d.ts.map +1 -0
  215. package/models/components/getenvironmenttagsdto.js +59 -0
  216. package/models/components/getenvironmenttagsdto.js.map +1 -0
  217. package/models/components/index.d.ts +1 -0
  218. package/models/components/index.d.ts.map +1 -1
  219. package/models/components/index.js +1 -0
  220. package/models/components/index.js.map +1 -1
  221. package/models/components/patchsubscriberrequestdto.d.ts +0 -5
  222. package/models/components/patchsubscriberrequestdto.d.ts.map +1 -1
  223. package/models/components/patchsubscriberrequestdto.js +0 -2
  224. package/models/components/patchsubscriberrequestdto.js.map +1 -1
  225. package/models/components/sessiongeneratedresponsedto.d.ts +32 -0
  226. package/models/components/sessiongeneratedresponsedto.d.ts.map +1 -0
  227. package/models/components/sessiongeneratedresponsedto.js +59 -0
  228. package/models/components/sessiongeneratedresponsedto.js.map +1 -0
  229. package/models/components/subscriberpayloaddto.d.ts +5 -0
  230. package/models/components/subscriberpayloaddto.d.ts.map +1 -1
  231. package/models/components/subscriberpayloaddto.js +2 -0
  232. package/models/components/subscriberpayloaddto.js.map +1 -1
  233. package/models/components/triggereventresponsedto.d.ts +3 -0
  234. package/models/components/triggereventresponsedto.d.ts.map +1 -1
  235. package/models/components/triggereventresponsedto.js +1 -0
  236. package/models/components/triggereventresponsedto.js.map +1 -1
  237. package/models/components/workfloworiginenum.d.ts +37 -0
  238. package/models/components/workfloworiginenum.d.ts.map +1 -0
  239. package/models/components/workfloworiginenum.js +54 -0
  240. package/models/components/workfloworiginenum.js.map +1 -0
  241. package/models/operations/environmentscontrollergeneratesession.d.ts +66 -0
  242. package/models/operations/environmentscontrollergeneratesession.d.ts.map +1 -0
  243. package/models/operations/environmentscontrollergeneratesession.js +110 -0
  244. package/models/operations/environmentscontrollergeneratesession.js.map +1 -0
  245. package/models/operations/environmentscontrollergetenvironmenttags.d.ts +66 -0
  246. package/models/operations/environmentscontrollergetenvironmenttags.d.ts.map +1 -0
  247. package/models/operations/environmentscontrollergetenvironmenttags.js +110 -0
  248. package/models/operations/environmentscontrollergetenvironmenttags.js.map +1 -0
  249. package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
  250. package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
  251. package/models/operations/notificationscontrollerlistnotifications.js +2 -0
  252. package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
  253. package/package.json +1 -1
  254. package/react-query/environmentsGenerateSession.d.ts +18 -0
  255. package/react-query/environmentsGenerateSession.d.ts.map +1 -0
  256. package/react-query/environmentsGenerateSession.js +41 -0
  257. package/react-query/environmentsGenerateSession.js.map +1 -0
  258. package/react-query/environmentsRetrieve.d.ts +30 -0
  259. package/react-query/environmentsRetrieve.d.ts.map +1 -0
  260. package/react-query/environmentsRetrieve.js +70 -0
  261. package/react-query/environmentsRetrieve.js.map +1 -0
  262. package/react-query/notificationsList.d.ts +3 -0
  263. package/react-query/notificationsList.d.ts.map +1 -1
  264. package/react-query/notificationsList.js +1 -0
  265. package/react-query/notificationsList.js.map +1 -1
  266. package/sdk/environments.d.ts +13 -0
  267. package/sdk/environments.d.ts.map +1 -0
  268. package/sdk/environments.js +26 -0
  269. package/sdk/environments.js.map +1 -0
  270. package/sources/json-development.json +32352 -0
  271. package/src/funcs/cancel.ts +1 -0
  272. package/src/funcs/integrationsCreate.ts +1 -0
  273. package/src/funcs/integrationsDelete.ts +1 -0
  274. package/src/funcs/integrationsList.ts +1 -0
  275. package/src/funcs/integrationsListActive.ts +1 -0
  276. package/src/funcs/integrationsSetAsPrimary.ts +1 -0
  277. package/src/funcs/integrationsUpdate.ts +1 -0
  278. package/src/funcs/integrationsWebhooksRetrieve.ts +1 -0
  279. package/src/funcs/messagesDelete.ts +1 -0
  280. package/src/funcs/messagesDeleteByTransactionId.ts +1 -0
  281. package/src/funcs/messagesRetrieve.ts +1 -0
  282. package/src/funcs/notificationsList.ts +2 -0
  283. package/src/funcs/notificationsRetrieve.ts +1 -0
  284. package/src/funcs/notificationsStatsGraph.ts +1 -0
  285. package/src/funcs/notificationsStatsRetrieve.ts +1 -0
  286. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +1 -0
  287. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +1 -0
  288. package/src/funcs/subscribersCreate.ts +2 -1
  289. package/src/funcs/subscribersCreateBulk.ts +1 -0
  290. package/src/funcs/subscribersCredentialsAppend.ts +1 -0
  291. package/src/funcs/subscribersCredentialsDelete.ts +1 -0
  292. package/src/funcs/subscribersCredentialsUpdate.ts +1 -0
  293. package/src/funcs/subscribersDelete.ts +1 -0
  294. package/src/funcs/subscribersList.ts +1 -0
  295. package/src/funcs/subscribersMessagesMarkAll.ts +1 -0
  296. package/src/funcs/subscribersMessagesMarkAllAs.ts +1 -0
  297. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +1 -0
  298. package/src/funcs/subscribersNotificationsFeed.ts +1 -0
  299. package/src/funcs/subscribersNotificationsUnseenCount.ts +1 -0
  300. package/src/funcs/subscribersPatch.ts +1 -0
  301. package/src/funcs/subscribersPreferencesList.ts +1 -0
  302. package/src/funcs/subscribersPreferencesUpdate.ts +1 -0
  303. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +1 -0
  304. package/src/funcs/subscribersRetrieve.ts +1 -0
  305. package/src/funcs/subscribersSearch.ts +1 -0
  306. package/src/funcs/topicsCreate.ts +1 -0
  307. package/src/funcs/topicsDelete.ts +1 -0
  308. package/src/funcs/topicsList.ts +1 -0
  309. package/src/funcs/topicsRename.ts +1 -0
  310. package/src/funcs/topicsRetrieve.ts +1 -0
  311. package/src/funcs/topicsSubscribersAssign.ts +1 -0
  312. package/src/funcs/topicsSubscribersRemove.ts +1 -0
  313. package/src/funcs/topicsSubscribersRetrieve.ts +1 -0
  314. package/src/funcs/trigger.ts +1 -0
  315. package/src/funcs/triggerBroadcast.ts +1 -0
  316. package/src/funcs/triggerBulk.ts +1 -0
  317. package/src/funcs/workflowsCreate.ts +1 -0
  318. package/src/funcs/workflowsDelete.ts +1 -0
  319. package/src/funcs/workflowsGetStepData.ts +1 -0
  320. package/src/funcs/workflowsGetWorkflowTestData.ts +1 -0
  321. package/src/funcs/workflowsRetrieve.ts +1 -0
  322. package/src/funcs/workflowsUpdate.ts +1 -0
  323. package/src/funcs/workflowsWorkflowControllerGeneratePreview.ts +1 -0
  324. package/src/funcs/workflowsWorkflowControllerPatchWorkflow.ts +1 -0
  325. package/src/funcs/workflowsWorkflowControllerPatchWorkflowStepData.ts +1 -0
  326. package/src/funcs/workflowsWorkflowControllerSearchWorkflows.ts +1 -0
  327. package/src/funcs/workflowsWorkflowControllerSync.ts +1 -0
  328. package/src/hooks/types.ts +1 -0
  329. package/src/lib/config.ts +2 -2
  330. package/src/lib/security.ts +0 -1
  331. package/src/models/components/activitynotificationtemplateresponsedto.ts +12 -0
  332. package/src/models/components/createsubscriberrequestdto.ts +41 -111
  333. package/src/models/components/index.ts +1 -0
  334. package/src/models/components/patchsubscriberrequestdto.ts +0 -7
  335. package/src/models/components/subscriberpayloaddto.ts +7 -0
  336. package/src/models/components/triggereventresponsedto.ts +1 -0
  337. package/src/models/components/workfloworiginenum.ts +40 -0
  338. package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -0
  339. package/src/react-query/notificationsList.ts +4 -0
@@ -91,6 +91,7 @@ export async function cancel(
91
91
  const requestSecurity = resolveGlobalSecurity(securityInput);
92
92
 
93
93
  const context = {
94
+ baseURL: options?.serverURL ?? "",
94
95
  operationID: "EventsController_cancel",
95
96
  oAuth2Scopes: [],
96
97
 
@@ -87,6 +87,7 @@ export async function integrationsCreate(
87
87
  const requestSecurity = resolveGlobalSecurity(securityInput);
88
88
 
89
89
  const context = {
90
+ baseURL: options?.serverURL ?? "",
90
91
  operationID: "IntegrationsController_createIntegration",
91
92
  oAuth2Scopes: [],
92
93
 
@@ -87,6 +87,7 @@ export async function integrationsDelete(
87
87
  const requestSecurity = resolveGlobalSecurity(securityInput);
88
88
 
89
89
  const context = {
90
+ baseURL: options?.serverURL ?? "",
90
91
  operationID: "IntegrationsController_removeIntegration",
91
92
  oAuth2Scopes: [],
92
93
 
@@ -81,6 +81,7 @@ export async function integrationsList(
81
81
  const requestSecurity = resolveGlobalSecurity(securityInput);
82
82
 
83
83
  const context = {
84
+ baseURL: options?.serverURL ?? "",
84
85
  operationID: "IntegrationsController_listIntegrations",
85
86
  oAuth2Scopes: [],
86
87
 
@@ -82,6 +82,7 @@ export async function integrationsListActive(
82
82
  const requestSecurity = resolveGlobalSecurity(securityInput);
83
83
 
84
84
  const context = {
85
+ baseURL: options?.serverURL ?? "",
85
86
  operationID: "IntegrationsController_getActiveIntegrations",
86
87
  oAuth2Scopes: [],
87
88
 
@@ -91,6 +91,7 @@ export async function integrationsSetAsPrimary(
91
91
  const requestSecurity = resolveGlobalSecurity(securityInput);
92
92
 
93
93
  const context = {
94
+ baseURL: options?.serverURL ?? "",
94
95
  operationID: "IntegrationsController_setIntegrationAsPrimary",
95
96
  oAuth2Scopes: [],
96
97
 
@@ -94,6 +94,7 @@ export async function integrationsUpdate(
94
94
  const requestSecurity = resolveGlobalSecurity(securityInput);
95
95
 
96
96
  const context = {
97
+ baseURL: options?.serverURL ?? "",
97
98
  operationID: "IntegrationsController_updateIntegrationById",
98
99
  oAuth2Scopes: [],
99
100
 
@@ -95,6 +95,7 @@ export async function integrationsWebhooksRetrieve(
95
95
  const requestSecurity = resolveGlobalSecurity(securityInput);
96
96
 
97
97
  const context = {
98
+ baseURL: options?.serverURL ?? "",
98
99
  operationID: "IntegrationsController_getWebhookSupportStatus",
99
100
  oAuth2Scopes: [],
100
101
 
@@ -91,6 +91,7 @@ export async function messagesDelete(
91
91
  const requestSecurity = resolveGlobalSecurity(securityInput);
92
92
 
93
93
  const context = {
94
+ baseURL: options?.serverURL ?? "",
94
95
  operationID: "MessagesController_deleteMessage",
95
96
  oAuth2Scopes: [],
96
97
 
@@ -101,6 +101,7 @@ export async function messagesDeleteByTransactionId(
101
101
  const requestSecurity = resolveGlobalSecurity(securityInput);
102
102
 
103
103
  const context = {
104
+ baseURL: options?.serverURL ?? "",
104
105
  operationID: "MessagesController_deleteMessagesByTransactionId",
105
106
  oAuth2Scopes: [],
106
107
 
@@ -86,6 +86,7 @@ export async function messagesRetrieve(
86
86
  const requestSecurity = resolveGlobalSecurity(securityInput);
87
87
 
88
88
  const context = {
89
+ baseURL: options?.serverURL ?? "",
89
90
  operationID: "MessagesController_getMessages",
90
91
  oAuth2Scopes: [],
91
92
 
@@ -66,6 +66,7 @@ export async function notificationsList(
66
66
  "before": payload.before,
67
67
  "channels": payload.channels,
68
68
  "emails": payload.emails,
69
+ "limit": payload.limit,
69
70
  "page": payload.page,
70
71
  "search": payload.search,
71
72
  "subscriberIds": payload.subscriberIds,
@@ -86,6 +87,7 @@ export async function notificationsList(
86
87
  const requestSecurity = resolveGlobalSecurity(securityInput);
87
88
 
88
89
  const context = {
90
+ baseURL: options?.serverURL ?? "",
89
91
  operationID: "NotificationsController_listNotifications",
90
92
  oAuth2Scopes: [],
91
93
 
@@ -87,6 +87,7 @@ export async function notificationsRetrieve(
87
87
  const requestSecurity = resolveGlobalSecurity(securityInput);
88
88
 
89
89
  const context = {
90
+ baseURL: options?.serverURL ?? "",
90
91
  operationID: "NotificationsController_getNotification",
91
92
  oAuth2Scopes: [],
92
93
 
@@ -86,6 +86,7 @@ export async function notificationsStatsGraph(
86
86
  const requestSecurity = resolveGlobalSecurity(securityInput);
87
87
 
88
88
  const context = {
89
+ baseURL: options?.serverURL ?? "",
89
90
  operationID: "NotificationsController_getActivityGraphStats",
90
91
  oAuth2Scopes: [],
91
92
 
@@ -78,6 +78,7 @@ export async function notificationsStatsRetrieve(
78
78
  const requestSecurity = resolveGlobalSecurity(securityInput);
79
79
 
80
80
  const context = {
81
+ baseURL: options?.serverURL ?? "",
81
82
  operationID: "NotificationsController_getActivityStats",
82
83
  oAuth2Scopes: [],
83
84
 
@@ -93,6 +93,7 @@ export async function subscribersAuthenticationChatAccessOauth(
93
93
  const requestSecurity = resolveGlobalSecurity(securityInput);
94
94
 
95
95
  const context = {
96
+ baseURL: options?.serverURL ?? "",
96
97
  operationID: "SubscribersV1Controller_chatAccessOauth",
97
98
  oAuth2Scopes: [],
98
99
 
@@ -102,6 +102,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack(
102
102
  const requestSecurity = resolveGlobalSecurity(securityInput);
103
103
 
104
104
  const context = {
105
+ baseURL: options?.serverURL ?? "",
105
106
  operationID: "SubscribersV1Controller_chatOauthCallback",
106
107
  oAuth2Scopes: [],
107
108
 
@@ -87,6 +87,7 @@ export async function subscribersCreate(
87
87
  const requestSecurity = resolveGlobalSecurity(securityInput);
88
88
 
89
89
  const context = {
90
+ baseURL: options?.serverURL ?? "",
90
91
  operationID: "SubscribersController_createSubscriber",
91
92
  oAuth2Scopes: [],
92
93
 
@@ -169,7 +170,7 @@ export async function subscribersCreate(
169
170
  | ConnectionError
170
171
  >(
171
172
  M.json(
172
- 200,
173
+ 201,
173
174
  operations.SubscribersControllerCreateSubscriberResponse$inboundSchema,
174
175
  { hdrs: true, key: "Result" },
175
176
  ),
@@ -91,6 +91,7 @@ export async function subscribersCreateBulk(
91
91
  const requestSecurity = resolveGlobalSecurity(securityInput);
92
92
 
93
93
  const context = {
94
+ baseURL: options?.serverURL ?? "",
94
95
  operationID: "SubscribersV1Controller_bulkCreateSubscribers",
95
96
  oAuth2Scopes: [],
96
97
 
@@ -102,6 +102,7 @@ export async function subscribersCredentialsAppend(
102
102
  const requestSecurity = resolveGlobalSecurity(securityInput);
103
103
 
104
104
  const context = {
105
+ baseURL: options?.serverURL ?? "",
105
106
  operationID: "SubscribersV1Controller_modifySubscriberChannel",
106
107
  oAuth2Scopes: [],
107
108
 
@@ -101,6 +101,7 @@ export async function subscribersCredentialsDelete(
101
101
  const requestSecurity = resolveGlobalSecurity(securityInput);
102
102
 
103
103
  const context = {
104
+ baseURL: options?.serverURL ?? "",
104
105
  operationID: "SubscribersV1Controller_deleteSubscriberCredentials",
105
106
  oAuth2Scopes: [],
106
107
 
@@ -101,6 +101,7 @@ export async function subscribersCredentialsUpdate(
101
101
  const requestSecurity = resolveGlobalSecurity(securityInput);
102
102
 
103
103
  const context = {
104
+ baseURL: options?.serverURL ?? "",
104
105
  operationID: "SubscribersV1Controller_updateSubscriberChannel",
105
106
  oAuth2Scopes: [],
106
107
 
@@ -90,6 +90,7 @@ export async function subscribersDelete(
90
90
  const requestSecurity = resolveGlobalSecurity(securityInput);
91
91
 
92
92
  const context = {
93
+ baseURL: options?.serverURL ?? "",
93
94
  operationID: "SubscribersController_removeSubscriber",
94
95
  oAuth2Scopes: [],
95
96
 
@@ -100,6 +100,7 @@ export async function subscribersList(
100
100
  const requestSecurity = resolveGlobalSecurity(securityInput);
101
101
 
102
102
  const context = {
103
+ baseURL: options?.serverURL ?? "",
103
104
  operationID: "SubscribersV1Controller_listSubscribers",
104
105
  oAuth2Scopes: [],
105
106
 
@@ -97,6 +97,7 @@ export async function subscribersMessagesMarkAll(
97
97
  const requestSecurity = resolveGlobalSecurity(securityInput);
98
98
 
99
99
  const context = {
100
+ baseURL: options?.serverURL ?? "",
100
101
  operationID: "SubscribersV1Controller_markAllUnreadAsRead",
101
102
  oAuth2Scopes: [],
102
103
 
@@ -95,6 +95,7 @@ export async function subscribersMessagesMarkAllAs(
95
95
  const requestSecurity = resolveGlobalSecurity(securityInput);
96
96
 
97
97
  const context = {
98
+ baseURL: options?.serverURL ?? "",
98
99
  operationID: "SubscribersV1Controller_markMessagesAs",
99
100
  oAuth2Scopes: [],
100
101
 
@@ -94,6 +94,7 @@ export async function subscribersMessagesUpdateAsSeen(
94
94
  const requestSecurity = resolveGlobalSecurity(securityInput);
95
95
 
96
96
  const context = {
97
+ baseURL: options?.serverURL ?? "",
97
98
  operationID: "SubscribersV1Controller_markActionAsSeen",
98
99
  oAuth2Scopes: [],
99
100
 
@@ -92,6 +92,7 @@ export async function subscribersNotificationsFeed(
92
92
  const requestSecurity = resolveGlobalSecurity(securityInput);
93
93
 
94
94
  const context = {
95
+ baseURL: options?.serverURL ?? "",
95
96
  operationID: "SubscribersV1Controller_getNotificationsFeed",
96
97
  oAuth2Scopes: [],
97
98
 
@@ -88,6 +88,7 @@ export async function subscribersNotificationsUnseenCount(
88
88
  const requestSecurity = resolveGlobalSecurity(securityInput);
89
89
 
90
90
  const context = {
91
+ baseURL: options?.serverURL ?? "",
91
92
  operationID: "SubscribersV1Controller_getUnseenCount",
92
93
  oAuth2Scopes: [],
93
94
 
@@ -96,6 +96,7 @@ export async function subscribersPatch(
96
96
  const requestSecurity = resolveGlobalSecurity(securityInput);
97
97
 
98
98
  const context = {
99
+ baseURL: options?.serverURL ?? "",
99
100
  operationID: "SubscribersController_patchSubscriber",
100
101
  oAuth2Scopes: [],
101
102
 
@@ -94,6 +94,7 @@ export async function subscribersPreferencesList(
94
94
  const requestSecurity = resolveGlobalSecurity(securityInput);
95
95
 
96
96
  const context = {
97
+ baseURL: options?.serverURL ?? "",
97
98
  operationID: "SubscribersController_getSubscriberPreferences",
98
99
  oAuth2Scopes: [],
99
100
 
@@ -100,6 +100,7 @@ export async function subscribersPreferencesUpdate(
100
100
  const requestSecurity = resolveGlobalSecurity(securityInput);
101
101
 
102
102
  const context = {
103
+ baseURL: options?.serverURL ?? "",
103
104
  operationID: "SubscribersController_updateSubscriberPreferences",
104
105
  oAuth2Scopes: [],
105
106
 
@@ -104,6 +104,7 @@ export async function subscribersPropertiesUpdateOnlineFlag(
104
104
  const requestSecurity = resolveGlobalSecurity(securityInput);
105
105
 
106
106
  const context = {
107
+ baseURL: options?.serverURL ?? "",
107
108
  operationID: "SubscribersV1Controller_updateSubscriberOnlineFlag",
108
109
  oAuth2Scopes: [],
109
110
 
@@ -91,6 +91,7 @@ export async function subscribersRetrieve(
91
91
  const requestSecurity = resolveGlobalSecurity(securityInput);
92
92
 
93
93
  const context = {
94
+ baseURL: options?.serverURL ?? "",
94
95
  operationID: "SubscribersController_getSubscriber",
95
96
  oAuth2Scopes: [],
96
97
 
@@ -86,6 +86,7 @@ export async function subscribersSearch(
86
86
  const requestSecurity = resolveGlobalSecurity(securityInput);
87
87
 
88
88
  const context = {
89
+ baseURL: options?.serverURL ?? "",
89
90
  operationID: "SubscribersController_searchSubscribers",
90
91
  oAuth2Scopes: [],
91
92
 
@@ -86,6 +86,7 @@ export async function topicsCreate(
86
86
  const requestSecurity = resolveGlobalSecurity(securityInput);
87
87
 
88
88
  const context = {
89
+ baseURL: options?.serverURL ?? "",
89
90
  operationID: "TopicsController_createTopic",
90
91
  oAuth2Scopes: [],
91
92
 
@@ -89,6 +89,7 @@ export async function topicsDelete(
89
89
  const requestSecurity = resolveGlobalSecurity(securityInput);
90
90
 
91
91
  const context = {
92
+ baseURL: options?.serverURL ?? "",
92
93
  operationID: "TopicsController_deleteTopic",
93
94
  oAuth2Scopes: [],
94
95
 
@@ -82,6 +82,7 @@ export async function topicsList(
82
82
  const requestSecurity = resolveGlobalSecurity(securityInput);
83
83
 
84
84
  const context = {
85
+ baseURL: options?.serverURL ?? "",
85
86
  operationID: "TopicsController_listTopics",
86
87
  oAuth2Scopes: [],
87
88
 
@@ -95,6 +95,7 @@ export async function topicsRename(
95
95
  const requestSecurity = resolveGlobalSecurity(securityInput);
96
96
 
97
97
  const context = {
98
+ baseURL: options?.serverURL ?? "",
98
99
  operationID: "TopicsController_renameTopic",
99
100
  oAuth2Scopes: [],
100
101
 
@@ -89,6 +89,7 @@ export async function topicsRetrieve(
89
89
  const requestSecurity = resolveGlobalSecurity(securityInput);
90
90
 
91
91
  const context = {
92
+ baseURL: options?.serverURL ?? "",
92
93
  operationID: "TopicsController_getTopic",
93
94
  oAuth2Scopes: [],
94
95
 
@@ -95,6 +95,7 @@ export async function topicsSubscribersAssign(
95
95
  const requestSecurity = resolveGlobalSecurity(securityInput);
96
96
 
97
97
  const context = {
98
+ baseURL: options?.serverURL ?? "",
98
99
  operationID: "TopicsController_assign",
99
100
  oAuth2Scopes: [],
100
101
 
@@ -99,6 +99,7 @@ export async function topicsSubscribersRemove(
99
99
  const requestSecurity = resolveGlobalSecurity(securityInput);
100
100
 
101
101
  const context = {
102
+ baseURL: options?.serverURL ?? "",
102
103
  operationID: "TopicsController_removeSubscribers",
103
104
  oAuth2Scopes: [],
104
105
 
@@ -100,6 +100,7 @@ export async function topicsSubscribersRetrieve(
100
100
  const requestSecurity = resolveGlobalSecurity(securityInput);
101
101
 
102
102
  const context = {
103
+ baseURL: options?.serverURL ?? "",
103
104
  operationID: "TopicsController_getTopicSubscriber",
104
105
  oAuth2Scopes: [],
105
106
 
@@ -89,6 +89,7 @@ export async function trigger(
89
89
  const requestSecurity = resolveGlobalSecurity(securityInput);
90
90
 
91
91
  const context = {
92
+ baseURL: options?.serverURL ?? "",
92
93
  operationID: "EventsController_trigger",
93
94
  oAuth2Scopes: [],
94
95
 
@@ -88,6 +88,7 @@ export async function triggerBroadcast(
88
88
  const requestSecurity = resolveGlobalSecurity(securityInput);
89
89
 
90
90
  const context = {
91
+ baseURL: options?.serverURL ?? "",
91
92
  operationID: "EventsController_broadcastEventToAll",
92
93
  oAuth2Scopes: [],
93
94
 
@@ -88,6 +88,7 @@ export async function triggerBulk(
88
88
  const requestSecurity = resolveGlobalSecurity(securityInput);
89
89
 
90
90
  const context = {
91
+ baseURL: options?.serverURL ?? "",
91
92
  operationID: "EventsController_triggerBulk",
92
93
  oAuth2Scopes: [],
93
94
 
@@ -74,6 +74,7 @@ export async function workflowsCreate(
74
74
  const requestSecurity = resolveGlobalSecurity(securityInput);
75
75
 
76
76
  const context = {
77
+ baseURL: options?.serverURL ?? "",
77
78
  operationID: "WorkflowController_create",
78
79
  oAuth2Scopes: [],
79
80
 
@@ -85,6 +85,7 @@ export async function workflowsDelete(
85
85
  const requestSecurity = resolveGlobalSecurity(securityInput);
86
86
 
87
87
  const context = {
88
+ baseURL: options?.serverURL ?? "",
88
89
  operationID: "WorkflowController_removeWorkflow",
89
90
  oAuth2Scopes: [],
90
91
 
@@ -92,6 +92,7 @@ export async function workflowsGetStepData(
92
92
  const requestSecurity = resolveGlobalSecurity(securityInput);
93
93
 
94
94
  const context = {
95
+ baseURL: options?.serverURL ?? "",
95
96
  operationID: "WorkflowController_getWorkflowStepData",
96
97
  oAuth2Scopes: [],
97
98
 
@@ -84,6 +84,7 @@ export async function workflowsGetWorkflowTestData(
84
84
  const requestSecurity = resolveGlobalSecurity(securityInput);
85
85
 
86
86
  const context = {
87
+ baseURL: options?.serverURL ?? "",
87
88
  operationID: "WorkflowController_getWorkflowTestData",
88
89
  oAuth2Scopes: [],
89
90
 
@@ -91,6 +91,7 @@ export async function workflowsRetrieve(
91
91
  const requestSecurity = resolveGlobalSecurity(securityInput);
92
92
 
93
93
  const context = {
94
+ baseURL: options?.serverURL ?? "",
94
95
  operationID: "WorkflowController_getWorkflow",
95
96
  oAuth2Scopes: [],
96
97
 
@@ -83,6 +83,7 @@ export async function workflowsUpdate(
83
83
  const requestSecurity = resolveGlobalSecurity(securityInput);
84
84
 
85
85
  const context = {
86
+ baseURL: options?.serverURL ?? "",
86
87
  operationID: "WorkflowController_update",
87
88
  oAuth2Scopes: [],
88
89
 
@@ -93,6 +93,7 @@ export async function workflowsWorkflowControllerGeneratePreview(
93
93
  const requestSecurity = resolveGlobalSecurity(securityInput);
94
94
 
95
95
  const context = {
96
+ baseURL: options?.serverURL ?? "",
96
97
  operationID: "WorkflowController_generatePreview",
97
98
  oAuth2Scopes: [],
98
99
 
@@ -85,6 +85,7 @@ export async function workflowsWorkflowControllerPatchWorkflow(
85
85
  const requestSecurity = resolveGlobalSecurity(securityInput);
86
86
 
87
87
  const context = {
88
+ baseURL: options?.serverURL ?? "",
88
89
  operationID: "WorkflowController_patchWorkflow",
89
90
  oAuth2Scopes: [],
90
91
 
@@ -92,6 +92,7 @@ export async function workflowsWorkflowControllerPatchWorkflowStepData(
92
92
  const requestSecurity = resolveGlobalSecurity(securityInput);
93
93
 
94
94
  const context = {
95
+ baseURL: options?.serverURL ?? "",
95
96
  operationID: "WorkflowController_patchWorkflowStepData",
96
97
  oAuth2Scopes: [],
97
98
 
@@ -76,6 +76,7 @@ export async function workflowsWorkflowControllerSearchWorkflows(
76
76
  const requestSecurity = resolveGlobalSecurity(securityInput);
77
77
 
78
78
  const context = {
79
+ baseURL: options?.serverURL ?? "",
79
80
  operationID: "WorkflowController_searchWorkflows",
80
81
  oAuth2Scopes: [],
81
82
 
@@ -83,6 +83,7 @@ export async function workflowsWorkflowControllerSync(
83
83
  const requestSecurity = resolveGlobalSecurity(securityInput);
84
84
 
85
85
  const context = {
86
+ baseURL: options?.serverURL ?? "",
86
87
  operationID: "WorkflowController_sync",
87
88
  oAuth2Scopes: [],
88
89
 
@@ -7,6 +7,7 @@ import { RetryConfig } from "../lib/retries.js";
7
7
  import { SecurityState } from "../lib/security.js";
8
8
 
9
9
  export type HookContext = {
10
+ baseURL: string | URL;
10
11
  operationID: string;
11
12
  oAuth2Scopes?: string[];
12
13
  securitySource?: any | (() => Promise<any>);
package/src/lib/config.ts CHANGED
@@ -60,6 +60,6 @@ export const SDK_METADATA = {
60
60
  language: "typescript",
61
61
  openapiDocVersion: "1.0",
62
62
  sdkVersion: "0.1.19",
63
- genVersion: "2.506.0",
64
- userAgent: "speakeasy-sdk/typescript 0.1.19 2.506.0 1.0 @novu/api",
63
+ genVersion: "2.512.4",
64
+ userAgent: "speakeasy-sdk/typescript 0.1.19 2.512.4 1.0 @novu/api",
65
65
  } as const;
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import * as components from "../models/components/index.js";
6
-
7
6
  type OAuth2PasswordFlow = {
8
7
  username: string;
9
8
  password?: string | undefined;
@@ -13,6 +13,11 @@ import {
13
13
  NotificationTriggerDto$Outbound,
14
14
  NotificationTriggerDto$outboundSchema,
15
15
  } from "./notificationtriggerdto.js";
16
+ import {
17
+ WorkflowOriginEnum,
18
+ WorkflowOriginEnum$inboundSchema,
19
+ WorkflowOriginEnum$outboundSchema,
20
+ } from "./workfloworiginenum.js";
16
21
 
17
22
  export type ActivityNotificationTemplateResponseDto = {
18
23
  /**
@@ -23,6 +28,10 @@ export type ActivityNotificationTemplateResponseDto = {
23
28
  * Name of the template
24
29
  */
25
30
  name: string;
31
+ /**
32
+ * Origin of the workflow
33
+ */
34
+ origin?: WorkflowOriginEnum | undefined;
26
35
  /**
27
36
  * Triggers of the template
28
37
  */
@@ -37,6 +46,7 @@ export const ActivityNotificationTemplateResponseDto$inboundSchema: z.ZodType<
37
46
  > = z.object({
38
47
  _id: z.string().optional(),
39
48
  name: z.string(),
49
+ origin: WorkflowOriginEnum$inboundSchema.optional(),
40
50
  triggers: z.array(NotificationTriggerDto$inboundSchema),
41
51
  }).transform((v) => {
42
52
  return remap$(v, {
@@ -48,6 +58,7 @@ export const ActivityNotificationTemplateResponseDto$inboundSchema: z.ZodType<
48
58
  export type ActivityNotificationTemplateResponseDto$Outbound = {
49
59
  _id?: string | undefined;
50
60
  name: string;
61
+ origin?: string | undefined;
51
62
  triggers: Array<NotificationTriggerDto$Outbound>;
52
63
  };
53
64
 
@@ -59,6 +70,7 @@ export const ActivityNotificationTemplateResponseDto$outboundSchema: z.ZodType<
59
70
  > = z.object({
60
71
  id: z.string().optional(),
61
72
  name: z.string(),
73
+ origin: WorkflowOriginEnum$outboundSchema.optional(),
62
74
  triggers: z.array(NotificationTriggerDto$outboundSchema),
63
75
  }).transform((v) => {
64
76
  return remap$(v, {