@novu/api 0.0.1-alpha.179 → 0.0.1-alpha.181

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 (243) hide show
  1. package/README.md +1 -3
  2. package/docs/sdks/notifications/README.md +4 -4
  3. package/docs/sdks/novu/README.md +2 -2
  4. package/funcs/adminTestingControllerIdempotency.d.ts.map +1 -1
  5. package/funcs/adminTestingControllerIdempotency.js +3 -2
  6. package/funcs/adminTestingControllerIdempotency.js.map +1 -1
  7. package/funcs/adminTestingControllerIdempotencyGet.d.ts.map +1 -1
  8. package/funcs/adminTestingControllerIdempotencyGet.js +3 -2
  9. package/funcs/adminTestingControllerIdempotencyGet.js.map +1 -1
  10. package/funcs/cancel.d.ts.map +1 -1
  11. package/funcs/cancel.js +3 -2
  12. package/funcs/cancel.js.map +1 -1
  13. package/funcs/integrationsCreate.d.ts.map +1 -1
  14. package/funcs/integrationsCreate.js +3 -2
  15. package/funcs/integrationsCreate.js.map +1 -1
  16. package/funcs/integrationsDelete.d.ts.map +1 -1
  17. package/funcs/integrationsDelete.js +3 -2
  18. package/funcs/integrationsDelete.js.map +1 -1
  19. package/funcs/integrationsList.d.ts.map +1 -1
  20. package/funcs/integrationsList.js +3 -2
  21. package/funcs/integrationsList.js.map +1 -1
  22. package/funcs/integrationsListActive.d.ts.map +1 -1
  23. package/funcs/integrationsListActive.js +3 -2
  24. package/funcs/integrationsListActive.js.map +1 -1
  25. package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
  26. package/funcs/integrationsSetAsPrimary.js +3 -2
  27. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  28. package/funcs/integrationsUpdate.d.ts.map +1 -1
  29. package/funcs/integrationsUpdate.js +3 -2
  30. package/funcs/integrationsUpdate.js.map +1 -1
  31. package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
  32. package/funcs/integrationsWebhooksRetrieve.js +3 -2
  33. package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
  34. package/funcs/messagesDelete.d.ts.map +1 -1
  35. package/funcs/messagesDelete.js +3 -2
  36. package/funcs/messagesDelete.js.map +1 -1
  37. package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
  38. package/funcs/messagesDeleteByTransactionId.js +3 -2
  39. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  40. package/funcs/messagesRetrieve.d.ts.map +1 -1
  41. package/funcs/messagesRetrieve.js +3 -2
  42. package/funcs/messagesRetrieve.js.map +1 -1
  43. package/funcs/notificationsList.d.ts.map +1 -1
  44. package/funcs/notificationsList.js +3 -2
  45. package/funcs/notificationsList.js.map +1 -1
  46. package/funcs/notificationsRetrieve.d.ts.map +1 -1
  47. package/funcs/notificationsRetrieve.js +3 -2
  48. package/funcs/notificationsRetrieve.js.map +1 -1
  49. package/funcs/notificationsStatsGraph.d.ts.map +1 -1
  50. package/funcs/notificationsStatsGraph.js +3 -2
  51. package/funcs/notificationsStatsGraph.js.map +1 -1
  52. package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
  53. package/funcs/notificationsStatsRetrieve.js +3 -2
  54. package/funcs/notificationsStatsRetrieve.js.map +1 -1
  55. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
  56. package/funcs/subscribersAuthenticationChatAccessOauth.js +3 -2
  57. package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
  58. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
  59. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +3 -2
  60. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
  61. package/funcs/subscribersCreate.d.ts.map +1 -1
  62. package/funcs/subscribersCreate.js +3 -2
  63. package/funcs/subscribersCreate.js.map +1 -1
  64. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  65. package/funcs/subscribersCreateBulk.js +3 -2
  66. package/funcs/subscribersCreateBulk.js.map +1 -1
  67. package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
  68. package/funcs/subscribersCredentialsAppend.js +3 -2
  69. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  70. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  71. package/funcs/subscribersCredentialsDelete.js +3 -2
  72. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  73. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  74. package/funcs/subscribersCredentialsUpdate.js +3 -2
  75. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  76. package/funcs/subscribersDelete.d.ts.map +1 -1
  77. package/funcs/subscribersDelete.js +3 -2
  78. package/funcs/subscribersDelete.js.map +1 -1
  79. package/funcs/subscribersList.d.ts.map +1 -1
  80. package/funcs/subscribersList.js +3 -2
  81. package/funcs/subscribersList.js.map +1 -1
  82. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  83. package/funcs/subscribersMessagesMarkAll.js +3 -2
  84. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  85. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  86. package/funcs/subscribersMessagesMarkAllAs.js +3 -2
  87. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  88. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  89. package/funcs/subscribersMessagesUpdateAsSeen.js +3 -2
  90. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  91. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  92. package/funcs/subscribersNotificationsFeed.js +3 -2
  93. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  94. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  95. package/funcs/subscribersNotificationsUnseenCount.js +3 -2
  96. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  97. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  98. package/funcs/subscribersPreferencesList.js +3 -2
  99. package/funcs/subscribersPreferencesList.js.map +1 -1
  100. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
  101. package/funcs/subscribersPreferencesRetrieveByLevel.js +3 -2
  102. package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
  103. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  104. package/funcs/subscribersPreferencesUpdate.js +3 -2
  105. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  106. package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
  107. package/funcs/subscribersPreferencesUpdateGlobal.js +3 -2
  108. package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
  109. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
  110. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +3 -2
  111. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  112. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  113. package/funcs/subscribersRetrieve.js +3 -2
  114. package/funcs/subscribersRetrieve.js.map +1 -1
  115. package/funcs/subscribersUpdate.d.ts.map +1 -1
  116. package/funcs/subscribersUpdate.js +3 -2
  117. package/funcs/subscribersUpdate.js.map +1 -1
  118. package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.d.ts.map +1 -1
  119. package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +3 -2
  120. package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js.map +1 -1
  121. package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.d.ts.map +1 -1
  122. package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +3 -2
  123. package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js.map +1 -1
  124. package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.d.ts.map +1 -1
  125. package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +3 -2
  126. package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js.map +1 -1
  127. package/funcs/topicsCreate.d.ts.map +1 -1
  128. package/funcs/topicsCreate.js +3 -2
  129. package/funcs/topicsCreate.js.map +1 -1
  130. package/funcs/topicsDelete.d.ts.map +1 -1
  131. package/funcs/topicsDelete.js +3 -2
  132. package/funcs/topicsDelete.js.map +1 -1
  133. package/funcs/topicsList.d.ts.map +1 -1
  134. package/funcs/topicsList.js +3 -2
  135. package/funcs/topicsList.js.map +1 -1
  136. package/funcs/topicsRename.d.ts.map +1 -1
  137. package/funcs/topicsRename.js +3 -2
  138. package/funcs/topicsRename.js.map +1 -1
  139. package/funcs/topicsRetrieve.d.ts.map +1 -1
  140. package/funcs/topicsRetrieve.js +3 -2
  141. package/funcs/topicsRetrieve.js.map +1 -1
  142. package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
  143. package/funcs/topicsSubscribersAssign.js +3 -2
  144. package/funcs/topicsSubscribersAssign.js.map +1 -1
  145. package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
  146. package/funcs/topicsSubscribersRemove.js +3 -2
  147. package/funcs/topicsSubscribersRemove.js.map +1 -1
  148. package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
  149. package/funcs/topicsSubscribersRetrieve.js +3 -2
  150. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  151. package/funcs/trigger.d.ts.map +1 -1
  152. package/funcs/trigger.js +3 -2
  153. package/funcs/trigger.js.map +1 -1
  154. package/funcs/triggerBroadcast.d.ts.map +1 -1
  155. package/funcs/triggerBroadcast.js +3 -2
  156. package/funcs/triggerBroadcast.js.map +1 -1
  157. package/funcs/triggerBulk.d.ts.map +1 -1
  158. package/funcs/triggerBulk.js +3 -2
  159. package/funcs/triggerBulk.js.map +1 -1
  160. package/hooks/novu-custom-hook.js +1 -1
  161. package/hooks/novu-custom-hook.js.map +1 -1
  162. package/lib/config.d.ts +3 -3
  163. package/lib/config.js +3 -3
  164. package/lib/config.js.map +1 -1
  165. package/lib/encodings.d.ts +10 -9
  166. package/lib/encodings.d.ts.map +1 -1
  167. package/lib/encodings.js +74 -48
  168. package/lib/encodings.js.map +1 -1
  169. package/lib/primitives.d.ts +1 -0
  170. package/lib/primitives.d.ts.map +1 -1
  171. package/lib/primitives.js +11 -1
  172. package/lib/primitives.js.map +1 -1
  173. package/lib/sdks.d.ts.map +1 -1
  174. package/lib/sdks.js +4 -1
  175. package/lib/sdks.js.map +1 -1
  176. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +5 -0
  177. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
  178. package/models/components/activitynotificationexecutiondetailresponsedto.js +2 -0
  179. package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
  180. package/models/components/activitynotificationjobresponsedto.d.ts +5 -0
  181. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  182. package/models/components/activitynotificationjobresponsedto.js +2 -0
  183. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  184. package/package.json +1 -1
  185. package/src/funcs/adminTestingControllerIdempotency.ts +3 -2
  186. package/src/funcs/adminTestingControllerIdempotencyGet.ts +3 -2
  187. package/src/funcs/cancel.ts +3 -2
  188. package/src/funcs/integrationsCreate.ts +3 -2
  189. package/src/funcs/integrationsDelete.ts +3 -2
  190. package/src/funcs/integrationsList.ts +3 -2
  191. package/src/funcs/integrationsListActive.ts +3 -2
  192. package/src/funcs/integrationsSetAsPrimary.ts +3 -2
  193. package/src/funcs/integrationsUpdate.ts +3 -2
  194. package/src/funcs/integrationsWebhooksRetrieve.ts +3 -2
  195. package/src/funcs/messagesDelete.ts +3 -2
  196. package/src/funcs/messagesDeleteByTransactionId.ts +3 -2
  197. package/src/funcs/messagesRetrieve.ts +3 -2
  198. package/src/funcs/notificationsList.ts +3 -2
  199. package/src/funcs/notificationsRetrieve.ts +3 -2
  200. package/src/funcs/notificationsStatsGraph.ts +3 -2
  201. package/src/funcs/notificationsStatsRetrieve.ts +3 -2
  202. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +3 -2
  203. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +3 -2
  204. package/src/funcs/subscribersCreate.ts +3 -2
  205. package/src/funcs/subscribersCreateBulk.ts +3 -2
  206. package/src/funcs/subscribersCredentialsAppend.ts +3 -2
  207. package/src/funcs/subscribersCredentialsDelete.ts +3 -2
  208. package/src/funcs/subscribersCredentialsUpdate.ts +3 -2
  209. package/src/funcs/subscribersDelete.ts +3 -2
  210. package/src/funcs/subscribersList.ts +3 -2
  211. package/src/funcs/subscribersMessagesMarkAll.ts +3 -2
  212. package/src/funcs/subscribersMessagesMarkAllAs.ts +3 -2
  213. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +3 -2
  214. package/src/funcs/subscribersNotificationsFeed.ts +3 -2
  215. package/src/funcs/subscribersNotificationsUnseenCount.ts +3 -2
  216. package/src/funcs/subscribersPreferencesList.ts +3 -2
  217. package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +3 -2
  218. package/src/funcs/subscribersPreferencesUpdate.ts +3 -2
  219. package/src/funcs/subscribersPreferencesUpdateGlobal.ts +3 -2
  220. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +3 -2
  221. package/src/funcs/subscribersRetrieve.ts +3 -2
  222. package/src/funcs/subscribersUpdate.ts +3 -2
  223. package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +3 -2
  224. package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +3 -2
  225. package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +3 -2
  226. package/src/funcs/topicsCreate.ts +3 -2
  227. package/src/funcs/topicsDelete.ts +3 -2
  228. package/src/funcs/topicsList.ts +3 -2
  229. package/src/funcs/topicsRename.ts +3 -2
  230. package/src/funcs/topicsRetrieve.ts +3 -2
  231. package/src/funcs/topicsSubscribersAssign.ts +3 -2
  232. package/src/funcs/topicsSubscribersRemove.ts +3 -2
  233. package/src/funcs/topicsSubscribersRetrieve.ts +3 -2
  234. package/src/funcs/trigger.ts +3 -2
  235. package/src/funcs/triggerBroadcast.ts +3 -2
  236. package/src/funcs/triggerBulk.ts +3 -2
  237. package/src/hooks/novu-custom-hook.ts +1 -1
  238. package/src/lib/config.ts +3 -3
  239. package/src/lib/encodings.ts +95 -61
  240. package/src/lib/primitives.ts +14 -0
  241. package/src/lib/sdks.ts +4 -1
  242. package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +7 -0
  243. package/src/models/components/activitynotificationjobresponsedto.ts +7 -0
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -74,14 +75,14 @@ export async function subscribersDelete(
74
75
 
75
76
  const path = pathToFunc("/v1/subscribers/{subscriberId}")(pathParams);
76
77
 
77
- const headers = new Headers({
78
+ const headers = new Headers(compactMap({
78
79
  Accept: "application/json",
79
80
  "Idempotency-Key": encodeSimple(
80
81
  "Idempotency-Key",
81
82
  payload["Idempotency-Key"],
82
83
  { explode: false, charEncoding: "none" },
83
84
  ),
84
- });
85
+ }));
85
86
 
86
87
  const secConfig = await extractSecurity(client._options.apiKey);
87
88
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -6,6 +6,7 @@ import { NovuCore } from "../core.js";
6
6
  import { dlv } from "../lib/dlv.js";
7
7
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
8
  import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
10
11
  import { RequestOptions } from "../lib/sdks.js";
11
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -84,14 +85,14 @@ export async function subscribersList(
84
85
  "page": payload.page,
85
86
  });
