@novu/api 0.0.1-alpha.190 → 0.0.1-alpha.191

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 (341) hide show
  1. package/README.md +11 -5
  2. package/docs/sdks/admin/README.md +12 -10
  3. package/docs/sdks/authentication/README.md +12 -10
  4. package/docs/sdks/credentials/README.md +18 -15
  5. package/docs/sdks/integrations/README.md +36 -30
  6. package/docs/sdks/messages/README.md +18 -15
  7. package/docs/sdks/notifications/README.md +12 -10
  8. package/docs/sdks/novu/README.md +24 -20
  9. package/docs/sdks/novumessages/README.md +18 -15
  10. package/docs/sdks/novunotifications/README.md +12 -10
  11. package/docs/sdks/novusubscribers/README.md +18 -15
  12. package/docs/sdks/preferences/README.md +24 -20
  13. package/docs/sdks/properties/README.md +6 -5
  14. package/docs/sdks/stats/README.md +12 -10
  15. package/docs/sdks/subscribers/README.md +36 -30
  16. package/docs/sdks/topics/README.md +30 -25
  17. package/docs/sdks/webhooks/README.md +6 -5
  18. package/funcs/adminIdempotencyGet.d.ts +1 -1
  19. package/funcs/adminIdempotencyGet.d.ts.map +1 -1
  20. package/funcs/adminIdempotencyGet.js +5 -3
  21. package/funcs/adminIdempotencyGet.js.map +1 -1
  22. package/funcs/adminIdempotencyPost.d.ts +1 -1
  23. package/funcs/adminIdempotencyPost.d.ts.map +1 -1
  24. package/funcs/adminIdempotencyPost.js +6 -4
  25. package/funcs/adminIdempotencyPost.js.map +1 -1
  26. package/funcs/cancel.d.ts +1 -1
  27. package/funcs/cancel.d.ts.map +1 -1
  28. package/funcs/cancel.js +5 -3
  29. package/funcs/cancel.js.map +1 -1
  30. package/funcs/integrationsCreate.d.ts +1 -1
  31. package/funcs/integrationsCreate.d.ts.map +1 -1
  32. package/funcs/integrationsCreate.js +5 -3
  33. package/funcs/integrationsCreate.js.map +1 -1
  34. package/funcs/integrationsDelete.d.ts +1 -1
  35. package/funcs/integrationsDelete.d.ts.map +1 -1
  36. package/funcs/integrationsDelete.js +5 -3
  37. package/funcs/integrationsDelete.js.map +1 -1
  38. package/funcs/integrationsList.d.ts +1 -1
  39. package/funcs/integrationsList.d.ts.map +1 -1
  40. package/funcs/integrationsList.js +5 -3
  41. package/funcs/integrationsList.js.map +1 -1
  42. package/funcs/integrationsListActive.d.ts +1 -1
  43. package/funcs/integrationsListActive.d.ts.map +1 -1
  44. package/funcs/integrationsListActive.js +5 -3
  45. package/funcs/integrationsListActive.js.map +1 -1
  46. package/funcs/integrationsSetAsPrimary.d.ts +1 -1
  47. package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
  48. package/funcs/integrationsSetAsPrimary.js +5 -3
  49. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  50. package/funcs/integrationsUpdate.d.ts +1 -1
  51. package/funcs/integrationsUpdate.d.ts.map +1 -1
  52. package/funcs/integrationsUpdate.js +5 -3
  53. package/funcs/integrationsUpdate.js.map +1 -1
  54. package/funcs/integrationsWebhooksRetrieve.d.ts +1 -1
  55. package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
  56. package/funcs/integrationsWebhooksRetrieve.js +5 -3
  57. package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
  58. package/funcs/messagesDelete.d.ts +1 -1
  59. package/funcs/messagesDelete.d.ts.map +1 -1
  60. package/funcs/messagesDelete.js +5 -3
  61. package/funcs/messagesDelete.js.map +1 -1
  62. package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
  63. package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
  64. package/funcs/messagesDeleteByTransactionId.js +6 -6
  65. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  66. package/funcs/messagesRetrieve.d.ts +1 -1
  67. package/funcs/messagesRetrieve.d.ts.map +1 -1
  68. package/funcs/messagesRetrieve.js +5 -3
  69. package/funcs/messagesRetrieve.js.map +1 -1
  70. package/funcs/notificationsList.d.ts +1 -1
  71. package/funcs/notificationsList.d.ts.map +1 -1
  72. package/funcs/notificationsList.js +5 -3
  73. package/funcs/notificationsList.js.map +1 -1
  74. package/funcs/notificationsRetrieve.d.ts +1 -1
  75. package/funcs/notificationsRetrieve.d.ts.map +1 -1
  76. package/funcs/notificationsRetrieve.js +5 -3
  77. package/funcs/notificationsRetrieve.js.map +1 -1
  78. package/funcs/notificationsStatsGraph.d.ts +1 -1
  79. package/funcs/notificationsStatsGraph.d.ts.map +1 -1
  80. package/funcs/notificationsStatsGraph.js +5 -3
  81. package/funcs/notificationsStatsGraph.js.map +1 -1
  82. package/funcs/notificationsStatsRetrieve.d.ts +1 -1
  83. package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
  84. package/funcs/notificationsStatsRetrieve.js +5 -3
  85. package/funcs/notificationsStatsRetrieve.js.map +1 -1
  86. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +1 -1
  87. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
  88. package/funcs/subscribersAuthenticationChatAccessOauth.js +5 -3
  89. package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
  90. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +1 -1
  91. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
  92. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +5 -3
  93. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
  94. package/funcs/subscribersCreate.d.ts +1 -1
  95. package/funcs/subscribersCreate.d.ts.map +1 -1
  96. package/funcs/subscribersCreate.js +5 -3
  97. package/funcs/subscribersCreate.js.map +1 -1
  98. package/funcs/subscribersCreateBulk.d.ts +1 -1
  99. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  100. package/funcs/subscribersCreateBulk.js +6 -5
  101. package/funcs/subscribersCreateBulk.js.map +1 -1
  102. package/funcs/subscribersCredentialsAppend.d.ts +1 -1
  103. package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
  104. package/funcs/subscribersCredentialsAppend.js +5 -3
  105. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  106. package/funcs/subscribersCredentialsDelete.d.ts +1 -1
  107. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  108. package/funcs/subscribersCredentialsDelete.js +6 -6
  109. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  110. package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
  111. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  112. package/funcs/subscribersCredentialsUpdate.js +5 -3
  113. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  114. package/funcs/subscribersDelete.d.ts +1 -1
  115. package/funcs/subscribersDelete.d.ts.map +1 -1
  116. package/funcs/subscribersDelete.js +5 -3
  117. package/funcs/subscribersDelete.js.map +1 -1
  118. package/funcs/subscribersList.d.ts +1 -1
  119. package/funcs/subscribersList.d.ts.map +1 -1
  120. package/funcs/subscribersList.js +5 -3
  121. package/funcs/subscribersList.js.map +1 -1
  122. package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
  123. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  124. package/funcs/subscribersMessagesMarkAll.js +5 -3
  125. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  126. package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
  127. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  128. package/funcs/subscribersMessagesMarkAllAs.js +5 -3
  129. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  130. package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
  131. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  132. package/funcs/subscribersMessagesUpdateAsSeen.js +5 -3
  133. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  134. package/funcs/subscribersNotificationsFeed.d.ts +1 -1
  135. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  136. package/funcs/subscribersNotificationsFeed.js +5 -3
  137. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  138. package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
  139. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  140. package/funcs/subscribersNotificationsUnseenCount.js +5 -3
  141. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  142. package/funcs/subscribersPreferencesList.d.ts +1 -1
  143. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  144. package/funcs/subscribersPreferencesList.js +5 -3
  145. package/funcs/subscribersPreferencesList.js.map +1 -1
  146. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts +1 -1
  147. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
  148. package/funcs/subscribersPreferencesRetrieveByLevel.js +5 -3
  149. package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
  150. package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
  151. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  152. package/funcs/subscribersPreferencesUpdate.js +5 -3
  153. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  154. package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -1
  155. package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
  156. package/funcs/subscribersPreferencesUpdateGlobal.js +5 -3
  157. package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
  158. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
  159. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
  160. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +5 -3
  161. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  162. package/funcs/subscribersRetrieve.d.ts +1 -1
  163. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  164. package/funcs/subscribersRetrieve.js +5 -3
  165. package/funcs/subscribersRetrieve.js.map +1 -1
  166. package/funcs/subscribersUpdate.d.ts +1 -1
  167. package/funcs/subscribersUpdate.d.ts.map +1 -1
  168. package/funcs/subscribersUpdate.js +5 -3
  169. package/funcs/subscribersUpdate.js.map +1 -1
  170. package/funcs/topicsCreate.d.ts +1 -1
  171. package/funcs/topicsCreate.d.ts.map +1 -1
  172. package/funcs/topicsCreate.js +6 -7
  173. package/funcs/topicsCreate.js.map +1 -1
  174. package/funcs/topicsDelete.d.ts +1 -1
  175. package/funcs/topicsDelete.d.ts.map +1 -1
  176. package/funcs/topicsDelete.js +5 -3
  177. package/funcs/topicsDelete.js.map +1 -1
  178. package/funcs/topicsList.d.ts +1 -1
  179. package/funcs/topicsList.d.ts.map +1 -1
  180. package/funcs/topicsList.js +5 -3
  181. package/funcs/topicsList.js.map +1 -1
  182. package/funcs/topicsRename.d.ts +1 -1
  183. package/funcs/topicsRename.d.ts.map +1 -1
  184. package/funcs/topicsRename.js +5 -3
  185. package/funcs/topicsRename.js.map +1 -1
  186. package/funcs/topicsRetrieve.d.ts +1 -1
  187. package/funcs/topicsRetrieve.d.ts.map +1 -1
  188. package/funcs/topicsRetrieve.js +5 -3
  189. package/funcs/topicsRetrieve.js.map +1 -1
  190. package/funcs/topicsSubscribersAssign.d.ts +1 -1
  191. package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
  192. package/funcs/topicsSubscribersAssign.js +5 -3
  193. package/funcs/topicsSubscribersAssign.js.map +1 -1
  194. package/funcs/topicsSubscribersRemove.d.ts +1 -1
  195. package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
  196. package/funcs/topicsSubscribersRemove.js +6 -5
  197. package/funcs/topicsSubscribersRemove.js.map +1 -1
  198. package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
  199. package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
  200. package/funcs/topicsSubscribersRetrieve.js +5 -3
  201. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  202. package/funcs/trigger.d.ts +1 -1
  203. package/funcs/trigger.d.ts.map +1 -1
  204. package/funcs/trigger.js +6 -7
  205. package/funcs/trigger.js.map +1 -1
  206. package/funcs/triggerBroadcast.d.ts +1 -1
  207. package/funcs/triggerBroadcast.d.ts.map +1 -1
  208. package/funcs/triggerBroadcast.js +5 -3
  209. package/funcs/triggerBroadcast.js.map +1 -1
  210. package/funcs/triggerBulk.d.ts +1 -1
  211. package/funcs/triggerBulk.d.ts.map +1 -1
  212. package/funcs/triggerBulk.js +6 -7
  213. package/funcs/triggerBulk.js.map +1 -1
  214. package/lib/config.d.ts +2 -2
  215. package/lib/config.js +2 -2
  216. package/models/components/index.d.ts +0 -1
  217. package/models/components/index.d.ts.map +1 -1
  218. package/models/components/index.js +0 -1
  219. package/models/components/index.js.map +1 -1
  220. package/models/operations/eventscontrollertrigger.d.ts +2 -23
  221. package/models/operations/eventscontrollertrigger.d.ts.map +1 -1
  222. package/models/operations/eventscontrollertrigger.js +3 -38
  223. package/models/operations/eventscontrollertrigger.js.map +1 -1
  224. package/models/operations/eventscontrollertriggerbulk.d.ts +2 -23
  225. package/models/operations/eventscontrollertriggerbulk.d.ts.map +1 -1
  226. package/models/operations/eventscontrollertriggerbulk.js +3 -38
  227. package/models/operations/eventscontrollertriggerbulk.js.map +1 -1
  228. package/models/operations/integrationscontrollercreateintegration.d.ts +2 -23
  229. package/models/operations/integrationscontrollercreateintegration.d.ts.map +1 -1
  230. package/models/operations/integrationscontrollercreateintegration.js +3 -38
  231. package/models/operations/integrationscontrollercreateintegration.js.map +1 -1
  232. package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +0 -3
  233. package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts.map +1 -1
  234. package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +0 -5
  235. package/models/operations/messagescontrollerdeletemessagesbytransactionid.js.map +1 -1
  236. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +2 -23
  237. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
  238. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +3 -40
  239. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +1 -1
  240. package/models/operations/subscriberscontrollercreatesubscriber.d.ts +2 -23
  241. package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +1 -1
  242. package/models/operations/subscriberscontrollercreatesubscriber.js +3 -38
  243. package/models/operations/subscriberscontrollercreatesubscriber.js.map +1 -1
  244. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +0 -3
  245. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
  246. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +0 -5
  247. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
  248. package/models/operations/subscriberscontrollermarkactionasseen.d.ts +2 -23
  249. package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
  250. package/models/operations/subscriberscontrollermarkactionasseen.js +3 -38
  251. package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
  252. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +2 -23
  253. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
  254. package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -27
  255. package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
  256. package/models/operations/subscriberscontrollermarkmessagesas.d.ts +2 -23
  257. package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
  258. package/models/operations/subscriberscontrollermarkmessagesas.js +3 -38
  259. package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
  260. package/models/operations/topicscontrollercreatetopic.d.ts +2 -23
  261. package/models/operations/topicscontrollercreatetopic.d.ts.map +1 -1
  262. package/models/operations/topicscontrollercreatetopic.js +3 -38
  263. package/models/operations/topicscontrollercreatetopic.js.map +1 -1
  264. package/models/operations/topicscontrollerdeletetopic.d.ts +0 -3
  265. package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
  266. package/models/operations/topicscontrollerdeletetopic.js +0 -5
  267. package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
  268. package/models/operations/topicscontrollerremovesubscribers.d.ts +0 -2
  269. package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
  270. package/models/operations/topicscontrollerremovesubscribers.js +0 -4
  271. package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
  272. package/package.json +1 -1
  273. package/src/funcs/adminIdempotencyGet.ts +12 -3
  274. package/src/funcs/adminIdempotencyPost.ts +13 -4
  275. package/src/funcs/cancel.ts +12 -3
  276. package/src/funcs/integrationsCreate.ts +12 -8
  277. package/src/funcs/integrationsDelete.ts +12 -3
  278. package/src/funcs/integrationsList.ts +12 -3
  279. package/src/funcs/integrationsListActive.ts +12 -3
  280. package/src/funcs/integrationsSetAsPrimary.ts +12 -3
  281. package/src/funcs/integrationsUpdate.ts +12 -3
  282. package/src/funcs/integrationsWebhooksRetrieve.ts +12 -3
  283. package/src/funcs/messagesDelete.ts +12 -3
  284. package/src/funcs/messagesDeleteByTransactionId.ts +12 -10
  285. package/src/funcs/messagesRetrieve.ts +12 -3
  286. package/src/funcs/notificationsList.ts +12 -3
  287. package/src/funcs/notificationsRetrieve.ts +12 -3
  288. package/src/funcs/notificationsStatsGraph.ts +12 -3
  289. package/src/funcs/notificationsStatsRetrieve.ts +12 -3
  290. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +12 -3
  291. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +12 -3
  292. package/src/funcs/subscribersCreate.ts +12 -8
  293. package/src/funcs/subscribersCreateBulk.ts +12 -9
  294. package/src/funcs/subscribersCredentialsAppend.ts +12 -3
  295. package/src/funcs/subscribersCredentialsDelete.ts +12 -10
  296. package/src/funcs/subscribersCredentialsUpdate.ts +12 -3
  297. package/src/funcs/subscribersDelete.ts +12 -3
  298. package/src/funcs/subscribersList.ts +13 -3
  299. package/src/funcs/subscribersMessagesMarkAll.ts +12 -8
  300. package/src/funcs/subscribersMessagesMarkAllAs.ts +12 -8
  301. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +12 -8
  302. package/src/funcs/subscribersNotificationsFeed.ts +12 -3
  303. package/src/funcs/subscribersNotificationsUnseenCount.ts +12 -3
  304. package/src/funcs/subscribersPreferencesList.ts +12 -3
  305. package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +12 -3
  306. package/src/funcs/subscribersPreferencesUpdate.ts +12 -3
  307. package/src/funcs/subscribersPreferencesUpdateGlobal.ts +12 -3
  308. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +12 -3
  309. package/src/funcs/subscribersRetrieve.ts +12 -3
  310. package/src/funcs/subscribersUpdate.ts +12 -3
  311. package/src/funcs/topicsCreate.ts +12 -7
  312. package/src/funcs/topicsDelete.ts +12 -8
  313. package/src/funcs/topicsList.ts +12 -3
  314. package/src/funcs/topicsRename.ts +12 -3
  315. package/src/funcs/topicsRetrieve.ts +12 -3
  316. package/src/funcs/topicsSubscribersAssign.ts +12 -3
  317. package/src/funcs/topicsSubscribersRemove.ts +12 -9
  318. package/src/funcs/topicsSubscribersRetrieve.ts +12 -3
  319. package/src/funcs/trigger.ts +12 -7
  320. package/src/funcs/triggerBroadcast.ts +12 -3
  321. package/src/funcs/triggerBulk.ts +12 -7
  322. package/src/lib/config.ts +2 -2
  323. package/src/models/components/index.ts +0 -1
  324. package/src/models/operations/eventscontrollertrigger.ts +4 -77
  325. package/src/models/operations/eventscontrollertriggerbulk.ts +4 -84
  326. package/src/models/operations/integrationscontrollercreateintegration.ts +4 -86
  327. package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +0 -7
  328. package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +4 -84
  329. package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -86
  330. package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -7
  331. package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -84
  332. package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -71
  333. package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -86
  334. package/src/models/operations/topicscontrollercreatetopic.ts +4 -84
  335. package/src/models/operations/topicscontrollerdeletetopic.ts +0 -7
  336. package/src/models/operations/topicscontrollerremovesubscribers.ts +0 -6
  337. package/models/components/errordto.d.ts +0 -64
  338. package/models/components/errordto.d.ts.map +0 -1
  339. package/models/components/errordto.js +0 -69
  340. package/models/components/errordto.js.map +0 -1
  341. package/src/models/components/errordto.ts +0 -103
@@ -17,13 +17,9 @@ export type TopicsControllerCreateTopicRequest = {
17
17
  createTopicRequestDto: components.CreateTopicRequestDto;
18
18
  };
19
19
 
20
- export type TopicsControllerCreateTopicResponseResult =
21
- | components.CreateTopicResponseDto
22
- | components.ErrorDto;
23
-
24
20
  export type TopicsControllerCreateTopicResponse = {
25
21
  headers: { [k: string]: Array<string> };
26
- result: components.CreateTopicResponseDto | components.ErrorDto;
22
+ result: components.CreateTopicResponseDto;
27
23
  };
28
24
 
29
25
  /** @internal */
@@ -97,74 +93,6 @@ export function topicsControllerCreateTopicRequestFromJSON(
97
93
  );
98
94
  }
99
95
 
100
- /** @internal */
101
- export const TopicsControllerCreateTopicResponseResult$inboundSchema: z.ZodType<
102
- TopicsControllerCreateTopicResponseResult,
103
- z.ZodTypeDef,
104
- unknown
105
- > = z.union([
106
- components.CreateTopicResponseDto$inboundSchema,
107
- components.ErrorDto$inboundSchema,
108
- ]);
109
-
110
- /** @internal */
111
- export type TopicsControllerCreateTopicResponseResult$Outbound =
112
- | components.CreateTopicResponseDto$Outbound
113
- | components.ErrorDto$Outbound;
114
-
115
- /** @internal */
116
- export const TopicsControllerCreateTopicResponseResult$outboundSchema:
117
- z.ZodType<
118
- TopicsControllerCreateTopicResponseResult$Outbound,
119
- z.ZodTypeDef,
120
- TopicsControllerCreateTopicResponseResult
121
- > = z.union([
122
- components.CreateTopicResponseDto$outboundSchema,
123
- components.ErrorDto$outboundSchema,
124
- ]);
125
-
126
- /**
127
- * @internal
128
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
129
- */
130
- export namespace TopicsControllerCreateTopicResponseResult$ {
131
- /** @deprecated use `TopicsControllerCreateTopicResponseResult$inboundSchema` instead. */
132
- export const inboundSchema =
133
- TopicsControllerCreateTopicResponseResult$inboundSchema;
134
- /** @deprecated use `TopicsControllerCreateTopicResponseResult$outboundSchema` instead. */
135
- export const outboundSchema =
136
- TopicsControllerCreateTopicResponseResult$outboundSchema;
137
- /** @deprecated use `TopicsControllerCreateTopicResponseResult$Outbound` instead. */
138
- export type Outbound = TopicsControllerCreateTopicResponseResult$Outbound;
139
- }
140
-
141
- export function topicsControllerCreateTopicResponseResultToJSON(
142
- topicsControllerCreateTopicResponseResult:
143
- TopicsControllerCreateTopicResponseResult,
144
- ): string {
145
- return JSON.stringify(
146
- TopicsControllerCreateTopicResponseResult$outboundSchema.parse(
147
- topicsControllerCreateTopicResponseResult,
148
- ),
149
- );
150
- }
151
-
152
- export function topicsControllerCreateTopicResponseResultFromJSON(
153
- jsonString: string,
154
- ): SafeParseResult<
155
- TopicsControllerCreateTopicResponseResult,
156
- SDKValidationError
157
- > {
158
- return safeParse(
159
- jsonString,
160
- (x) =>
161
- TopicsControllerCreateTopicResponseResult$inboundSchema.parse(
162
- JSON.parse(x),
163
- ),
164
- `Failed to parse 'TopicsControllerCreateTopicResponseResult' from JSON`,
165
- );
166
- }
167
-
168
96
  /** @internal */
