@novu/api 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (568) hide show
  1. package/FUNCTIONS.md +2 -19
  2. package/README.md +82 -327
  3. package/bin/mcp-server.js +1905 -3353
  4. package/bin/mcp-server.js.map +96 -113
  5. package/docs/sdks/credentials/README.md +13 -11
  6. package/docs/sdks/integrations/README.md +19 -14
  7. package/docs/sdks/messages/README.md +28 -24
  8. package/docs/sdks/notifications/README.md +9 -4
  9. package/docs/sdks/novu/README.md +16 -188
  10. package/docs/sdks/novumessages/README.md +16 -14
  11. package/docs/sdks/novunotifications/README.md +4 -4
  12. package/docs/sdks/novutopics/README.md +3 -2
  13. package/docs/sdks/preferences/README.md +7 -4
  14. package/docs/sdks/properties/README.md +1 -1
  15. package/docs/sdks/subscribers/README.md +15 -208
  16. package/docs/sdks/subscriptions/README.md +6 -4
  17. package/docs/sdks/topics/README.md +14 -15
  18. package/funcs/integrationsCreate.d.ts +3 -2
  19. package/funcs/integrationsCreate.d.ts.map +1 -1
  20. package/funcs/integrationsCreate.js +3 -2
  21. package/funcs/integrationsCreate.js.map +1 -1
  22. package/funcs/integrationsDelete.d.ts +5 -1
  23. package/funcs/integrationsDelete.d.ts.map +1 -1
  24. package/funcs/integrationsDelete.js +5 -1
  25. package/funcs/integrationsDelete.js.map +1 -1
  26. package/funcs/integrationsList.d.ts +2 -2
  27. package/funcs/integrationsList.js +2 -2
  28. package/funcs/integrationsListActive.d.ts +2 -2
  29. package/funcs/integrationsListActive.js +2 -2
  30. package/funcs/integrationsSetAsPrimary.d.ts +6 -1
  31. package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
  32. package/funcs/integrationsSetAsPrimary.js +6 -1
  33. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  34. package/funcs/integrationsUpdate.d.ts +5 -1
  35. package/funcs/integrationsUpdate.d.ts.map +1 -1
  36. package/funcs/integrationsUpdate.js +5 -1
  37. package/funcs/integrationsUpdate.js.map +1 -1
  38. package/funcs/messagesDelete.d.ts +3 -2
  39. package/funcs/messagesDelete.d.ts.map +1 -1
  40. package/funcs/messagesDelete.js +3 -2
  41. package/funcs/messagesDelete.js.map +1 -1
  42. package/funcs/messagesDeleteByTransactionId.d.ts +2 -1
  43. package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
  44. package/funcs/messagesDeleteByTransactionId.js +2 -1
  45. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  46. package/funcs/messagesRetrieve.d.ts +4 -2
  47. package/funcs/messagesRetrieve.d.ts.map +1 -1
  48. package/funcs/messagesRetrieve.js +4 -2
  49. package/funcs/messagesRetrieve.js.map +1 -1
  50. package/funcs/notificationsList.d.ts +7 -1
  51. package/funcs/notificationsList.d.ts.map +1 -1
  52. package/funcs/notificationsList.js +7 -1
  53. package/funcs/notificationsList.js.map +1 -1
  54. package/funcs/notificationsRetrieve.d.ts +6 -1
  55. package/funcs/notificationsRetrieve.d.ts.map +1 -1
  56. package/funcs/notificationsRetrieve.js +6 -1
  57. package/funcs/notificationsRetrieve.js.map +1 -1
  58. package/funcs/subscribersCreate.d.ts +3 -2
  59. package/funcs/subscribersCreate.d.ts.map +1 -1
  60. package/funcs/subscribersCreate.js +3 -2
  61. package/funcs/subscribersCreate.js.map +1 -1
  62. package/funcs/subscribersCreateBulk.d.ts +1 -2
  63. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  64. package/funcs/subscribersCreateBulk.js +1 -2
  65. package/funcs/subscribersCreateBulk.js.map +1 -1
  66. package/funcs/subscribersCredentialsAppend.d.ts +3 -3
  67. package/funcs/subscribersCredentialsAppend.js +3 -3
  68. package/funcs/subscribersCredentialsDelete.d.ts +3 -2
  69. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  70. package/funcs/subscribersCredentialsDelete.js +3 -2
  71. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  72. package/funcs/subscribersCredentialsUpdate.d.ts +3 -2
  73. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  74. package/funcs/subscribersCredentialsUpdate.js +3 -2
  75. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  76. package/funcs/subscribersDelete.d.ts +1 -1
  77. package/funcs/subscribersDelete.js +1 -1
  78. package/funcs/subscribersMessagesMarkAll.d.ts +4 -1
  79. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  80. package/funcs/subscribersMessagesMarkAll.js +4 -1
  81. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  82. package/funcs/subscribersMessagesMarkAllAs.d.ts +5 -1
  83. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  84. package/funcs/subscribersMessagesMarkAllAs.js +5 -1
  85. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  86. package/funcs/subscribersMessagesUpdateAsSeen.d.ts +5 -1
  87. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  88. package/funcs/subscribersMessagesUpdateAsSeen.js +5 -1
  89. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  90. package/funcs/subscribersNotificationsFeed.d.ts +4 -1
  91. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  92. package/funcs/subscribersNotificationsFeed.js +4 -1
  93. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  94. package/funcs/subscribersNotificationsUnseenCount.d.ts +4 -1
  95. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  96. package/funcs/subscribersNotificationsUnseenCount.js +4 -1
  97. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  98. package/funcs/subscribersPatch.d.ts +3 -2
  99. package/funcs/subscribersPatch.d.ts.map +1 -1
  100. package/funcs/subscribersPatch.js +3 -2
  101. package/funcs/subscribersPatch.js.map +1 -1
  102. package/funcs/subscribersPreferencesList.d.ts +3 -2
  103. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  104. package/funcs/subscribersPreferencesList.js +3 -2
  105. package/funcs/subscribersPreferencesList.js.map +1 -1
  106. package/funcs/subscribersPreferencesUpdate.d.ts +4 -2
  107. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  108. package/funcs/subscribersPreferencesUpdate.js +4 -2
  109. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  110. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
  111. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -1
  112. package/funcs/subscribersRetrieve.d.ts +3 -2
  113. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  114. package/funcs/subscribersRetrieve.js +3 -2
  115. package/funcs/subscribersRetrieve.js.map +1 -1
  116. package/funcs/subscribersSearch.d.ts +5 -1
  117. package/funcs/subscribersSearch.d.ts.map +1 -1
  118. package/funcs/subscribersSearch.js +5 -1
  119. package/funcs/subscribersSearch.js.map +1 -1
  120. package/funcs/subscribersTopicsList.d.ts +3 -2
  121. package/funcs/subscribersTopicsList.d.ts.map +1 -1
  122. package/funcs/subscribersTopicsList.js +3 -2
  123. package/funcs/subscribersTopicsList.js.map +1 -1
  124. package/funcs/topicsCreate.d.ts +1 -1
  125. package/funcs/topicsCreate.js +1 -1
  126. package/funcs/topicsDelete.d.ts +5 -1
  127. package/funcs/topicsDelete.d.ts.map +1 -1
  128. package/funcs/topicsDelete.js +5 -1
  129. package/funcs/topicsDelete.js.map +1 -1
  130. package/funcs/topicsGet.d.ts +4 -1
  131. package/funcs/topicsGet.d.ts.map +1 -1
  132. package/funcs/topicsGet.js +4 -1
  133. package/funcs/topicsGet.js.map +1 -1
  134. package/funcs/topicsList.d.ts +6 -1
  135. package/funcs/topicsList.d.ts.map +1 -1
  136. package/funcs/topicsList.js +6 -1
  137. package/funcs/topicsList.js.map +1 -1
  138. package/funcs/topicsSubscriptionsCreate.d.ts +5 -1
  139. package/funcs/topicsSubscriptionsCreate.d.ts.map +1 -1
  140. package/funcs/topicsSubscriptionsCreate.js +5 -1
  141. package/funcs/topicsSubscriptionsCreate.js.map +1 -1
  142. package/funcs/topicsSubscriptionsDelete.d.ts +3 -0
  143. package/funcs/topicsSubscriptionsDelete.d.ts.map +1 -1
  144. package/funcs/topicsSubscriptionsDelete.js +3 -0
  145. package/funcs/topicsSubscriptionsDelete.js.map +1 -1
  146. package/funcs/topicsSubscriptionsList.d.ts +4 -0
  147. package/funcs/topicsSubscriptionsList.d.ts.map +1 -1
  148. package/funcs/topicsSubscriptionsList.js +4 -0
  149. package/funcs/topicsSubscriptionsList.js.map +1 -1
  150. package/funcs/topicsUpdate.d.ts +4 -1
  151. package/funcs/topicsUpdate.d.ts.map +1 -1
  152. package/funcs/topicsUpdate.js +4 -1
  153. package/funcs/topicsUpdate.js.map +1 -1
  154. package/jsr.json +1 -1
  155. package/lib/config.d.ts +4 -4
  156. package/lib/config.js +4 -4
  157. package/lib/config.js.map +1 -1
  158. package/mcp-server/cli/start/impl.js +2 -2
  159. package/mcp-server/cli/start/impl.js.map +1 -1
  160. package/mcp-server/mcp-server.js +1 -1
  161. package/mcp-server/server.d.ts.map +1 -1
  162. package/mcp-server/server.js +1 -15
  163. package/mcp-server/server.js.map +1 -1
  164. package/mcp-server/tools/integrationsCreate.d.ts.map +1 -1
  165. package/mcp-server/tools/integrationsCreate.js +3 -2
  166. package/mcp-server/tools/integrationsCreate.js.map +1 -1
  167. package/mcp-server/tools/integrationsDelete.d.ts.map +1 -1
  168. package/mcp-server/tools/integrationsDelete.js +4 -1
  169. package/mcp-server/tools/integrationsDelete.js.map +1 -1
  170. package/mcp-server/tools/integrationsList.js +2 -2
  171. package/mcp-server/tools/integrationsList.js.map +1 -1
  172. package/mcp-server/tools/integrationsListActive.js +2 -2
  173. package/mcp-server/tools/integrationsListActive.js.map +1 -1
  174. package/mcp-server/tools/integrationsSetAsPrimary.d.ts.map +1 -1
  175. package/mcp-server/tools/integrationsSetAsPrimary.js +5 -1
  176. package/mcp-server/tools/integrationsSetAsPrimary.js.map +1 -1
  177. package/mcp-server/tools/integrationsUpdate.d.ts.map +1 -1
  178. package/mcp-server/tools/integrationsUpdate.js +4 -1
  179. package/mcp-server/tools/integrationsUpdate.js.map +1 -1
  180. package/mcp-server/tools/messagesDelete.d.ts.map +1 -1
  181. package/mcp-server/tools/messagesDelete.js +3 -2
  182. package/mcp-server/tools/messagesDelete.js.map +1 -1
  183. package/mcp-server/tools/messagesDeleteByTransactionId.d.ts.map +1 -1
  184. package/mcp-server/tools/messagesDeleteByTransactionId.js +2 -1
  185. package/mcp-server/tools/messagesDeleteByTransactionId.js.map +1 -1
  186. package/mcp-server/tools/messagesRetrieve.d.ts.map +1 -1
  187. package/mcp-server/tools/messagesRetrieve.js +4 -2
  188. package/mcp-server/tools/messagesRetrieve.js.map +1 -1
  189. package/mcp-server/tools/notificationsList.d.ts.map +1 -1
  190. package/mcp-server/tools/notificationsList.js +6 -1
  191. package/mcp-server/tools/notificationsList.js.map +1 -1
  192. package/mcp-server/tools/notificationsRetrieve.d.ts.map +1 -1
  193. package/mcp-server/tools/notificationsRetrieve.js +5 -1
  194. package/mcp-server/tools/notificationsRetrieve.js.map +1 -1
  195. package/mcp-server/tools/subscribersCreate.d.ts.map +1 -1
  196. package/mcp-server/tools/subscribersCreate.js +3 -2
  197. package/mcp-server/tools/subscribersCreate.js.map +1 -1
  198. package/mcp-server/tools/subscribersCreateBulk.d.ts.map +1 -1
  199. package/mcp-server/tools/subscribersCreateBulk.js +1 -2
  200. package/mcp-server/tools/subscribersCreateBulk.js.map +1 -1
  201. package/mcp-server/tools/subscribersCredentialsAppend.js +3 -3
  202. package/mcp-server/tools/subscribersCredentialsAppend.js.map +1 -1
  203. package/mcp-server/tools/subscribersCredentialsDelete.d.ts.map +1 -1
  204. package/mcp-server/tools/subscribersCredentialsDelete.js +3 -2
  205. package/mcp-server/tools/subscribersCredentialsDelete.js.map +1 -1
  206. package/mcp-server/tools/subscribersCredentialsUpdate.d.ts.map +1 -1
  207. package/mcp-server/tools/subscribersCredentialsUpdate.js +3 -2
  208. package/mcp-server/tools/subscribersCredentialsUpdate.js.map +1 -1
  209. package/mcp-server/tools/subscribersDelete.js +1 -1
  210. package/mcp-server/tools/subscribersDelete.js.map +1 -1
  211. package/mcp-server/tools/subscribersMessagesMarkAll.d.ts.map +1 -1
  212. package/mcp-server/tools/subscribersMessagesMarkAll.js +3 -1
  213. package/mcp-server/tools/subscribersMessagesMarkAll.js.map +1 -1
  214. package/mcp-server/tools/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  215. package/mcp-server/tools/subscribersMessagesMarkAllAs.js +4 -1
  216. package/mcp-server/tools/subscribersMessagesMarkAllAs.js.map +1 -1
  217. package/mcp-server/tools/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  218. package/mcp-server/tools/subscribersMessagesUpdateAsSeen.js +4 -1
  219. package/mcp-server/tools/subscribersMessagesUpdateAsSeen.js.map +1 -1
  220. package/mcp-server/tools/subscribersNotificationsFeed.d.ts.map +1 -1
  221. package/mcp-server/tools/subscribersNotificationsFeed.js +3 -1
  222. package/mcp-server/tools/subscribersNotificationsFeed.js.map +1 -1
  223. package/mcp-server/tools/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  224. package/mcp-server/tools/subscribersNotificationsUnseenCount.js +3 -1
  225. package/mcp-server/tools/subscribersNotificationsUnseenCount.js.map +1 -1
  226. package/mcp-server/tools/subscribersPatch.d.ts.map +1 -1
  227. package/mcp-server/tools/subscribersPatch.js +3 -2
  228. package/mcp-server/tools/subscribersPatch.js.map +1 -1
  229. package/mcp-server/tools/subscribersPreferencesList.d.ts.map +1 -1
  230. package/mcp-server/tools/subscribersPreferencesList.js +3 -2
  231. package/mcp-server/tools/subscribersPreferencesList.js.map +1 -1
  232. package/mcp-server/tools/subscribersPreferencesUpdate.d.ts.map +1 -1
  233. package/mcp-server/tools/subscribersPreferencesUpdate.js +4 -2
  234. package/mcp-server/tools/subscribersPreferencesUpdate.js.map +1 -1
  235. package/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.js +1 -1
  236. package/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  237. package/mcp-server/tools/subscribersRetrieve.d.ts.map +1 -1
  238. package/mcp-server/tools/subscribersRetrieve.js +3 -2
  239. package/mcp-server/tools/subscribersRetrieve.js.map +1 -1
  240. package/mcp-server/tools/subscribersSearch.d.ts.map +1 -1
  241. package/mcp-server/tools/subscribersSearch.js +4 -1
  242. package/mcp-server/tools/subscribersSearch.js.map +1 -1
  243. package/mcp-server/tools/subscribersTopicsList.d.ts.map +1 -1
  244. package/mcp-server/tools/subscribersTopicsList.js +3 -2
  245. package/mcp-server/tools/subscribersTopicsList.js.map +1 -1
  246. package/mcp-server/tools/topicsCreate.js +1 -1
  247. package/mcp-server/tools/topicsDelete.d.ts.map +1 -1
  248. package/mcp-server/tools/topicsDelete.js +4 -1
  249. package/mcp-server/tools/topicsDelete.js.map +1 -1
  250. package/mcp-server/tools/topicsGet.d.ts.map +1 -1
  251. package/mcp-server/tools/topicsGet.js +3 -1
  252. package/mcp-server/tools/topicsGet.js.map +1 -1
  253. package/mcp-server/tools/topicsList.d.ts.map +1 -1
  254. package/mcp-server/tools/topicsList.js +5 -1
  255. package/mcp-server/tools/topicsList.js.map +1 -1
  256. package/mcp-server/tools/topicsSubscriptionsCreate.d.ts.map +1 -1
  257. package/mcp-server/tools/topicsSubscriptionsCreate.js +4 -1
  258. package/mcp-server/tools/topicsSubscriptionsCreate.js.map +1 -1
  259. package/mcp-server/tools/topicsSubscriptionsDelete.d.ts.map +1 -1
  260. package/mcp-server/tools/topicsSubscriptionsDelete.js +3 -1
  261. package/mcp-server/tools/topicsSubscriptionsDelete.js.map +1 -1
  262. package/mcp-server/tools/topicsSubscriptionsList.d.ts.map +1 -1
  263. package/mcp-server/tools/topicsSubscriptionsList.js +4 -1
  264. package/mcp-server/tools/topicsSubscriptionsList.js.map +1 -1
  265. package/mcp-server/tools/topicsUpdate.d.ts.map +1 -1
  266. package/mcp-server/tools/topicsUpdate.js +3 -1
  267. package/mcp-server/tools/topicsUpdate.js.map +1 -1
  268. package/models/components/index.d.ts +0 -3
  269. package/models/components/index.d.ts.map +1 -1
  270. package/models/components/index.js +0 -3
  271. package/models/components/index.js.map +1 -1
  272. package/models/components/notificationfeeditemdto.d.ts +2 -2
  273. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  274. package/models/components/notificationfeeditemdto.js +2 -2
  275. package/models/components/notificationfeeditemdto.js.map +1 -1
  276. package/models/components/patchsubscriberrequestdto.d.ts +6 -26
  277. package/models/components/patchsubscriberrequestdto.d.ts.map +1 -1
  278. package/models/components/patchsubscriberrequestdto.js +3 -27
  279. package/models/components/patchsubscriberrequestdto.js.map +1 -1
  280. package/models/components/subscriberpayloaddto.d.ts +13 -13
  281. package/models/components/subscriberpayloaddto.d.ts.map +1 -1
  282. package/models/components/subscriberpayloaddto.js +17 -16
  283. package/models/components/subscriberpayloaddto.js.map +1 -1
  284. package/models/operations/index.d.ts +0 -7
  285. package/models/operations/index.d.ts.map +1 -1
  286. package/models/operations/index.js +0 -7
  287. package/models/operations/index.js.map +1 -1
  288. package/package.json +2 -2
  289. package/sdk/credentials.d.ts +9 -7
  290. package/sdk/credentials.d.ts.map +1 -1
  291. package/sdk/credentials.js +9 -7
  292. package/sdk/credentials.js.map +1 -1
  293. package/sdk/integrations.d.ts +23 -12
  294. package/sdk/integrations.d.ts.map +1 -1
  295. package/sdk/integrations.js +23 -13
  296. package/sdk/integrations.js.map +1 -1
  297. package/sdk/messages.d.ts +9 -5
  298. package/sdk/messages.d.ts.map +1 -1
  299. package/sdk/messages.js +9 -5
  300. package/sdk/messages.js.map +1 -1
  301. package/sdk/notifications.d.ts +13 -5
  302. package/sdk/notifications.d.ts.map +1 -1
  303. package/sdk/notifications.js +13 -6
  304. package/sdk/notifications.js.map +1 -1
  305. package/sdk/novumessages.d.ts +14 -3
  306. package/sdk/novumessages.d.ts.map +1 -1
  307. package/sdk/novumessages.js +14 -3
  308. package/sdk/novumessages.js.map +1 -1
  309. package/sdk/novunotifications.d.ts +8 -2
  310. package/sdk/novunotifications.d.ts.map +1 -1
  311. package/sdk/novunotifications.js +8 -2
  312. package/sdk/novunotifications.js.map +1 -1
  313. package/sdk/novutopics.d.ts +3 -2
  314. package/sdk/novutopics.d.ts.map +1 -1
  315. package/sdk/novutopics.js +3 -2
  316. package/sdk/novutopics.js.map +1 -1
  317. package/sdk/preferences.d.ts +7 -4
  318. package/sdk/preferences.d.ts.map +1 -1
  319. package/sdk/preferences.js +7 -4
  320. package/sdk/preferences.js.map +1 -1
  321. package/sdk/properties.d.ts +1 -1
  322. package/sdk/properties.js +1 -1
  323. package/sdk/subscribers.d.ts +16 -30
  324. package/sdk/subscribers.d.ts.map +1 -1
  325. package/sdk/subscribers.js +16 -35
  326. package/sdk/subscribers.js.map +1 -1
  327. package/sdk/subscriptions.d.ts +12 -1
  328. package/sdk/subscriptions.d.ts.map +1 -1
  329. package/sdk/subscriptions.js +12 -1
  330. package/sdk/subscriptions.js.map +1 -1
  331. package/sdk/topics.d.ts +20 -5
  332. package/sdk/topics.d.ts.map +1 -1
  333. package/sdk/topics.js +20 -5
  334. package/sdk/topics.js.map +1 -1
  335. package/sources/json-development.json +1928 -5272
  336. package/src/funcs/integrationsCreate.ts +3 -2
  337. package/src/funcs/integrationsDelete.ts +5 -1
  338. package/src/funcs/integrationsList.ts +2 -2
  339. package/src/funcs/integrationsListActive.ts +2 -2
  340. package/src/funcs/integrationsSetAsPrimary.ts +6 -1
  341. package/src/funcs/integrationsUpdate.ts +5 -1
  342. package/src/funcs/messagesDelete.ts +3 -2
  343. package/src/funcs/messagesDeleteByTransactionId.ts +2 -1
  344. package/src/funcs/messagesRetrieve.ts +4 -2
  345. package/src/funcs/notificationsList.ts +7 -1
  346. package/src/funcs/notificationsRetrieve.ts +6 -1
  347. package/src/funcs/subscribersCreate.ts +3 -2
  348. package/src/funcs/subscribersCreateBulk.ts +1 -2
  349. package/src/funcs/subscribersCredentialsAppend.ts +3 -3
  350. package/src/funcs/subscribersCredentialsDelete.ts +3 -2
  351. package/src/funcs/subscribersCredentialsUpdate.ts +3 -2
  352. package/src/funcs/subscribersDelete.ts +1 -1
  353. package/src/funcs/subscribersMessagesMarkAll.ts +4 -1
  354. package/src/funcs/subscribersMessagesMarkAllAs.ts +5 -1
  355. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +5 -1
  356. package/src/funcs/subscribersNotificationsFeed.ts +4 -1
  357. package/src/funcs/subscribersNotificationsUnseenCount.ts +4 -1
  358. package/src/funcs/subscribersPatch.ts +3 -2
  359. package/src/funcs/subscribersPreferencesList.ts +3 -2
  360. package/src/funcs/subscribersPreferencesUpdate.ts +4 -2
  361. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +1 -1
  362. package/src/funcs/subscribersRetrieve.ts +3 -2
  363. package/src/funcs/subscribersSearch.ts +5 -1
  364. package/src/funcs/subscribersTopicsList.ts +3 -2
  365. package/src/funcs/topicsCreate.ts +1 -1
  366. package/src/funcs/topicsDelete.ts +5 -1
  367. package/src/funcs/topicsGet.ts +4 -1
  368. package/src/funcs/topicsList.ts +6 -1
  369. package/src/funcs/topicsSubscriptionsCreate.ts +5 -1
  370. package/src/funcs/topicsSubscriptionsDelete.ts +3 -0
  371. package/src/funcs/topicsSubscriptionsList.ts +4 -0
  372. package/src/funcs/topicsUpdate.ts +4 -1
  373. package/src/lib/config.ts +4 -4
  374. package/src/mcp-server/cli/start/impl.ts +2 -2
  375. package/src/mcp-server/mcp-server.ts +1 -1
  376. package/src/mcp-server/server.ts +1 -15
  377. package/src/mcp-server/tools/integrationsCreate.ts +3 -2
  378. package/src/mcp-server/tools/integrationsDelete.ts +4 -1
  379. package/src/mcp-server/tools/integrationsList.ts +2 -2
  380. package/src/mcp-server/tools/integrationsListActive.ts +2 -2
  381. package/src/mcp-server/tools/integrationsSetAsPrimary.ts +5 -1
  382. package/src/mcp-server/tools/integrationsUpdate.ts +4 -1
  383. package/src/mcp-server/tools/messagesDelete.ts +3 -2
  384. package/src/mcp-server/tools/messagesDeleteByTransactionId.ts +2 -1
  385. package/src/mcp-server/tools/messagesRetrieve.ts +4 -2
  386. package/src/mcp-server/tools/notificationsList.ts +6 -1
  387. package/src/mcp-server/tools/notificationsRetrieve.ts +5 -1
  388. package/src/mcp-server/tools/subscribersCreate.ts +3 -2
  389. package/src/mcp-server/tools/subscribersCreateBulk.ts +1 -2
  390. package/src/mcp-server/tools/subscribersCredentialsAppend.ts +3 -3
  391. package/src/mcp-server/tools/subscribersCredentialsDelete.ts +3 -2
  392. package/src/mcp-server/tools/subscribersCredentialsUpdate.ts +3 -2
  393. package/src/mcp-server/tools/subscribersDelete.ts +1 -1
  394. package/src/mcp-server/tools/subscribersMessagesMarkAll.ts +3 -2
  395. package/src/mcp-server/tools/subscribersMessagesMarkAllAs.ts +4 -1
  396. package/src/mcp-server/tools/subscribersMessagesUpdateAsSeen.ts +4 -1
  397. package/src/mcp-server/tools/subscribersNotificationsFeed.ts +3 -1
  398. package/src/mcp-server/tools/subscribersNotificationsUnseenCount.ts +3 -1
  399. package/src/mcp-server/tools/subscribersPatch.ts +3 -2
  400. package/src/mcp-server/tools/subscribersPreferencesList.ts +3 -2
  401. package/src/mcp-server/tools/subscribersPreferencesUpdate.ts +4 -2
  402. package/src/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.ts +1 -1
  403. package/src/mcp-server/tools/subscribersRetrieve.ts +3 -2
  404. package/src/mcp-server/tools/subscribersSearch.ts +4 -1
  405. package/src/mcp-server/tools/subscribersTopicsList.ts +3 -2
  406. package/src/mcp-server/tools/topicsCreate.ts +1 -1
  407. package/src/mcp-server/tools/topicsDelete.ts +4 -1
  408. package/src/mcp-server/tools/topicsGet.ts +3 -1
  409. package/src/mcp-server/tools/topicsList.ts +5 -1
  410. package/src/mcp-server/tools/topicsSubscriptionsCreate.ts +4 -2
  411. package/src/mcp-server/tools/topicsSubscriptionsDelete.ts +3 -1
  412. package/src/mcp-server/tools/topicsSubscriptionsList.ts +4 -1
  413. package/src/mcp-server/tools/topicsUpdate.ts +3 -1
  414. package/src/models/components/index.ts +0 -3
  415. package/src/models/components/notificationfeeditemdto.ts +4 -4
  416. package/src/models/components/patchsubscriberrequestdto.ts +4 -47
  417. package/src/models/components/subscriberpayloaddto.ts +19 -37
  418. package/src/models/operations/index.ts +0 -7
  419. package/src/sdk/credentials.ts +9 -7
  420. package/src/sdk/integrations.ts +23 -15
  421. package/src/sdk/messages.ts +9 -5
  422. package/src/sdk/notifications.ts +13 -8
  423. package/src/sdk/novumessages.ts +14 -3
  424. package/src/sdk/novunotifications.ts +8 -2
  425. package/src/sdk/novutopics.ts +3 -2
  426. package/src/sdk/preferences.ts +7 -4
  427. package/src/sdk/properties.ts +1 -1
  428. package/src/sdk/subscribers.ts +16 -66
  429. package/src/sdk/subscriptions.ts +12 -1
  430. package/src/sdk/topics.ts +20 -5
  431. package/docs/sdks/authentication/README.md +0 -183
  432. package/docs/sdks/stats/README.md +0 -162
  433. package/docs/sdks/webhooks/README.md +0 -85
  434. package/funcs/integrationsWebhooksRetrieve.d.ts +0 -17
  435. package/funcs/integrationsWebhooksRetrieve.d.ts.map +0 -1
  436. package/funcs/integrationsWebhooksRetrieve.js +0 -143
  437. package/funcs/integrationsWebhooksRetrieve.js.map +0 -1
  438. package/funcs/notificationsStatsGraph.d.ts +0 -14
  439. package/funcs/notificationsStatsGraph.d.ts.map +0 -1
  440. package/funcs/notificationsStatsGraph.js +0 -141
  441. package/funcs/notificationsStatsGraph.js.map +0 -1
  442. package/funcs/notificationsStatsRetrieve.d.ts +0 -14
  443. package/funcs/notificationsStatsRetrieve.d.ts.map +0 -1
  444. package/funcs/notificationsStatsRetrieve.js +0 -134
  445. package/funcs/notificationsStatsRetrieve.js.map +0 -1
  446. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +0 -14
  447. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +0 -1
  448. package/funcs/subscribersAuthenticationChatAccessOauth.js +0 -148
  449. package/funcs/subscribersAuthenticationChatAccessOauth.js.map +0 -1
  450. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +0 -20
  451. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +0 -1
  452. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +0 -154
  453. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +0 -1
  454. package/funcs/subscribersList.d.ts +0 -20
  455. package/funcs/subscribersList.d.ts.map +0 -1
  456. package/funcs/subscribersList.js +0 -172
  457. package/funcs/subscribersList.js.map +0 -1
  458. package/funcs/subscribersUpsert.d.ts +0 -18
  459. package/funcs/subscribersUpsert.d.ts.map +0 -1
  460. package/funcs/subscribersUpsert.js +0 -148
  461. package/funcs/subscribersUpsert.js.map +0 -1
  462. package/mcp-server/tools/integrationsWebhooksRetrieve.d.ts +0 -9
  463. package/mcp-server/tools/integrationsWebhooksRetrieve.d.ts.map +0 -1
  464. package/mcp-server/tools/integrationsWebhooksRetrieve.js +0 -55
  465. package/mcp-server/tools/integrationsWebhooksRetrieve.js.map +0 -1
  466. package/mcp-server/tools/notificationsStatsGraph.d.ts +0 -9
  467. package/mcp-server/tools/notificationsStatsGraph.d.ts.map +0 -1
  468. package/mcp-server/tools/notificationsStatsGraph.js +0 -53
  469. package/mcp-server/tools/notificationsStatsGraph.js.map +0 -1
  470. package/mcp-server/tools/notificationsStatsRetrieve.d.ts +0 -8
  471. package/mcp-server/tools/notificationsStatsRetrieve.d.ts.map +0 -1
  472. package/mcp-server/tools/notificationsStatsRetrieve.js +0 -52
  473. package/mcp-server/tools/notificationsStatsRetrieve.js.map +0 -1
  474. package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.d.ts +0 -8
  475. package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.d.ts.map +0 -1
  476. package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.js +0 -51
  477. package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.js.map +0 -1
  478. package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.d.ts +0 -8
  479. package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +0 -1
  480. package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.js +0 -52
  481. package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.js.map +0 -1
  482. package/mcp-server/tools/subscribersList.d.ts +0 -10
  483. package/mcp-server/tools/subscribersList.d.ts.map +0 -1
  484. package/mcp-server/tools/subscribersList.js +0 -56
  485. package/mcp-server/tools/subscribersList.js.map +0 -1
  486. package/mcp-server/tools/subscribersUpsert.d.ts +0 -11
  487. package/mcp-server/tools/subscribersUpsert.d.ts.map +0 -1
  488. package/mcp-server/tools/subscribersUpsert.js +0 -57
  489. package/mcp-server/tools/subscribersUpsert.js.map +0 -1
  490. package/models/components/activitygraphstatesresponse.d.ts +0 -70
  491. package/models/components/activitygraphstatesresponse.d.ts.map +0 -1
  492. package/models/components/activitygraphstatesresponse.js +0 -97
  493. package/models/components/activitygraphstatesresponse.js.map +0 -1
  494. package/models/components/activitystatsresponsedto.d.ts +0 -31
  495. package/models/components/activitystatsresponsedto.d.ts.map +0 -1
  496. package/models/components/activitystatsresponsedto.js +0 -61
  497. package/models/components/activitystatsresponsedto.js.map +0 -1
  498. package/models/components/updatesubscriberrequestdto.d.ts +0 -72
  499. package/models/components/updatesubscriberrequestdto.d.ts.map +0 -1
  500. package/models/components/updatesubscriberrequestdto.js +0 -74
  501. package/models/components/updatesubscriberrequestdto.js.map +0 -1
  502. package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +0 -65
  503. package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts.map +0 -1
  504. package/models/operations/integrationscontrollergetwebhooksupportstatus.js +0 -109
  505. package/models/operations/integrationscontrollergetwebhooksupportstatus.js.map +0 -1
  506. package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +0 -66
  507. package/models/operations/notificationscontrollergetactivitygraphstats.d.ts.map +0 -1
  508. package/models/operations/notificationscontrollergetactivitygraphstats.js +0 -110
  509. package/models/operations/notificationscontrollergetactivitygraphstats.js.map +0 -1
  510. package/models/operations/notificationscontrollergetactivitystats.d.ts +0 -64
  511. package/models/operations/notificationscontrollergetactivitystats.d.ts.map +0 -1
  512. package/models/operations/notificationscontrollergetactivitystats.js +0 -108
  513. package/models/operations/notificationscontrollergetactivitystats.js.map +0 -1
  514. package/models/operations/subscribersv1controllerchataccessoauth.d.ts +0 -80
  515. package/models/operations/subscribersv1controllerchataccessoauth.d.ts.map +0 -1
  516. package/models/operations/subscribersv1controllerchataccessoauth.js +0 -113
  517. package/models/operations/subscribersv1controllerchataccessoauth.js.map +0 -1
  518. package/models/operations/subscribersv1controllerchatoauthcallback.d.ts +0 -108
  519. package/models/operations/subscribersv1controllerchatoauthcallback.d.ts.map +0 -1
  520. package/models/operations/subscribersv1controllerchatoauthcallback.js +0 -143
  521. package/models/operations/subscribersv1controllerchatoauthcallback.js.map +0 -1
  522. package/models/operations/subscribersv1controllerlistsubscribers.d.ts +0 -108
  523. package/models/operations/subscribersv1controllerlistsubscribers.d.ts.map +0 -1
  524. package/models/operations/subscribersv1controllerlistsubscribers.js +0 -145
  525. package/models/operations/subscribersv1controllerlistsubscribers.js.map +0 -1
  526. package/models/operations/subscribersv1controllerupdatesubscriber.d.ts +0 -68
  527. package/models/operations/subscribersv1controllerupdatesubscriber.d.ts.map +0 -1
  528. package/models/operations/subscribersv1controllerupdatesubscriber.js +0 -114
  529. package/models/operations/subscribersv1controllerupdatesubscriber.js.map +0 -1
  530. package/sdk/authentication.d.ts +0 -17
  531. package/sdk/authentication.d.ts.map +0 -1
  532. package/sdk/authentication.js +0 -28
  533. package/sdk/authentication.js.map +0 -1
  534. package/sdk/stats.d.ts +0 -13
  535. package/sdk/stats.d.ts.map +0 -1
  536. package/sdk/stats.js +0 -26
  537. package/sdk/stats.js.map +0 -1
  538. package/sdk/webhooks.d.ts +0 -12
  539. package/sdk/webhooks.d.ts.map +0 -1
  540. package/sdk/webhooks.js +0 -22
  541. package/sdk/webhooks.js.map +0 -1
  542. package/src/funcs/integrationsWebhooksRetrieve.ts +0 -238
  543. package/src/funcs/notificationsStatsGraph.ts +0 -230
  544. package/src/funcs/notificationsStatsRetrieve.ts +0 -218
  545. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +0 -234
  546. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +0 -250
  547. package/src/funcs/subscribersList.ts +0 -305
  548. package/src/funcs/subscribersUpsert.ts +0 -240
  549. package/src/mcp-server/tools/integrationsWebhooksRetrieve.ts +0 -39
  550. package/src/mcp-server/tools/notificationsStatsGraph.ts +0 -37
  551. package/src/mcp-server/tools/notificationsStatsRetrieve.ts +0 -35
  552. package/src/mcp-server/tools/subscribersAuthenticationChatAccessOauth.ts +0 -36
  553. package/src/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.ts +0 -38
  554. package/src/mcp-server/tools/subscribersList.ts +0 -41
  555. package/src/mcp-server/tools/subscribersUpsert.ts +0 -43
  556. package/src/models/components/activitygraphstatesresponse.ts +0 -118
  557. package/src/models/components/activitystatsresponsedto.ts +0 -70
  558. package/src/models/components/updatesubscriberrequestdto.ts +0 -124
  559. package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +0 -182
  560. package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +0 -183
  561. package/src/models/operations/notificationscontrollergetactivitystats.ts +0 -179
  562. package/src/models/operations/subscribersv1controllerchataccessoauth.ts +0 -200
  563. package/src/models/operations/subscribersv1controllerchatoauthcallback.ts +0 -281
  564. package/src/models/operations/subscribersv1controllerlistsubscribers.ts +0 -283
  565. package/src/models/operations/subscribersv1controllerupdatesubscriber.ts +0 -191
  566. package/src/sdk/authentication.ts +0 -48
  567. package/src/sdk/stats.ts +0 -41
  568. package/src/sdk/webhooks.ts +0 -29
