@novu/api 0.0.1-alpha.104 → 0.0.1-alpha.106

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 (337) hide show
  1. package/README.md +15 -5
  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 +2 -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 +2 -2
  206. package/lib/config.js +2 -2
  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 +51 -17
  216. package/models/errors/validationerrordto.d.ts.map +1 -0
  217. package/models/{components → errors}/validationerrordto.js +43 -26
  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/subscriberscontrollerbulkcreatesubscribers.d.ts +0 -3
  236. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
  237. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +0 -5
  238. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +1 -1
  239. package/models/operations/subscriberscontrollercreatesubscriber.d.ts +2 -23
  240. package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +1 -1
  241. package/models/operations/subscriberscontrollercreatesubscriber.js +3 -38
  242. package/models/operations/subscriberscontrollercreatesubscriber.js.map +1 -1
  243. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +0 -3
  244. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
  245. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +0 -5
  246. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
  247. package/models/operations/subscriberscontrollermarkactionasseen.d.ts +2 -23
  248. package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
  249. package/models/operations/subscriberscontrollermarkactionasseen.js +3 -38
  250. package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
  251. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +2 -23
  252. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
  253. package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -27
  254. package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
  255. package/models/operations/subscriberscontrollermarkmessagesas.d.ts +2 -23
  256. package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
  257. package/models/operations/subscriberscontrollermarkmessagesas.js +3 -38
  258. package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
  259. package/models/operations/topicscontrollercreatetopic.d.ts +2 -23
  260. package/models/operations/topicscontrollercreatetopic.d.ts.map +1 -1
  261. package/models/operations/topicscontrollercreatetopic.js +3 -38
  262. package/models/operations/topicscontrollercreatetopic.js.map +1 -1
  263. package/models/operations/topicscontrollerdeletetopic.d.ts +0 -3
  264. package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
  265. package/models/operations/topicscontrollerdeletetopic.js +0 -5
  266. package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
  267. package/models/operations/topicscontrollerremovesubscribers.d.ts +0 -2
  268. package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
  269. package/models/operations/topicscontrollerremovesubscribers.js +0 -4
  270. package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
  271. package/package.json +1 -1
  272. package/src/funcs/cancel.ts +4 -1
  273. package/src/funcs/integrationsCreate.ts +4 -6
  274. package/src/funcs/integrationsDelete.ts +4 -1
  275. package/src/funcs/integrationsList.ts +4 -1
  276. package/src/funcs/integrationsListActive.ts +4 -1
  277. package/src/funcs/integrationsSetAsPrimary.ts +4 -1
  278. package/src/funcs/integrationsUpdate.ts +4 -1
  279. package/src/funcs/integrationsWebhooksRetrieve.ts +4 -1
  280. package/src/funcs/messagesDelete.ts +4 -1
  281. package/src/funcs/messagesDeleteByTransactionId.ts +4 -8
  282. package/src/funcs/messagesRetrieve.ts +4 -1
  283. package/src/funcs/notificationsList.ts +4 -1
  284. package/src/funcs/notificationsRetrieve.ts +4 -1
  285. package/src/funcs/notificationsStatsGraph.ts +4 -1
  286. package/src/funcs/notificationsStatsRetrieve.ts +4 -1
  287. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +4 -1
  288. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +4 -1
  289. package/src/funcs/subscribersCreate.ts +4 -6
  290. package/src/funcs/subscribersCreateBulk.ts +4 -8
  291. package/src/funcs/subscribersCredentialsAppend.ts +4 -1
  292. package/src/funcs/subscribersCredentialsDelete.ts +4 -8
  293. package/src/funcs/subscribersCredentialsUpdate.ts +4 -1
  294. package/src/funcs/subscribersDelete.ts +4 -1
  295. package/src/funcs/subscribersList.ts +5 -1
  296. package/src/funcs/subscribersMessagesMarkAll.ts +4 -6
  297. package/src/funcs/subscribersMessagesMarkAllAs.ts +4 -6
  298. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +4 -6
  299. package/src/funcs/subscribersNotificationsFeed.ts +4 -1
  300. package/src/funcs/subscribersNotificationsUnseenCount.ts +4 -1
  301. package/src/funcs/subscribersPreferencesList.ts +4 -1
  302. package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +4 -1
  303. package/src/funcs/subscribersPreferencesUpdate.ts +4 -1
  304. package/src/funcs/subscribersPreferencesUpdateGlobal.ts +4 -1
  305. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +4 -1
  306. package/src/funcs/subscribersRetrieve.ts +4 -1
  307. package/src/funcs/subscribersUpdate.ts +4 -1
  308. package/src/funcs/topicsCreate.ts +4 -5
  309. package/src/funcs/topicsDelete.ts +6 -8
  310. package/src/funcs/topicsList.ts +4 -1
  311. package/src/funcs/topicsRename.ts +4 -1
  312. package/src/funcs/topicsRetrieve.ts +4 -1
  313. package/src/funcs/topicsSubscribersAssign.ts +4 -1
  314. package/src/funcs/topicsSubscribersRemove.ts +4 -7
  315. package/src/funcs/topicsSubscribersRetrieve.ts +4 -1
  316. package/src/funcs/trigger.ts +4 -5
  317. package/src/funcs/triggerBroadcast.ts +4 -1
  318. package/src/funcs/triggerBulk.ts +4 -5
  319. package/src/lib/config.ts +2 -2
  320. package/src/models/components/index.ts +0 -1
  321. package/src/models/errors/index.ts +1 -0
  322. package/src/models/{components → errors}/validationerrordto.ts +92 -66
  323. package/src/models/operations/eventscontrollertrigger.ts +4 -77
  324. package/src/models/operations/eventscontrollertriggerbulk.ts +4 -86
  325. package/src/models/operations/integrationscontrollercreateintegration.ts +4 -86
  326. package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +0 -7
  327. package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +0 -7
  328. package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -86
  329. package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -7
  330. package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -86
  331. package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -71
  332. package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -86
  333. package/src/models/operations/topicscontrollercreatetopic.ts +4 -84
  334. package/src/models/operations/topicscontrollerdeletetopic.ts +0 -7
  335. package/src/models/operations/topicscontrollerremovesubscribers.ts +0 -6
  336. package/models/components/validationerrordto.d.ts.map +0 -1
  337. package/models/components/validationerrordto.js.map +0 -1