169
97
  export const TopicsControllerCreateTopicResponse$inboundSchema: z.ZodType<
170
98
  TopicsControllerCreateTopicResponse,
@@ -172,10 +100,7 @@ export const TopicsControllerCreateTopicResponse$inboundSchema: z.ZodType<
172
100
  unknown
173
101
  > = z.object({
174
102
  Headers: z.record(z.array(z.string())),
175
- Result: z.union([
176
- components.CreateTopicResponseDto$inboundSchema,
177
- components.ErrorDto$inboundSchema,
178
- ]),
103
+ Result: components.CreateTopicResponseDto$inboundSchema,
179
104
  }).transform((v) => {
180
105
  return remap$(v, {
181
106
  "Headers": "headers",
@@ -186,9 +111,7 @@ export const TopicsControllerCreateTopicResponse$inboundSchema: z.ZodType<
186
111
  /** @internal */
187
112
  export type TopicsControllerCreateTopicResponse$Outbound = {
188
113
  Headers: { [k: string]: Array<string> };
189
- Result:
190
- | components.CreateTopicResponseDto$Outbound
191
- | components.ErrorDto$Outbound;
114
+ Result: components.CreateTopicResponseDto$Outbound;
192
115
  };
193
116
 
194
117
  /** @internal */
@@ -198,10 +121,7 @@ export const TopicsControllerCreateTopicResponse$outboundSchema: z.ZodType<
198
121
  TopicsControllerCreateTopicResponse
199
122
  > = z.object({
200
123
  headers: z.record(z.array(z.string())),
201
- result: z.union([
202
- components.CreateTopicResponseDto$outboundSchema,
203
- components.ErrorDto$outboundSchema,
204
- ]),
124
+ result: components.CreateTopicResponseDto$outboundSchema,
205
125
  }).transform((v) => {
206
126
  return remap$(v, {
207
127
  headers: "Headers",
@@ -6,7 +6,6 @@ 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 TopicsControllerDeleteTopicRequest = {
@@ -22,7 +21,6 @@ export type TopicsControllerDeleteTopicRequest = {
22
21
 
23
22
  export type TopicsControllerDeleteTopicResponse = {
24
23
  headers: { [k: string]: Array<string> };
25
- result: components.ErrorDto;
26
24
  };
27
25
 
28
26
  /** @internal */
@@ -101,18 +99,15 @@ export const TopicsControllerDeleteTopicResponse$inboundSchema: z.ZodType<
101
99
  unknown
102
100
  > = z.object({
103
101
  Headers: z.record(z.array(z.string())),
104
- Result: components.ErrorDto$inboundSchema,
105
102
  }).transform((v) => {
106
103
  return remap$(v, {
107
104
  "Headers": "headers",
108
- "Result": "result",
109
105
  });
110
106
  });
111
107
 
112
108
  /** @internal */
113
109
  export type TopicsControllerDeleteTopicResponse$Outbound = {
114
110
  Headers: { [k: string]: Array<string> };
115
- Result: components.ErrorDto$Outbound;
116
111
  };
117
112
 
118
113
  /** @internal */
@@ -122,11 +117,9 @@ export const TopicsControllerDeleteTopicResponse$outboundSchema: z.ZodType<
122
117
  TopicsControllerDeleteTopicResponse
123
118
  > = z.object({
124
119
  headers: z.record(z.array(z.string())),
125
- result: components.ErrorDto$outboundSchema,
126
120
  }).transform((v) => {
127
121
  return remap$(v, {
128
122
  headers: "Headers",
129
- result: "Result",
130
123
  });
131
124
  });
132
125
 
@@ -23,7 +23,6 @@ export type TopicsControllerRemoveSubscribersRequest = {
23
23
 
24
24
  export type TopicsControllerRemoveSubscribersResponse = {
25
25
  headers: { [k: string]: Array<string> };
26
- result: components.ErrorDto;
27
26
  };
28
27
 
29
28
  /** @internal */
@@ -116,18 +115,15 @@ export const TopicsControllerRemoveSubscribersResponse$inboundSchema: z.ZodType<
116
115
  unknown
117
116
  > = z.object({
118
117
  Headers: z.record(z.array(z.string())),
119
- Result: components.ErrorDto$inboundSchema,
120
118
  }).transform((v) => {
121
119
  return remap$(v, {
122
120
  "Headers": "headers",
123
- "Result": "result",
124
121
  });
125
122
  });
126
123
 
127
124
  /** @internal */
128
125
  export type TopicsControllerRemoveSubscribersResponse$Outbound = {
129
126
  Headers: { [k: string]: Array<string> };
130
- Result: components.ErrorDto$Outbound;
131
127
  };
132
128
 
133
129
  /** @internal */
@@ -138,11 +134,9 @@ export const TopicsControllerRemoveSubscribersResponse$outboundSchema:
138
134
  TopicsControllerRemoveSubscribersResponse
139
135
  > = z.object({
140
136
  headers: z.record(z.array(z.string())),
141
- result: components.ErrorDto$outboundSchema,
142
137
  }).transform((v) => {
143
138
  return remap$(v, {
144
139
  headers: "Headers",
145
- result: "Result",
146
140
  });
147
141
  });
148
142
 
@@ -1,64 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type ErrorDto = {
5
- /**
6
- * HTTP status code of the error response.
7
- */
8
- statusCode: number;
9
- /**
10
- * Timestamp of when the error occurred.
11
- */
12
- timestamp: string;
13
- /**
14
- * The path where the error occurred.
15
- */
16
- path: string;
17
- /**
18
- * A detailed error message.
19
- */
20
- message: string;
21
- /**
22
- * Optional context object for additional error details.
23
- */
24
- ctx?: {
25
- [k: string]: any;
26
- } | undefined;
27
- /**
28
- * Optional unique identifier for the error, useful for tracking using Sentry and
29
- *
30
- * @remarks
31
- * New Relic, only available for 500.
32
- */
33
- errorId?: string | undefined;
34
- };
35
- /** @internal */
36
- export declare const ErrorDto$inboundSchema: z.ZodType<ErrorDto, z.ZodTypeDef, unknown>;
37
- /** @internal */
38
- export type ErrorDto$Outbound = {
39
- statusCode: number;
40
- timestamp: string;
41
- path: string;
42
- message: string;
43
- ctx?: {
44
- [k: string]: any;
45
- } | undefined;
46
- errorId?: string | undefined;
47
- };
48
- /** @internal */
49
- export declare const ErrorDto$outboundSchema: z.ZodType<ErrorDto$Outbound, z.ZodTypeDef, ErrorDto>;
50
- /**
51
- * @internal
52
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
- */
54
- export declare namespace ErrorDto$ {
55
- /** @deprecated use `ErrorDto$inboundSchema` instead. */
56
- const inboundSchema: z.ZodType<ErrorDto, z.ZodTypeDef, unknown>;
57
- /** @deprecated use `ErrorDto$outboundSchema` instead. */
58
- const outboundSchema: z.ZodType<ErrorDto$Outbound, z.ZodTypeDef, ErrorDto>;
59
- /** @deprecated use `ErrorDto$Outbound` instead. */
60
- type Outbound = ErrorDto$Outbound;
61
- }
62
- export declare function errorDtoToJSON(errorDto: ErrorDto): string;
63
- export declare function errorDtoFromJSON(jsonString: string): SafeParseResult<ErrorDto, SDKValidationError>;
64
- //# sourceMappingURL=errordto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errordto.d.ts","sourceRoot":"","sources":["../../src/models/components/errordto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAQR,CAAC;AAEH;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa,4CAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc,sDAA0B,CAAC;IACtD,mDAAmD;IACnD,KAAY,QAAQ,GAAG,iBAAiB,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
@@ -1,69 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.errorDtoFromJSON = exports.errorDtoToJSON = exports.ErrorDto$ = exports.ErrorDto$outboundSchema = exports.ErrorDto$inboundSchema = void 0;
30
- const z = __importStar(require("zod"));
31
- const schemas_js_1 = require("../../lib/schemas.js");
32
- /** @internal */
33
- exports.ErrorDto$inboundSchema = z.object({
34
- statusCode: z.number(),
35
- timestamp: z.string(),
36
- path: z.string(),
37
- message: z.string(),
38
- ctx: z.record(z.any()).optional(),
39
- errorId: z.string().optional(),
40
- });
41
- /** @internal */
42
- exports.ErrorDto$outboundSchema = z.object({
43
- statusCode: z.number(),
44
- timestamp: z.string(),
45
- path: z.string(),
46
- message: z.string(),
47
- ctx: z.record(z.any()).optional(),
48
- errorId: z.string().optional(),
49
- });
50
- /**
51
- * @internal
52
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
- */
54
- var ErrorDto$;
55
- (function (ErrorDto$) {
56
- /** @deprecated use `ErrorDto$inboundSchema` instead. */
57
- ErrorDto$.inboundSchema = exports.ErrorDto$inboundSchema;
58
- /** @deprecated use `ErrorDto$outboundSchema` instead. */
59
- ErrorDto$.outboundSchema = exports.ErrorDto$outboundSchema;
60
- })(ErrorDto$ || (exports.ErrorDto$ = ErrorDto$ = {}));
61
- function errorDtoToJSON(errorDto) {
62
- return JSON.stringify(exports.ErrorDto$outboundSchema.parse(errorDto));
63
- }
64
- exports.errorDtoToJSON = errorDtoToJSON;
65
- function errorDtoFromJSON(jsonString) {
66
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ErrorDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ErrorDto' from JSON`);
67
- }
68
- exports.errorDtoFromJSON = errorDtoFromJSON;
69
- //# sourceMappingURL=errordto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errordto.js","sourceRoot":"","sources":["../../src/models/components/errordto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAkCjD,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AAGxD,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB;AAED,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAFD,wCAEC;AAED,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC;AARD,4CAQC"}
@@ -1,103 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type ErrorDto = {
11
- /**
12
- * HTTP status code of the error response.
13
- */
14
- statusCode: number;
15
- /**
16
- * Timestamp of when the error occurred.
17
- */
18
- timestamp: string;
19
- /**
20
- * The path where the error occurred.
21
- */
22
- path: string;
23
- /**
24
- * A detailed error message.
25
- */
26
- message: string;
27
- /**
28
- * Optional context object for additional error details.
29
- */
30
- ctx?: { [k: string]: any } | undefined;
31
- /**
32
- * Optional unique identifier for the error, useful for tracking using Sentry and
33
- *
34
- * @remarks
35
- * New Relic, only available for 500.
36
- */
37
- errorId?: string | undefined;
38
- };
39
-
40
- /** @internal */
41
- export const ErrorDto$inboundSchema: z.ZodType<
42
- ErrorDto,
43
- z.ZodTypeDef,
44
- unknown
45
- > = z.object({
46
- statusCode: z.number(),
47
- timestamp: z.string(),
48
- path: z.string(),
49
- message: z.string(),
50
- ctx: z.record(z.any()).optional(),
51
- errorId: z.string().optional(),
52
- });
53
-
54
- /** @internal */
55
- export type ErrorDto$Outbound = {
56
- statusCode: number;
57
- timestamp: string;
58
- path: string;
59
- message: string;
60
- ctx?: { [k: string]: any } | undefined;
61
- errorId?: string | undefined;
62
- };
63
-
64
- /** @internal */
65
- export const ErrorDto$outboundSchema: z.ZodType<
66
- ErrorDto$Outbound,
67
- z.ZodTypeDef,
68
- ErrorDto
69
- > = z.object({
70
- statusCode: z.number(),
71
- timestamp: z.string(),
72
- path: z.string(),
73
- message: z.string(),
74
- ctx: z.record(z.any()).optional(),
75
- errorId: z.string().optional(),
76
- });
77
-
78
- /**
79
- * @internal
80
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
- */
82
- export namespace ErrorDto$ {
83
- /** @deprecated use `ErrorDto$inboundSchema` instead. */
84
- export const inboundSchema = ErrorDto$inboundSchema;
85
- /** @deprecated use `ErrorDto$outboundSchema` instead. */
86
- export const outboundSchema = ErrorDto$outboundSchema;
87
- /** @deprecated use `ErrorDto$Outbound` instead. */
88
- export type Outbound = ErrorDto$Outbound;
89
- }
90
-
91
- export function errorDtoToJSON(errorDto: ErrorDto): string {
92
- return JSON.stringify(ErrorDto$outboundSchema.parse(errorDto));
93
- }
94
-
95
- export function errorDtoFromJSON(
96
- jsonString: string,
97
- ): SafeParseResult<ErrorDto, SDKValidationError> {
98
- return safeParse(
99
- jsonString,
100
- (x) => ErrorDto$inboundSchema.parse(JSON.parse(x)),
101
- `Failed to parse 'ErrorDto' from JSON`,
102
- );
103
- }