@novu/api 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +48 -74
  3. package/bin/mcp-server.js +289 -23
  4. package/bin/mcp-server.js.map +59 -57
  5. package/docs/sdks/credentials/README.md +15 -27
  6. package/docs/sdks/integrations/README.md +30 -54
  7. package/docs/sdks/messages/README.md +15 -27
  8. package/docs/sdks/notifications/README.md +10 -18
  9. package/docs/sdks/novu/README.md +44 -57
  10. package/docs/sdks/novumessages/README.md +15 -27
  11. package/docs/sdks/novunotifications/README.md +10 -18
  12. package/docs/sdks/novusubscribers/README.md +5 -9
  13. package/docs/sdks/novutopics/README.md +5 -9
  14. package/docs/sdks/preferences/README.md +10 -18
  15. package/docs/sdks/properties/README.md +5 -9
  16. package/docs/sdks/subscribers/README.md +34 -57
  17. package/docs/sdks/subscriptions/README.md +16 -28
  18. package/docs/sdks/topics/README.md +25 -45
  19. package/funcs/cancel.d.ts +1 -1
  20. package/funcs/cancel.d.ts.map +1 -1
  21. package/funcs/cancel.js +2 -0
  22. package/funcs/cancel.js.map +1 -1
  23. package/funcs/integrationsCreate.d.ts +1 -1
  24. package/funcs/integrationsCreate.d.ts.map +1 -1
  25. package/funcs/integrationsCreate.js +2 -0
  26. package/funcs/integrationsCreate.js.map +1 -1
  27. package/funcs/integrationsDelete.d.ts +1 -1
  28. package/funcs/integrationsDelete.d.ts.map +1 -1
  29. package/funcs/integrationsDelete.js +2 -0
  30. package/funcs/integrationsDelete.js.map +1 -1
  31. package/funcs/integrationsList.d.ts +1 -1
  32. package/funcs/integrationsList.d.ts.map +1 -1
  33. package/funcs/integrationsList.js +2 -0
  34. package/funcs/integrationsList.js.map +1 -1
  35. package/funcs/integrationsListActive.d.ts +1 -1
  36. package/funcs/integrationsListActive.d.ts.map +1 -1
  37. package/funcs/integrationsListActive.js +2 -0
  38. package/funcs/integrationsListActive.js.map +1 -1
  39. package/funcs/integrationsSetAsPrimary.d.ts +1 -1
  40. package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
  41. package/funcs/integrationsSetAsPrimary.js +2 -0
  42. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  43. package/funcs/integrationsUpdate.d.ts +1 -1
  44. package/funcs/integrationsUpdate.d.ts.map +1 -1
  45. package/funcs/integrationsUpdate.js +2 -0
  46. package/funcs/integrationsUpdate.js.map +1 -1
  47. package/funcs/messagesDelete.d.ts +1 -1
  48. package/funcs/messagesDelete.d.ts.map +1 -1
  49. package/funcs/messagesDelete.js +2 -0
  50. package/funcs/messagesDelete.js.map +1 -1
  51. package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
  52. package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
  53. package/funcs/messagesDeleteByTransactionId.js +2 -0
  54. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  55. package/funcs/messagesRetrieve.d.ts +1 -1
  56. package/funcs/messagesRetrieve.d.ts.map +1 -1
  57. package/funcs/messagesRetrieve.js +2 -0
  58. package/funcs/messagesRetrieve.js.map +1 -1
  59. package/funcs/notificationsList.d.ts +1 -1
  60. package/funcs/notificationsList.d.ts.map +1 -1
  61. package/funcs/notificationsList.js +2 -0
  62. package/funcs/notificationsList.js.map +1 -1
  63. package/funcs/notificationsRetrieve.d.ts +1 -1
  64. package/funcs/notificationsRetrieve.d.ts.map +1 -1
  65. package/funcs/notificationsRetrieve.js +2 -0
  66. package/funcs/notificationsRetrieve.js.map +1 -1
  67. package/funcs/subscribersCreate.d.ts +1 -1
  68. package/funcs/subscribersCreate.d.ts.map +1 -1
  69. package/funcs/subscribersCreate.js +2 -0
  70. package/funcs/subscribersCreate.js.map +1 -1
  71. package/funcs/subscribersCreateBulk.d.ts +1 -1
  72. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  73. package/funcs/subscribersCreateBulk.js +2 -0
  74. package/funcs/subscribersCreateBulk.js.map +1 -1
  75. package/funcs/subscribersCredentialsAppend.d.ts +1 -1
  76. package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
  77. package/funcs/subscribersCredentialsAppend.js +2 -0
  78. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  79. package/funcs/subscribersCredentialsDelete.d.ts +1 -1
  80. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  81. package/funcs/subscribersCredentialsDelete.js +2 -0
  82. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  83. package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
  84. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  85. package/funcs/subscribersCredentialsUpdate.js +2 -0
  86. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  87. package/funcs/subscribersDelete.d.ts +4 -3
  88. package/funcs/subscribersDelete.d.ts.map +1 -1
  89. package/funcs/subscribersDelete.js +5 -2
  90. package/funcs/subscribersDelete.js.map +1 -1
  91. package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
  92. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  93. package/funcs/subscribersMessagesMarkAll.js +2 -0
  94. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  95. package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
  96. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  97. package/funcs/subscribersMessagesMarkAllAs.js +2 -0
  98. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  99. package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
  100. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  101. package/funcs/subscribersMessagesUpdateAsSeen.js +2 -0
  102. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  103. package/funcs/subscribersNotificationsFeed.d.ts +1 -1
  104. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  105. package/funcs/subscribersNotificationsFeed.js +2 -0
  106. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  107. package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
  108. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  109. package/funcs/subscribersNotificationsUnseenCount.js +2 -0
  110. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  111. package/funcs/subscribersPatch.d.ts +1 -1
  112. package/funcs/subscribersPatch.d.ts.map +1 -1
  113. package/funcs/subscribersPatch.js +2 -0
  114. package/funcs/subscribersPatch.js.map +1 -1
  115. package/funcs/subscribersPreferencesList.d.ts +1 -1
  116. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  117. package/funcs/subscribersPreferencesList.js +2 -0
  118. package/funcs/subscribersPreferencesList.js.map +1 -1
  119. package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
  120. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  121. package/funcs/subscribersPreferencesUpdate.js +2 -0
  122. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  123. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
  124. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
  125. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +2 -0
  126. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  127. package/funcs/subscribersRetrieve.d.ts +2 -2
  128. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  129. package/funcs/subscribersRetrieve.js +3 -1
  130. package/funcs/subscribersRetrieve.js.map +1 -1
  131. package/funcs/subscribersSearch.d.ts +1 -1
  132. package/funcs/subscribersSearch.d.ts.map +1 -1
  133. package/funcs/subscribersSearch.js +2 -0
  134. package/funcs/subscribersSearch.js.map +1 -1
  135. package/funcs/subscribersTopicsList.d.ts +1 -1
  136. package/funcs/subscribersTopicsList.d.ts.map +1 -1
  137. package/funcs/subscribersTopicsList.js +2 -0
  138. package/funcs/subscribersTopicsList.js.map +1 -1
  139. package/funcs/topicsCreate.d.ts +1 -1
  140. package/funcs/topicsCreate.d.ts.map +1 -1
  141. package/funcs/topicsCreate.js +2 -0
  142. package/funcs/topicsCreate.js.map +1 -1
  143. package/funcs/topicsDelete.d.ts +1 -1
  144. package/funcs/topicsDelete.d.ts.map +1 -1
  145. package/funcs/topicsDelete.js +2 -0
  146. package/funcs/topicsDelete.js.map +1 -1
  147. package/funcs/topicsGet.d.ts +1 -1
  148. package/funcs/topicsGet.d.ts.map +1 -1
  149. package/funcs/topicsGet.js +2 -0
  150. package/funcs/topicsGet.js.map +1 -1
  151. package/funcs/topicsList.d.ts +1 -1
  152. package/funcs/topicsList.d.ts.map +1 -1
  153. package/funcs/topicsList.js +2 -0
  154. package/funcs/topicsList.js.map +1 -1
  155. package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
  156. package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
  157. package/funcs/topicsSubscribersRetrieve.js +2 -0
  158. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  159. package/funcs/topicsSubscriptionsCreate.d.ts +1 -1
  160. package/funcs/topicsSubscriptionsCreate.d.ts.map +1 -1
  161. package/funcs/topicsSubscriptionsCreate.js +2 -0
  162. package/funcs/topicsSubscriptionsCreate.js.map +1 -1
  163. package/funcs/topicsSubscriptionsDelete.d.ts +1 -1
  164. package/funcs/topicsSubscriptionsDelete.d.ts.map +1 -1
  165. package/funcs/topicsSubscriptionsDelete.js +2 -0
  166. package/funcs/topicsSubscriptionsDelete.js.map +1 -1
  167. package/funcs/topicsSubscriptionsList.d.ts +2 -2
  168. package/funcs/topicsSubscriptionsList.d.ts.map +1 -1
  169. package/funcs/topicsSubscriptionsList.js +3 -1
  170. package/funcs/topicsSubscriptionsList.js.map +1 -1
  171. package/funcs/topicsUpdate.d.ts +1 -1
  172. package/funcs/topicsUpdate.d.ts.map +1 -1
  173. package/funcs/topicsUpdate.js +2 -0
  174. package/funcs/topicsUpdate.js.map +1 -1
  175. package/funcs/trigger.d.ts +1 -1
  176. package/funcs/trigger.d.ts.map +1 -1
  177. package/funcs/trigger.js +5 -1
  178. package/funcs/trigger.js.map +1 -1
  179. package/funcs/triggerBroadcast.d.ts +1 -1
  180. package/funcs/triggerBroadcast.d.ts.map +1 -1
  181. package/funcs/triggerBroadcast.js +5 -1
  182. package/funcs/triggerBroadcast.js.map +1 -1
  183. package/funcs/triggerBulk.d.ts +1 -1
  184. package/funcs/triggerBulk.d.ts.map +1 -1
  185. package/funcs/triggerBulk.js +5 -1
  186. package/funcs/triggerBulk.js.map +1 -1
  187. package/hooks/types.d.ts +2 -0
  188. package/hooks/types.d.ts.map +1 -1
  189. package/index.d.ts +2 -0
  190. package/index.d.ts.map +1 -1
  191. package/index.js +3 -1
  192. package/index.js.map +1 -1
  193. package/jsr.json +1 -1
  194. package/lib/config.d.ts +7 -3
  195. package/lib/config.d.ts.map +1 -1
  196. package/lib/config.js +3 -3
  197. package/lib/config.js.map +1 -1
  198. package/lib/sdks.d.ts +1 -0
  199. package/lib/sdks.d.ts.map +1 -1
  200. package/lib/sdks.js +3 -3
  201. package/lib/sdks.js.map +1 -1
  202. package/mcp-server/mcp-server.js +1 -1
  203. package/mcp-server/server.js +1 -1
  204. package/mcp-server/tools/subscribersDelete.d.ts.map +1 -1
  205. package/mcp-server/tools/subscribersDelete.js +3 -2
  206. package/mcp-server/tools/subscribersDelete.js.map +1 -1
  207. package/mcp-server/tools/subscribersRetrieve.js +1 -1
  208. package/mcp-server/tools/topicsSubscriptionsList.js +1 -1
  209. package/models/components/index.d.ts +1 -0
  210. package/models/components/index.d.ts.map +1 -1
  211. package/models/components/index.js +1 -0
  212. package/models/components/index.js.map +1 -1
  213. package/models/components/notificationfeeditemdto.d.ts +2 -2
  214. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  215. package/models/components/notificationfeeditemdto.js +2 -2
  216. package/models/components/notificationfeeditemdto.js.map +1 -1
  217. package/models/components/payloadvalidationerrordto.d.ts +125 -0
  218. package/models/components/payloadvalidationerrordto.d.ts.map +1 -0
  219. package/models/components/payloadvalidationerrordto.js +160 -0
  220. package/models/components/payloadvalidationerrordto.js.map +1 -0
  221. package/models/components/updateintegrationrequestdto.d.ts +0 -5
  222. package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
  223. package/models/components/updateintegrationrequestdto.js +0 -2
  224. package/models/components/updateintegrationrequestdto.js.map +1 -1
  225. package/models/errors/index.d.ts +1 -0
  226. package/models/errors/index.d.ts.map +1 -1
  227. package/models/errors/index.js +1 -0
  228. package/models/errors/index.js.map +1 -1
  229. package/models/errors/payloadvalidationexceptiondto.d.ts +222 -0
  230. package/models/errors/payloadvalidationexceptiondto.d.ts.map +1 -0
  231. package/models/errors/payloadvalidationexceptiondto.js +212 -0
  232. package/models/errors/payloadvalidationexceptiondto.js.map +1 -0
  233. package/models/errors/sdkerror.d.ts +14 -2
  234. package/models/errors/sdkerror.d.ts.map +1 -1
  235. package/models/errors/sdkerror.js +1 -1
  236. package/models/errors/sdkerror.js.map +1 -1
  237. package/package.json +1 -1
  238. package/sdk/subscribers.d.ts +4 -3
  239. package/sdk/subscribers.d.ts.map +1 -1
  240. package/sdk/subscribers.js +4 -3
  241. package/sdk/subscribers.js.map +1 -1
  242. package/sdk/subscriptions.d.ts +1 -1
  243. package/sdk/subscriptions.js +1 -1
  244. package/sources/json-development.json +227 -46
  245. package/src/funcs/cancel.ts +2 -6
  246. package/src/funcs/integrationsCreate.ts +2 -6
  247. package/src/funcs/integrationsDelete.ts +2 -6
  248. package/src/funcs/integrationsList.ts +2 -6
  249. package/src/funcs/integrationsListActive.ts +2 -6
  250. package/src/funcs/integrationsSetAsPrimary.ts +2 -6
  251. package/src/funcs/integrationsUpdate.ts +2 -6
  252. package/src/funcs/messagesDelete.ts +2 -6
  253. package/src/funcs/messagesDeleteByTransactionId.ts +2 -6
  254. package/src/funcs/messagesRetrieve.ts +2 -6
  255. package/src/funcs/notificationsList.ts +2 -6
  256. package/src/funcs/notificationsRetrieve.ts +2 -6
  257. package/src/funcs/subscribersCreate.ts +2 -6
  258. package/src/funcs/subscribersCreateBulk.ts +2 -6
  259. package/src/funcs/subscribersCredentialsAppend.ts +2 -6
  260. package/src/funcs/subscribersCredentialsDelete.ts +2 -6
  261. package/src/funcs/subscribersCredentialsUpdate.ts +2 -6
  262. package/src/funcs/subscribersDelete.ts +5 -8
  263. package/src/funcs/subscribersMessagesMarkAll.ts +2 -6
  264. package/src/funcs/subscribersMessagesMarkAllAs.ts +2 -6
  265. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +2 -6
  266. package/src/funcs/subscribersNotificationsFeed.ts +2 -6
  267. package/src/funcs/subscribersNotificationsUnseenCount.ts +2 -6
  268. package/src/funcs/subscribersPatch.ts +2 -6
  269. package/src/funcs/subscribersPreferencesList.ts +2 -6
  270. package/src/funcs/subscribersPreferencesUpdate.ts +2 -6
  271. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +2 -6
  272. package/src/funcs/subscribersRetrieve.ts +3 -7
  273. package/src/funcs/subscribersSearch.ts +2 -6
  274. package/src/funcs/subscribersTopicsList.ts +2 -6
  275. package/src/funcs/topicsCreate.ts +2 -6
  276. package/src/funcs/topicsDelete.ts +2 -6
  277. package/src/funcs/topicsGet.ts +2 -6
  278. package/src/funcs/topicsList.ts +2 -6
  279. package/src/funcs/topicsSubscribersRetrieve.ts +2 -6
  280. package/src/funcs/topicsSubscriptionsCreate.ts +2 -6
  281. package/src/funcs/topicsSubscriptionsDelete.ts +2 -6
  282. package/src/funcs/topicsSubscriptionsList.ts +3 -7
  283. package/src/funcs/topicsUpdate.ts +2 -6
  284. package/src/funcs/trigger.ts +9 -7
  285. package/src/funcs/triggerBroadcast.ts +9 -7
  286. package/src/funcs/triggerBulk.ts +9 -7
  287. package/src/hooks/types.ts +2 -0
  288. package/src/index.ts +2 -0
  289. package/src/lib/config.ts +7 -3
  290. package/src/lib/sdks.ts +10 -4
  291. package/src/mcp-server/mcp-server.ts +1 -1
  292. package/src/mcp-server/server.ts +1 -1
  293. package/src/mcp-server/tools/subscribersDelete.ts +3 -2
  294. package/src/mcp-server/tools/subscribersRetrieve.ts +1 -1
  295. package/src/mcp-server/tools/topicsSubscriptionsList.ts +1 -1
  296. package/src/models/components/index.ts +1 -0
  297. package/src/models/components/notificationfeeditemdto.ts +4 -4
  298. package/src/models/components/payloadvalidationerrordto.ts +299 -0
  299. package/src/models/components/updateintegrationrequestdto.ts +0 -7
  300. package/src/models/errors/index.ts +1 -0
  301. package/src/models/errors/payloadvalidationexceptiondto.ts +466 -0
  302. package/src/models/errors/sdkerror.ts +18 -3
  303. package/src/sdk/subscribers.ts +4 -3
  304. package/src/sdk/subscriptions.ts +1 -1
package/bin/mcp-server.js CHANGED
@@ -34281,9 +34281,9 @@ var init_config = __esm(() => {
34281
34281
  SDK_METADATA = {
34282
34282
  language: "typescript",
34283
34283
  openapiDocVersion: "2.2.0",
34284
- sdkVersion: "1.2.0",
34285
- genVersion: "2.610.0",
34286
- userAgent: "speakeasy-sdk/typescript 1.2.0 2.610.0 2.2.0 @novu/api"
34284
+ sdkVersion: "1.3.0",
34285
+ genVersion: "2.620.2",
34286
+ userAgent: "speakeasy-sdk/typescript 1.3.0 2.620.2 2.2.0 @novu/api"
34287
34287
  };
34288
34288
  });
34289
34289
 
@@ -34821,7 +34821,6 @@ class ClientSDK {
34821
34821
  } else {
34822
34822
  this.#hooks = new SDKHooks;
34823
34823
  }
34824
- this._options = { ...options, hooks: this.#hooks };
34825
34824
  const url = serverURLFromOptions(options);
34826
34825
  if (url) {
34827
34826
  url.pathname = url.pathname.replace(/\/+$/, "") + "/";
@@ -34832,7 +34831,8 @@ class ClientSDK {
34832
34831
  });
34833
34832
  this._baseURL = baseURL;
34834
34833
  this.#httpClient = client;
34835
- this.#logger = options.debugLogger;
34834
+ this._options = { ...options, hooks: this.#hooks };
34835
+ this.#logger = this._options.debugLogger;
34836
34836
  }
34837
34837
  _createRequest(context, conf, options) {
34838
34838
  const { method, path, query, headers: opHeaders, security } = conf;
@@ -34883,7 +34883,7 @@ class ClientSDK {
34883
34883
  headers.set(k2, v2);
34884
34884
  }
34885
34885
  if (!isBrowserLike) {
34886
- headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34886
+ headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
34887
34887
  }
34888
34888
  const fetchOptions = {
34889
34889
  ...options?.fetchOptions,
@@ -35236,18 +35236,18 @@ var init_tools = __esm(() => {
35236
35236
  var SDKError;
35237
35237
  var init_sdkerror = __esm(() => {
35238
35238
  SDKError = class SDKError extends Error {
35239
- rawResponse;
35240
- body;
35241
35239
  statusCode;
35242
35240
  contentType;
35241
+ body;
35242
+ rawResponse;
35243
35243
  constructor(message, rawResponse, body = "") {
35244
35244
  const statusCode = rawResponse.status;
35245
35245
  const contentType2 = rawResponse.headers.get("content-type") || "";
35246
35246
  const bodyString = body.length > 0 ? `
35247
35247
  ${body}` : "";
35248
35248
  super(`${message}: Status ${statusCode} Content-Type ${contentType2} Body ${bodyString}`);
35249
- this.rawResponse = rawResponse;
35250
35249
  this.body = body;
35250
+ this.rawResponse = rawResponse;
35251
35251
  this.statusCode = statusCode;
35252
35252
  this.contentType = contentType2;
35253
35253
  this.name = "SDKError";
@@ -38346,7 +38346,7 @@ var init_notificationfeeditemdto = __esm(() => {
38346
38346
  _id: stringType(),
38347
38347
  _templateId: stringType(),
38348
38348
  _environmentId: stringType(),
38349
- _messageTemplateId: stringType(),
38349
+ _messageTemplateId: stringType().optional(),
38350
38350
  _organizationId: stringType(),
38351
38351
  _notificationId: stringType(),
38352
38352
  _subscriberId: stringType(),
@@ -38386,7 +38386,7 @@ var init_notificationfeeditemdto = __esm(() => {
38386
38386
  id: stringType(),
38387
38387
  templateId: stringType(),
38388
38388
  environmentId: stringType(),
38389
- messageTemplateId: stringType(),
38389
+ messageTemplateId: stringType().optional(),
38390
38390
  organizationId: stringType(),
38391
38391
  notificationId: stringType(),
38392
38392
  subscriberId: stringType(),
@@ -39631,6 +39631,70 @@ var init_patchsubscriberrequestdto = __esm(() => {
39631
39631
  })(PatchSubscriberRequestDto$ ||= {});
39632
39632
  });
39633
39633
 
39634
+ // src/models/components/payloadvalidationerrordto.ts
39635
+ var Value5$inboundSchema, Value5$outboundSchema, Value5$, Value4$inboundSchema, Value4$outboundSchema, Value4$, PayloadValidationErrorDtoValue$inboundSchema, PayloadValidationErrorDtoValue$outboundSchema, PayloadValidationErrorDtoValue$, PayloadValidationErrorDto$inboundSchema, PayloadValidationErrorDto$outboundSchema, PayloadValidationErrorDto$;
39636
+ var init_payloadvalidationerrordto = __esm(() => {
39637
+ init_esm();
39638
+ Value5$inboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
39639
+ Value5$outboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
39640
+ ((Value5$) => {
39641
+ Value5$.inboundSchema = Value5$inboundSchema;
39642
+ Value5$.outboundSchema = Value5$outboundSchema;
39643
+ })(Value5$ ||= {});
39644
+ Value4$inboundSchema = objectType({});
39645
+ Value4$outboundSchema = objectType({});
39646
+ ((Value4$) => {
39647
+ Value4$.inboundSchema = Value4$inboundSchema;
39648
+ Value4$.outboundSchema = Value4$outboundSchema;
39649
+ })(Value4$ ||= {});
39650
+ PayloadValidationErrorDtoValue$inboundSchema = unionType([
39651
+ lazyType(() => Value4$inboundSchema),
39652
+ stringType(),
39653
+ numberType(),
39654
+ booleanType(),
39655
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
39656
+ ]);
39657
+ PayloadValidationErrorDtoValue$outboundSchema = unionType([
39658
+ lazyType(() => Value4$outboundSchema),
39659
+ stringType(),
39660
+ numberType(),
39661
+ booleanType(),
39662
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
39663
+ ]);
39664
+ ((PayloadValidationErrorDtoValue$) => {
39665
+ PayloadValidationErrorDtoValue$.inboundSchema = PayloadValidationErrorDtoValue$inboundSchema;
39666
+ PayloadValidationErrorDtoValue$.outboundSchema = PayloadValidationErrorDtoValue$outboundSchema;
39667
+ })(PayloadValidationErrorDtoValue$ ||= {});
39668
+ PayloadValidationErrorDto$inboundSchema = objectType({
39669
+ field: stringType(),
39670
+ message: stringType(),
39671
+ value: nullableType(unionType([
39672
+ lazyType(() => Value4$inboundSchema),
39673
+ stringType(),
39674
+ numberType(),
39675
+ booleanType(),
39676
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
39677
+ ])).optional(),
39678
+ schemaPath: stringType().optional()
39679
+ });
39680
+ PayloadValidationErrorDto$outboundSchema = objectType({
39681
+ field: stringType(),
39682
+ message: stringType(),
39683
+ value: nullableType(unionType([
39684
+ lazyType(() => Value4$outboundSchema),
39685
+ stringType(),
39686
+ numberType(),
39687
+ booleanType(),
39688
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
39689
+ ])).optional(),
39690
+ schemaPath: stringType().optional()
39691
+ });
39692
+ ((PayloadValidationErrorDto$) => {
39693
+ PayloadValidationErrorDto$.inboundSchema = PayloadValidationErrorDto$inboundSchema;
39694
+ PayloadValidationErrorDto$.outboundSchema = PayloadValidationErrorDto$outboundSchema;
39695
+ })(PayloadValidationErrorDto$ ||= {});
39696
+ });
39697
+
39634
39698
  // src/models/components/removesubscriberresponsedto.ts
39635
39699
  var RemoveSubscriberResponseDto$inboundSchema, RemoveSubscriberResponseDto$outboundSchema, RemoveSubscriberResponseDto$;
39636
39700
  var init_removesubscriberresponsedto = __esm(() => {
@@ -39845,7 +39909,6 @@ var init_updateintegrationrequestdto = __esm(() => {
39845
39909
  _environmentId: stringType().optional(),
39846
39910
  active: booleanType().optional(),
39847
39911
  credentials: CredentialsDto$inboundSchema.optional(),
39848
- removeNovuBranding: booleanType().optional(),
39849
39912
  check: booleanType().optional(),
39850
39913
  conditions: arrayType(StepFilterDto$inboundSchema).optional()
39851
39914
  }).transform((v2) => {
@@ -39859,7 +39922,6 @@ var init_updateintegrationrequestdto = __esm(() => {
39859
39922
  environmentId: stringType().optional(),
39860
39923
  active: booleanType().optional(),
39861
39924
  credentials: CredentialsDto$outboundSchema.optional(),
39862
- removeNovuBranding: booleanType().optional(),
39863
39925
  check: booleanType().optional(),
39864
39926
  conditions: arrayType(StepFilterDto$outboundSchema).optional()
39865
39927
  }).transform((v2) => {
@@ -40011,6 +40073,7 @@ var init_components = __esm(() => {
40011
40073
  init_patchpreferencechannelsdto();
40012
40074
  init_patchsubscriberpreferencesdto();
40013
40075
  init_patchsubscriberrequestdto();
40076
+ init_payloadvalidationerrordto();
40014
40077
  init_preferenceoverridesourceenum();
40015
40078
  init_providersidenum();
40016
40079
  init_removesubscriberresponsedto();
@@ -40054,6 +40117,117 @@ var init_components = __esm(() => {
40054
40117
  init_workflowresponse();
40055
40118
  });
40056
40119
 
40120
+ // src/models/errors/payloadvalidationexceptiondto.ts
40121
+ var PayloadValidationExceptionDto, MessagePayloadValidationExceptionDto5$inboundSchema, MessagePayloadValidationExceptionDto5$outboundSchema, MessagePayloadValidationExceptionDto5$, MessagePayloadValidationExceptionDto4$inboundSchema, MessagePayloadValidationExceptionDto4$outboundSchema, MessagePayloadValidationExceptionDto4$, PayloadValidationExceptionDtoMessage$inboundSchema, PayloadValidationExceptionDtoMessage$outboundSchema, PayloadValidationExceptionDtoMessage$, Schema$inboundSchema, Schema$outboundSchema, Schema$, PayloadValidationExceptionDto$inboundSchema, PayloadValidationExceptionDto$outboundSchema, PayloadValidationExceptionDto$;
40122
+ var init_payloadvalidationexceptiondto = __esm(() => {
40123
+ init_esm();
40124
+ init_components();
40125
+ PayloadValidationExceptionDto = class PayloadValidationExceptionDto extends Error {
40126
+ statusCode;
40127
+ timestamp;
40128
+ path;
40129
+ ctx;
40130
+ errorId;
40131
+ type;
40132
+ errors;
40133
+ schema;
40134
+ data$;
40135
+ constructor(err) {
40136
+ const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
40137
+ super(message);
40138
+ this.data$ = err;
40139
+ this.statusCode = err.statusCode;
40140
+ this.timestamp = err.timestamp;
40141
+ this.path = err.path;
40142
+ if (err.ctx != null)
40143
+ this.ctx = err.ctx;
40144
+ if (err.errorId != null)
40145
+ this.errorId = err.errorId;
40146
+ this.type = err.type;
40147
+ this.errors = err.errors;
40148
+ if (err.schema != null)
40149
+ this.schema = err.schema;
40150
+ this.name = "PayloadValidationExceptionDto";
40151
+ }
40152
+ };
40153
+ MessagePayloadValidationExceptionDto5$inboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
40154
+ MessagePayloadValidationExceptionDto5$outboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
40155
+ ((MessagePayloadValidationExceptionDto5$) => {
40156
+ MessagePayloadValidationExceptionDto5$.inboundSchema = MessagePayloadValidationExceptionDto5$inboundSchema;
40157
+ MessagePayloadValidationExceptionDto5$.outboundSchema = MessagePayloadValidationExceptionDto5$outboundSchema;
40158
+ })(MessagePayloadValidationExceptionDto5$ ||= {});
40159
+ MessagePayloadValidationExceptionDto4$inboundSchema = objectType({});
40160
+ MessagePayloadValidationExceptionDto4$outboundSchema = objectType({});
40161
+ ((MessagePayloadValidationExceptionDto4$) => {
40162
+ MessagePayloadValidationExceptionDto4$.inboundSchema = MessagePayloadValidationExceptionDto4$inboundSchema;
40163
+ MessagePayloadValidationExceptionDto4$.outboundSchema = MessagePayloadValidationExceptionDto4$outboundSchema;
40164
+ })(MessagePayloadValidationExceptionDto4$ ||= {});
40165
+ PayloadValidationExceptionDtoMessage$inboundSchema = unionType([
40166
+ lazyType(() => MessagePayloadValidationExceptionDto4$inboundSchema),
40167
+ stringType(),
40168
+ numberType(),
40169
+ booleanType(),
40170
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
40171
+ ]);
40172
+ PayloadValidationExceptionDtoMessage$outboundSchema = unionType([
40173
+ lazyType(() => MessagePayloadValidationExceptionDto4$outboundSchema),
40174
+ stringType(),
40175
+ numberType(),
40176
+ booleanType(),
40177
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
40178
+ ]);
40179
+ ((PayloadValidationExceptionDtoMessage$) => {
40180
+ PayloadValidationExceptionDtoMessage$.inboundSchema = PayloadValidationExceptionDtoMessage$inboundSchema;
40181
+ PayloadValidationExceptionDtoMessage$.outboundSchema = PayloadValidationExceptionDtoMessage$outboundSchema;
40182
+ })(PayloadValidationExceptionDtoMessage$ ||= {});
40183
+ Schema$inboundSchema = objectType({});
40184
+ Schema$outboundSchema = objectType({});
40185
+ ((Schema$) => {
40186
+ Schema$.inboundSchema = Schema$inboundSchema;
40187
+ Schema$.outboundSchema = Schema$outboundSchema;
40188
+ })(Schema$ ||= {});
40189
+ PayloadValidationExceptionDto$inboundSchema = objectType({
40190
+ statusCode: numberType(),
40191
+ timestamp: stringType(),
40192
+ path: stringType(),
40193
+ message: nullableType(unionType([
40194
+ lazyType(() => MessagePayloadValidationExceptionDto4$inboundSchema),
40195
+ stringType(),
40196
+ numberType(),
40197
+ booleanType(),
40198
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
40199
+ ])).optional(),
40200
+ ctx: recordType(anyType()).optional(),
40201
+ errorId: stringType().optional(),
40202
+ type: stringType(),
40203
+ errors: arrayType(PayloadValidationErrorDto$inboundSchema),
40204
+ schema: lazyType(() => Schema$inboundSchema).optional()
40205
+ }).transform((v2) => {
40206
+ return new PayloadValidationExceptionDto(v2);
40207
+ });
40208
+ PayloadValidationExceptionDto$outboundSchema = instanceOfType(PayloadValidationExceptionDto).transform((v2) => v2.data$).pipe(objectType({
40209
+ statusCode: numberType(),
40210
+ timestamp: stringType(),
40211
+ path: stringType(),
40212
+ message: nullableType(unionType([
40213
+ lazyType(() => MessagePayloadValidationExceptionDto4$outboundSchema),
40214
+ stringType(),
40215
+ numberType(),
40216
+ booleanType(),
40217
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
40218
+ ])).optional(),
40219
+ ctx: recordType(anyType()).optional(),
40220
+ errorId: stringType().optional(),
40221
+ type: stringType(),
40222
+ errors: arrayType(PayloadValidationErrorDto$outboundSchema),
40223
+ schema: lazyType(() => Schema$outboundSchema).optional()
40224
+ }));
40225
+ ((PayloadValidationExceptionDto$) => {
40226
+ PayloadValidationExceptionDto$.inboundSchema = PayloadValidationExceptionDto$inboundSchema;
40227
+ PayloadValidationExceptionDto$.outboundSchema = PayloadValidationExceptionDto$outboundSchema;
40228
+ })(PayloadValidationExceptionDto$ ||= {});
40229
+ });
40230
+
40057
40231
  // src/models/errors/validationerrordto.ts
40058
40232
  var ValidationErrorDto, Message5$inboundSchema, Message5$outboundSchema, Message5$, Message4$inboundSchema, Message4$outboundSchema, Message4$, ValidationErrorDtoMessage$inboundSchema, ValidationErrorDtoMessage$outboundSchema, ValidationErrorDtoMessage$, ValidationErrorDto$inboundSchema, ValidationErrorDto$outboundSchema, ValidationErrorDto$;
40059
40233
  var init_validationerrordto = __esm(() => {
@@ -40154,6 +40328,7 @@ var init_validationerrordto = __esm(() => {
40154
40328
  var init_errors2 = __esm(() => {
40155
40329
  init_errordto();
40156
40330
  init_httpclienterrors();
40331
+ init_payloadvalidationexceptiondto();
40157
40332
  init_sdkerror();
40158
40333
  init_sdkvalidationerror();
40159
40334
  init_validationerrordto();
@@ -42573,6 +42748,7 @@ async function $do(client, transactionId, idempotencyKey, options) {
42573
42748
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
42574
42749
  const requestSecurity = resolveGlobalSecurity(securityInput);
42575
42750
  const context = {
42751
+ options: client._options,
42576
42752
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42577
42753
  operationID: "EventsController_cancel",
42578
42754
  oAuth2Scopes: [],
@@ -42597,6 +42773,7 @@ async function $do(client, transactionId, idempotencyKey, options) {
42597
42773
  path,
42598
42774
  headers,
42599
42775
  body,
42776
+ userAgent: client._options.userAgent,
42600
42777
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42601
42778
  }, options);
42602
42779
  if (!requestRes.ok) {
@@ -42713,6 +42890,7 @@ async function $do2(client, createIntegrationRequestDto, idempotencyKey, options
42713
42890
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
42714
42891
  const requestSecurity = resolveGlobalSecurity(securityInput);
42715
42892
  const context = {
42893
+ options: client._options,
42716
42894
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42717
42895
  operationID: "IntegrationsController_createIntegration",
42718
42896
  oAuth2Scopes: [],
@@ -42737,6 +42915,7 @@ async function $do2(client, createIntegrationRequestDto, idempotencyKey, options
42737
42915
  path,
42738
42916
  headers,
42739
42917
  body,
42918
+ userAgent: client._options.userAgent,
42740
42919
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42741
42920
  }, options);
42742
42921
  if (!requestRes.ok) {
@@ -42852,6 +43031,7 @@ async function $do3(client, integrationId, idempotencyKey, options) {
42852
43031
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
42853
43032
  const requestSecurity = resolveGlobalSecurity(securityInput);
42854
43033
  const context = {
43034
+ options: client._options,
42855
43035
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42856
43036
  operationID: "IntegrationsController_removeIntegration",
42857
43037
  oAuth2Scopes: [],
@@ -42876,6 +43056,7 @@ async function $do3(client, integrationId, idempotencyKey, options) {
42876
43056
  path,
42877
43057
  headers,
42878
43058
  body,
43059
+ userAgent: client._options.userAgent,
42879
43060
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42880
43061
  }, options);
42881
43062
  if (!requestRes.ok) {
@@ -42983,6 +43164,7 @@ async function $do4(client, idempotencyKey, options) {
42983
43164
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
42984
43165
  const requestSecurity = resolveGlobalSecurity(securityInput);
42985
43166
  const context = {
43167
+ options: client._options,
42986
43168
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42987
43169
  operationID: "IntegrationsController_listIntegrations",
42988
43170
  oAuth2Scopes: [],
@@ -43007,6 +43189,7 @@ async function $do4(client, idempotencyKey, options) {
43007
43189
  path,
43008
43190
  headers,
43009
43191
  body,
43192
+ userAgent: client._options.userAgent,
43010
43193
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43011
43194
  }, options);
43012
43195
  if (!requestRes.ok) {
@@ -43112,6 +43295,7 @@ async function $do5(client, idempotencyKey, options) {
43112
43295
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
43113
43296
  const requestSecurity = resolveGlobalSecurity(securityInput);
43114
43297
  const context = {
43298
+ options: client._options,
43115
43299
  baseURL: options?.serverURL ?? client._baseURL ?? "",
43116
43300
  operationID: "IntegrationsController_getActiveIntegrations",
43117
43301
  oAuth2Scopes: [],
@@ -43136,6 +43320,7 @@ async function $do5(client, idempotencyKey, options) {
43136
43320
  path,
43137
43321
  headers,
43138
43322
  body,
43323
+ userAgent: client._options.userAgent,
43139
43324
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43140
43325
  }, options);
43141
43326
  if (!requestRes.ok) {
@@ -43248,6 +43433,7 @@ async function $do6(client, integrationId, idempotencyKey, options) {
43248
43433
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
43249
43434
  const requestSecurity = resolveGlobalSecurity(securityInput);
43250
43435
  const context = {
43436
+ options: client._options,
43251
43437
  baseURL: options?.serverURL ?? client._baseURL ?? "",
43252
43438
  operationID: "IntegrationsController_setIntegrationAsPrimary",
43253
43439
  oAuth2Scopes: [],
@@ -43272,6 +43458,7 @@ async function $do6(client, integrationId, idempotencyKey, options) {
43272
43458
  path,
43273
43459
  headers,
43274
43460
  body,
43461
+ userAgent: client._options.userAgent,
43275
43462
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43276
43463
  }, options);
43277
43464
  if (!requestRes.ok) {
@@ -43391,6 +43578,7 @@ async function $do7(client, updateIntegrationRequestDto, integrationId, idempote
43391
43578
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
43392
43579
  const requestSecurity = resolveGlobalSecurity(securityInput);
43393
43580
  const context = {
43581
+ options: client._options,
43394
43582
  baseURL: options?.serverURL ?? client._baseURL ?? "",
43395
43583
  operationID: "IntegrationsController_updateIntegrationById",
43396
43584
  oAuth2Scopes: [],
@@ -43415,6 +43603,7 @@ async function $do7(client, updateIntegrationRequestDto, integrationId, idempote
43415
43603
  path,
43416
43604
  headers,
43417
43605
  body,
43606
+ userAgent: client._options.userAgent,
43418
43607
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43419
43608
  }, options);
43420
43609
  if (!requestRes.ok) {
@@ -43531,6 +43720,7 @@ async function $do8(client, messageId, idempotencyKey, options) {
43531
43720
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
43532
43721
  const requestSecurity = resolveGlobalSecurity(securityInput);
43533
43722
  const context = {
43723
+ options: client._options,
43534
43724
  baseURL: options?.serverURL ?? client._baseURL ?? "",
43535
43725
  operationID: "MessagesController_deleteMessage",
43536
43726
  oAuth2Scopes: [],
@@ -43555,6 +43745,7 @@ async function $do8(client, messageId, idempotencyKey, options) {
43555
43745
  path,
43556
43746
  headers,
43557
43747
  body,
43748
+ userAgent: client._options.userAgent,
43558
43749
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43559
43750
  }, options);
43560
43751
  if (!requestRes.ok) {
@@ -43673,6 +43864,7 @@ async function $do9(client, transactionId, channel, idempotencyKey, options) {
43673
43864
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
43674
43865
  const requestSecurity = resolveGlobalSecurity(securityInput);
43675
43866
  const context = {
43867
+ options: client._options,
43676
43868
  baseURL: options?.serverURL ?? client._baseURL ?? "",
43677
43869
  operationID: "MessagesController_deleteMessagesByTransactionId",
43678
43870
  oAuth2Scopes: [],
@@ -43698,6 +43890,7 @@ async function $do9(client, transactionId, channel, idempotencyKey, options) {
43698
43890
  headers,
43699
43891
  query,
43700
43892
  body,
43893
+ userAgent: client._options.userAgent,
43701
43894
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43702
43895
  }, options);
43703
43896
  if (!requestRes.ok) {
@@ -43810,6 +44003,7 @@ async function $do10(client, request, options) {
43810
44003
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
43811
44004
  const requestSecurity = resolveGlobalSecurity(securityInput);
43812
44005
  const context = {
44006
+ options: client._options,
43813
44007
  baseURL: options?.serverURL ?? client._baseURL ?? "",
43814
44008
  operationID: "MessagesController_getMessages",
43815
44009
  oAuth2Scopes: [],
@@ -43835,6 +44029,7 @@ async function $do10(client, request, options) {
43835
44029
  headers,
43836
44030
  query,
43837
44031
  body,
44032
+ userAgent: client._options.userAgent,
43838
44033
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43839
44034
  }, options);
43840
44035
  if (!requestRes.ok) {
@@ -43952,6 +44147,7 @@ async function $do11(client, request, options) {
43952
44147
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
43953
44148
  const requestSecurity = resolveGlobalSecurity(securityInput);
43954
44149
  const context = {
44150
+ options: client._options,
43955
44151
  baseURL: options?.serverURL ?? client._baseURL ?? "",
43956
44152
  operationID: "NotificationsController_listNotifications",
43957
44153
  oAuth2Scopes: [],
@@ -43977,6 +44173,7 @@ async function $do11(client, request, options) {
43977
44173
  headers,
43978
44174
  query,
43979
44175
  body,
44176
+ userAgent: client._options.userAgent,
43980
44177
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
43981
44178
  }, options);
43982
44179
  if (!requestRes.ok) {
@@ -44092,6 +44289,7 @@ async function $do12(client, notificationId, idempotencyKey, options) {
44092
44289
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
44093
44290
  const requestSecurity = resolveGlobalSecurity(securityInput);
44094
44291
  const context = {
44292
+ options: client._options,
44095
44293
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44096
44294
  operationID: "NotificationsController_getNotification",
44097
44295
  oAuth2Scopes: [],
@@ -44116,6 +44314,7 @@ async function $do12(client, notificationId, idempotencyKey, options) {
44116
44314
  path,
44117
44315
  headers,
44118
44316
  body,
44317
+ userAgent: client._options.userAgent,
44119
44318
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44120
44319
  }, options);
44121
44320
  if (!requestRes.ok) {
@@ -44228,6 +44427,7 @@ async function $do13(client, createSubscriberRequestDto, idempotencyKey, options
44228
44427
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
44229
44428
  const requestSecurity = resolveGlobalSecurity(securityInput);
44230
44429
  const context = {
44430
+ options: client._options,
44231
44431
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44232
44432
  operationID: "SubscribersController_createSubscriber",
44233
44433
  oAuth2Scopes: [],
@@ -44252,6 +44452,7 @@ async function $do13(client, createSubscriberRequestDto, idempotencyKey, options
44252
44452
  path,
44253
44453
  headers,
44254
44454
  body,
44455
+ userAgent: client._options.userAgent,
44255
44456
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44256
44457
  }, options);
44257
44458
  if (!requestRes.ok) {
@@ -44364,6 +44565,7 @@ async function $do14(client, bulkSubscriberCreateDto, idempotencyKey, options) {
44364
44565
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
44365
44566
  const requestSecurity = resolveGlobalSecurity(securityInput);
44366
44567
  const context = {
44568
+ options: client._options,
44367
44569
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44368
44570
  operationID: "SubscribersV1Controller_bulkCreateSubscribers",
44369
44571
  oAuth2Scopes: [],
@@ -44388,6 +44590,7 @@ async function $do14(client, bulkSubscriberCreateDto, idempotencyKey, options) {
44388
44590
  path,
44389
44591
  headers,
44390
44592
  body,
44593
+ userAgent: client._options.userAgent,
44391
44594
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44392
44595
  }, options);
44393
44596
  if (!requestRes.ok) {
@@ -44508,6 +44711,7 @@ async function $do15(client, updateSubscriberChannelRequestDto, subscriberId, id
44508
44711
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
44509
44712
  const requestSecurity = resolveGlobalSecurity(securityInput);
44510
44713
  const context = {
44714
+ options: client._options,
44511
44715
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44512
44716
  operationID: "SubscribersV1Controller_modifySubscriberChannel",
44513
44717
  oAuth2Scopes: [],
@@ -44532,6 +44736,7 @@ async function $do15(client, updateSubscriberChannelRequestDto, subscriberId, id
44532
44736
  path,
44533
44737
  headers,
44534
44738
  body,
44739
+ userAgent: client._options.userAgent,
44535
44740
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44536
44741
  }, options);
44537
44742
  if (!requestRes.ok) {
@@ -44653,6 +44858,7 @@ async function $do16(client, subscriberId, providerId, idempotencyKey, options)
44653
44858
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
44654
44859
  const requestSecurity = resolveGlobalSecurity(securityInput);
44655
44860
  const context = {
44861
+ options: client._options,
44656
44862
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44657
44863
  operationID: "SubscribersV1Controller_deleteSubscriberCredentials",
44658
44864
  oAuth2Scopes: [],
@@ -44677,6 +44883,7 @@ async function $do16(client, subscriberId, providerId, idempotencyKey, options)
44677
44883
  path,
44678
44884
  headers,
44679
44885
  body,
44886
+ userAgent: client._options.userAgent,
44680
44887
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44681
44888
  }, options);
44682
44889
  if (!requestRes.ok) {
@@ -44795,6 +45002,7 @@ async function $do17(client, updateSubscriberChannelRequestDto, subscriberId, id
44795
45002
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
44796
45003
  const requestSecurity = resolveGlobalSecurity(securityInput);
44797
45004
  const context = {
45005
+ options: client._options,
44798
45006
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44799
45007
  operationID: "SubscribersV1Controller_updateSubscriberChannel",
44800
45008
  oAuth2Scopes: [],
@@ -44819,6 +45027,7 @@ async function $do17(client, updateSubscriberChannelRequestDto, subscriberId, id
44819
45027
  path,
44820
45028
  headers,
44821
45029
  body,
45030
+ userAgent: client._options.userAgent,
44822
45031
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44823
45032
  }, options);
44824
45033
  if (!requestRes.ok) {
@@ -44935,6 +45144,7 @@ async function $do18(client, subscriberId, idempotencyKey, options) {
44935
45144
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
44936
45145
  const requestSecurity = resolveGlobalSecurity(securityInput);
44937
45146
  const context = {
45147
+ options: client._options,
44938
45148
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44939
45149
  operationID: "SubscribersController_removeSubscriber",
44940
45150
  oAuth2Scopes: [],
@@ -44959,6 +45169,7 @@ async function $do18(client, subscriberId, idempotencyKey, options) {
44959
45169
  path,
44960
45170
  headers,
44961
45171
  body,
45172
+ userAgent: client._options.userAgent,
44962
45173
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44963
45174
  }, options);
44964
45175
  if (!requestRes.ok) {
@@ -45024,9 +45235,10 @@ var init_subscribersDelete2 = __esm(() => {
45024
45235
  };
45025
45236
  tool$subscribersDelete = {
45026
45237
  name: "subscribers-delete",
45027
- description: `Delete subscriber
45238
+ description: `Delete a subscriber
45028
45239
 
45029
- Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions`,
45240
+ Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions.
45241
+ **subscriberId** is a required field.`,
45030
45242
  args: args18,
45031
45243
  tool: async (client, args19, ctx) => {
45032
45244
  const [result, apiCall] = await subscribersDelete(client, args19.subscriberId, args19.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -45076,6 +45288,7 @@ async function $do19(client, markAllMessageAsRequestDto, subscriberId, idempoten
45076
45288
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
45077
45289
  const requestSecurity = resolveGlobalSecurity(securityInput);
45078
45290
  const context = {
45291
+ options: client._options,
45079
45292
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45080
45293
  operationID: "SubscribersV1Controller_markAllUnreadAsRead",
45081
45294
  oAuth2Scopes: [],
@@ -45100,6 +45313,7 @@ async function $do19(client, markAllMessageAsRequestDto, subscriberId, idempoten
45100
45313
  path,
45101
45314
  headers,
45102
45315
  body,
45316
+ userAgent: client._options.userAgent,
45103
45317
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45104
45318
  }, options);
45105
45319
  if (!requestRes.ok) {
@@ -45219,6 +45433,7 @@ async function $do20(client, messageMarkAsRequestDto, subscriberId, idempotencyK
45219
45433
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
45220
45434
  const requestSecurity = resolveGlobalSecurity(securityInput);
45221
45435
  const context = {
45436
+ options: client._options,
45222
45437
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45223
45438
  operationID: "SubscribersV1Controller_markMessagesAs",
45224
45439
  oAuth2Scopes: [],
@@ -45243,6 +45458,7 @@ async function $do20(client, messageMarkAsRequestDto, subscriberId, idempotencyK
45243
45458
  path,
45244
45459
  headers,
45245
45460
  body,
45461
+ userAgent: client._options.userAgent,
45246
45462
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45247
45463
  }, options);
45248
45464
  if (!requestRes.ok) {
@@ -45366,6 +45582,7 @@ async function $do21(client, request, options) {
45366
45582
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
45367
45583
  const requestSecurity = resolveGlobalSecurity(securityInput);
45368
45584
  const context = {
45585
+ options: client._options,
45369
45586
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45370
45587
  operationID: "SubscribersV1Controller_markActionAsSeen",
45371
45588
  oAuth2Scopes: [],
@@ -45390,6 +45607,7 @@ async function $do21(client, request, options) {
45390
45607
  path,
45391
45608
  headers,
45392
45609
  body,
45610
+ userAgent: client._options.userAgent,
45393
45611
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45394
45612
  }, options);
45395
45613
  if (!requestRes.ok) {
@@ -45506,6 +45724,7 @@ async function $do22(client, request, options) {
45506
45724
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
45507
45725
  const requestSecurity = resolveGlobalSecurity(securityInput);
45508
45726
  const context = {
45727
+ options: client._options,
45509
45728
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45510
45729
  operationID: "SubscribersV1Controller_getNotificationsFeed",
45511
45730
  oAuth2Scopes: [],
@@ -45531,6 +45750,7 @@ async function $do22(client, request, options) {
45531
45750
  headers,
45532
45751
  query,
45533
45752
  body,
45753
+ userAgent: client._options.userAgent,
45534
45754
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45535
45755
  }, options);
45536
45756
  if (!requestRes.ok) {
@@ -45643,6 +45863,7 @@ async function $do23(client, request, options) {
45643
45863
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
45644
45864
  const requestSecurity = resolveGlobalSecurity(securityInput);
45645
45865
  const context = {
45866
+ options: client._options,
45646
45867
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45647
45868
  operationID: "SubscribersV1Controller_getUnseenCount",
45648
45869
  oAuth2Scopes: [],
@@ -45668,6 +45889,7 @@ async function $do23(client, request, options) {
45668
45889
  headers,
45669
45890
  query,
45670
45891
  body,
45892
+ userAgent: client._options.userAgent,
45671
45893
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45672
45894
  }, options);
45673
45895
  if (!requestRes.ok) {
@@ -45784,6 +46006,7 @@ async function $do24(client, patchSubscriberRequestDto, subscriberId, idempotenc
45784
46006
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
45785
46007
  const requestSecurity = resolveGlobalSecurity(securityInput);
45786
46008
  const context = {
46009
+ options: client._options,
45787
46010
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45788
46011
  operationID: "SubscribersController_patchSubscriber",
45789
46012
  oAuth2Scopes: [],
@@ -45808,6 +46031,7 @@ async function $do24(client, patchSubscriberRequestDto, subscriberId, idempotenc
45808
46031
  path,
45809
46032
  headers,
45810
46033
  body,
46034
+ userAgent: client._options.userAgent,
45811
46035
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45812
46036
  }, options);
45813
46037
  if (!requestRes.ok) {
@@ -45924,6 +46148,7 @@ async function $do25(client, subscriberId, idempotencyKey, options) {
45924
46148
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
45925
46149
  const requestSecurity = resolveGlobalSecurity(securityInput);
45926
46150
  const context = {
46151
+ options: client._options,
45927
46152
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45928
46153
  operationID: "SubscribersController_getSubscriberPreferences",
45929
46154
  oAuth2Scopes: [],
@@ -45948,6 +46173,7 @@ async function $do25(client, subscriberId, idempotencyKey, options) {
45948
46173
  path,
45949
46174
  headers,
45950
46175
  body,
46176
+ userAgent: client._options.userAgent,
45951
46177
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45952
46178
  }, options);
45953
46179
  if (!requestRes.ok) {
@@ -46066,6 +46292,7 @@ async function $do26(client, patchSubscriberPreferencesDto, subscriberId, idempo
46066
46292
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
46067
46293
  const requestSecurity = resolveGlobalSecurity(securityInput);
46068
46294
  const context = {
46295
+ options: client._options,
46069
46296
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46070
46297
  operationID: "SubscribersController_updateSubscriberPreferences",
46071
46298
  oAuth2Scopes: [],
@@ -46090,6 +46317,7 @@ async function $do26(client, patchSubscriberPreferencesDto, subscriberId, idempo
46090
46317
  path,
46091
46318
  headers,
46092
46319
  body,
46320
+ userAgent: client._options.userAgent,
46093
46321
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46094
46322
  }, options);
46095
46323
  if (!requestRes.ok) {
@@ -46209,6 +46437,7 @@ async function $do27(client, updateSubscriberOnlineFlagRequestDto, subscriberId,
46209
46437
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
46210
46438
  const requestSecurity = resolveGlobalSecurity(securityInput);
46211
46439
  const context = {
46440
+ options: client._options,
46212
46441
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46213
46442
  operationID: "SubscribersV1Controller_updateSubscriberOnlineFlag",
46214
46443
  oAuth2Scopes: [],
@@ -46233,6 +46462,7 @@ async function $do27(client, updateSubscriberOnlineFlagRequestDto, subscriberId,
46233
46462
  path,
46234
46463
  headers,
46235
46464
  body,
46465
+ userAgent: client._options.userAgent,
46236
46466
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46237
46467
  }, options);
46238
46468
  if (!requestRes.ok) {
@@ -46348,6 +46578,7 @@ async function $do28(client, subscriberId, idempotencyKey, options) {
46348
46578
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
46349
46579
  const requestSecurity = resolveGlobalSecurity(securityInput);
46350
46580
  const context = {
46581
+ options: client._options,
46351
46582
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46352
46583
  operationID: "SubscribersController_getSubscriber",
46353
46584
  oAuth2Scopes: [],
@@ -46372,6 +46603,7 @@ async function $do28(client, subscriberId, idempotencyKey, options) {
46372
46603
  path,
46373
46604
  headers,
46374
46605
  body,
46606
+ userAgent: client._options.userAgent,
46375
46607
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46376
46608
  }, options);
46377
46609
  if (!requestRes.ok) {
@@ -46439,7 +46671,7 @@ var init_subscribersRetrieve2 = __esm(() => {
46439
46671
  name: "subscribers-retrieve",
46440
46672
  description: `Retrieve a subscriber
46441
46673
 
46442
- Retrive a subscriber by its unique key identifier **subscriberId**.
46674
+ Retrieve a subscriber by its unique key identifier **subscriberId**.
46443
46675
  **subscriberId** field is required.`,
46444
46676
  args: args28,
46445
46677
  tool: async (client, args29, ctx) => {
@@ -46488,6 +46720,7 @@ async function $do29(client, request, options) {
46488
46720
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
46489
46721
  const requestSecurity = resolveGlobalSecurity(securityInput);
46490
46722
  const context = {
46723
+ options: client._options,
46491
46724
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46492
46725
  operationID: "SubscribersController_searchSubscribers",
46493
46726
  oAuth2Scopes: [],
@@ -46513,6 +46746,7 @@ async function $do29(client, request, options) {
46513
46746
  headers,
46514
46747
  query,
46515
46748
  body,
46749
+ userAgent: client._options.userAgent,
46516
46750
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46517
46751
  }, options);
46518
46752
  if (!requestRes.ok) {
@@ -46631,6 +46865,7 @@ async function $do30(client, request, options) {
46631
46865
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
46632
46866
  const requestSecurity = resolveGlobalSecurity(securityInput);
46633
46867
  const context = {
46868
+ options: client._options,
46634
46869
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46635
46870
  operationID: "SubscribersController_listSubscriberTopics",
46636
46871
  oAuth2Scopes: [],
@@ -46656,6 +46891,7 @@ async function $do30(client, request, options) {
46656
46891
  headers,
46657
46892
  query,
46658
46893
  body,
46894
+ userAgent: client._options.userAgent,
46659
46895
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46660
46896
  }, options);
46661
46897
  if (!requestRes.ok) {
@@ -46766,6 +47002,7 @@ async function $do31(client, createUpdateTopicRequestDto, idempotencyKey, option
46766
47002
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
46767
47003
  const requestSecurity = resolveGlobalSecurity(securityInput);
46768
47004
  const context = {
47005
+ options: client._options,
46769
47006
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46770
47007
  operationID: "TopicsController_upsertTopic",
46771
47008
  oAuth2Scopes: [],
@@ -46790,6 +47027,7 @@ async function $do31(client, createUpdateTopicRequestDto, idempotencyKey, option
46790
47027
  path,
46791
47028
  headers,
46792
47029
  body,
47030
+ userAgent: client._options.userAgent,
46793
47031
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46794
47032
  }, options);
46795
47033
  if (!requestRes.ok) {
@@ -46904,6 +47142,7 @@ async function $do32(client, topicKey, idempotencyKey, options) {
46904
47142
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
46905
47143
  const requestSecurity = resolveGlobalSecurity(securityInput);
46906
47144
  const context = {
47145
+ options: client._options,
46907
47146
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46908
47147
  operationID: "TopicsController_deleteTopic",
46909
47148
  oAuth2Scopes: [],
@@ -46928,6 +47167,7 @@ async function $do32(client, topicKey, idempotencyKey, options) {
46928
47167
  path,
46929
47168
  headers,
46930
47169
  body,
47170
+ userAgent: client._options.userAgent,
46931
47171
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46932
47172
  }, options);
46933
47173
  if (!requestRes.ok) {
@@ -47045,6 +47285,7 @@ async function $do33(client, topicKey, idempotencyKey, options) {
47045
47285
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
47046
47286
  const requestSecurity = resolveGlobalSecurity(securityInput);
47047
47287
  const context = {
47288
+ options: client._options,
47048
47289
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47049
47290
  operationID: "TopicsController_getTopic",
47050
47291
  oAuth2Scopes: [],
@@ -47069,6 +47310,7 @@ async function $do33(client, topicKey, idempotencyKey, options) {
47069
47310
  path,
47070
47311
  headers,
47071
47312
  body,
47313
+ userAgent: client._options.userAgent,
47072
47314
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47073
47315
  }, options);
47074
47316
  if (!requestRes.ok) {
@@ -47185,6 +47427,7 @@ async function $do34(client, request, options) {
47185
47427
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
47186
47428
  const requestSecurity = resolveGlobalSecurity(securityInput);
47187
47429
  const context = {
47430
+ options: client._options,
47188
47431
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47189
47432
  operationID: "TopicsController_listTopics",
47190
47433
  oAuth2Scopes: [],
@@ -47210,6 +47453,7 @@ async function $do34(client, request, options) {
47210
47453
  headers,
47211
47454
  query,
47212
47455
  body,
47456
+ userAgent: client._options.userAgent,
47213
47457
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47214
47458
  }, options);
47215
47459
  if (!requestRes.ok) {
@@ -47329,6 +47573,7 @@ async function $do35(client, externalSubscriberId, topicKey, idempotencyKey, opt
47329
47573
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
47330
47574
  const requestSecurity = resolveGlobalSecurity(securityInput);
47331
47575
  const context = {
47576
+ options: client._options,
47332
47577
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47333
47578
  operationID: "TopicsV1Controller_getTopicSubscriber",
47334
47579
  oAuth2Scopes: [],
@@ -47353,6 +47598,7 @@ async function $do35(client, externalSubscriberId, topicKey, idempotencyKey, opt
47353
47598
  path,
47354
47599
  headers,
47355
47600
  body,
47601
+ userAgent: client._options.userAgent,
47356
47602
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47357
47603
  }, options);
47358
47604
  if (!requestRes.ok) {
@@ -47471,6 +47717,7 @@ async function $do36(client, createTopicSubscriptionsRequestDto, topicKey, idemp
47471
47717
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
47472
47718
  const requestSecurity = resolveGlobalSecurity(securityInput);
47473
47719
  const context = {
47720
+ options: client._options,
47474
47721
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47475
47722
  operationID: "TopicsController_createTopicSubscriptions",
47476
47723
  oAuth2Scopes: [],
@@ -47495,6 +47742,7 @@ async function $do36(client, createTopicSubscriptionsRequestDto, topicKey, idemp
47495
47742
  path,
47496
47743
  headers,
47497
47744
  body,
47745
+ userAgent: client._options.userAgent,
47498
47746
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47499
47747
  }, options);
47500
47748
  if (!requestRes.ok) {
@@ -47615,6 +47863,7 @@ async function $do37(client, deleteTopicSubscriptionsRequestDto, topicKey, idemp
47615
47863
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
47616
47864
  const requestSecurity = resolveGlobalSecurity(securityInput);
47617
47865
  const context = {
47866
+ options: client._options,
47618
47867
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47619
47868
  operationID: "TopicsController_deleteTopicSubscriptions",
47620
47869
  oAuth2Scopes: [],
@@ -47639,6 +47888,7 @@ async function $do37(client, deleteTopicSubscriptionsRequestDto, topicKey, idemp
47639
47888
  path,
47640
47889
  headers,
47641
47890
  body,
47891
+ userAgent: client._options.userAgent,
47642
47892
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47643
47893
  }, options);
47644
47894
  if (!requestRes.ok) {
@@ -47759,6 +48009,7 @@ async function $do38(client, request, options) {
47759
48009
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
47760
48010
  const requestSecurity = resolveGlobalSecurity(securityInput);
47761
48011
  const context = {
48012
+ options: client._options,
47762
48013
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47763
48014
  operationID: "TopicsController_listTopicSubscriptions",
47764
48015
  oAuth2Scopes: [],
@@ -47784,6 +48035,7 @@ async function $do38(client, request, options) {
47784
48035
  headers,
47785
48036
  query,
47786
48037
  body,
48038
+ userAgent: client._options.userAgent,
47787
48039
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47788
48040
  }, options);
47789
48041
  if (!requestRes.ok) {
@@ -47850,7 +48102,7 @@ var init_topicsSubscriptionsList2 = __esm(() => {
47850
48102
  name: "topics-subscriptions-list",
47851
48103
  description: `List topic subscriptions
47852
48104
 
47853
- List all topics that a subscriber is subscribed to.
48105
+ List all subscriptions of subscribers for a topic.
47854
48106
  Checkout all available filters in the query section.`,
47855
48107
  args: args38,
47856
48108
  tool: async (client, args39, ctx) => {
@@ -47901,6 +48153,7 @@ async function $do39(client, updateTopicRequestDto, topicKey, idempotencyKey, op
47901
48153
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
47902
48154
  const requestSecurity = resolveGlobalSecurity(securityInput);
47903
48155
  const context = {
48156
+ options: client._options,
47904
48157
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47905
48158
  operationID: "TopicsController_updateTopic",
47906
48159
  oAuth2Scopes: [],
@@ -47925,6 +48178,7 @@ async function $do39(client, updateTopicRequestDto, topicKey, idempotencyKey, op
47925
48178
  path,
47926
48179
  headers,
47927
48180
  body,
48181
+ userAgent: client._options.userAgent,
47928
48182
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47929
48183
  }, options);
47930
48184
  if (!requestRes.ok) {
@@ -48040,6 +48294,7 @@ async function $do40(client, triggerEventRequestDto, idempotencyKey, options) {
48040
48294
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
48041
48295
  const requestSecurity = resolveGlobalSecurity(securityInput);
48042
48296
  const context = {
48297
+ options: client._options,
48043
48298
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48044
48299
  operationID: "EventsController_trigger",
48045
48300
  oAuth2Scopes: [],
@@ -48064,6 +48319,7 @@ async function $do40(client, triggerEventRequestDto, idempotencyKey, options) {
48064
48319
  path,
48065
48320
  headers,
48066
48321
  body,
48322
+ userAgent: client._options.userAgent,
48067
48323
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48068
48324
  }, options);
48069
48325
  if (!requestRes.ok) {
@@ -48102,7 +48358,9 @@ async function $do40(client, triggerEventRequestDto, idempotencyKey, options) {
48102
48358
  const [result] = await match(json(201, EventsControllerTriggerResponse$inboundSchema, {
48103
48359
  hdrs: true,
48104
48360
  key: "Result"
48105
- }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48361
+ }), jsonErr(400, PayloadValidationExceptionDto$inboundSchema, {
48362
+ hdrs: true
48363
+ }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48106
48364
  if (!result.ok) {
48107
48365
  return [result, { status: "complete", request: req, response }];
48108
48366
  }
@@ -48182,6 +48440,7 @@ async function $do41(client, triggerEventToAllRequestDto, idempotencyKey, option
48182
48440
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
48183
48441
  const requestSecurity = resolveGlobalSecurity(securityInput);
48184
48442
  const context = {
48443
+ options: client._options,
48185
48444
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48186
48445
  operationID: "EventsController_broadcastEventToAll",
48187
48446
  oAuth2Scopes: [],
@@ -48206,6 +48465,7 @@ async function $do41(client, triggerEventToAllRequestDto, idempotencyKey, option
48206
48465
  path,
48207
48466
  headers,
48208
48467
  body,
48468
+ userAgent: client._options.userAgent,
48209
48469
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48210
48470
  }, options);
48211
48471
  if (!requestRes.ok) {
@@ -48241,7 +48501,9 @@ async function $do41(client, triggerEventToAllRequestDto, idempotencyKey, option
48241
48501
  const responseFields = {
48242
48502
  HttpMeta: { Response: response, Request: req }
48243
48503
  };
48244
- const [result] = await match(json([200, 201], EventsControllerBroadcastEventToAllResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48504
+ const [result] = await match(json([200, 201], EventsControllerBroadcastEventToAllResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(400, PayloadValidationExceptionDto$inboundSchema, {
48505
+ hdrs: true
48506
+ }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48245
48507
  if (!result.ok) {
48246
48508
  return [result, { status: "complete", request: req, response }];
48247
48509
  }
@@ -48318,6 +48580,7 @@ async function $do42(client, bulkTriggerEventDto, idempotencyKey, options) {
48318
48580
  const securityInput = secConfig == null ? {} : { secretKey: secConfig };
48319
48581
  const requestSecurity = resolveGlobalSecurity(securityInput);
48320
48582
  const context = {
48583
+ options: client._options,
48321
48584
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48322
48585
  operationID: "EventsController_triggerBulk",
48323
48586
  oAuth2Scopes: [],
@@ -48342,6 +48605,7 @@ async function $do42(client, bulkTriggerEventDto, idempotencyKey, options) {
48342
48605
  path,
48343
48606
  headers,
48344
48607
  body,
48608
+ userAgent: client._options.userAgent,
48345
48609
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48346
48610
  }, options);
48347
48611
  if (!requestRes.ok) {
@@ -48380,7 +48644,9 @@ async function $do42(client, bulkTriggerEventDto, idempotencyKey, options) {
48380
48644
  const [result] = await match(json(201, EventsControllerTriggerBulkResponse$inboundSchema, {
48381
48645
  hdrs: true,
48382
48646
  key: "Result"
48383
- }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48647
+ }), jsonErr(400, PayloadValidationExceptionDto$inboundSchema, {
48648
+ hdrs: true
48649
+ }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48384
48650
  if (!result.ok) {
48385
48651
  return [result, { status: "complete", request: req, response }];
48386
48652
  }
@@ -48436,7 +48702,7 @@ var init_triggerBulk2 = __esm(() => {
48436
48702
  function createMCPServer(deps) {
48437
48703
  const server = new McpServer({
48438
48704
  name: "Novu",
48439
- version: "1.2.0"
48705
+ version: "1.3.0"
48440
48706
  });
48441
48707
  const client = new NovuCore({
48442
48708
  secretKey: deps.secretKey,
@@ -49734,7 +50000,7 @@ var routes = rn({
49734
50000
  var app = Ve(routes, {
49735
50001
  name: "mcp",
49736
50002
  versionInfo: {
49737
- currentVersion: "1.2.0"
50003
+ currentVersion: "1.3.0"
49738
50004
  }
49739
50005
  });
49740
50006
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -49742,5 +50008,5 @@ export {
49742
50008
  app
49743
50009
  };
49744
50010
 
49745
- //# debugId=152A3D89A806E9D464756E2164756E21
50011
+ //# debugId=4F32B6FE7E1D4EF664756E2164756E21
49746
50012
  //# sourceMappingURL=mcp-server.js.map