package/src/sdk/topics.ts CHANGED
@@ -26,7 +26,12 @@ export class Topics extends ClientSDK {
26
26
  }
27
27
 
28
28
  /**
29
- * Get topics list
29
+ * List all topics
30
+ *
31
+ * @remarks
32
+ * This api returns a paginated list of topics.
33
+ * Topics can be filtered by **key**, **name**, or **includeCursor** to paginate through the list.
34
+ * Checkout all available filters in the query section.
30
35
  */
31
36
  async list(
32
37
  request: operations.TopicsControllerListTopicsRequest,
@@ -40,7 +45,7 @@ export class Topics extends ClientSDK {
40
45
  }
41
46
 
42
47
  /**
43
- * Create or update a topic
48
+ * Create a topic
44
49
  *
45
50
  * @remarks
46
51
  * Creates a new topic if it does not exist, or updates an existing topic if it already exists
@@ -59,7 +64,10 @@ export class Topics extends ClientSDK {
59
64
  }
60
65
 
61
66
  /**
62
- * Get topic by key
67
+ * Retrieve a topic
68
+ *
69
+ * @remarks
70
+ * Retrieve a topic by its unique key identifier **topicKey**
63
71
  */
64
72
  async get(
65
73
  topicKey: string,
@@ -75,7 +83,10 @@ export class Topics extends ClientSDK {
75
83
  }
76
84
 
77
85
  /**
78
- * Update topic by key
86
+ * Update a topic
87
+ *
88
+ * @remarks
89
+ * Update a topic name by its unique key identifier **topicKey**
79
90
  */
80
91
  async update(
81
92
  updateTopicRequestDto: components.UpdateTopicRequestDto,
@@ -93,7 +104,11 @@ export class Topics extends ClientSDK {
93
104
  }
94
105
 
95
106
  /**
96
- * Delete topic by key
107
+ * Delete a topic
108
+ *
109
+ * @remarks
110
+ * Delete a topic by its unique key identifier **topicKey**.
111
+ * This action is irreversible and will remove all subscriptions to the topic.
97
112
  */
98
113
  async delete(
99
114
  topicKey: string,
@@ -1,183 +0,0 @@
1
- # Authentication
2
- (*subscribers.authentication*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [chatAccessOauth](#chataccessoauth) - Handle chat oauth
9
- * [chatAccessOauthCallBack](#chataccessoauthcallback) - Handle providers oauth redirect
10
-
11
- ## chatAccessOauth
12
-
13
- Handle chat oauth
14
-
15
- ### Example Usage
16
-
17
- ```typescript
18
- import { Novu } from "@novu/api";
19
-
20
- const novu = new Novu({
21
- secretKey: "YOUR_SECRET_KEY_HERE",
22
- });
23
-
24
- async function run() {
25
- const result = await novu.subscribers.authentication.chatAccessOauth({
26
- subscriberId: "<id>",
27
- providerId: "<id>",
28
- hmacHash: "<value>",
29
- environmentId: "<id>",
30
- });
31
-
32
- // Handle the result
33
- console.log(result);
34
- }
35
-
36
- run();
37
- ```
38
-
39
- ### Standalone function
40
-
41
- The standalone function version of this method:
42
-
43
- ```typescript
44
- import { NovuCore } from "@novu/api/core.js";
45
- import { subscribersAuthenticationChatAccessOauth } from "@novu/api/funcs/subscribersAuthenticationChatAccessOauth.js";
46
-
47
- // Use `NovuCore` for best tree-shaking performance.
48
- // You can create one instance of it to use across an application.
49
- const novu = new NovuCore({
50
- secretKey: "YOUR_SECRET_KEY_HERE",
51
- });
52
-
53
- async function run() {
54
- const res = await subscribersAuthenticationChatAccessOauth(novu, {
55
- subscriberId: "<id>",
56
- providerId: "<id>",
57
- hmacHash: "<value>",
58
- environmentId: "<id>",
59
- });
60
-
61
- if (!res.ok) {
62
- throw res.error;
63
- }
64
-
65
- const { value: result } = res;
66
-
67
- // Handle the result
68
- console.log(result);
69
- }
70
-
71
- run();
72
- ```
73
-
74
- ### Parameters
75
-
76
- | Parameter | Type | Required | Description |
77
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
78
- | `request` | [operations.SubscribersV1ControllerChatAccessOauthRequest](../../models/operations/subscribersv1controllerchataccessoauthrequest.md) | :heavy_check_mark: | The request object to use for the request. |
79
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
80
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
81
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
82
-
83
- ### Response
84
-
85
- **Promise\<[operations.SubscribersV1ControllerChatAccessOauthResponse](../../models/operations/subscribersv1controllerchataccessoauthresponse.md)\>**
86
-
87
- ### Errors
88
-
89
- | Error Type | Status Code | Content Type |
90
- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
91
- | errors.ErrorDto | 414 | application/json |
92
- | errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
93
- | errors.ValidationErrorDto | 422 | application/json |
94
- | errors.ErrorDto | 500 | application/json |
95
- | errors.SDKError | 4XX, 5XX | \*/\* |
96
-
97
- ## chatAccessOauthCallBack
98
-
99
- Handle providers oauth redirect
100
-
101
- ### Example Usage
102
-
103
- ```typescript
104
- import { Novu } from "@novu/api";
105
-
106
- const novu = new Novu({
107
- secretKey: "YOUR_SECRET_KEY_HERE",
108
- });
109
-
110
- async function run() {
111
- const result = await novu.subscribers.authentication.chatAccessOauthCallBack({
112
- subscriberId: "<id>",
113
- providerId: "<id>",
114
- hmacHash: "<value>",
115
- environmentId: "<id>",
116
- code: "<value>",
117
- });
118
-
119
- // Handle the result
120
- console.log(result);
121
- }
122
-
123
- run();
124
- ```
125
-
126
- ### Standalone function
127
-
128
- The standalone function version of this method:
129
-
130
- ```typescript
131
- import { NovuCore } from "@novu/api/core.js";
132
- import { subscribersAuthenticationChatAccessOauthCallBack } from "@novu/api/funcs/subscribersAuthenticationChatAccessOauthCallBack.js";
133
-
134
- // Use `NovuCore` for best tree-shaking performance.
135
- // You can create one instance of it to use across an application.
136
- const novu = new NovuCore({
137
- secretKey: "YOUR_SECRET_KEY_HERE",
138
- });
139
-
140
- async function run() {
141
- const res = await subscribersAuthenticationChatAccessOauthCallBack(novu, {
142
- subscriberId: "<id>",
143
- providerId: "<id>",
144
- hmacHash: "<value>",
145
- environmentId: "<id>",
146
- code: "<value>",
147
- });
148
-
149
- if (!res.ok) {
150
- throw res.error;
151
- }
152
-
153
- const { value: result } = res;
154
-
155
- // Handle the result
156
- console.log(result);
157
- }
158
-
159
- run();
160
- ```
161
-
162
- ### Parameters
163
-
164
- | Parameter | Type | Required | Description |
165
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
166
- | `request` | [operations.SubscribersV1ControllerChatOauthCallbackRequest](../../models/operations/subscribersv1controllerchatoauthcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. |
167
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
168
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
169
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
170
-
171
- ### Response
172
-
173
- **Promise\<[operations.SubscribersV1ControllerChatOauthCallbackResponse](../../models/operations/subscribersv1controllerchatoauthcallbackresponse.md)\>**
174
-
175
- ### Errors
176
-
177
- | Error Type | Status Code | Content Type |
178
- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
179
- | errors.ErrorDto | 414 | application/json |
180
- | errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
181
- | errors.ValidationErrorDto | 422 | application/json |
182
- | errors.ErrorDto | 500 | application/json |
183
- | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -1,162 +0,0 @@
1
- # Stats
2
- (*notifications.stats*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [graph](#graph) - Get notification graph statistics
9
- * [retrieve](#retrieve) - Get notification statistics
10
-
11
- ## graph
12
-
13
- Get notification graph statistics
14
-
15
- ### Example Usage
16
-
17
- ```typescript
18
- import { Novu } from "@novu/api";
19
-
20
- const novu = new Novu({
21
- secretKey: "YOUR_SECRET_KEY_HERE",
22
- });
23
-
24
- async function run() {
25
- const result = await novu.notifications.stats.graph();
26
-
27
- // Handle the result
28
- console.log(result);
29
- }
30
-
31
- run();
32
- ```
33
-
34
- ### Standalone function
35
-
36
- The standalone function version of this method:
37
-
38
- ```typescript
39
- import { NovuCore } from "@novu/api/core.js";
40
- import { notificationsStatsGraph } from "@novu/api/funcs/notificationsStatsGraph.js";
41
-
42
- // Use `NovuCore` for best tree-shaking performance.
43
- // You can create one instance of it to use across an application.
44
- const novu = new NovuCore({
45
- secretKey: "YOUR_SECRET_KEY_HERE",
46
- });
47
-
48
- async function run() {
49
- const res = await notificationsStatsGraph(novu);
50
-
51
- if (!res.ok) {
52
- throw res.error;
53
- }
54
-
55
- const { value: result } = res;
56
-
57
- // Handle the result
58
- console.log(result);
59
- }
60
-
61
- run();
62
- ```
63
-
64
- ### Parameters
65
-
66
- | Parameter | Type | Required | Description |
67
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
68
- | `days` | *number* | :heavy_minus_sign: | N/A |
69
- | `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
70
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
71
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
72
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
73
-
74
- ### Response
75
-
76
- **Promise\<[operations.NotificationsControllerGetActivityGraphStatsResponse](../../models/operations/notificationscontrollergetactivitygraphstatsresponse.md)\>**
77
-
78
- ### Errors
79
-
80
- | Error Type | Status Code | Content Type |
81
- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
82
- | errors.ErrorDto | 414 | application/json |
83
- | errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
84
- | errors.ValidationErrorDto | 422 | application/json |
85
- | errors.ErrorDto | 500 | application/json |
86
- | errors.SDKError | 4XX, 5XX | \*/\* |
87
-
88
- ## retrieve
89
-
90
- Get notification statistics
91
-
92
- ### Example Usage
93
-
94
- ```typescript
95
- import { Novu } from "@novu/api";
96
-
97
- const novu = new Novu({
98
- secretKey: "YOUR_SECRET_KEY_HERE",
99
- });
100
-
101
- async function run() {
102
- const result = await novu.notifications.stats.retrieve();
103
-
104
- // Handle the result
105
- console.log(result);
106
- }
107
-
108
- run();
109
- ```
110
-
111
- ### Standalone function
112
-
113
- The standalone function version of this method:
114
-
115
- ```typescript
116
- import { NovuCore } from "@novu/api/core.js";
117
- import { notificationsStatsRetrieve } from "@novu/api/funcs/notificationsStatsRetrieve.js";
118
-
119
- // Use `NovuCore` for best tree-shaking performance.
120
- // You can create one instance of it to use across an application.
121
- const novu = new NovuCore({
122
- secretKey: "YOUR_SECRET_KEY_HERE",
123
- });
124
-
125
- async function run() {
126
- const res = await notificationsStatsRetrieve(novu);
127
-
128
- if (!res.ok) {
129
- throw res.error;
130
- }
131
-
132
- const { value: result } = res;
133
-
134
- // Handle the result
135
- console.log(result);
136
- }
137
-
138
- run();
139
- ```
140
-
141
- ### Parameters
142
-
143
- | Parameter | Type | Required | Description |
144
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
145
- | `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
146
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
147
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
148
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
149
-
150
- ### Response
151
-
152
- **Promise\<[operations.NotificationsControllerGetActivityStatsResponse](../../models/operations/notificationscontrollergetactivitystatsresponse.md)\>**
153
-
154
- ### Errors
155
-
156
- | Error Type | Status Code | Content Type |
157
- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
158
- | errors.ErrorDto | 414 | application/json |
159
- | errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
160
- | errors.ValidationErrorDto | 422 | application/json |
161
- | errors.ErrorDto | 500 | application/json |
162
- | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -1,85 +0,0 @@
1
- # Webhooks
2
- (*integrations.webhooks*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [retrieve](#retrieve) - Get webhook support status for provider
9
-
10
- ## retrieve
11
-
12
- Return the status of the webhook for this provider, if it is supported or if it is not based on a boolean value
13
-
14
- ### Example Usage
15
-
16
- ```typescript
17
- import { Novu } from "@novu/api";
18
-
19
- const novu = new Novu({
20
- secretKey: "YOUR_SECRET_KEY_HERE",
21
- });
22
-
23
- async function run() {
24
- const result = await novu.integrations.webhooks.retrieve("<id>");
25
-
26
- // Handle the result
27
- console.log(result);
28
- }
29
-
30
- run();
31
- ```
32
-
33
- ### Standalone function
34
-
35
- The standalone function version of this method:
36
-
37
- ```typescript
38
- import { NovuCore } from "@novu/api/core.js";
39
- import { integrationsWebhooksRetrieve } from "@novu/api/funcs/integrationsWebhooksRetrieve.js";
40
-
41
- // Use `NovuCore` for best tree-shaking performance.
42
- // You can create one instance of it to use across an application.
43
- const novu = new NovuCore({
44
- secretKey: "YOUR_SECRET_KEY_HERE",
45
- });
46
-
47
- async function run() {
48
- const res = await integrationsWebhooksRetrieve(novu, "<id>");
49
-
50
- if (!res.ok) {
51
- throw res.error;
52
- }
53
-
54
- const { value: result } = res;
55
-
56
- // Handle the result
57
- console.log(result);
58
- }
59
-
60
- run();
61
- ```
62
-
63
- ### Parameters
64
-
65
- | Parameter | Type | Required | Description |
66
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
67
- | `providerOrIntegrationId` | *string* | :heavy_check_mark: | N/A |
68
- | `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
69
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
70
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
71
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
72
-
73
- ### Response
74
-
75
- **Promise\<[operations.IntegrationsControllerGetWebhookSupportStatusResponse](../../models/operations/integrationscontrollergetwebhooksupportstatusresponse.md)\>**
76
-
77
- ### Errors
78
-
79
- | Error Type | Status Code | Content Type |
80
- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
81
- | errors.ErrorDto | 414 | application/json |
82
- | errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
83
- | errors.ValidationErrorDto | 422 | application/json |
84
- | errors.ErrorDto | 500 | application/json |
85
- | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -1,17 +0,0 @@
1
- import { NovuCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
- import * as errors from "../models/errors/index.js";
5
- import { SDKError } from "../models/errors/sdkerror.js";
6
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { APIPromise } from "../types/async.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * Get webhook support status for provider
12
- *
13
- * @remarks
14
- * Return the status of the webhook for this provider, if it is supported or if it is not based on a boolean value
15
- */
16
- export declare function integrationsWebhooksRetrieve(client: NovuCore, providerOrIntegrationId: string, idempotencyKey?: string | undefined, options?: RequestOptions): APIPromise<Result<operations.IntegrationsControllerGetWebhookSupportStatusResponse, errors.ErrorDto | errors.ErrorDto | errors.ValidationErrorDto | errors.ErrorDto | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
17
- //# sourceMappingURL=integrationsWebhooksRetrieve.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integrationsWebhooksRetrieve.d.ts","sourceRoot":"","sources":["../src/funcs/integrationsWebhooksRetrieve.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,QAAQ,EAChB,uBAAuB,EAAE,MAAM,EAC/B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,qDAAqD,EAC9D,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,QAAQ,GACf,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAOA"}