@novu/api 0.0.1-alpha.100 → 0.0.1-alpha.105

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 (342) hide show
  1. package/README.md +31 -19
  2. package/docs/sdks/authentication/README.md +10 -8
  3. package/docs/sdks/credentials/README.md +15 -12
  4. package/docs/sdks/integrations/README.md +30 -24
  5. package/docs/sdks/messages/README.md +15 -12
  6. package/docs/sdks/notifications/README.md +10 -8
  7. package/docs/sdks/novu/README.md +20 -16
  8. package/docs/sdks/novumessages/README.md +15 -12
  9. package/docs/sdks/novunotifications/README.md +10 -8
  10. package/docs/sdks/novusubscribers/README.md +15 -12
  11. package/docs/sdks/preferences/README.md +20 -16
  12. package/docs/sdks/properties/README.md +5 -4
  13. package/docs/sdks/stats/README.md +10 -8
  14. package/docs/sdks/subscribers/README.md +30 -24
  15. package/docs/sdks/topics/README.md +25 -20
  16. package/docs/sdks/webhooks/README.md +5 -4
  17. package/funcs/cancel.d.ts +1 -1
  18. package/funcs/cancel.d.ts.map +1 -1
  19. package/funcs/cancel.js +2 -2
  20. package/funcs/cancel.js.map +1 -1
  21. package/funcs/integrationsCreate.d.ts +1 -1
  22. package/funcs/integrationsCreate.d.ts.map +1 -1
  23. package/funcs/integrationsCreate.js +2 -2
  24. package/funcs/integrationsCreate.js.map +1 -1
  25. package/funcs/integrationsDelete.d.ts +1 -1
  26. package/funcs/integrationsDelete.d.ts.map +1 -1
  27. package/funcs/integrationsDelete.js +2 -2
  28. package/funcs/integrationsDelete.js.map +1 -1
  29. package/funcs/integrationsList.d.ts +1 -1
  30. package/funcs/integrationsList.d.ts.map +1 -1
  31. package/funcs/integrationsList.js +2 -2
  32. package/funcs/integrationsList.js.map +1 -1
  33. package/funcs/integrationsListActive.d.ts +1 -1
  34. package/funcs/integrationsListActive.d.ts.map +1 -1
  35. package/funcs/integrationsListActive.js +2 -2
  36. package/funcs/integrationsListActive.js.map +1 -1
  37. package/funcs/integrationsSetAsPrimary.d.ts +1 -1
  38. package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
  39. package/funcs/integrationsSetAsPrimary.js +2 -2
  40. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  41. package/funcs/integrationsUpdate.d.ts +1 -1
  42. package/funcs/integrationsUpdate.d.ts.map +1 -1
  43. package/funcs/integrationsUpdate.js +2 -2
  44. package/funcs/integrationsUpdate.js.map +1 -1
  45. package/funcs/integrationsWebhooksRetrieve.d.ts +1 -1
  46. package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
  47. package/funcs/integrationsWebhooksRetrieve.js +2 -2
  48. package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
  49. package/funcs/messagesDelete.d.ts +1 -1
  50. package/funcs/messagesDelete.d.ts.map +1 -1
  51. package/funcs/messagesDelete.js +2 -2
  52. package/funcs/messagesDelete.js.map +1 -1
  53. package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
  54. package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
  55. package/funcs/messagesDeleteByTransactionId.js +3 -5
  56. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  57. package/funcs/messagesRetrieve.d.ts +1 -1
  58. package/funcs/messagesRetrieve.d.ts.map +1 -1
  59. package/funcs/messagesRetrieve.js +2 -2
  60. package/funcs/messagesRetrieve.js.map +1 -1
  61. package/funcs/notificationsList.d.ts +1 -1
  62. package/funcs/notificationsList.d.ts.map +1 -1
  63. package/funcs/notificationsList.js +4 -2
  64. package/funcs/notificationsList.js.map +1 -1
  65. package/funcs/notificationsRetrieve.d.ts +1 -1
  66. package/funcs/notificationsRetrieve.d.ts.map +1 -1
  67. package/funcs/notificationsRetrieve.js +2 -2
  68. package/funcs/notificationsRetrieve.js.map +1 -1
  69. package/funcs/notificationsStatsGraph.d.ts +1 -1
  70. package/funcs/notificationsStatsGraph.d.ts.map +1 -1
  71. package/funcs/notificationsStatsGraph.js +2 -2
  72. package/funcs/notificationsStatsGraph.js.map +1 -1
  73. package/funcs/notificationsStatsRetrieve.d.ts +1 -1
  74. package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
  75. package/funcs/notificationsStatsRetrieve.js +2 -2
  76. package/funcs/notificationsStatsRetrieve.js.map +1 -1
  77. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +1 -1
  78. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
  79. package/funcs/subscribersAuthenticationChatAccessOauth.js +2 -2
  80. package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
  81. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +1 -1
  82. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
  83. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +2 -2
  84. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
  85. package/funcs/subscribersCreate.d.ts +1 -1
  86. package/funcs/subscribersCreate.d.ts.map +1 -1
  87. package/funcs/subscribersCreate.js +2 -2
  88. package/funcs/subscribersCreate.js.map +1 -1
  89. package/funcs/subscribersCreateBulk.d.ts +1 -1
  90. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  91. package/funcs/subscribersCreateBulk.js +3 -5
  92. package/funcs/subscribersCreateBulk.js.map +1 -1
  93. package/funcs/subscribersCredentialsAppend.d.ts +1 -1
  94. package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
  95. package/funcs/subscribersCredentialsAppend.js +2 -2
  96. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  97. package/funcs/subscribersCredentialsDelete.d.ts +1 -1
  98. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  99. package/funcs/subscribersCredentialsDelete.js +3 -5
  100. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  101. package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
  102. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  103. package/funcs/subscribersCredentialsUpdate.js +2 -2
  104. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  105. package/funcs/subscribersDelete.d.ts +1 -1
  106. package/funcs/subscribersDelete.d.ts.map +1 -1
  107. package/funcs/subscribersDelete.js +2 -2
  108. package/funcs/subscribersDelete.js.map +1 -1
  109. package/funcs/subscribersList.d.ts +1 -1
  110. package/funcs/subscribersList.d.ts.map +1 -1
  111. package/funcs/subscribersList.js +2 -2
  112. package/funcs/subscribersList.js.map +1 -1
  113. package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
  114. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  115. package/funcs/subscribersMessagesMarkAll.js +2 -2
  116. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  117. package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
  118. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  119. package/funcs/subscribersMessagesMarkAllAs.js +2 -2
  120. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  121. package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
  122. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  123. package/funcs/subscribersMessagesUpdateAsSeen.js +2 -2
  124. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  125. package/funcs/subscribersNotificationsFeed.d.ts +1 -1
  126. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  127. package/funcs/subscribersNotificationsFeed.js +2 -2
  128. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  129. package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
  130. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  131. package/funcs/subscribersNotificationsUnseenCount.js +2 -2
  132. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  133. package/funcs/subscribersPreferencesList.d.ts +1 -1
  134. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  135. package/funcs/subscribersPreferencesList.js +2 -2
  136. package/funcs/subscribersPreferencesList.js.map +1 -1
  137. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts +1 -1
  138. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
  139. package/funcs/subscribersPreferencesRetrieveByLevel.js +2 -2
  140. package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
  141. package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
  142. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  143. package/funcs/subscribersPreferencesUpdate.js +2 -2
  144. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  145. package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -1
  146. package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
  147. package/funcs/subscribersPreferencesUpdateGlobal.js +2 -2
  148. package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
  149. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
  150. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
  151. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +2 -2
  152. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  153. package/funcs/subscribersRetrieve.d.ts +1 -1
  154. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  155. package/funcs/subscribersRetrieve.js +2 -2
  156. package/funcs/subscribersRetrieve.js.map +1 -1
  157. package/funcs/subscribersUpdate.d.ts +1 -1
  158. package/funcs/subscribersUpdate.d.ts.map +1 -1
  159. package/funcs/subscribersUpdate.js +2 -2
  160. package/funcs/subscribersUpdate.js.map +1 -1
  161. package/funcs/topicsCreate.d.ts +1 -1
  162. package/funcs/topicsCreate.d.ts.map +1 -1
  163. package/funcs/topicsCreate.js +3 -6
  164. package/funcs/topicsCreate.js.map +1 -1
  165. package/funcs/topicsDelete.d.ts +1 -1
  166. package/funcs/topicsDelete.d.ts.map +1 -1
  167. package/funcs/topicsDelete.js +2 -2
  168. package/funcs/topicsDelete.js.map +1 -1
  169. package/funcs/topicsList.d.ts +1 -1
  170. package/funcs/topicsList.d.ts.map +1 -1
  171. package/funcs/topicsList.js +2 -2
  172. package/funcs/topicsList.js.map +1 -1
  173. package/funcs/topicsRename.d.ts +1 -1
  174. package/funcs/topicsRename.d.ts.map +1 -1
  175. package/funcs/topicsRename.js +2 -2
  176. package/funcs/topicsRename.js.map +1 -1
  177. package/funcs/topicsRetrieve.d.ts +1 -1
  178. package/funcs/topicsRetrieve.d.ts.map +1 -1
  179. package/funcs/topicsRetrieve.js +2 -2
  180. package/funcs/topicsRetrieve.js.map +1 -1
  181. package/funcs/topicsSubscribersAssign.d.ts +1 -1
  182. package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
  183. package/funcs/topicsSubscribersAssign.js +2 -2
  184. package/funcs/topicsSubscribersAssign.js.map +1 -1
  185. package/funcs/topicsSubscribersRemove.d.ts +1 -1
  186. package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
  187. package/funcs/topicsSubscribersRemove.js +3 -4
  188. package/funcs/topicsSubscribersRemove.js.map +1 -1
  189. package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
  190. package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
  191. package/funcs/topicsSubscribersRetrieve.js +2 -2
  192. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  193. package/funcs/trigger.d.ts +1 -1
  194. package/funcs/trigger.d.ts.map +1 -1
  195. package/funcs/trigger.js +3 -6
  196. package/funcs/trigger.js.map +1 -1
  197. package/funcs/triggerBroadcast.d.ts +1 -1
  198. package/funcs/triggerBroadcast.d.ts.map +1 -1
  199. package/funcs/triggerBroadcast.js +2 -2
  200. package/funcs/triggerBroadcast.js.map +1 -1
  201. package/funcs/triggerBulk.d.ts +1 -1
  202. package/funcs/triggerBulk.d.ts.map +1 -1
  203. package/funcs/triggerBulk.js +3 -6
  204. package/funcs/triggerBulk.js.map +1 -1
  205. package/lib/config.d.ts +3 -3
  206. package/lib/config.js +3 -3
  207. package/models/components/index.d.ts +0 -1
  208. package/models/components/index.d.ts.map +1 -1
  209. package/models/components/index.js +0 -1
  210. package/models/components/index.js.map +1 -1
  211. package/models/errors/index.d.ts +1 -0
  212. package/models/errors/index.d.ts.map +1 -1
  213. package/models/errors/index.js +1 -0
  214. package/models/errors/index.js.map +1 -1
  215. package/models/{components → errors}/validationerrordto.d.ts +53 -19
  216. package/models/errors/validationerrordto.d.ts.map +1 -0
  217. package/models/{components → errors}/validationerrordto.js +47 -30
  218. package/models/errors/validationerrordto.js.map +1 -0
  219. package/models/operations/eventscontrollertrigger.d.ts +2 -23
  220. package/models/operations/eventscontrollertrigger.d.ts.map +1 -1
  221. package/models/operations/eventscontrollertrigger.js +3 -38
  222. package/models/operations/eventscontrollertrigger.js.map +1 -1
  223. package/models/operations/eventscontrollertriggerbulk.d.ts +2 -23
  224. package/models/operations/eventscontrollertriggerbulk.d.ts.map +1 -1
  225. package/models/operations/eventscontrollertriggerbulk.js +3 -38
  226. package/models/operations/eventscontrollertriggerbulk.js.map +1 -1
  227. package/models/operations/integrationscontrollercreateintegration.d.ts +2 -23
  228. package/models/operations/integrationscontrollercreateintegration.d.ts.map +1 -1
  229. package/models/operations/integrationscontrollercreateintegration.js +3 -38
  230. package/models/operations/integrationscontrollercreateintegration.js.map +1 -1
  231. package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +0 -3
  232. package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts.map +1 -1
  233. package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +0 -5
  234. package/models/operations/messagescontrollerdeletemessagesbytransactionid.js.map +1 -1
  235. package/models/operations/notificationscontrollerlistnotifications.d.ts +4 -0
  236. package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
  237. package/models/operations/notificationscontrollerlistnotifications.js +4 -0
  238. package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
  239. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +0 -3
  240. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
  241. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +0 -5
  242. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +1 -1
  243. package/models/operations/subscriberscontrollercreatesubscriber.d.ts +2 -23
  244. package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +1 -1
  245. package/models/operations/subscriberscontrollercreatesubscriber.js +3 -38
  246. package/models/operations/subscriberscontrollercreatesubscriber.js.map +1 -1
  247. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +0 -3
  248. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
  249. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +0 -5
  250. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
  251. package/models/operations/subscriberscontrollermarkactionasseen.d.ts +2 -23
  252. package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
  253. package/models/operations/subscriberscontrollermarkactionasseen.js +3 -38
  254. package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
  255. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +2 -23
  256. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
  257. package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -27
  258. package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
  259. package/models/operations/subscriberscontrollermarkmessagesas.d.ts +2 -23
  260. package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
  261. package/models/operations/subscriberscontrollermarkmessagesas.js +3 -38
  262. package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
  263. package/models/operations/topicscontrollercreatetopic.d.ts +2 -23
  264. package/models/operations/topicscontrollercreatetopic.d.ts.map +1 -1
  265. package/models/operations/topicscontrollercreatetopic.js +3 -38
  266. package/models/operations/topicscontrollercreatetopic.js.map +1 -1
  267. package/models/operations/topicscontrollerdeletetopic.d.ts +0 -3
  268. package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
  269. package/models/operations/topicscontrollerdeletetopic.js +0 -5
  270. package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
  271. package/models/operations/topicscontrollerremovesubscribers.d.ts +0 -2
  272. package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
  273. package/models/operations/topicscontrollerremovesubscribers.js +0 -4
  274. package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
  275. package/package.json +1 -1
  276. package/src/funcs/cancel.ts +4 -1
  277. package/src/funcs/integrationsCreate.ts +4 -6
  278. package/src/funcs/integrationsDelete.ts +4 -1
  279. package/src/funcs/integrationsList.ts +4 -1
  280. package/src/funcs/integrationsListActive.ts +4 -1
  281. package/src/funcs/integrationsSetAsPrimary.ts +4 -1
  282. package/src/funcs/integrationsUpdate.ts +4 -1
  283. package/src/funcs/integrationsWebhooksRetrieve.ts +4 -1
  284. package/src/funcs/messagesDelete.ts +4 -1
  285. package/src/funcs/messagesDeleteByTransactionId.ts +4 -8
  286. package/src/funcs/messagesRetrieve.ts +4 -1
  287. package/src/funcs/notificationsList.ts +6 -1
  288. package/src/funcs/notificationsRetrieve.ts +4 -1
  289. package/src/funcs/notificationsStatsGraph.ts +4 -1
  290. package/src/funcs/notificationsStatsRetrieve.ts +4 -1
  291. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +4 -1
  292. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +4 -1
  293. package/src/funcs/subscribersCreate.ts +4 -6
  294. package/src/funcs/subscribersCreateBulk.ts +4 -8
  295. package/src/funcs/subscribersCredentialsAppend.ts +4 -1
  296. package/src/funcs/subscribersCredentialsDelete.ts +4 -8
  297. package/src/funcs/subscribersCredentialsUpdate.ts +4 -1
  298. package/src/funcs/subscribersDelete.ts +4 -1
  299. package/src/funcs/subscribersList.ts +5 -1
  300. package/src/funcs/subscribersMessagesMarkAll.ts +4 -6
  301. package/src/funcs/subscribersMessagesMarkAllAs.ts +4 -6
  302. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +4 -6
  303. package/src/funcs/subscribersNotificationsFeed.ts +4 -1
  304. package/src/funcs/subscribersNotificationsUnseenCount.ts +4 -1
  305. package/src/funcs/subscribersPreferencesList.ts +4 -1
  306. package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +4 -1
  307. package/src/funcs/subscribersPreferencesUpdate.ts +4 -1
  308. package/src/funcs/subscribersPreferencesUpdateGlobal.ts +4 -1
  309. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +4 -1
  310. package/src/funcs/subscribersRetrieve.ts +4 -1
  311. package/src/funcs/subscribersUpdate.ts +4 -1
  312. package/src/funcs/topicsCreate.ts +4 -5
  313. package/src/funcs/topicsDelete.ts +4 -6
  314. package/src/funcs/topicsList.ts +4 -1
  315. package/src/funcs/topicsRename.ts +4 -1
  316. package/src/funcs/topicsRetrieve.ts +4 -1
  317. package/src/funcs/topicsSubscribersAssign.ts +4 -1
  318. package/src/funcs/topicsSubscribersRemove.ts +4 -7
  319. package/src/funcs/topicsSubscribersRetrieve.ts +4 -1
  320. package/src/funcs/trigger.ts +4 -5
  321. package/src/funcs/triggerBroadcast.ts +4 -1
  322. package/src/funcs/triggerBulk.ts +4 -5
  323. package/src/lib/config.ts +3 -3
  324. package/src/models/components/index.ts +0 -1
  325. package/src/models/errors/index.ts +1 -0
  326. package/src/models/{components → errors}/validationerrordto.ts +110 -80
  327. package/src/models/operations/eventscontrollertrigger.ts +4 -77
  328. package/src/models/operations/eventscontrollertriggerbulk.ts +4 -86
  329. package/src/models/operations/integrationscontrollercreateintegration.ts +4 -86
  330. package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +0 -7
  331. package/src/models/operations/notificationscontrollerlistnotifications.ts +8 -0
  332. package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +0 -7
  333. package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -86
  334. package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -7
  335. package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -86
  336. package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -71
  337. package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -86
  338. package/src/models/operations/topicscontrollercreatetopic.ts +4 -84
  339. package/src/models/operations/topicscontrollerdeletetopic.ts +0 -7
  340. package/src/models/operations/topicscontrollerremovesubscribers.ts +0 -6
  341. package/models/components/validationerrordto.d.ts.map +0 -1
  342. package/models/components/validationerrordto.js.map +0 -1
package/README.md CHANGED
@@ -415,28 +415,23 @@ run();
415
415
  <!-- Start Error Handling [errors] -->
416
416
  ## Error Handling
417
417
 
418
- All SDK methods return a response object or throw an error. By default, an API error will throw a `errors.SDKError`.
418
+ Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `trigger` method may throw the following errors:
419
419
 
420
- If a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module:
420
+ | Error Type | Status Code | Content Type |
421
+ | ------------------------- | ------------- | ---------------- |
422
+ | errors.ErrorDto | 400, 404, 409 | application/json |
423
+ | errors.ValidationErrorDto | 422 | application/json |
424
+ | errors.SDKError | 4XX, 5XX | \*/\* |
421
425
 
422
- | HTTP Client Error | Description |
423
- | ---------------------------------------------------- | ---------------------------------------------------- |
424
- | RequestAbortedError | HTTP request was aborted by the client |
425
- | RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
426
- | ConnectionError | HTTP client was unable to make a request to a server |
427
- | InvalidRequestError | Any input used to create a request is invalid |
428
- | UnexpectedClientError | Unrecognised or unexpected error |
429
-
430
- In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `trigger` method may throw the following errors:
431
-
432
- | Error Type | Status Code | Content Type |
433
- | --------------- | ------------- | ---------------- |
434
- | errors.ErrorDto | 400, 404, 409 | application/json |
435
- | errors.SDKError | 4XX, 5XX | \*/\* |
426
+ If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
436
427
 
437
428
  ```typescript
438
429
  import { Novu } from "@novu/api";
439
- import { ErrorDto, SDKValidationError } from "@novu/api/models/errors";
430
+ import {
431
+ ErrorDto,
432
+ SDKValidationError,
433
+ ValidationErrorDto,
434
+ } from "@novu/api/models/errors";
440
435
 
441
436
  const novu = new Novu({
442
437
  apiKey: "<YOUR_API_KEY_HERE>",
@@ -463,8 +458,9 @@ async function run() {
463
458
  console.log(result);
464
459
  } catch (err) {
465
460
  switch (true) {
461
+ // The server response does not match the expected SDK schema
466
462
  case (err instanceof SDKValidationError): {
467
- // Validation errors can be pretty-printed
463
+ // Pretty-print will provide a human-readable multi-line error message
468
464
  console.error(err.pretty());
469
465
  // Raw value may also be inspected
470
466
  console.error(err.rawValue);
@@ -475,7 +471,13 @@ async function run() {
475
471
  console.error(err);
476
472
  return;
477
473
  }
474
+ case (err instanceof ValidationErrorDto): {
475
+ // Handle err.data$: ValidationErrorDtoData
476
+ console.error(err);
477
+ return;
478
+ }
478
479
  default: {
480
+ // Other errors such as network errors, see HTTPClientErrors for more details
479
481
  throw err;
480
482
  }
481
483
  }
@@ -486,7 +488,17 @@ run();
486
488
 
487
489
  ```
