@novu/api 1.2.0 → 1.3.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 (304) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +48 -74
  3. package/bin/mcp-server.js +289 -23
  4. package/bin/mcp-server.js.map +59 -57
  5. package/docs/sdks/credentials/README.md +15 -27
  6. package/docs/sdks/integrations/README.md +30 -54
  7. package/docs/sdks/messages/README.md +15 -27
  8. package/docs/sdks/notifications/README.md +10 -18
  9. package/docs/sdks/novu/README.md +44 -57
  10. package/docs/sdks/novumessages/README.md +15 -27
  11. package/docs/sdks/novunotifications/README.md +10 -18
  12. package/docs/sdks/novusubscribers/README.md +5 -9
  13. package/docs/sdks/novutopics/README.md +5 -9
  14. package/docs/sdks/preferences/README.md +10 -18
  15. package/docs/sdks/properties/README.md +5 -9
  16. package/docs/sdks/subscribers/README.md +34 -57
  17. package/docs/sdks/subscriptions/README.md +16 -28
  18. package/docs/sdks/topics/README.md +25 -45
  19. package/funcs/cancel.d.ts +1 -1
  20. package/funcs/cancel.d.ts.map +1 -1
  21. package/funcs/cancel.js +2 -0
  22. package/funcs/cancel.js.map +1 -1
  23. package/funcs/integrationsCreate.d.ts +1 -1
  24. package/funcs/integrationsCreate.d.ts.map +1 -1
  25. package/funcs/integrationsCreate.js +2 -0
  26. package/funcs/integrationsCreate.js.map +1 -1
  27. package/funcs/integrationsDelete.d.ts +1 -1
  28. package/funcs/integrationsDelete.d.ts.map +1 -1
  29. package/funcs/integrationsDelete.js +2 -0
  30. package/funcs/integrationsDelete.js.map +1 -1
  31. package/funcs/integrationsList.d.ts +1 -1
  32. package/funcs/integrationsList.d.ts.map +1 -1
  33. package/funcs/integrationsList.js +2 -0
  34. package/funcs/integrationsList.js.map +1 -1
  35. package/funcs/integrationsListActive.d.ts +1 -1
  36. package/funcs/integrationsListActive.d.ts.map +1 -1
  37. package/funcs/integrationsListActive.js +2 -0
  38. package/funcs/integrationsListActive.js.map +1 -1
  39. package/funcs/integrationsSetAsPrimary.d.ts +1 -1
  40. package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
  41. package/funcs/integrationsSetAsPrimary.js +2 -0
  42. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  43. package/funcs/integrationsUpdate.d.ts +1 -1
  44. package/funcs/integrationsUpdate.d.ts.map +1 -1
  45. package/funcs/integrationsUpdate.js +2 -0
  46. package/funcs/integrationsUpdate.js.map +1 -1
  47. package/funcs/messagesDelete.d.ts +1 -1
  48. package/funcs/messagesDelete.d.ts.map +1 -1
  49. package/funcs/messagesDelete.js +2 -0
  50. package/funcs/messagesDelete.js.map +1 -1
  51. package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
  52. package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
  53. package/funcs/messagesDeleteByTransactionId.js +2 -0
  54. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  55. package/funcs/messagesRetrieve.d.ts +1 -1
  56. package/funcs/messagesRetrieve.d.ts.map +1 -1
  57. package/funcs/messagesRetrieve.js +2 -0
  58. package/funcs/messagesRetrieve.js.map +1 -1
  59. package/funcs/notificationsList.d.ts +1 -1
  60. package/funcs/notificationsList.d.ts.map +1 -1
  61. package/funcs/notificationsList.js +2 -0
  62. package/funcs/notificationsList.js.map +1 -1
  63. package/funcs/notificationsRetrieve.d.ts +1 -1
  64. package/funcs/notificationsRetrieve.d.ts.map +1 -1
  65. package/funcs/notificationsRetrieve.js +2 -0
  66. package/funcs/notificationsRetrieve.js.map +1 -1
  67. package/funcs/subscribersCreate.d.ts +1 -1
  68. package/funcs/subscribersCreate.d.ts.map +1 -1
  69. package/funcs/subscribersCreate.js +2 -0
  70. package/funcs/subscribersCreate.js.map +1 -1
  71. package/funcs/subscribersCreateBulk.d.ts +1 -1
  72. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  73. package/funcs/subscribersCreateBulk.js +2 -0
  74. package/funcs/subscribersCreateBulk.js.map +1 -1
  75. package/funcs/subscribersCredentialsAppend.d.ts +1 -1
  76. package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
  77. package/funcs/subscribersCredentialsAppend.js +2 -0
  78. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  79. package/funcs/subscribersCredentialsDelete.d.ts +1 -1
  80. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  81. package/funcs/subscribersCredentialsDelete.js +2 -0
  82. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  83. package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
  84. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  85. package/funcs/subscribersCredentialsUpdate.js +2 -0
  86. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  87. package/funcs/subscribersDelete.d.ts +4 -3
  88. package/funcs/subscribersDelete.d.ts.map +1 -1
  89. package/funcs/subscribersDelete.js +5 -2
  90. package/funcs/subscribersDelete.js.map +1 -1
  91. package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
  92. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  93. package/funcs/subscribersMessagesMarkAll.js +2 -0
  94. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  95. package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
  96. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  97. package/funcs/subscribersMessagesMarkAllAs.js +2 -0
  98. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  99. package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
  100. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  101. package/funcs/subscribersMessagesUpdateAsSeen.js +2 -0
  102. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  103. package/funcs/subscribersNotificationsFeed.d.ts +1 -1
  104. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  105. package/funcs/subscribersNotificationsFeed.js +2 -0
  106. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  107. package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
  108. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  109. package/funcs/subscribersNotificationsUnseenCount.js +2 -0
  110. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  111. package/funcs/subscribersPatch.d.ts +1 -1
  112. package/funcs/subscribersPatch.d.ts.map +1 -1
  113. package/funcs/subscribersPatch.js +2 -0
  114. package/funcs/subscribersPatch.js.map +1 -1
  115. package/funcs/subscribersPreferencesList.d.ts +1 -1
  116. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  117. package/funcs/subscribersPreferencesList.js +2 -0
  118. package/funcs/subscribersPreferencesList.js.map +1 -1
  119. package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
  120. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  121. package/funcs/subscribersPreferencesUpdate.js +2 -0
  122. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  123. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
  124. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
  125. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +2 -0
  126. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  127. package/funcs/subscribersRetrieve.d.ts +2 -2
  128. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  129. package/funcs/subscribersRetrieve.js +3 -1
  130. package/funcs/subscribersRetrieve.js.map +1 -1
  131. package/funcs/subscribersSearch.d.ts +1 -1
  132. package/funcs/subscribersSearch.d.ts.map +1 -1
  133. package/funcs/subscribersSearch.js +2 -0
  134. package/funcs/subscribersSearch.js.map +1 -1
  135. package/funcs/subscribersTopicsList.d.ts +1 -1
  136. package/funcs/subscribersTopicsList.d.ts.map +1 -1
  137. package/funcs/subscribersTopicsList.js +2 -0
  138. package/funcs/subscribersTopicsList.js.map +1 -1
  139. package/funcs/topicsCreate.d.ts +1 -1
  140. package/funcs/topicsCreate.d.ts.map +1 -1
  141. package/funcs/topicsCreate.js +2 -0
  142. package/funcs/topicsCreate.js.map +1 -1
  143. package/funcs/topicsDelete.d.ts +1 -1
  144. package/funcs/topicsDelete.d.ts.map +1 -1
  145. package/funcs/topicsDelete.js +2 -0
  146. package/funcs/topicsDelete.js.map +1 -1
  147. package/funcs/topicsGet.d.ts +1 -1
  148. package/funcs/topicsGet.d.ts.map +1 -1
  149. package/funcs/topicsGet.js +2 -0
  150. package/funcs/topicsGet.js.map +1 -1
  151. package/funcs/topicsList.d.ts +1 -1
  152. package/funcs/topicsList.d.ts.map +1 -1
  153. package/funcs/topicsList.js +2 -0
  154. package/funcs/topicsList.js.map +1 -1
  155. package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
  156. package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
  157. package/funcs/topicsSubscribersRetrieve.js +2 -0
  158. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  159. package/funcs/topicsSubscriptionsCreate.d.ts +1 -1
  160. package/funcs/topicsSubscriptionsCreate.d.ts.map +1 -1
  161. package/funcs/topicsSubscriptionsCreate.js +2 -0
  162. package/funcs/topicsSubscriptionsCreate.js.map +1 -1
  163. package/funcs/topicsSubscriptionsDelete.d.ts +1 -1
  164. package/funcs/topicsSubscriptionsDelete.d.ts.map +1 -1
  165. package/funcs/topicsSubscriptionsDelete.js +2 -0
  166. package/funcs/topicsSubscriptionsDelete.js.map +1 -1
  167. package/funcs/topicsSubscriptionsList.d.ts +2 -2
  168. package/funcs/topicsSubscriptionsList.d.ts.map +1 -1
  169. package/funcs/topicsSubscriptionsList.js +3 -1
  170. package/funcs/topicsSubscriptionsList.js.map +1 -1
  171. package/funcs/topicsUpdate.d.ts +1 -1
  172. package/funcs/topicsUpdate.d.ts.map +1 -1
  173. package/funcs/topicsUpdate.js +2 -0
  174. package/funcs/topicsUpdate.js.map +1 -1
  175. package/funcs/trigger.d.ts +1 -1
  176. package/funcs/trigger.d.ts.map +1 -1
  177. package/funcs/trigger.js +5 -1
  178. package/funcs/trigger.js.map +1 -1
  179. package/funcs/triggerBroadcast.d.ts +1 -1
  180. package/funcs/triggerBroadcast.d.ts.map +1 -1
  181. package/funcs/triggerBroadcast.js +5 -1
  182. package/funcs/triggerBroadcast.js.map +1 -1
  183. package/funcs/triggerBulk.d.ts +1 -1
  184. package/funcs/triggerBulk.d.ts.map +1 -1
  185. package/funcs/triggerBulk.js +5 -1
  186. package/funcs/triggerBulk.js.map +1 -1
  187. package/hooks/types.d.ts +2 -0
  188. package/hooks/types.d.ts.map +1 -1
  189. package/index.d.ts +2 -0
  190. package/index.d.ts.map +1 -1
  191. package/index.js +3 -1
  192. package/index.js.map +1 -1
  193. package/jsr.json +1 -1
  194. package/lib/config.d.ts +7 -3
  195. package/lib/config.d.ts.map +1 -1
  196. package/lib/config.js +3 -3
  197. package/lib/config.js.map +1 -1
  198. package/lib/sdks.d.ts +1 -0
  199. package/lib/sdks.d.ts.map +1 -1
  200. package/lib/sdks.js +3 -3
  201. package/lib/sdks.js.map +1 -1
  202. package/mcp-server/mcp-server.js +1 -1
  203. package/mcp-server/server.js +1 -1
  204. package/mcp-server/tools/subscribersDelete.d.ts.map +1 -1
  205. package/mcp-server/tools/subscribersDelete.js +3 -2
  206. package/mcp-server/tools/subscribersDelete.js.map +1 -1
  207. package/mcp-server/tools/subscribersRetrieve.js +1 -1
  208. package/mcp-server/tools/topicsSubscriptionsList.js +1 -1
  209. package/models/components/index.d.ts +1 -0
  210. package/models/components/index.d.ts.map +1 -1
  211. package/models/components/index.js +1 -0
  212. package/models/components/index.js.map +1 -1
  213. package/models/components/notificationfeeditemdto.d.ts +2 -2
  214. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  215. package/models/components/notificationfeeditemdto.js +2 -2
  216. package/models/components/notificationfeeditemdto.js.map +1 -1
  217. package/models/components/payloadvalidationerrordto.d.ts +125 -0
  218. package/models/components/payloadvalidationerrordto.d.ts.map +1 -0
  219. package/models/components/payloadvalidationerrordto.js +160 -0
  220. package/models/components/payloadvalidationerrordto.js.map +1 -0
  221. package/models/components/updateintegrationrequestdto.d.ts +0 -5
  222. package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
  223. package/models/components/updateintegrationrequestdto.js +0 -2
  224. package/models/components/updateintegrationrequestdto.js.map +1 -1
  225. package/models/errors/index.d.ts +1 -0
  226. package/models/errors/index.d.ts.map +1 -1
  227. package/models/errors/index.js +1 -0
  228. package/models/errors/index.js.map +1 -1
  229. package/models/errors/payloadvalidationexceptiondto.d.ts +222 -0
  230. package/models/errors/payloadvalidationexceptiondto.d.ts.map +1 -0
  231. package/models/errors/payloadvalidationexceptiondto.js +212 -0
  232. package/models/errors/payloadvalidationexceptiondto.js.map +1 -0
  233. package/models/errors/sdkerror.d.ts +14 -2
  234. package/models/errors/sdkerror.d.ts.map +1 -1
  235. package/models/errors/sdkerror.js +1 -1
  236. package/models/errors/sdkerror.js.map +1 -1
  237. package/package.json +1 -1
  238. package/sdk/subscribers.d.ts +4 -3
  239. package/sdk/subscribers.d.ts.map +1 -1
  240. package/sdk/subscribers.js +4 -3
  241. package/sdk/subscribers.js.map +1 -1
  242. package/sdk/subscriptions.d.ts +1 -1
  243. package/sdk/subscriptions.js +1 -1
  244. package/sources/json-development.json +227 -46
  245. package/src/funcs/cancel.ts +2 -6
  246. package/src/funcs/integrationsCreate.ts +2 -6
  247. package/src/funcs/integrationsDelete.ts +2 -6
  248. package/src/funcs/integrationsList.ts +2 -6
  249. package/src/funcs/integrationsListActive.ts +2 -6
  250. package/src/funcs/integrationsSetAsPrimary.ts +2 -6
  251. package/src/funcs/integrationsUpdate.ts +2 -6
  252. package/src/funcs/messagesDelete.ts +2 -6
  253. package/src/funcs/messagesDeleteByTransactionId.ts +2 -6
  254. package/src/funcs/messagesRetrieve.ts +2 -6
  255. package/src/funcs/notificationsList.ts +2 -6
  256. package/src/funcs/notificationsRetrieve.ts +2 -6
  257. package/src/funcs/subscribersCreate.ts +2 -6
  258. package/src/funcs/subscribersCreateBulk.ts +2 -6
  259. package/src/funcs/subscribersCredentialsAppend.ts +2 -6
  260. package/src/funcs/subscribersCredentialsDelete.ts +2 -6
  261. package/src/funcs/subscribersCredentialsUpdate.ts +2 -6
  262. package/src/funcs/subscribersDelete.ts +5 -8
  263. package/src/funcs/subscribersMessagesMarkAll.ts +2 -6
  264. package/src/funcs/subscribersMessagesMarkAllAs.ts +2 -6
  265. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +2 -6
  266. package/src/funcs/subscribersNotificationsFeed.ts +2 -6
  267. package/src/funcs/subscribersNotificationsUnseenCount.ts +2 -6
  268. package/src/funcs/subscribersPatch.ts +2 -6
  269. package/src/funcs/subscribersPreferencesList.ts +2 -6
  270. package/src/funcs/subscribersPreferencesUpdate.ts +2 -6
  271. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +2 -6
  272. package/src/funcs/subscribersRetrieve.ts +3 -7
  273. package/src/funcs/subscribersSearch.ts +2 -6
  274. package/src/funcs/subscribersTopicsList.ts +2 -6
  275. package/src/funcs/topicsCreate.ts +2 -6
  276. package/src/funcs/topicsDelete.ts +2 -6
  277. package/src/funcs/topicsGet.ts +2 -6
  278. package/src/funcs/topicsList.ts +2 -6
  279. package/src/funcs/topicsSubscribersRetrieve.ts +2 -6
  280. package/src/funcs/topicsSubscriptionsCreate.ts +2 -6
  281. package/src/funcs/topicsSubscriptionsDelete.ts +2 -6
  282. package/src/funcs/topicsSubscriptionsList.ts +3 -7
  283. package/src/funcs/topicsUpdate.ts +2 -6
  284. package/src/funcs/trigger.ts +9 -7
  285. package/src/funcs/triggerBroadcast.ts +9 -7
  286. package/src/funcs/triggerBulk.ts +9 -7
  287. package/src/hooks/types.ts +2 -0
  288. package/src/index.ts +2 -0
  289. package/src/lib/config.ts +7 -3
  290. package/src/lib/sdks.ts +10 -4
  291. package/src/mcp-server/mcp-server.ts +1 -1
  292. package/src/mcp-server/server.ts +1 -1
  293. package/src/mcp-server/tools/subscribersDelete.ts +3 -2
  294. package/src/mcp-server/tools/subscribersRetrieve.ts +1 -1
  295. package/src/mcp-server/tools/topicsSubscriptionsList.ts +1 -1
  296. package/src/models/components/index.ts +1 -0
  297. package/src/models/components/notificationfeeditemdto.ts +4 -4
  298. package/src/models/components/payloadvalidationerrordto.ts +299 -0
  299. package/src/models/components/updateintegrationrequestdto.ts +0 -7
  300. package/src/models/errors/index.ts +1 -0
  301. package/src/models/errors/payloadvalidationexceptiondto.ts +466 -0
  302. package/src/models/errors/sdkerror.ts +18 -3
  303. package/src/sdk/subscribers.ts +4 -3
  304. package/src/sdk/subscriptions.ts +1 -1