86
87
 
87
- const headers = new Headers({
88
+ const headers = new Headers(compactMap({
88
89
  Accept: "application/json",
89
90
  "Idempotency-Key": encodeSimple(
90
91
  "Idempotency-Key",
91
92
  payload["Idempotency-Key"],
92
93
  { explode: false, charEncoding: "none" },
93
94
  ),
94
- });
95
+ }));
95
96
 
96
97
  const secConfig = await extractSecurity(client._options.apiKey);
97
98
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -78,7 +79,7 @@ export async function subscribersMessagesMarkAll(
78
79
  pathParams,
79
80
  );
80
81
 
81
- const headers = new Headers({
82
+ const headers = new Headers(compactMap({
82
83
  "Content-Type": "application/json",
83
84
  Accept: "application/json",
84
85
  "Idempotency-Key": encodeSimple(
@@ -86,7 +87,7 @@ export async function subscribersMessagesMarkAll(
86
87
  payload["Idempotency-Key"],
87
88
  { explode: false, charEncoding: "none" },
88
89
  ),
89
- });
90
+ }));
90
91
 
91
92
  const secConfig = await extractSecurity(client._options.apiKey);
92
93
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -78,7 +79,7 @@ export async function subscribersMessagesMarkAllAs(
78
79
  pathParams,
79
80
  );
80
81
 
81
- const headers = new Headers({
82
+ const headers = new Headers(compactMap({
82
83
  "Content-Type": "application/json",
83
84
  Accept: "application/json",
84
85
  "Idempotency-Key": encodeSimple(
@@ -86,7 +87,7 @@ export async function subscribersMessagesMarkAllAs(
86
87
  payload["Idempotency-Key"],
87
88
  { explode: false, charEncoding: "none" },
88
89
  ),
89
- });
90
+ }));
90
91
 
91
92
  const secConfig = await extractSecurity(client._options.apiKey);
92
93
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -77,7 +78,7 @@ export async function subscribersMessagesUpdateAsSeen(
77
78
  "/v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}",
78
79
  )(pathParams);
79
80
 
80
- const headers = new Headers({
81
+ const headers = new Headers(compactMap({
81
82
  "Content-Type": "application/json",
82
83
  Accept: "application/json",
83
84
  "Idempotency-Key": encodeSimple(
@@ -85,7 +86,7 @@ export async function subscribersMessagesUpdateAsSeen(
85
86
  payload["Idempotency-Key"],
86
87
  { explode: false, charEncoding: "none" },
87
88
  ),
88
- });
89
+ }));
89
90
 
90
91
  const secConfig = await extractSecurity(client._options.apiKey);
91
92
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -75,14 +76,14 @@ export async function subscribersNotificationsFeed(
75
76
  "seen": payload.seen,
76
77
  });
77
78
 
78
- const headers = new Headers({
79
+ const headers = new Headers(compactMap({
79
80
  Accept: "application/json",
80
81
  "Idempotency-Key": encodeSimple(
81
82
  "Idempotency-Key",
82
83
  payload["Idempotency-Key"],
83
84
  { explode: false, charEncoding: "none" },
84
85
  ),
85
- });
86
+ }));
86
87
 
87
88
  const secConfig = await extractSecurity(client._options.apiKey);
88
89
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -72,14 +73,14 @@ export async function subscribersNotificationsUnseenCount(
72
73
  "seen": payload.seen,
73
74
  });
74
75
 
75
- const headers = new Headers({
76
+ const headers = new Headers(compactMap({
76
77
  Accept: "application/json",
77
78
  "Idempotency-Key": encodeSimple(
78
79
  "Idempotency-Key",
79
80
  payload["Idempotency-Key"],
80
81
  { explode: false, charEncoding: "none" },
81
82
  ),
82
- });
83
+ }));
83
84
 
84
85
  const secConfig = await extractSecurity(client._options.apiKey);
85
86
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -81,14 +82,14 @@ export async function subscribersPreferencesList(
81
82
  "includeInactiveChannels": payload.includeInactiveChannels,
82
83
  });