488
490
 
489
- Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
491
+ Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
492
+
493
+ In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:
494
+
495
+ | HTTP Client Error | Description |
496
+ | ---------------------------------------------------- | ---------------------------------------------------- |
497
+ | RequestAbortedError | HTTP request was aborted by the client |
498
+ | RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
499
+ | ConnectionError | HTTP client was unable to make a request to a server |
500
+ | InvalidRequestError | Any input used to create a request is invalid |
501
+ | UnexpectedClientError | Unrecognised or unexpected error |
490
502
  <!-- End Error Handling [errors] -->
491
503
 
492
504
  <!-- Start Server Selection [server] -->
@@ -88,10 +88,11 @@ run();
88
88
 
89
89
  ### Errors
90
90
 
91
- | Error Type | Status Code | Content Type |
92
- | ---------------- | ---------------- | ---------------- |
93
- | errors.ErrorDto | 400, 404, 409 | application/json |
94
- | errors.SDKError | 4XX, 5XX | \*/\* |
91
+ | Error Type | Status Code | Content Type |
92
+ | ------------------------- | ------------------------- | ------------------------- |
93
+ | errors.ErrorDto | 400, 404, 409 | application/json |
94
+ | errors.ValidationErrorDto | 422 | application/json |
95
+ | errors.SDKError | 4XX, 5XX | \*/\* |
95
96
 
96
97
  ## chatAccessOauth
97
98
 
@@ -171,7 +172,8 @@ run();
171
172
 
172
173
  ### Errors
173
174
 
174
- | Error Type | Status Code | Content Type |
175
- | ---------------- | ---------------- | ---------------- |
176
- | errors.ErrorDto | 400, 404, 409 | application/json |
177
- | errors.SDKError | 4XX, 5XX | \*/\* |
175
+ | Error Type | Status Code | Content Type |
176
+ | ------------------------- | ------------------------- | ------------------------- |
177
+ | errors.ErrorDto | 400, 404, 409 | application/json |
178
+ | errors.ValidationErrorDto | 422 | application/json |
179
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -88,10 +88,11 @@ run();
88
88
 
89
89
  ### Errors
90
90
 
91
- | Error Type | Status Code | Content Type |
92
- | ---------------- | ---------------- | ---------------- |
93
- | errors.ErrorDto | 400, 404, 409 | application/json |
94
- | errors.SDKError | 4XX, 5XX | \*/\* |
91
+ | Error Type | Status Code | Content Type |
92
+ | ------------------------- | ------------------------- | ------------------------- |
93
+ | errors.ErrorDto | 400, 404, 409 | application/json |
94
+ | errors.ValidationErrorDto | 422 | application/json |
95
+ | errors.SDKError | 4XX, 5XX | \*/\* |
95
96
 
96
97
  ## append
97
98
 
@@ -174,10 +175,11 @@ run();
174
175
 
175
176
  ### Errors
176
177
 
177
- | Error Type | Status Code | Content Type |
178
- | ---------------- | ---------------- | ---------------- |
179
- | errors.ErrorDto | 400, 404, 409 | application/json |
180
- | errors.SDKError | 4XX, 5XX | \*/\* |
178
+ | Error Type | Status Code | Content Type |
179
+ | ------------------------- | ------------------------- | ------------------------- |
180
+ | errors.ErrorDto | 400, 404, 409 | application/json |
181
+ | errors.ValidationErrorDto | 422 | application/json |
182
+ | errors.SDKError | 4XX, 5XX | \*/\* |
181
183
 
182
184
  ## delete
183
185
 
@@ -248,7 +250,8 @@ run();
248
250
 
249
251
  ### Errors
250
252
 
251
- | Error Type | Status Code | Content Type |
252
- | ---------------- | ---------------- | ---------------- |
253
- | errors.ErrorDto | 400, 404, 409 | application/json |
254
- | errors.SDKError | 4XX, 5XX | \*/\* |
253
+ | Error Type | Status Code | Content Type |
254
+ | ------------------------- | ------------------------- | ------------------------- |
255
+ | errors.ErrorDto | 400, 404, 409 | application/json |
256
+ | errors.ValidationErrorDto | 422 | application/json |
257
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -82,10 +82,11 @@ run();
82
82
 
83
83
  ### Errors
84
84
 
85
- | Error Type | Status Code | Content Type |
86
- | ---------------- | ---------------- | ---------------- |
87
- | errors.ErrorDto | 400, 404, 409 | application/json |
88
- | errors.SDKError | 4XX, 5XX | \*/\* |
85
+ | Error Type | Status Code | Content Type |
86
+ | ------------------------- | ------------------------- | ------------------------- |
87
+ | errors.ErrorDto | 400, 404, 409 | application/json |
88
+ | errors.ValidationErrorDto | 422 | application/json |
89
+ | errors.SDKError | 4XX, 5XX | \*/\* |
89
90
 
90
91
  ## create
91
92
 
@@ -161,10 +162,11 @@ run();
161
162
 
162
163
  ### Errors
163
164
 
164
- | Error Type | Status Code | Content Type |
165
- | ---------------- | ---------------- | ---------------- |
166
- | errors.ErrorDto | 400, 404, 409 | application/json |
167
- | errors.SDKError | 4XX, 5XX | \*/\* |
165
+ | Error Type | Status Code | Content Type |
166
+ | ------------------------- | ------------------------- | ------------------------- |
167
+ | errors.ErrorDto | 400, 404, 409 | application/json |
168
+ | errors.ValidationErrorDto | 422 | application/json |
169
+ | errors.SDKError | 4XX, 5XX | \*/\* |
168
170
 
169
171
  ## listActive
170
172
 
@@ -233,10 +235,11 @@ run();
233
235
 
234
236
  ### Errors
235
237
 
236
- | Error Type | Status Code | Content Type |
237
- | ---------------- | ---------------- | ---------------- |
238
- | errors.ErrorDto | 400, 404, 409 | application/json |
239
- | errors.SDKError | 4XX, 5XX | \*/\* |
238
+ | Error Type | Status Code | Content Type |
239
+ | ------------------------- | ------------------------- | ------------------------- |
240
+ | errors.ErrorDto | 400, 404, 409 | application/json |
241
+ | errors.ValidationErrorDto | 422 | application/json |
242
+ | errors.SDKError | 4XX, 5XX | \*/\* |
240
243
 
241
244
  ## update
242
245
 
@@ -307,10 +310,11 @@ run();
307
310
 
308
311
  ### Errors
309
312
 
310
- | Error Type | Status Code | Content Type |
311
- | ---------------- | ---------------- | ---------------- |
312
- | errors.ErrorDto | 400, 409 | application/json |
313
- | errors.SDKError | 4XX, 5XX | \*/\* |
313
+ | Error Type | Status Code | Content Type |
314
+ | ------------------------- | ------------------------- | ------------------------- |
315
+ | errors.ErrorDto | 400, 409 | application/json |
316
+ | errors.ValidationErrorDto | 422 | application/json |
317
+ | errors.SDKError | 4XX, 5XX | \*/\* |
314
318
 
315
319
  ## delete
316
320
 
@@ -380,10 +384,11 @@ run();
380
384
 
381
385
  ### Errors
382
386
 
383
- | Error Type | Status Code | Content Type |
384
- | ---------------- | ---------------- | ---------------- |
385
- | errors.ErrorDto | 400, 404, 409 | application/json |
386
- | errors.SDKError | 4XX, 5XX | \*/\* |
387
+ | Error Type | Status Code | Content Type |
388
+ | ------------------------- | ------------------------- | ------------------------- |
389
+ | errors.ErrorDto | 400, 404, 409 | application/json |
390
+ | errors.ValidationErrorDto | 422 | application/json |
391
+ | errors.SDKError | 4XX, 5XX | \*/\* |
387
392
 