@@ -1060,7 +1060,7 @@
1060
1060
  "operationId": "SubscribersController_getSubscriber",
1061
1061
  "x-speakeasy-name-override": "retrieve",
1062
1062
  "summary": "Retrieve a subscriber",
1063
- "description": "Retrive a subscriber by its unique key identifier **subscriberId**. \n **subscriberId** field is required.",
1063
+ "description": "Retrieve a subscriber by its unique key identifier **subscriberId**. \n **subscriberId** field is required.",
1064
1064
  "parameters": [
1065
1065
  {
1066
1066
  "name": "subscriberId",
@@ -2033,8 +2033,8 @@
2033
2033
  "delete": {
2034
2034
  "operationId": "SubscribersController_removeSubscriber",
2035
2035
  "x-speakeasy-name-override": "delete",
2036
- "summary": "Delete subscriber",
2037
- "description": "Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions",
2036
+ "summary": "Delete a subscriber",
2037
+ "description": "Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions. \n **subscriberId** is a required field.",
2038
2038
  "parameters": [
2039
2039
  {
2040
2040
  "name": "subscriberId",
@@ -6580,7 +6580,7 @@
6580
6580
  "operationId": "TopicsController_listTopicSubscriptions",
6581
6581
  "x-speakeasy-group": "Topics.Subscriptions",
6582
6582
  "summary": "List topic subscriptions",
6583
- "description": "List all topics that a subscriber is subscribed to.\n Checkout all available filters in the query section.",
6583
+ "description": "List all subscriptions of subscribers for a topic.\n Checkout all available filters in the query section.",
6584
6584
  "parameters": [
6585
6585
  {
6586
6586
  "name": "topicKey",
@@ -8182,7 +8182,7 @@
8182
8182
  }
8183
8183
  },
8184
8184
  "400": {
8185
- "description": "Bad Request",
8185
+ "description": "Payload validation failed - returned when payload does not match the workflow schema",
8186
8186
  "headers": {
8187
8187
  "Content-Type": {
8188
8188
  "$ref": "#/components/headers/Content-Type"
@@ -8209,7 +8209,7 @@
8209
8209
  "content": {
8210
8210
  "application/json": {
8211
8211
  "schema": {
8212
- "$ref": "#/components/schemas/ErrorDto"
8212
+ "$ref": "#/components/schemas/PayloadValidationExceptionDto"
8213
8213
  }
8214
8214
  }
8215
8215
  }
@@ -9193,7 +9193,7 @@
9193
9193
  }
9194
9194
  },
9195
9195
  "400": {
9196
- "description": "Bad Request",
9196
+ "description": "Payload validation failed - returned when payload does not match the workflow schema",
9197
9197
  "headers": {
9198
9198
  "Content-Type": {
9199
9199
  "$ref": "#/components/headers/Content-Type"
@@ -9220,7 +9220,7 @@
9220
9220
  "content": {
9221
9221
  "application/json": {
9222
9222
  "schema": {
9223
- "$ref": "#/components/schemas/ErrorDto"
9223
+ "$ref": "#/components/schemas/PayloadValidationExceptionDto"
9224
9224
  }
9225
9225
  }
9226
9226
  }
@@ -9686,7 +9686,7 @@
9686
9686
  }
9687
9687
  },
9688
9688
  "400": {
9689
- "description": "Bad Request",
9689
+ "description": "Payload validation failed - returned when any event payload does not match the workflow schema",
9690
9690
  "headers": {
9691
9691
  "Content-Type": {
9692
9692
  "$ref": "#/components/headers/Content-Type"
@@ -9713,7 +9713,7 @@
9713
9713
  "content": {
9714
9714
  "application/json": {
9715
9715
  "schema": {
9716
- "$ref": "#/components/schemas/ErrorDto"
9716
+ "$ref": "#/components/schemas/PayloadValidationExceptionDto"
9717
9717
  }
9718
9718
  }
9719
9719
  }
@@ -21499,6 +21499,195 @@
21499
21499
  "color"
21500
21500
  ]
21501
21501
  },
21502
+ "PayloadValidationErrorDto": {
21503
+ "type": "object",
21504
+ "properties": {
21505
+ "field": {
21506
+ "type": "string",
21507
+ "description": "Field path that failed validation",
21508
+ "example": "user.name"
21509
+ },
21510
+ "message": {
21511
+ "type": "string",
21512
+ "description": "Validation error message",
21513
+ "example": "must have required property 'name'"
21514
+ },
21515
+ "value": {
21516
+ "description": "The actual value that failed validation",
21517
+ "oneOf": [
21518
+ {
21519
+ "type": "string",
21520
+ "nullable": true
21521
+ },
21522
+ {
21523
+ "type": "number"
21524
+ },
21525
+ {
21526
+ "type": "boolean"
21527
+ },
21528
+ {
21529
+ "type": "object",
21530
+ "nullable": true
21531
+ },
21532
+ {
21533
+ "type": "array",
21534
+ "items": {
21535
+ "anyOf": [
21536
+ {
21537
+ "type": "string",
21538
+ "nullable": true
21539
+ },
21540
+ {
21541
+ "type": "number"
21542
+ },
21543
+ {
21544
+ "type": "boolean"
21545
+ },
21546
+ {
21547
+ "type": "object",
21548
+ "additionalProperties": true
21549
+ }
21550
+ ]
21551
+ }
21552
+ }
21553
+ ],
21554
+ "example": {
21555
+ "age": 25
21556
+ }
21557
+ },
21558
+ "schemaPath": {
21559
+ "type": "string",
21560
+ "description": "JSON Schema path where the validation failed",
21561
+ "example": "#/required"
21562
+ }
21563
+ },
21564
+ "required": [
21565
+ "field",
21566
+ "message"
21567
+ ]
21568
+ },
21569
+ "PayloadValidationExceptionDto": {
21570
+ "type": "object",
21571
+ "properties": {
21572
+ "statusCode": {
21573
+ "type": "number",
21574
+ "description": "HTTP status code of the error response.",
21575
+ "example": 404
21576
+ },
21577
+ "timestamp": {
21578
+ "type": "string",
21579
+ "description": "Timestamp of when the error occurred.",
21580
+ "example": "2024-12-12T13:00:00Z"
21581
+ },
21582
+ "path": {
21583
+ "type": "string",
21584
+ "description": "The path where the error occurred.",
21585
+ "example": "/api/v1/resource"
21586
+ },
21587
+ "message": {
21588
+ "description": "Value that failed validation",
21589
+ "oneOf": [
21590
+ {
21591
+ "type": "string",
21592
+ "nullable": true
21593
+ },
21594
+ {
21595
+ "type": "number"
21596
+ },
21597
+ {
21598
+ "type": "boolean"
21599
+ },
21600
+ {
21601
+ "type": "object",
21602
+ "nullable": true
21603
+ },
21604
+ {
21605
+ "type": "array",
21606
+ "items": {
21607
+ "anyOf": [
21608
+ {
21609
+ "type": "string",
21610
+ "nullable": true
21611
+ },
21612
+ {
21613
+ "type": "number"
21614
+ },
21615
+ {
21616
+ "type": "boolean"
21617
+ },
21618
+ {
21619
+ "type": "object",
21620
+ "additionalProperties": true
21621
+ }
21622
+ ]
21623
+ }
21624
+ }
21625
+ ],
21626
+ "example": "xx xx xx "
21627
+ },
21628
+ "ctx": {
21629
+ "type": "object",
21630
+ "description": "Optional context object for additional error details.",
21631
+ "additionalProperties": true,
21632
+ "example": {
21633
+ "workflowId": "some_wf_id",
21634
+ "stepId": "some_wf_id"
21635
+ }
21636
+ },
21637
+ "errorId": {
21638
+ "type": "string",
21639
+ "description": "Optional unique identifier for the error, useful for tracking using Sentry and \n New Relic, only available for 500.",
21640
+ "example": "abc123"
21641
+ },
21642
+ "type": {
21643
+ "type": "string",
21644
+ "description": "Type identifier for payload validation errors",
21645
+ "example": "PAYLOAD_VALIDATION_ERROR"
21646
+ },
21647
+ "errors": {
21648
+ "description": "Array of detailed validation errors",
21649
+ "example": [
21650
+ {
21651
+ "field": "user.name",
21652
+ "message": "must have required property 'name'",
21653
+ "value": {
21654
+ "age": 25
21655
+ },
21656
+ "schemaPath": "#/required"
21657
+ }
21658
+ ],
21659
+ "type": "array",
21660
+ "items": {
21661
+ "$ref": "#/components/schemas/PayloadValidationErrorDto"
21662
+ }
21663
+ },
21664
+ "schema": {
21665
+ "type": "object",
21666
+ "description": "The JSON schema that was used for validation",
21667
+ "example": {
21668
+ "type": "object",
21669
+ "properties": {
21670
+ "name": {
21671
+ "type": "string"
21672
+ },
21673
+ "age": {
21674
+ "type": "number"
21675
+ }
21676
+ },
21677
+ "required": [
21678
+ "name"
21679
+ ]
21680
+ }
21681
+ }
21682
+ },
21683
+ "required": [
21684
+ "statusCode",
21685
+ "timestamp",
21686
+ "path",
21687
+ "type",
21688
+ "errors"
21689
+ ]
21690
+ },
21502
21691
  "TriggerEventResponseDto": {
21503
21692
  "type": "object",
21504
21693
  "properties": {
@@ -23111,10 +23300,6 @@
23111
23300
  "credentials": {
23112
23301
  "$ref": "#/components/schemas/CredentialsDto"
23113
23302
  },
23114
- "removeNovuBranding": {
23115
- "type": "boolean",
23116
- "description": "If true, the Novu branding will be removed from the Inbox component"
23117
- },
23118
23303
  "check": {
23119
23304
  "type": "boolean"
23120
23305
  },
@@ -23897,7 +24082,6 @@
23897
24082
  "_id",
23898
24083
  "_templateId",
23899
24084
  "_environmentId",
23900
- "_messageTemplateId",
23901
24085
  "_organizationId",
23902
24086
  "_notificationId",
23903
24087
  "_subscriberId",
@@ -26094,6 +26278,20 @@
26094
26278
  "type": "string",
26095
26279
  "description": "Timestamp of the last workflow trigger",
26096
26280
  "nullable": true
26281
+ },
26282
+ "payloadSchema": {
26283
+ "type": "object",
26284
+ "description": "The payload JSON Schema for the workflow",
26285
+ "nullable": true
26286
+ },
26287
+ "payloadExample": {
26288
+ "type": "object",
26289
+ "description": "Generated payload example based on the payload schema",
26290
+ "nullable": true
26291
+ },
26292
+ "validatePayload": {
26293
+ "type": "boolean",
26294
+ "description": "Whether payload schema validation is enabled"
26097
26295
  }
26098
26296
  },
26099
26297
  "required": [
@@ -26743,6 +26941,12 @@
26743
26941
  }
26744
26942
  ]
26745
26943
  },
26944
+ "schema": {
26945
+ "type": "object",
26946
+ "nullable": true,
26947
+ "description": "The payload schema that was used to generate the preview payload example",
26948
+ "additionalProperties": true
26949
+ },
26746
26950
  "result": {
26747
26951
  "description": "Preview result",
26748
26952
  "oneOf": [
@@ -26893,6 +27097,14 @@
26893
27097
  "items": {
26894
27098
  "type": "string"
26895
27099
  }
27100
+ },
27101
+ "payloadSchema": {
27102
+ "type": "object",
27103
+ "description": "The payload JSON Schema for the workflow"
27104
+ },
27105
+ "validatePayload": {
27106
+ "type": "boolean",
27107
+ "description": "Enable or disable payload schema validation"
26896
27108
  }
26897
27109
  }
26898
27110
  },
@@ -27203,37 +27415,6 @@
27203
27415
  "payload"
27204
27416
  ]
27205
27417
  },
27206
- "GetWebhookPortalTokenResponseDto": {
27207
- "type": "object",
27208
- "properties": {
27209
- "url": {
27210
- "type": "string"
27211
- },
27212
- "token": {
27213
- "type": "string"
27214
- },
27215
- "appId": {
27216
- "type": "string"
27217
- }
27218
- },
27219
- "required": [
27220
- "url",
27221
- "token",
27222
- "appId"
27223
- ]
27224
- },
27225
- "CreateWebhookPortalResponseDto": {
27226
- "type": "object",
27227
- "properties": {
27228
- "appId": {
27229
- "type": "string",
27230
- "description": "The webhook portal application ID"
27231
- }
27232
- },
27233
- "required": [
27234
- "appId"
27235
- ]
27236
- },
27237
27418
  "WebhookUpdatedWorkflowDto": {
27238
27419
  "type": "object",
27239
27420
  "properties": {
@@ -41,9 +41,7 @@ export function cancel(
41
41
  Result<
42
42
  operations.EventsControllerCancelResponse,
43
43
  | errors.ErrorDto
44
- | errors.ErrorDto
45
44
  | errors.ValidationErrorDto
46
- | errors.ErrorDto
47
45
  | SDKError
48
46
  | SDKValidationError
49
47
  | UnexpectedClientError
@@ -71,9 +69,7 @@ async function $do(
71
69
  Result<
72
70
  operations.EventsControllerCancelResponse,
73
71
  | errors.ErrorDto
74
- | errors.ErrorDto
75
72
  | errors.ValidationErrorDto
76
- | errors.ErrorDto
77
73
  | SDKError
78
74
  | SDKValidationError
79
75
  | UnexpectedClientError
@@ -125,6 +121,7 @@ async function $do(
125
121
  const requestSecurity = resolveGlobalSecurity(securityInput);
126
122
 
127
123
  const context = {
124
+ options: client._options,
128
125
  baseURL: options?.serverURL ?? client._baseURL ?? "",
129
126
  operationID: "EventsController_cancel",
130
127
  oAuth2Scopes: [],
@@ -155,6 +152,7 @@ async function $do(
155
152
  path: path,
156
153
  headers: headers,
157
154
  body: body,
155
+ userAgent: client._options.userAgent,
158
156
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
159
157
  }, options);
160
158
  if (!requestRes.ok) {
@@ -196,9 +194,7 @@ async function $do(
196
194
  const [result] = await M.match<
197
195
  operations.EventsControllerCancelResponse,
198
196
  | errors.ErrorDto
199
- | errors.ErrorDto
200
197
  | errors.ValidationErrorDto
201
- | errors.ErrorDto
202
198
  | SDKError
203
199
  | SDKValidationError
204
200
  | UnexpectedClientError
@@ -41,9 +41,7 @@ export function integrationsCreate(
41
41
  Result<
42
42
  operations.IntegrationsControllerCreateIntegrationResponse,
43
43
  | errors.ErrorDto
44
- | errors.ErrorDto
45
44
  | errors.ValidationErrorDto
46
- | errors.ErrorDto
47
45
  | SDKError
48
46
  | SDKValidationError
49
47
  | UnexpectedClientError
@@ -71,9 +69,7 @@ async function $do(
71
69
  Result<
72
70
  operations.IntegrationsControllerCreateIntegrationResponse,
73
71
  | errors.ErrorDto
74
- | errors.ErrorDto
75
72
  | errors.ValidationErrorDto
76
- | errors.ErrorDto
77
73
  | SDKError
78
74
  | SDKValidationError
79
75
  | UnexpectedClientError
@@ -122,6 +118,7 @@ async function $do(
122
118
  const requestSecurity = resolveGlobalSecurity(securityInput);
123
119
 
124
120
  const context = {
121
+ options: client._options,
125
122
  baseURL: options?.serverURL ?? client._baseURL ?? "",
126
123
  operationID: "IntegrationsController_createIntegration",
127
124
  oAuth2Scopes: [],
@@ -152,6 +149,7 @@ async function $do(
152
149
  path: path,
153
150
  headers: headers,
154
151
  body: body,
152
+ userAgent: client._options.userAgent,
155
153
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
156
154
  }, options);
157
155
  if (!requestRes.ok) {
@@ -193,9 +191,7 @@ async function $do(
193
191
  const [result] = await M.match<
194
192
  operations.IntegrationsControllerCreateIntegrationResponse,
195
193
  | errors.ErrorDto
196
- | errors.ErrorDto
197
194
  | errors.ValidationErrorDto
198
- | errors.ErrorDto
199
195
  | SDKError
200
196
  | SDKValidationError
201
197
  | UnexpectedClientError
@@ -40,9 +40,7 @@ export function integrationsDelete(
40
40
  Result<
41
41
  operations.IntegrationsControllerRemoveIntegrationResponse,
42
42
  | errors.ErrorDto
43
- | errors.ErrorDto
44
43
  | errors.ValidationErrorDto
45
- | errors.ErrorDto
46
44
  | SDKError
47
45
  | SDKValidationError
48
46
  | UnexpectedClientError
@@ -70,9 +68,7 @@ async function $do(
70
68
  Result<
71
69
  operations.IntegrationsControllerRemoveIntegrationResponse,
72
70
  | errors.ErrorDto
73
- | errors.ErrorDto
74
71
  | errors.ValidationErrorDto
75
- | errors.ErrorDto
76
72
  | SDKError
77
73
  | SDKValidationError
78
74
  | UnexpectedClientError
@@ -125,6 +121,7 @@ async function $do(
125
121
  const requestSecurity = resolveGlobalSecurity(securityInput);
126
122
 
127
123
  const context = {
124
+ options: client._options,
128
125
  baseURL: options?.serverURL ?? client._baseURL ?? "",
129
126
  operationID: "IntegrationsController_removeIntegration",
130
127
  oAuth2Scopes: [],
@@ -155,6 +152,7 @@ async function $do(
155
152
  path: path,
156
153
  headers: headers,
157
154
  body: body,
155
+ userAgent: client._options.userAgent,
158
156
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
159
157
  }, options);
160
158
  if (!requestRes.ok) {
@@ -196,9 +194,7 @@ async function $do(
196
194
  const [result] = await M.match<
197
195
  operations.IntegrationsControllerRemoveIntegrationResponse,
198
196
  | errors.ErrorDto
199
- | errors.ErrorDto
200
197
  | errors.ValidationErrorDto
201
- | errors.ErrorDto
202
198
  | SDKError
203
199
  | SDKValidationError
204
200
  | UnexpectedClientError
@@ -38,9 +38,7 @@ export function integrationsList(
38
38
  Result<
39
39
  operations.IntegrationsControllerListIntegrationsResponse,
40
40
  | errors.ErrorDto
41
- | errors.ErrorDto
42
41
  | errors.ValidationErrorDto
43
- | errors.ErrorDto
44
42
  | SDKError
45
43
  | SDKValidationError
46
44
  | UnexpectedClientError
@@ -66,9 +64,7 @@ async function $do(
66
64
  Result<
67
65
  operations.IntegrationsControllerListIntegrationsResponse,
68
66
  | errors.ErrorDto
69
- | errors.ErrorDto
70
67
  | errors.ValidationErrorDto
71
- | errors.ErrorDto
72
68
  | SDKError
73
69
  | SDKValidationError
74
70
  | UnexpectedClientError
@@ -113,6 +109,7 @@ async function $do(
113
109
  const requestSecurity = resolveGlobalSecurity(securityInput);
114
110
 
115
111
  const context = {
112
+ options: client._options,
116
113
  baseURL: options?.serverURL ?? client._baseURL ?? "",
117
114
  operationID: "IntegrationsController_listIntegrations",
118
115
  oAuth2Scopes: [],
@@ -143,6 +140,7 @@ async function $do(
143
140
  path: path,
144
141
  headers: headers,
145
142
  body: body,
143
+ userAgent: client._options.userAgent,
146
144
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
147
145
  }, options);
148
146
  if (!requestRes.ok) {
@@ -184,9 +182,7 @@ async function $do(
184
182
  const [result] = await M.match<
185
183
  operations.IntegrationsControllerListIntegrationsResponse,
186
184
  | errors.ErrorDto
187
- | errors.ErrorDto
188
185
  | errors.ValidationErrorDto
189
- | errors.ErrorDto
190
186
  | SDKError
191
187
  | SDKValidationError
192
188
  | UnexpectedClientError
@@ -38,9 +38,7 @@ export function integrationsListActive(
38
38
  Result<
39
39
  operations.IntegrationsControllerGetActiveIntegrationsResponse,
40
40
  | errors.ErrorDto
41
- | errors.ErrorDto
42
41
  | errors.ValidationErrorDto
43
- | errors.ErrorDto
44
42
  | SDKError
45
43
  | SDKValidationError
46
44
  | UnexpectedClientError
@@ -66,9 +64,7 @@ async function $do(
66
64
  Result<
67
65
  operations.IntegrationsControllerGetActiveIntegrationsResponse,
68
66
  | errors.ErrorDto
69
- | errors.ErrorDto
70
67
  | errors.ValidationErrorDto
71
- | errors.ErrorDto
72
68
  | SDKError
73
69
  | SDKValidationError
74
70
  | UnexpectedClientError
@@ -114,6 +110,7 @@ async function $do(
114
110
  const requestSecurity = resolveGlobalSecurity(securityInput);
115
111
 
116
112
  const context = {
113
+ options: client._options,
117
114
  baseURL: options?.serverURL ?? client._baseURL ?? "",
118
115
  operationID: "IntegrationsController_getActiveIntegrations",
119
116
  oAuth2Scopes: [],
@@ -144,6 +141,7 @@ async function $do(
144
141
  path: path,
145
142
  headers: headers,
146
143
  body: body,
144
+ userAgent: client._options.userAgent,
147
145
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
148
146
  }, options);
149
147
  if (!requestRes.ok) {
@@ -185,9 +183,7 @@ async function $do(
185
183
  const [result] = await M.match<
186
184
  operations.IntegrationsControllerGetActiveIntegrationsResponse,
187
185
  | errors.ErrorDto
188
- | errors.ErrorDto
189
186
  | errors.ValidationErrorDto
190
- | errors.ErrorDto
191
187
  | SDKError
192
188
  | SDKValidationError
193
189
  | UnexpectedClientError
@@ -41,9 +41,7 @@ export function integrationsSetAsPrimary(
41
41
  Result<
42
42
  operations.IntegrationsControllerSetIntegrationAsPrimaryResponse,
43
43
  | errors.ErrorDto
44
- | errors.ErrorDto
45
44
  | errors.ValidationErrorDto
46
- | errors.ErrorDto
47
45
  | SDKError
48
46
  | SDKValidationError
49
47
  | UnexpectedClientError
@@ -71,9 +69,7 @@ async function $do(
71
69
  Result<
72
70
  operations.IntegrationsControllerSetIntegrationAsPrimaryResponse,
73
71
  | errors.ErrorDto
74
- | errors.ErrorDto
75
72
  | errors.ValidationErrorDto
76
- | errors.ErrorDto
77
73
  | SDKError
78
74
  | SDKValidationError
79
75
  | UnexpectedClientError
@@ -130,6 +126,7 @@ async function $do(
130
126
  const requestSecurity = resolveGlobalSecurity(securityInput);
131
127
 
132
128
  const context = {
129
+ options: client._options,
133
130
  baseURL: options?.serverURL ?? client._baseURL ?? "",
134
131
  operationID: "IntegrationsController_setIntegrationAsPrimary",
135
132
  oAuth2Scopes: [],
@@ -160,6 +157,7 @@ async function $do(
160
157
  path: path,
161
158
  headers: headers,
162
159
  body: body,
160
+ userAgent: client._options.userAgent,
163
161
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
164
162
  }, options);
165
163
  if (!requestRes.ok) {
@@ -201,9 +199,7 @@ async function $do(
201
199
  const [result] = await M.match<
202
200
  operations.IntegrationsControllerSetIntegrationAsPrimaryResponse,
203
201
  | errors.ErrorDto
204
- | errors.ErrorDto
205
202
  | errors.ValidationErrorDto
206
- | errors.ErrorDto
207
203
  | SDKError
208
204
  | SDKValidationError
209
205
  | UnexpectedClientError
@@ -42,9 +42,7 @@ export function integrationsUpdate(
42
42
  Result<
43
43
  operations.IntegrationsControllerUpdateIntegrationByIdResponse,
44
44
  | errors.ErrorDto
45
- | errors.ErrorDto
46
45
  | errors.ValidationErrorDto
47
- | errors.ErrorDto
48
46
  | SDKError
49
47
  | SDKValidationError
50
48
  | UnexpectedClientError
@@ -74,9 +72,7 @@ async function $do(
74
72
  Result<
75
73
  operations.IntegrationsControllerUpdateIntegrationByIdResponse,
76
74
  | errors.ErrorDto
77
- | errors.ErrorDto
78
75
  | errors.ValidationErrorDto
79
- | errors.ErrorDto
80
76
  | SDKError
81
77
  | SDKValidationError
82
78
  | UnexpectedClientError
@@ -134,6 +130,7 @@ async function $do(
134
130
  const requestSecurity = resolveGlobalSecurity(securityInput);
135
131
 
136
132
  const context = {
133
+ options: client._options,
137
134
  baseURL: options?.serverURL ?? client._baseURL ?? "",
138
135
  operationID: "IntegrationsController_updateIntegrationById",
139
136
  oAuth2Scopes: [],
@@ -164,6 +161,7 @@ async function $do(
164
161
  path: path,
165
162
  headers: headers,
166
163
  body: body,
164
+ userAgent: client._options.userAgent,
167
165
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
168
166
  }, options);
169
167
  if (!requestRes.ok) {
@@ -205,9 +203,7 @@ async function $do(
205
203
  const [result] = await M.match<
206
204
  operations.IntegrationsControllerUpdateIntegrationByIdResponse,
207
205
  | errors.ErrorDto
208
- | errors.ErrorDto
209
206
  | errors.ValidationErrorDto
210
- | errors.ErrorDto
211
207
  | SDKError
212
208
  | SDKValidationError
213
209
  | UnexpectedClientError