@@ -5,18 +5,18 @@
5
5
  import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
8
+ import { SDKValidationError } from "./sdkvalidationerror.js";
9
9
 
10
10
  export type Four = {};
11
11
 
12
- export type ValidationErrorDtoValue = Four | string | number | boolean;
12
+ export type Value = Four | string | number | boolean;
13
13
 
14
14
  export type Errors = {
15
15
  messages: Array<string>;
16
16
  value: Four | string | number | boolean | null;
17
17
  };
18
18
 
19
- export type ValidationErrorDto = {
19
+ export type ValidationErrorDtoData = {
20
20
  /**
21
21
  * HTTP status code of the error response.
22
22
  */
@@ -50,6 +50,56 @@ export type ValidationErrorDto = {
50
50
  errors: { [k: string]: Errors };
51
51
  };
52
52
 
53
+ export class ValidationErrorDto extends Error {
54
+ /**
55
+ * HTTP status code of the error response.
56
+ */
57
+ statusCode: number;
58
+ /**
59
+ * Timestamp of when the error occurred.
60
+ */
61
+ timestamp: string;
62
+ /**
63
+ * The path where the error occurred.
64
+ */
65
+ path: string;
66
+ /**
67
+ * Optional context object for additional error details.
68
+ */
69
+ ctx?: { [k: string]: any } | undefined;
70
+ /**
71
+ * Optional unique identifier for the error, useful for tracking using Sentry and
72
+ *
73
+ * @remarks
74
+ * New Relic, only available for 500.
75
+ */
76
+ errorId?: string | undefined;
77
+ /**
78
+ * A record of validation errors keyed by field name
79
+ */
80
+ errors: { [k: string]: Errors };
81
+
82
+ /** The original data that was passed to this error instance. */
83
+ data$: ValidationErrorDtoData;
84
+
85
+ constructor(err: ValidationErrorDtoData) {
86
+ const message = "message" in err && typeof err.message === "string"
87
+ ? err.message
88
+ : `API error occurred: ${JSON.stringify(err)}`;
89
+ super(message);
90
+ this.data$ = err;
91
+
92
+ this.statusCode = err.statusCode;
93
+ this.timestamp = err.timestamp;
94
+ this.path = err.path;
95
+ if (err.ctx != null) this.ctx = err.ctx;
96
+ if (err.errorId != null) this.errorId = err.errorId;
97
+ this.errors = err.errors;
98
+
99
+ this.name = "ValidationErrorDto";
100
+ }
101
+ }
102
+
53
103
  /** @internal */
54
104
  export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
55
105
  .object({});
@@ -89,29 +139,22 @@ export function fourFromJSON(
89
139
  }
90
140
 
91
141
  /** @internal */
92
- export const ValidationErrorDtoValue$inboundSchema: z.ZodType<
93
- ValidationErrorDtoValue,
94
- z.ZodTypeDef,
95
- unknown
96
- > = z.union([
97
- z.lazy(() => Four$inboundSchema),
98
- z.string(),
99
- z.number(),
100
- z.boolean(),
101
- ]);
142
+ export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
143
+ .union([
144
+ z.lazy(() => Four$inboundSchema),
145
+ z.string(),
146
+ z.number(),
147
+ z.boolean(),
148
+ ]);
102
149
 
103
150
  /** @internal */
104
- export type ValidationErrorDtoValue$Outbound =
105
- | Four$Outbound
106
- | string
107
- | number
108
- | boolean;
151
+ export type Value$Outbound = Four$Outbound | string | number | boolean;
109
152
 
110
153
  /** @internal */
111
- export const ValidationErrorDtoValue$outboundSchema: z.ZodType<
112
- ValidationErrorDtoValue$Outbound,
154
+ export const Value$outboundSchema: z.ZodType<
155
+ Value$Outbound,
113
156
  z.ZodTypeDef,
114
- ValidationErrorDtoValue
157
+ Value
115
158
  > = z.union([
116
159
  z.lazy(() => Four$outboundSchema),
117
160
  z.string(),
@@ -123,30 +166,26 @@ export const ValidationErrorDtoValue$outboundSchema: z.ZodType<
123
166
  * @internal
124
167
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
125
168
  */
126
- export namespace ValidationErrorDtoValue$ {
127
- /** @deprecated use `ValidationErrorDtoValue$inboundSchema` instead. */
128
- export const inboundSchema = ValidationErrorDtoValue$inboundSchema;
129
- /** @deprecated use `ValidationErrorDtoValue$outboundSchema` instead. */
130
- export const outboundSchema = ValidationErrorDtoValue$outboundSchema;
131
- /** @deprecated use `ValidationErrorDtoValue$Outbound` instead. */
132
- export type Outbound = ValidationErrorDtoValue$Outbound;
169
+ export namespace Value$ {
170
+ /** @deprecated use `Value$inboundSchema` instead. */
171
+ export const inboundSchema = Value$inboundSchema;
172
+ /** @deprecated use `Value$outboundSchema` instead. */
173
+ export const outboundSchema = Value$outboundSchema;
174
+ /** @deprecated use `Value$Outbound` instead. */
175
+ export type Outbound = Value$Outbound;
133
176
  }
134
177
 
135
- export function validationErrorDtoValueToJSON(
136
- validationErrorDtoValue: ValidationErrorDtoValue,
137
- ): string {
138
- return JSON.stringify(
139
- ValidationErrorDtoValue$outboundSchema.parse(validationErrorDtoValue),
140
- );
178
+ export function valueToJSON(value: Value): string {
179
+ return JSON.stringify(Value$outboundSchema.parse(value));
141
180
  }
142
181
 
143
- export function validationErrorDtoValueFromJSON(
182
+ export function valueFromJSON(
144
183
  jsonString: string,
145
- ): SafeParseResult<ValidationErrorDtoValue, SDKValidationError> {
184
+ ): SafeParseResult<Value, SDKValidationError> {
146
185
  return safeParse(
147
186
  jsonString,
148
- (x) => ValidationErrorDtoValue$inboundSchema.parse(JSON.parse(x)),
149
- `Failed to parse 'ValidationErrorDtoValue' from JSON`,
187
+ (x) => Value$inboundSchema.parse(JSON.parse(x)),
188
+ `Failed to parse 'Value' from JSON`,
150
189
  );
151
190
  }
152
191
 
@@ -227,7 +266,10 @@ export const ValidationErrorDto$inboundSchema: z.ZodType<
227
266
  ctx: z.record(z.any()).optional(),
228
267
  errorId: z.string().optional(),
229
268
  errors: z.record(z.lazy(() => Errors$inboundSchema)),
230
- });
269
+ })
270
+ .transform((v) => {
271
+ return new ValidationErrorDto(v);
272
+ });
231
273
 
232
274
  /** @internal */
233
275
  export type ValidationErrorDto$Outbound = {
@@ -245,15 +287,17 @@ export const ValidationErrorDto$outboundSchema: z.ZodType<
245
287
  ValidationErrorDto$Outbound,
246
288
  z.ZodTypeDef,
247
289
  ValidationErrorDto
248
- > = z.object({
249
- statusCode: z.number(),
250
- timestamp: z.string(),
251
- path: z.string(),
252
- message: z.string(),
253
- ctx: z.record(z.any()).optional(),
254
- errorId: z.string().optional(),
255
- errors: z.record(z.lazy(() => Errors$outboundSchema)),
256
- });
290
+ > = z.instanceof(ValidationErrorDto)
291
+ .transform(v => v.data$)
292
+ .pipe(z.object({
293
+ statusCode: z.number(),
294
+ timestamp: z.string(),
295
+ path: z.string(),
296
+ message: z.string(),
297
+ ctx: z.record(z.any()).optional(),
298
+ errorId: z.string().optional(),
299
+ errors: z.record(z.lazy(() => Errors$outboundSchema)),
300
+ }));
257
301
 
258
302
  /**
259
303
  * @internal
@@ -267,21 +311,3 @@ export namespace ValidationErrorDto$ {
267
311
  /** @deprecated use `ValidationErrorDto$Outbound` instead. */
268
312
  export type Outbound = ValidationErrorDto$Outbound;
269
313
  }
270
-
271
- export function validationErrorDtoToJSON(
272
- validationErrorDto: ValidationErrorDto,
273
- ): string {
274
- return JSON.stringify(
275
- ValidationErrorDto$outboundSchema.parse(validationErrorDto),
276
- );
277
- }
278
-
279
- export function validationErrorDtoFromJSON(
280
- jsonString: string,
281
- ): SafeParseResult<ValidationErrorDto, SDKValidationError> {
282
- return safeParse(
283
- jsonString,
284
- (x) => ValidationErrorDto$inboundSchema.parse(JSON.parse(x)),
285
- `Failed to parse 'ValidationErrorDto' from JSON`,
286
- );
287
- }
@@ -9,76 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type EventsControllerTriggerResponseResult =
13
- | components.TriggerEventResponseDto
14
- | components.ValidationErrorDto;
15
-
16
12
  export type EventsControllerTriggerResponse = {
17
13
  headers: { [k: string]: Array<string> };
18
- result: components.TriggerEventResponseDto | components.ValidationErrorDto;
14
+ result: components.TriggerEventResponseDto;
19
15
  };
20
16
 
21
- /** @internal */
22
- export const EventsControllerTriggerResponseResult$inboundSchema: z.ZodType<
23
- EventsControllerTriggerResponseResult,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.union([
27
- components.TriggerEventResponseDto$inboundSchema,
28
- components.ValidationErrorDto$inboundSchema,
29
- ]);
30
-
31
- /** @internal */
32
- export type EventsControllerTriggerResponseResult$Outbound =
33
- | components.TriggerEventResponseDto$Outbound
34
- | components.ValidationErrorDto$Outbound;
35
-
36
- /** @internal */
37
- export const EventsControllerTriggerResponseResult$outboundSchema: z.ZodType<
38
- EventsControllerTriggerResponseResult$Outbound,
39
- z.ZodTypeDef,
40
- EventsControllerTriggerResponseResult
41
- > = z.union([
42
- components.TriggerEventResponseDto$outboundSchema,
43
- components.ValidationErrorDto$outboundSchema,
44
- ]);
45
-
46
- /**
47
- * @internal
48
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
- */
50
- export namespace EventsControllerTriggerResponseResult$ {
51
- /** @deprecated use `EventsControllerTriggerResponseResult$inboundSchema` instead. */
52
- export const inboundSchema =
53
- EventsControllerTriggerResponseResult$inboundSchema;
54
- /** @deprecated use `EventsControllerTriggerResponseResult$outboundSchema` instead. */
55
- export const outboundSchema =
56
- EventsControllerTriggerResponseResult$outboundSchema;
57
- /** @deprecated use `EventsControllerTriggerResponseResult$Outbound` instead. */
58
- export type Outbound = EventsControllerTriggerResponseResult$Outbound;
59
- }
60
-
61
- export function eventsControllerTriggerResponseResultToJSON(
62
- eventsControllerTriggerResponseResult: EventsControllerTriggerResponseResult,
63
- ): string {
64
- return JSON.stringify(
65
- EventsControllerTriggerResponseResult$outboundSchema.parse(
66
- eventsControllerTriggerResponseResult,
67
- ),
68
- );
69
- }
70
-
71
- export function eventsControllerTriggerResponseResultFromJSON(
72
- jsonString: string,
73
- ): SafeParseResult<EventsControllerTriggerResponseResult, SDKValidationError> {
74
- return safeParse(
75
- jsonString,
76
- (x) =>
77
- EventsControllerTriggerResponseResult$inboundSchema.parse(JSON.parse(x)),
78
- `Failed to parse 'EventsControllerTriggerResponseResult' from JSON`,
79
- );
80
- }
81
-
82
17
  /** @internal */
83
18
  export const EventsControllerTriggerResponse$inboundSchema: z.ZodType<
84
19
  EventsControllerTriggerResponse,
@@ -86,10 +21,7 @@ export const EventsControllerTriggerResponse$inboundSchema: z.ZodType<
86
21
  unknown
87
22
  > = z.object({
88
23
  Headers: z.record(z.array(z.string())),
89
- Result: z.union([
90
- components.TriggerEventResponseDto$inboundSchema,
91
- components.ValidationErrorDto$inboundSchema,
92
- ]),
24
+ Result: components.TriggerEventResponseDto$inboundSchema,
93
25
  }).transform((v) => {
94
26
  return remap$(v, {
95
27
  "Headers": "headers",
@@ -100,9 +32,7 @@ export const EventsControllerTriggerResponse$inboundSchema: z.ZodType<
100
32
  /** @internal */
101
33
  export type EventsControllerTriggerResponse$Outbound = {
102
34
  Headers: { [k: string]: Array<string> };
103
- Result:
104
- | components.TriggerEventResponseDto$Outbound
105
- | components.ValidationErrorDto$Outbound;
35
+ Result: components.TriggerEventResponseDto$Outbound;
106
36
  };
107
37
 
108
38
  /** @internal */
@@ -112,10 +42,7 @@ export const EventsControllerTriggerResponse$outboundSchema: z.ZodType<
112
42
  EventsControllerTriggerResponse
113
43
  > = z.object({
114
44
  headers: z.record(z.array(z.string())),
115
- result: z.union([
116
- components.TriggerEventResponseDto$outboundSchema,
117
- components.ValidationErrorDto$outboundSchema,
118
- ]),
45
+ result: components.TriggerEventResponseDto$outboundSchema,
119
46
  }).transform((v) => {
120
47
  return remap$(v, {
121
48
  headers: "Headers",
@@ -9,85 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type EventsControllerTriggerBulkResponseResult =
13
- | components.ValidationErrorDto
14
- | Array<components.TriggerEventResponseDto>;
15
-
16
12
  export type EventsControllerTriggerBulkResponse = {
17
13
  headers: { [k: string]: Array<string> };
18
- result:
19
- | components.ValidationErrorDto
20
- | Array<components.TriggerEventResponseDto>;
14
+ result: Array<components.TriggerEventResponseDto>;
21
15
  };
22
16
 
23
- /** @internal */
24
- export const EventsControllerTriggerBulkResponseResult$inboundSchema: z.ZodType<
25
- EventsControllerTriggerBulkResponseResult,
26
- z.ZodTypeDef,
27
- unknown
28
- > = z.union([
29
- components.ValidationErrorDto$inboundSchema,
30
- z.array(components.TriggerEventResponseDto$inboundSchema),
31
- ]);
32
-
33
- /** @internal */
34
- export type EventsControllerTriggerBulkResponseResult$Outbound =
35
- | components.ValidationErrorDto$Outbound
36
- | Array<components.TriggerEventResponseDto$Outbound>;
37
-
38
- /** @internal */
39
- export const EventsControllerTriggerBulkResponseResult$outboundSchema:
40
- z.ZodType<
41
- EventsControllerTriggerBulkResponseResult$Outbound,
42
- z.ZodTypeDef,
43
- EventsControllerTriggerBulkResponseResult
44
- > = z.union([
45
- components.ValidationErrorDto$outboundSchema,
46
- z.array(components.TriggerEventResponseDto$outboundSchema),
47
- ]);
48
-
49
- /**
50
- * @internal
51
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
- */
53
- export namespace EventsControllerTriggerBulkResponseResult$ {
54
- /** @deprecated use `EventsControllerTriggerBulkResponseResult$inboundSchema` instead. */
55
- export const inboundSchema =
56
- EventsControllerTriggerBulkResponseResult$inboundSchema;
57
- /** @deprecated use `EventsControllerTriggerBulkResponseResult$outboundSchema` instead. */
58
- export const outboundSchema =
59
- EventsControllerTriggerBulkResponseResult$outboundSchema;
60
- /** @deprecated use `EventsControllerTriggerBulkResponseResult$Outbound` instead. */
61
- export type Outbound = EventsControllerTriggerBulkResponseResult$Outbound;
62
- }
63
-
64
- export function eventsControllerTriggerBulkResponseResultToJSON(
65
- eventsControllerTriggerBulkResponseResult:
66
- EventsControllerTriggerBulkResponseResult,
67
- ): string {
68
- return JSON.stringify(
69
- EventsControllerTriggerBulkResponseResult$outboundSchema.parse(
70
- eventsControllerTriggerBulkResponseResult,
71
- ),
72
- );
73
- }
74
-
75
- export function eventsControllerTriggerBulkResponseResultFromJSON(
76
- jsonString: string,
77
- ): SafeParseResult<
78
- EventsControllerTriggerBulkResponseResult,
79
- SDKValidationError
80
- > {
81
- return safeParse(
82
- jsonString,
83
- (x) =>
84
- EventsControllerTriggerBulkResponseResult$inboundSchema.parse(
85
- JSON.parse(x),
86
- ),
87
- `Failed to parse 'EventsControllerTriggerBulkResponseResult' from JSON`,
88
- );
89
- }
90
-
91
17
  /** @internal */
92
18
  export const EventsControllerTriggerBulkResponse$inboundSchema: z.ZodType<
93
19
  EventsControllerTriggerBulkResponse,
@@ -95,10 +21,7 @@ export const EventsControllerTriggerBulkResponse$inboundSchema: z.ZodType<
95
21
  unknown
96
22
  > = z.object({
97
23
  Headers: z.record(z.array(z.string())),
98
- Result: z.union([
99
- components.ValidationErrorDto$inboundSchema,
100
- z.array(components.TriggerEventResponseDto$inboundSchema),
101
- ]),
24
+ Result: z.array(components.TriggerEventResponseDto$inboundSchema),
102
25
  }).transform((v) => {
103
26
  return remap$(v, {
104
27
  "Headers": "headers",
@@ -109,9 +32,7 @@ export const EventsControllerTriggerBulkResponse$inboundSchema: z.ZodType<
109
32
  /** @internal */
110
33
  export type EventsControllerTriggerBulkResponse$Outbound = {
111
34
  Headers: { [k: string]: Array<string> };
112
- Result:
113
- | components.ValidationErrorDto$Outbound
114
- | Array<components.TriggerEventResponseDto$Outbound>;
35
+ Result: Array<components.TriggerEventResponseDto$Outbound>;
115
36
  };
116
37
 
117
38
  /** @internal */
@@ -121,10 +42,7 @@ export const EventsControllerTriggerBulkResponse$outboundSchema: z.ZodType<
121
42
  EventsControllerTriggerBulkResponse
122
43
  > = z.object({
123
44
  headers: z.record(z.array(z.string())),
124
- result: z.union([
125
- components.ValidationErrorDto$outboundSchema,
126
- z.array(components.TriggerEventResponseDto$outboundSchema),
127
- ]),
45
+ result: z.array(components.TriggerEventResponseDto$outboundSchema),
128
46
  }).transform((v) => {
129
47
  return remap$(v, {
130
48
  headers: "Headers",
@@ -9,85 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type IntegrationsControllerCreateIntegrationResponseResult =
13
- | components.ValidationErrorDto
14
- | components.IntegrationResponseDto;
15
-
16
12
  export type IntegrationsControllerCreateIntegrationResponse = {
17
13
  headers: { [k: string]: Array<string> };
18
- result: components.ValidationErrorDto | components.IntegrationResponseDto;
14
+ result: components.IntegrationResponseDto;
19
15
  };
20
16
 
21
- /** @internal */
22
- export const IntegrationsControllerCreateIntegrationResponseResult$inboundSchema:
23
- z.ZodType<
24
- IntegrationsControllerCreateIntegrationResponseResult,
25
- z.ZodTypeDef,
26
- unknown
27
- > = z.union([
28
- components.ValidationErrorDto$inboundSchema,
29
- components.IntegrationResponseDto$inboundSchema,
30
- ]);
31
-
32
- /** @internal */
33
- export type IntegrationsControllerCreateIntegrationResponseResult$Outbound =
34
- | components.ValidationErrorDto$Outbound
35
- | components.IntegrationResponseDto$Outbound;
36
-
37
- /** @internal */
38
- export const IntegrationsControllerCreateIntegrationResponseResult$outboundSchema:
39
- z.ZodType<
40
- IntegrationsControllerCreateIntegrationResponseResult$Outbound,
41
- z.ZodTypeDef,
42
- IntegrationsControllerCreateIntegrationResponseResult
43
- > = z.union([
44
- components.ValidationErrorDto$outboundSchema,
45
- components.IntegrationResponseDto$outboundSchema,
46
- ]);
47
-
48
- /**
49
- * @internal
50
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
- */
52
- export namespace IntegrationsControllerCreateIntegrationResponseResult$ {
53
- /** @deprecated use `IntegrationsControllerCreateIntegrationResponseResult$inboundSchema` instead. */
54
- export const inboundSchema =
55
- IntegrationsControllerCreateIntegrationResponseResult$inboundSchema;
56
- /** @deprecated use `IntegrationsControllerCreateIntegrationResponseResult$outboundSchema` instead. */
57
- export const outboundSchema =
58
- IntegrationsControllerCreateIntegrationResponseResult$outboundSchema;
59
- /** @deprecated use `IntegrationsControllerCreateIntegrationResponseResult$Outbound` instead. */
60
- export type Outbound =
61
- IntegrationsControllerCreateIntegrationResponseResult$Outbound;
62
- }
63
-
64
- export function integrationsControllerCreateIntegrationResponseResultToJSON(
65
- integrationsControllerCreateIntegrationResponseResult:
66
- IntegrationsControllerCreateIntegrationResponseResult,
67
- ): string {
68
- return JSON.stringify(
69
- IntegrationsControllerCreateIntegrationResponseResult$outboundSchema.parse(
70
- integrationsControllerCreateIntegrationResponseResult,
71
- ),
72
- );
73
- }
74
-
75
- export function integrationsControllerCreateIntegrationResponseResultFromJSON(
76
- jsonString: string,
77
- ): SafeParseResult<
78
- IntegrationsControllerCreateIntegrationResponseResult,
79
- SDKValidationError
80
- > {
81
- return safeParse(
82
- jsonString,
83
- (x) =>
84
- IntegrationsControllerCreateIntegrationResponseResult$inboundSchema.parse(
85
- JSON.parse(x),
86
- ),
87
- `Failed to parse 'IntegrationsControllerCreateIntegrationResponseResult' from JSON`,
88
- );
89
- }
90
-
91
17
  /** @internal */
92
18
  export const IntegrationsControllerCreateIntegrationResponse$inboundSchema:
93
19
  z.ZodType<
@@ -96,10 +22,7 @@ export const IntegrationsControllerCreateIntegrationResponse$inboundSchema:
96
22
  unknown
97
23
  > = z.object({
98
24
  Headers: z.record(z.array(z.string())),
99
- Result: z.union([
100
- components.ValidationErrorDto$inboundSchema,
101
- components.IntegrationResponseDto$inboundSchema,
102
- ]),
25
+ Result: components.IntegrationResponseDto$inboundSchema,
103
26
  }).transform((v) => {
104
27
  return remap$(v, {
105
28
  "Headers": "headers",
@@ -110,9 +33,7 @@ export const IntegrationsControllerCreateIntegrationResponse$inboundSchema:
110
33
  /** @internal */
111
34
  export type IntegrationsControllerCreateIntegrationResponse$Outbound = {
112
35
  Headers: { [k: string]: Array<string> };
113
- Result:
114
- | components.ValidationErrorDto$Outbound
115
- | components.IntegrationResponseDto$Outbound;
36
+ Result: components.IntegrationResponseDto$Outbound;
116
37
  };
117
38
 
118
39
  /** @internal */
@@ -123,10 +44,7 @@ export const IntegrationsControllerCreateIntegrationResponse$outboundSchema:
123
44
  IntegrationsControllerCreateIntegrationResponse
124
45
  > = z.object({
125
46
  headers: z.record(z.array(z.string())),
126
- result: z.union([
127
- components.ValidationErrorDto$outboundSchema,
128
- components.IntegrationResponseDto$outboundSchema,
129
- ]),
47
+ result: components.IntegrationResponseDto$outboundSchema,
130
48
  }).transform((v) => {
131
49
  return remap$(v, {
132
50
  headers: "Headers",
@@ -7,7 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
- import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
12
  /**
@@ -35,7 +34,6 @@ export type MessagesControllerDeleteMessagesByTransactionIdRequest = {
35
34
 
36
35
  export type MessagesControllerDeleteMessagesByTransactionIdResponse = {
37
36
  headers: { [k: string]: Array<string> };
38
- result: components.ValidationErrorDto;
39
37
  };
40
38
 
41
39
  /** @internal */
@@ -135,18 +133,15 @@ export const MessagesControllerDeleteMessagesByTransactionIdResponse$inboundSche
135
133
  unknown
136
134
  > = z.object({
137
135
  Headers: z.record(z.array(z.string())),
138
- Result: components.ValidationErrorDto$inboundSchema,
139
136
  }).transform((v) => {
140
137
  return remap$(v, {
141
138
  "Headers": "headers",
142
- "Result": "result",
143
139
  });
144
140
  });
145
141
 
146
142
  /** @internal */
147
143
  export type MessagesControllerDeleteMessagesByTransactionIdResponse$Outbound = {
148
144
  Headers: { [k: string]: Array<string> };
149
- Result: components.ValidationErrorDto$Outbound;
150
145
  };
151
146
 
152
147
  /** @internal */
@@ -157,11 +152,9 @@ export const MessagesControllerDeleteMessagesByTransactionIdResponse$outboundSch
157
152
  MessagesControllerDeleteMessagesByTransactionIdResponse
158
153
  > = z.object({
159
154
  headers: z.record(z.array(z.string())),
160
- result: components.ValidationErrorDto$outboundSchema,
161
155
  }).transform((v) => {
162
156
  return remap$(v, {
163
157
  headers: "Headers",
164
- result: "Result",
165
158
  });
166
159
  });
167
160
 
@@ -6,12 +6,10 @@ import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
- import * as components from "../components/index.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
 
12
11
  export type SubscribersControllerBulkCreateSubscribersResponse = {
13
12
  headers: { [k: string]: Array<string> };
14
- result: components.ValidationErrorDto;
15
13
  };
16
14
 
17
15
  /** @internal */
@@ -22,18 +20,15 @@ export const SubscribersControllerBulkCreateSubscribersResponse$inboundSchema:
22
20
  unknown
23
21
  > = z.object({
24
22
  Headers: z.record(z.array(z.string())),
25
- Result: components.ValidationErrorDto$inboundSchema,
26
23
  }).transform((v) => {
27
24
  return remap$(v, {
28
25
  "Headers": "headers",
29
- "Result": "result",
30
26
  });
31
27
  });
32
28
 
33
29
  /** @internal */
34
30
  export type SubscribersControllerBulkCreateSubscribersResponse$Outbound = {
35
31
  Headers: { [k: string]: Array<string> };
36
- Result: components.ValidationErrorDto$Outbound;
37
32
  };
38
33
 
39
34
  /** @internal */
@@ -44,11 +39,9 @@ export const SubscribersControllerBulkCreateSubscribersResponse$outboundSchema:
44
39
  SubscribersControllerBulkCreateSubscribersResponse
45
40
  > = z.object({
46
41
  headers: z.record(z.array(z.string())),
47
- result: components.ValidationErrorDto$outboundSchema,
48
42
  }).transform((v) => {
49
43
  return remap$(v, {
50
44
  headers: "Headers",
51
- result: "Result",
52
45
  });
53
46
  });
54
47