83
84
 
84
- const headers = new Headers({
85
+ const headers = new Headers(compactMap({
85
86
  Accept: "application/json",
86
87
  "Idempotency-Key": encodeSimple(
87
88
  "Idempotency-Key",
88
89
  payload["Idempotency-Key"],
89
90
  { explode: false, charEncoding: "none" },
90
91
  ),
91
- });
92
+ }));
92
93
 
93
94
  const secConfig = await extractSecurity(client._options.apiKey);
94
95
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -77,14 +78,14 @@ export async function subscribersPreferencesRetrieveByLevel(
77
78
  "includeInactiveChannels": payload.includeInactiveChannels,
78
79
  });
79
80
 
80
- const headers = new Headers({
81
+ const headers = new Headers(compactMap({
81
82
  Accept: "application/json",
82
83
  "Idempotency-Key": encodeSimple(
83
84
  "Idempotency-Key",
84
85
  payload["Idempotency-Key"],
85
86
  { explode: false, charEncoding: "none" },
86
87
  ),
87
- });
88
+ }));
88
89
 
89
90
  const secConfig = await extractSecurity(client._options.apiKey);
90
91
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -76,7 +77,7 @@ export async function subscribersPreferencesUpdate(
76
77
  "/v1/subscribers/{subscriberId}/preferences/{parameter}",
77
78
  )(pathParams);