388
393
  ## setAsPrimary
389
394
 
@@ -453,7 +458,8 @@ run();
453
458
 
454
459
  ### Errors
455
460
 
456
- | Error Type | Status Code | Content Type |
457
- | ---------------- | ---------------- | ---------------- |
458
- | errors.ErrorDto | 400, 409 | application/json |
459
- | errors.SDKError | 4XX, 5XX | \*/\* |
461
+ | Error Type | Status Code | Content Type |
462
+ | ------------------------- | ------------------------- | ------------------------- |
463
+ | errors.ErrorDto | 400, 409 | application/json |
464
+ | errors.ValidationErrorDto | 422 | application/json |
465
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -80,10 +80,11 @@ run();
80
80
 
81
81
  ### Errors
82
82
 
83
- | Error Type | Status Code | Content Type |
84
- | ---------------- | ---------------- | ---------------- |
85
- | errors.ErrorDto | 400, 404, 409 | application/json |
86
- | errors.SDKError | 4XX, 5XX | \*/\* |
83
+ | Error Type | Status Code | Content Type |
84
+ | ------------------------- | ------------------------- | ------------------------- |
85
+ | errors.ErrorDto | 400, 404, 409 | application/json |
86
+ | errors.ValidationErrorDto | 422 | application/json |
87
+ | errors.SDKError | 4XX, 5XX | \*/\* |
87
88
 
88
89
  ## delete
89
90
 
@@ -153,10 +154,11 @@ run();
153
154
 
154
155
  ### Errors
155
156
 
156
- | Error Type | Status Code | Content Type |
157
- | ---------------- | ---------------- | ---------------- |
158
- | errors.ErrorDto | 400, 404, 409 | application/json |
159
- | errors.SDKError | 4XX, 5XX | \*/\* |
157
+ | Error Type | Status Code | Content Type |
158
+ | ------------------------- | ------------------------- | ------------------------- |
159
+ | errors.ErrorDto | 400, 404, 409 | application/json |
160
+ | errors.ValidationErrorDto | 422 | application/json |
161
+ | errors.SDKError | 4XX, 5XX | \*/\* |
160
162
 
161
163
  ## deleteByTransactionId
162
164
 
@@ -227,7 +229,8 @@ run();
227
229
 
228
230
  ### Errors
229
231
 
230
- | Error Type | Status Code | Content Type |
231
- | ---------------- | ---------------- | ---------------- |
232
- | errors.ErrorDto | 400, 404, 409 | application/json |
233
- | errors.SDKError | 4XX, 5XX | \*/\* |
232
+ | Error Type | Status Code | Content Type |
233
+ | ------------------------- | ------------------------- | ------------------------- |
234
+ | errors.ErrorDto | 400, 404, 409 | application/json |
235
+ | errors.ValidationErrorDto | 422 | application/json |
236
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -110,10 +110,11 @@ run();
110
110
 
111
111
  ### Errors
112
112
 
113
- | Error Type | Status Code | Content Type |
114
- | ---------------- | ---------------- | ---------------- |
115
- | errors.ErrorDto | 400, 404, 409 | application/json |
116
- | errors.SDKError | 4XX, 5XX | \*/\* |
113
+ | Error Type | Status Code | Content Type |
114
+ | ------------------------- | ------------------------- | ------------------------- |
115
+ | errors.ErrorDto | 400, 404, 409 | application/json |
116
+ | errors.ValidationErrorDto | 422 | application/json |
117
+ | errors.SDKError | 4XX, 5XX | \*/\* |
117
118
 
118
119
  ## retrieve
119
120
 
@@ -183,7 +184,8 @@ run();
183
184
 
184
185
  ### Errors
185
186
 
186
- | Error Type | Status Code | Content Type |
187
- | ---------------- | ---------------- | ---------------- |
188
- | errors.ErrorDto | 400, 404, 409 | application/json |
189
- | errors.SDKError | 4XX, 5XX | \*/\* |
187
+ | Error Type | Status Code | Content Type |
188
+ | ------------------------- | ------------------------- | ------------------------- |
189
+ | errors.ErrorDto | 400, 404, 409 | application/json |
190
+ | errors.ValidationErrorDto | 422 | application/json |
191
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -110,10 +110,11 @@ run();
110
110
 
111
111
  ### Errors
112
112
 
113
- | Error Type | Status Code | Content Type |
114
- | ---------------- | ---------------- | ---------------- |
115
- | errors.ErrorDto | 400, 404, 409 | application/json |
116
- | errors.SDKError | 4XX, 5XX | \*/\* |
113
+ | Error Type | Status Code | Content Type |
114
+ | ------------------------- | ------------------------- | ------------------------- |
115
+ | errors.ErrorDto | 400, 404, 409 | application/json |
116
+ | errors.ValidationErrorDto | 422 | application/json |
117
+ | errors.SDKError | 4XX, 5XX | \*/\* |
117
118
 
118
119
  ## triggerBulk
119
120
 
@@ -254,10 +255,11 @@ run();
254
255
 
255
256
  ### Errors
256
257
 
257
- | Error Type | Status Code | Content Type |
258
- | ---------------- | ---------------- | ---------------- |
259
- | errors.ErrorDto | 400, 404, 409 | application/json |
260
- | errors.SDKError | 4XX, 5XX | \*/\* |
258
+ | Error Type | Status Code | Content Type |
259
+ | ------------------------- | ------------------------- | ------------------------- |
260
+ | errors.ErrorDto | 400, 404, 409 | application/json |
261
+ | errors.ValidationErrorDto | 422 | application/json |
262
+ | errors.SDKError | 4XX, 5XX | \*/\* |
261
263
 
262
264
  ## triggerBroadcast
263
265
 
@@ -345,10 +347,11 @@ run();
345
347
 
346
348
  ### Errors
347
349
 
348
- | Error Type | Status Code | Content Type |
349
- | ---------------- | ---------------- | ---------------- |
350
- | errors.ErrorDto | 400, 404, 409 | application/json |
351
- | errors.SDKError | 4XX, 5XX | \*/\* |
350
+ | Error Type | Status Code | Content Type |
351
+ | ------------------------- | ------------------------- | ------------------------- |
352
+ | errors.ErrorDto | 400, 404, 409 | application/json |
353
+ | errors.ValidationErrorDto | 422 | application/json |
354
+ | errors.SDKError | 4XX, 5XX | \*/\* |
352
355
 
353
356
  ## cancel
354
357
 
@@ -421,7 +424,8 @@ run();
421
424
 
422
425
  ### Errors
423
426
 
424
- | Error Type | Status Code | Content Type |
425
- | ---------------- | ---------------- | ---------------- |
426
- | errors.ErrorDto | 400, 404, 409 | application/json |
427
- | errors.SDKError | 4XX, 5XX | \*/\* |
427
+ | Error Type | Status Code | Content Type |
428
+ | ------------------------- | ------------------------- | ------------------------- |
429
+ | errors.ErrorDto | 400, 404, 409 | application/json |
430
+ | errors.ValidationErrorDto | 422 | application/json |
431
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -84,10 +84,11 @@ run();
84
84
 
85
85
  ### Errors
86
86
 
87
- | Error Type | Status Code | Content Type |
88
- | ---------------- | ---------------- | ---------------- |
89
- | errors.ErrorDto | 400, 404, 409 | application/json |
90
- | errors.SDKError | 4XX, 5XX | \*/\* |
87
+ | Error Type | Status Code | Content Type |
88
+ | ------------------------- | ------------------------- | ------------------------- |
89
+ | errors.ErrorDto | 400, 404, 409 | application/json |
90
+ | errors.ValidationErrorDto | 422 | application/json |
91
+ | errors.SDKError | 4XX, 5XX | \*/\* |
91
92
 
92
93
  ## markAll
93
94
 
@@ -162,10 +163,11 @@ run();
162
163
 
163
164
  ### Errors
164
165
 
165
- | Error Type | Status Code | Content Type |
166
- | ---------------- | ---------------- | ---------------- |
167
- | errors.ErrorDto | 400, 404, 409 | application/json |
168
- | errors.SDKError | 4XX, 5XX | \*/\* |
166
+ | Error Type | Status Code | Content Type |
167
+ | ------------------------- | ------------------------- | ------------------------- |
168
+ | errors.ErrorDto | 400, 404, 409 | application/json |
169
+ | errors.ValidationErrorDto | 422 | application/json |
170
+ | errors.SDKError | 4XX, 5XX | \*/\* |
169
171
 
170
172
  ## updateAsSeen
171
173
 
@@ -249,7 +251,8 @@ run();
249
251
 
250
252
  ### Errors
251
253
 
252
- | Error Type | Status Code | Content Type |
253
- | ---------------- | ---------------- | ---------------- |
254
- | errors.ErrorDto | 400, 404, 409 | application/json |
255
- | errors.SDKError | 4XX, 5XX | \*/\* |
254
+ | Error Type | Status Code | Content Type |
255
+ | ------------------------- | ------------------------- | ------------------------- |
256
+ | errors.ErrorDto | 400, 404, 409 | application/json |
257
+ | errors.ValidationErrorDto | 422 | application/json |
258
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -82,10 +82,11 @@ run();
82
82
 
83
83
  ### Errors
84
84
 
85
- | Error Type | Status Code | Content Type |
86
- | ---------------- | ---------------- | ---------------- |
87
- | errors.ErrorDto | 400, 404, 409 | application/json |
88
- | errors.SDKError | 4XX, 5XX | \*/\* |
85
+ | Error Type | Status Code | Content Type |
86
+ | ------------------------- | ------------------------- | ------------------------- |
87
+ | errors.ErrorDto | 400, 404, 409 | application/json |
88
+ | errors.ValidationErrorDto | 422 | application/json |
89
+ | errors.SDKError | 4XX, 5XX | \*/\* |
89
90
 
90
91
  ## unseenCount
91
92
 
@@ -163,7 +164,8 @@ run();
163
164
 
164
165
  ### Errors
165
166
 
166
- | Error Type | Status Code | Content Type |
167
- | ---------------- | ---------------- | ---------------- |
168
- | errors.ErrorDto | 400, 404, 409 | application/json |
169
- | errors.SDKError | 4XX, 5XX | \*/\* |
167
+ | Error Type | Status Code | Content Type |
168
+ | ------------------------- | ------------------------- | ------------------------- |
169
+ | errors.ErrorDto | 400, 404, 409 | application/json |
170
+ | errors.ValidationErrorDto | 422 | application/json |
171
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -90,10 +90,11 @@ run();
90
90
 
91
91
  ### Errors
92
92
 
93
- | Error Type | Status Code | Content Type |
94
- | ---------------- | ---------------- | ---------------- |
95
- | errors.ErrorDto | 400, 404, 409 | application/json |
96
- | errors.SDKError | 4XX, 5XX | \*/\* |
93
+ | Error Type | Status Code | Content Type |
94
+ | ------------------------- | ------------------------- | ------------------------- |
95
+ | errors.ErrorDto | 400, 404, 409 | application/json |
96
+ | errors.ValidationErrorDto | 422 | application/json |
97
+ | errors.SDKError | 4XX, 5XX | \*/\* |
97
98
 
98
99
  ## retrieve
99
100
 
@@ -164,10 +165,11 @@ run();
164
165
 
165
166
  ### Errors
166
167
 
167
- | Error Type | Status Code | Content Type |
168
- | ---------------- | ---------------- | ---------------- |
169
- | errors.ErrorDto | 400, 404, 409 | application/json |
170
- | errors.SDKError | 4XX, 5XX | \*/\* |
168
+ | Error Type | Status Code | Content Type |
169
+ | ------------------------- | ------------------------- | ------------------------- |
170
+ | errors.ErrorDto | 400, 404, 409 | application/json |
171
+ | errors.ValidationErrorDto | 422 | application/json |
172
+ | errors.SDKError | 4XX, 5XX | \*/\* |
171
173
 
172
174
  ## remove
173
175
 
@@ -248,7 +250,8 @@ run();
248
250
 
249
251
  ### Errors
250
252
 
251
- | Error Type | Status Code | Content Type |
252
- | ---------------- | ---------------- | ---------------- |
253
- | errors.ErrorDto | 400, 404, 409 | application/json |
254
- | errors.SDKError | 4XX, 5XX | \*/\* |
253
+ | Error Type | Status Code | Content Type |
254
+ | ------------------------- | ------------------------- | ------------------------- |
255
+ | errors.ErrorDto | 400, 404, 409 | application/json |
256
+ | errors.ValidationErrorDto | 422 | application/json |
257
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -79,10 +79,11 @@ run();
79
79
 
80
80
  ### Errors
81
81
 
82
- | Error Type | Status Code | Content Type |
83
- | ---------------- | ---------------- | ---------------- |
84
- | errors.ErrorDto | 400, 404, 409 | application/json |
85
- | errors.SDKError | 4XX, 5XX | \*/\* |
82
+ | Error Type | Status Code | Content Type |
83
+ | ------------------------- | ------------------------- | ------------------------- |
84
+ | errors.ErrorDto | 400, 404, 409 | application/json |
85
+ | errors.ValidationErrorDto | 422 | application/json |
86
+ | errors.SDKError | 4XX, 5XX | \*/\* |
86
87
 
87
88
  ## updateGlobal
88
89
 
@@ -153,10 +154,11 @@ run();
153
154
 
154
155
  ### Errors
155
156
 
156
- | Error Type | Status Code | Content Type |
157
- | ---------------- | ---------------- | ---------------- |
158
- | errors.ErrorDto | 400, 404, 409 | application/json |
159
- | errors.SDKError | 4XX, 5XX | \*/\* |
157
+ | Error Type | Status Code | Content Type |
158
+ | ------------------------- | ------------------------- | ------------------------- |
159
+ | errors.ErrorDto | 400, 404, 409 | application/json |
160
+ | errors.ValidationErrorDto | 422 | application/json |
161
+ | errors.SDKError | 4XX, 5XX | \*/\* |
160
162
 
161
163
  ## retrieveByLevel
162
164
 
@@ -232,10 +234,11 @@ run();
232
234
 
233
235
  ### Errors
234
236
 
235
- | Error Type | Status Code | Content Type |
236
- | ---------------- | ---------------- | ---------------- |
237
- | errors.ErrorDto | 400, 404, 409 | application/json |
238
- | errors.SDKError | 4XX, 5XX | \*/\* |
237
+ | Error Type | Status Code | Content Type |
238
+ | ------------------------- | ------------------------- | ------------------------- |
239
+ | errors.ErrorDto | 400, 404, 409 | application/json |
240
+ | errors.ValidationErrorDto | 422 | application/json |
241
+ | errors.SDKError | 4XX, 5XX | \*/\* |
239
242
 
240
243
  ## update
241
244
 
@@ -313,7 +316,8 @@ run();
313
316
 
314
317
  ### Errors
315
318
 
316
- | Error Type | Status Code | Content Type |
317
- | ---------------- | ---------------- | ---------------- |
318
- | errors.ErrorDto | 400, 404, 409 | application/json |
319
- | errors.SDKError | 4XX, 5XX | \*/\* |
319
+ | Error Type | Status Code | Content Type |
320
+ | ------------------------- | ------------------------- | ------------------------- |
321
+ | errors.ErrorDto | 400, 404, 409 | application/json |
322
+ | errors.ValidationErrorDto | 422 | application/json |
323
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -80,7 +80,8 @@ run();
80
80
 
81
81
  ### Errors
82
82
 
83
- | Error Type | Status Code | Content Type |
84
- | ---------------- | ---------------- | ---------------- |
85
- | errors.ErrorDto | 400, 404, 409 | application/json |
86
- | errors.SDKError | 4XX, 5XX | \*/\* |
83
+ | Error Type | Status Code | Content Type |
84
+ | ------------------------- | ------------------------- | ------------------------- |
85
+ | errors.ErrorDto | 400, 404, 409 | application/json |
86
+ | errors.ValidationErrorDto | 422 | application/json |
87
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -75,10 +75,11 @@ run();
75
75
 
76
76
  ### Errors
77
77
 
78
- | Error Type | Status Code | Content Type |
79
- | ---------------- | ---------------- | ---------------- |
80
- | errors.ErrorDto | 400, 404, 409 | application/json |
81
- | errors.SDKError | 4XX, 5XX | \*/\* |
78
+ | Error Type | Status Code | Content Type |
79
+ | ------------------------- | ------------------------- | ------------------------- |
80
+ | errors.ErrorDto | 400, 404, 409 | application/json |
81
+ | errors.ValidationErrorDto | 422 | application/json |
82
+ | errors.SDKError | 4XX, 5XX | \*/\* |
82
83
 
83
84
  ## graph
84
85
 
@@ -148,7 +149,8 @@ run();
148
149
 
149
150
  ### Errors
150
151
 
151
- | Error Type | Status Code | Content Type |
152
- | ---------------- | ---------------- | ---------------- |
153
- | errors.ErrorDto | 400, 404, 409 | application/json |
154
- | errors.SDKError | 4XX, 5XX | \*/\* |
152
+ | Error Type | Status Code | Content Type |
153
+ | ------------------------- | ------------------------- | ------------------------- |
154
+ | errors.ErrorDto | 400, 404, 409 | application/json |
155
+ | errors.ValidationErrorDto | 422 | application/json |
156
+ | errors.SDKError | 4XX, 5XX | \*/\* |