78
79
 
79
- const headers = new Headers({
80
+ const headers = new Headers(compactMap({
80
81
  "Content-Type": "application/json",
81
82
  Accept: "application/json",
82
83
  "Idempotency-Key": encodeSimple(
@@ -84,7 +85,7 @@ export async function subscribersPreferencesUpdate(
84
85
  payload["Idempotency-Key"],
85
86
  { explode: false, charEncoding: "none" },
86
87
  ),
87
- });
88
+ }));
88
89
 
89
90
  const secConfig = await extractSecurity(client._options.apiKey);
90
91
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -84,7 +85,7 @@ export async function subscribersPreferencesUpdateGlobal(
84
85
  pathParams,
85
86
  );
86
87
 
87
- const headers = new Headers({
88
+ const headers = new Headers(compactMap({
88
89
  "Content-Type": "application/json",
89
90
  Accept: "application/json",
90
91
  "Idempotency-Key": encodeSimple(
@@ -92,7 +93,7 @@ export async function subscribersPreferencesUpdateGlobal(
92
93
  payload["Idempotency-Key"],
93
94
  { explode: false, charEncoding: "none" },
94
95
  ),
95
- });
96
+ }));
96
97
 
97
98
  const secConfig = await extractSecurity(client._options.apiKey);
98
99
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -87,7 +88,7 @@ export async function subscribersPropertiesUpdateOnlineFlag(
87
88
  pathParams,
88
89
  );
89
90
 
90
- const headers = new Headers({
91
+ const headers = new Headers(compactMap({
91
92
  "Content-Type": "application/json",
92
93
  Accept: "application/json",
93
94
  "Idempotency-Key": encodeSimple(
@@ -95,7 +96,7 @@ export async function subscribersPropertiesUpdateOnlineFlag(
95
96
  payload["Idempotency-Key"],
96
97
  { explode: false, charEncoding: "none" },
97
98
  ),
98
- });
99
+ }));
99
100
 
100
101
  const secConfig = await extractSecurity(client._options.apiKey);
101
102
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -81,14 +82,14 @@ export async function subscribersRetrieve(
81
82
  "includeTopics": payload.includeTopics,
82
83
  });
83
84
 
84
- const headers = new Headers({
85
+ const headers = new Headers(compactMap({
85
86
  Accept: "application/json",
86
87
  "Idempotency-Key": encodeSimple(
87
88
  "Idempotency-Key",
88
89
  payload["Idempotency-Key"],
89
90
  { explode: false, charEncoding: "none" },
90
91
  ),
91
- });
92
+ }));
92
93
 
93
94
  const secConfig = await extractSecurity(client._options.apiKey);
94
95
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -79,7 +80,7 @@ export async function subscribersUpdate(
79
80
 
80
81
  const path = pathToFunc("/v1/subscribers/{subscriberId}")(pathParams);
81
82
 
82
- const headers = new Headers({
83
+ const headers = new Headers(compactMap({
83
84
  "Content-Type": "application/json",
84
85
  Accept: "application/json",
85
86
  "Idempotency-Key": encodeSimple(
@@ -87,7 +88,7 @@ export async function subscribersUpdate(
87
88
  payload["Idempotency-Key"],
88
89
  { explode: false, charEncoding: "none" },
89
90
  ),
90
- });
91
+ }));
91
92
 
92
93
  const secConfig = await extractSecurity(client._options.apiKey);
93
94
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod";
6
6
  import { NovuCore } from "../core.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { RequestOptions } from "../lib/sdks.js";
9
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
11
  import { pathToFunc } from "../lib/url.js";
@@ -38,9 +39,9 @@ export async function testApiRateLimitBulkControllerGlobalCategoryNoCostOverride
38
39
  "/v1/rate-limiting-trigger-bulk/global-category-no-cost-override",
39
40
  )();
40
41
 
41
- const headers = new Headers({
42
+ const headers = new Headers(compactMap({
42
43
  Accept: "application/json",
43
- });
44
+ }));
44
45
 
45
46
  const secConfig = await extractSecurity(client._options.apiKey);
46
47
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod";
6
6
  import { NovuCore } from "../core.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { RequestOptions } from "../lib/sdks.js";
9
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
11
  import { pathToFunc } from "../lib/url.js";
@@ -38,9 +39,9 @@ export async function testApiRateLimitBulkControllerNoCategoryNoCostOverride(
38
39
  "/v1/rate-limiting-trigger-bulk/no-category-no-cost-override",
39
40
  )();
40
41
 
41
- const headers = new Headers({
42
+ const headers = new Headers(compactMap({
42
43
  Accept: "application/json",
43
- });
44
+ }));
44
45
 
45
46
  const secConfig = await extractSecurity(client._options.apiKey);
46
47
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod";
6
6
  import { NovuCore } from "../core.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { RequestOptions } from "../lib/sdks.js";
9
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
11
  import { pathToFunc } from "../lib/url.js";
@@ -38,9 +39,9 @@ export async function testApiRateLimitBulkControllerNoCategorySingleCostOverride
38
39
  "/v1/rate-limiting-trigger-bulk/no-category-single-cost-override",
39
40
  )();
40
41
 
41
- const headers = new Headers({
42
+ const headers = new Headers(compactMap({
42
43
  Accept: "application/json",
43
- });
44
+ }));
44
45
 
45
46
  const secConfig = await extractSecurity(client._options.apiKey);
46
47
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -69,7 +70,7 @@ export async function topicsCreate(
69
70
 
70
71
  const path = pathToFunc("/v1/topics")();
71
72
 
72
- const headers = new Headers({
73
+ const headers = new Headers(compactMap({
73
74
  "Content-Type": "application/json",
74
75
  Accept: "application/json",
75
76
  "Idempotency-Key": encodeSimple(
@@ -77,7 +78,7 @@ export async function topicsCreate(
77
78
  payload["Idempotency-Key"],
78
79
  { explode: false, charEncoding: "none" },
79
80
  ),
80
- });
81
+ }));
81
82
 
82
83
  const secConfig = await extractSecurity(client._options.apiKey);
83
84
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -73,14 +74,14 @@ export async function topicsDelete(
73
74
 
74
75
  const path = pathToFunc("/v1/topics/{topicKey}")(pathParams);
75
76
 
76
- const headers = new Headers({
77
+ const headers = new Headers(compactMap({
77
78
  Accept: "application/json",
78
79
  "Idempotency-Key": encodeSimple(
79
80
  "Idempotency-Key",
80
81
  payload["Idempotency-Key"],
81
82
  { explode: false, charEncoding: "none" },
82
83
  ),
83
- });
84
+ }));
84
85
 
85
86
  const secConfig = await extractSecurity(client._options.apiKey);
86
87
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -66,14 +67,14 @@ export async function topicsList(
66
67
  "pageSize": payload.pageSize,
67
68
  });
68
69
 
69
- const headers = new Headers({
70
+ const headers = new Headers(compactMap({
70
71
  Accept: "application/json",
71
72
  "Idempotency-Key": encodeSimple(
72
73
  "Idempotency-Key",
73
74
  payload["Idempotency-Key"],
74
75
  { explode: false, charEncoding: "none" },
75
76
  ),
76
- });
77
+ }));
77
78
 
78
79
  const secConfig = await extractSecurity(client._options.apiKey);
79
80
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -78,7 +79,7 @@ export async function topicsRename(
78
79
 
79
80
  const path = pathToFunc("/v1/topics/{topicKey}")(pathParams);
80
81
 
81
- const headers = new Headers({
82
+ const headers = new Headers(compactMap({
82
83
  "Content-Type": "application/json",
83
84
  Accept: "application/json",
84
85
  "Idempotency-Key": encodeSimple(
@@ -86,7 +87,7 @@ export async function topicsRename(
86
87
  payload["Idempotency-Key"],
87
88
  { explode: false, charEncoding: "none" },
88
89
  ),
89
- });
90
+ }));
90
91
 
91
92
  const secConfig = await extractSecurity(client._options.apiKey);
92
93
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -73,14 +74,14 @@ export async function topicsRetrieve(
73
74
 
74
75
  const path = pathToFunc("/v1/topics/{topicKey}")(pathParams);
75
76
 
76
- const headers = new Headers({
77
+ const headers = new Headers(compactMap({
77
78
  Accept: "application/json",
78
79
  "Idempotency-Key": encodeSimple(
79
80
  "Idempotency-Key",
80
81
  payload["Idempotency-Key"],
81
82
  { explode: false, charEncoding: "none" },
82
83
  ),
83
- });
84
+ }));
84
85
 
85
86
  const secConfig = await extractSecurity(client._options.apiKey);
86
87
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -78,7 +79,7 @@ export async function topicsSubscribersAssign(
78
79
 
79
80
  const path = pathToFunc("/v1/topics/{topicKey}/subscribers")(pathParams);
80
81
 
81
- const headers = new Headers({
82
+ const headers = new Headers(compactMap({
82
83
  "Content-Type": "application/json",
83
84
  Accept: "application/json",
84
85
  "Idempotency-Key": encodeSimple(
@@ -86,7 +87,7 @@ export async function topicsSubscribersAssign(
86
87
  payload["Idempotency-Key"],
87
88
  { explode: false, charEncoding: "none" },
88
89
  ),
89
- });
90
+ }));
90
91
 
91
92
  const secConfig = await extractSecurity(client._options.apiKey);
92
93
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -82,7 +83,7 @@ export async function topicsSubscribersRemove(
82
83
  pathParams,
83
84
  );
84
85
 
85
- const headers = new Headers({
86
+ const headers = new Headers(compactMap({
86
87
  "Content-Type": "application/json",
87
88
  Accept: "application/json",
88
89
  "Idempotency-Key": encodeSimple(
@@ -90,7 +91,7 @@ export async function topicsSubscribersRemove(
90
91
  payload["Idempotency-Key"],
91
92
  { explode: false, charEncoding: "none" },
92
93
  ),
93
- });
94
+ }));
94
95
 
95
96
  const secConfig = await extractSecurity(client._options.apiKey);
96
97
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -84,14 +85,14 @@ export async function topicsSubscribersRetrieve(
84
85
  "/v1/topics/{topicKey}/subscribers/{externalSubscriberId}",
85
86
  )(pathParams);
86
87
 
87
- const headers = new Headers({
88
+ const headers = new Headers(compactMap({
88
89
  Accept: "application/json",
89
90
  "Idempotency-Key": encodeSimple(
90
91
  "Idempotency-Key",
91
92
  payload["Idempotency-Key"],
92
93
  { explode: false, charEncoding: "none" },
93
94
  ),
94
- });
95
+ }));
95
96
 
96
97
  const secConfig = await extractSecurity(client._options.apiKey);
97
98
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
@@ -5,6 +5,7 @@
5
5
  import { NovuCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
8
9
  import { safeParse } from "../lib/schemas.js";
9
10
  import { RequestOptions } from "../lib/sdks.js";
10
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
@@ -72,7 +73,7 @@ export async function trigger(
72
73
 
73
74
  const path = pathToFunc("/v1/events/trigger")();
74
75
 
75
- const headers = new Headers({
76
+ const headers = new Headers(compactMap({
76
77
  "Content-Type": "application/json",
77
78
  Accept: "application/json",
78
79
  "Idempotency-Key": encodeSimple(
@@ -80,7 +81,7 @@ export async function trigger(
80
81
  payload["Idempotency-Key"],
81
82
  { explode: false, charEncoding: "none" },
82
83
  ),
83
- });
84
+ }));
84
85
 
85
86
  const secConfig = await extractSecurity(client._options.apiKey);
86
87
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };