@novu/api 1.1.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 (314) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +48 -74
  3. package/bin/mcp-server.js +1440 -1157
  4. package/bin/mcp-server.js.map +71 -60
  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/patchsubscriberrequestdto.d.ts +6 -26
  218. package/models/components/patchsubscriberrequestdto.d.ts.map +1 -1
  219. package/models/components/patchsubscriberrequestdto.js +3 -27
  220. package/models/components/patchsubscriberrequestdto.js.map +1 -1
  221. package/models/components/payloadvalidationerrordto.d.ts +125 -0
  222. package/models/components/payloadvalidationerrordto.d.ts.map +1 -0
  223. package/models/components/payloadvalidationerrordto.js +160 -0
  224. package/models/components/payloadvalidationerrordto.js.map +1 -0
  225. package/models/components/subscriberpayloaddto.d.ts +13 -13
  226. package/models/components/subscriberpayloaddto.d.ts.map +1 -1
  227. package/models/components/subscriberpayloaddto.js +17 -16
  228. package/models/components/subscriberpayloaddto.js.map +1 -1
  229. package/models/components/updateintegrationrequestdto.d.ts +0 -5
  230. package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
  231. package/models/components/updateintegrationrequestdto.js +0 -2
  232. package/models/components/updateintegrationrequestdto.js.map +1 -1
  233. package/models/errors/index.d.ts +1 -0
  234. package/models/errors/index.d.ts.map +1 -1
  235. package/models/errors/index.js +1 -0
  236. package/models/errors/index.js.map +1 -1
  237. package/models/errors/payloadvalidationexceptiondto.d.ts +222 -0
  238. package/models/errors/payloadvalidationexceptiondto.d.ts.map +1 -0
  239. package/models/errors/payloadvalidationexceptiondto.js +212 -0
  240. package/models/errors/payloadvalidationexceptiondto.js.map +1 -0
  241. package/models/errors/sdkerror.d.ts +14 -2
  242. package/models/errors/sdkerror.d.ts.map +1 -1
  243. package/models/errors/sdkerror.js +1 -1
  244. package/models/errors/sdkerror.js.map +1 -1
  245. package/package.json +2 -2
  246. package/sdk/subscribers.d.ts +4 -3
  247. package/sdk/subscribers.d.ts.map +1 -1
  248. package/sdk/subscribers.js +4 -3
  249. package/sdk/subscribers.js.map +1 -1
  250. package/sdk/subscriptions.d.ts +1 -1
  251. package/sdk/subscriptions.js +1 -1
  252. package/sources/json-development.json +233 -49
  253. package/src/funcs/cancel.ts +2 -6
  254. package/src/funcs/integrationsCreate.ts +2 -6
  255. package/src/funcs/integrationsDelete.ts +2 -6
  256. package/src/funcs/integrationsList.ts +2 -6
  257. package/src/funcs/integrationsListActive.ts +2 -6
  258. package/src/funcs/integrationsSetAsPrimary.ts +2 -6
  259. package/src/funcs/integrationsUpdate.ts +2 -6
  260. package/src/funcs/messagesDelete.ts +2 -6
  261. package/src/funcs/messagesDeleteByTransactionId.ts +2 -6
  262. package/src/funcs/messagesRetrieve.ts +2 -6
  263. package/src/funcs/notificationsList.ts +2 -6
  264. package/src/funcs/notificationsRetrieve.ts +2 -6
  265. package/src/funcs/subscribersCreate.ts +2 -6
  266. package/src/funcs/subscribersCreateBulk.ts +2 -6
  267. package/src/funcs/subscribersCredentialsAppend.ts +2 -6
  268. package/src/funcs/subscribersCredentialsDelete.ts +2 -6
  269. package/src/funcs/subscribersCredentialsUpdate.ts +2 -6
  270. package/src/funcs/subscribersDelete.ts +5 -8
  271. package/src/funcs/subscribersMessagesMarkAll.ts +2 -6
  272. package/src/funcs/subscribersMessagesMarkAllAs.ts +2 -6
  273. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +2 -6
  274. package/src/funcs/subscribersNotificationsFeed.ts +2 -6
  275. package/src/funcs/subscribersNotificationsUnseenCount.ts +2 -6
  276. package/src/funcs/subscribersPatch.ts +2 -6
  277. package/src/funcs/subscribersPreferencesList.ts +2 -6
  278. package/src/funcs/subscribersPreferencesUpdate.ts +2 -6
  279. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +2 -6
  280. package/src/funcs/subscribersRetrieve.ts +3 -7
  281. package/src/funcs/subscribersSearch.ts +2 -6
  282. package/src/funcs/subscribersTopicsList.ts +2 -6
  283. package/src/funcs/topicsCreate.ts +2 -6
  284. package/src/funcs/topicsDelete.ts +2 -6
  285. package/src/funcs/topicsGet.ts +2 -6
  286. package/src/funcs/topicsList.ts +2 -6
  287. package/src/funcs/topicsSubscribersRetrieve.ts +2 -6
  288. package/src/funcs/topicsSubscriptionsCreate.ts +2 -6
  289. package/src/funcs/topicsSubscriptionsDelete.ts +2 -6
  290. package/src/funcs/topicsSubscriptionsList.ts +3 -7
  291. package/src/funcs/topicsUpdate.ts +2 -6
  292. package/src/funcs/trigger.ts +9 -7
  293. package/src/funcs/triggerBroadcast.ts +9 -7
  294. package/src/funcs/triggerBulk.ts +9 -7
  295. package/src/hooks/types.ts +2 -0
  296. package/src/index.ts +2 -0
  297. package/src/lib/config.ts +7 -3
  298. package/src/lib/sdks.ts +10 -4
  299. package/src/mcp-server/mcp-server.ts +1 -1
  300. package/src/mcp-server/server.ts +1 -1
  301. package/src/mcp-server/tools/subscribersDelete.ts +3 -2
  302. package/src/mcp-server/tools/subscribersRetrieve.ts +1 -1
  303. package/src/mcp-server/tools/topicsSubscriptionsList.ts +1 -1
  304. package/src/models/components/index.ts +1 -0
  305. package/src/models/components/notificationfeeditemdto.ts +4 -4
  306. package/src/models/components/patchsubscriberrequestdto.ts +4 -47
  307. package/src/models/components/payloadvalidationerrordto.ts +299 -0
  308. package/src/models/components/subscriberpayloaddto.ts +19 -37
  309. package/src/models/components/updateintegrationrequestdto.ts +0 -7
  310. package/src/models/errors/index.ts +1 -0
  311. package/src/models/errors/payloadvalidationexceptiondto.ts +466 -0
  312. package/src/models/errors/sdkerror.ts +18 -3
  313. package/src/sdk/subscribers.ts +4 -3
  314. package/src/sdk/subscriptions.ts +1 -1
@@ -0,0 +1,299 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type Value5 = string | number | boolean | { [k: string]: any };
11
+
12
+ export type Value4 = {};
13
+
14
+ /**
15
+ * The actual value that failed validation
16
+ */
17
+ export type PayloadValidationErrorDtoValue =
18
+ | Value4
19
+ | string
20
+ | number
21
+ | boolean
22
+ | Array<string | number | boolean | { [k: string]: any } | null>;
23
+
24
+ export type PayloadValidationErrorDto = {
25
+ /**
26
+ * Field path that failed validation
27
+ */
28
+ field: string;
29
+ /**
30
+ * Validation error message
31
+ */
32
+ message: string;
33
+ /**
34
+ * The actual value that failed validation
35
+ */
36
+ value?:
37
+ | Value4
38
+ | string
39
+ | number
40
+ | boolean
41
+ | Array<string | number | boolean | { [k: string]: any } | null>
42
+ | null
43
+ | undefined;
44
+ /**
45
+ * JSON Schema path where the validation failed
46
+ */
47
+ schemaPath?: string | undefined;
48
+ };
49
+
50
+ /** @internal */
51
+ export const Value5$inboundSchema: z.ZodType<Value5, z.ZodTypeDef, unknown> = z
52
+ .union([z.string(), z.number(), z.boolean(), z.record(z.any())]);
53
+
54
+ /** @internal */
55
+ export type Value5$Outbound = string | number | boolean | { [k: string]: any };
56
+
57
+ /** @internal */
58
+ export const Value5$outboundSchema: z.ZodType<
59
+ Value5$Outbound,
60
+ z.ZodTypeDef,
61
+ Value5
62
+ > = z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]);
63
+
64
+ /**
65
+ * @internal
66
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
+ */
68
+ export namespace Value5$ {
69
+ /** @deprecated use `Value5$inboundSchema` instead. */
70
+ export const inboundSchema = Value5$inboundSchema;
71
+ /** @deprecated use `Value5$outboundSchema` instead. */
72
+ export const outboundSchema = Value5$outboundSchema;
73
+ /** @deprecated use `Value5$Outbound` instead. */
74
+ export type Outbound = Value5$Outbound;
75
+ }
76
+
77
+ export function value5ToJSON(value5: Value5): string {
78
+ return JSON.stringify(Value5$outboundSchema.parse(value5));
79
+ }
80
+
81
+ export function value5FromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<Value5, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => Value5$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'Value5' from JSON`,
88
+ );
89
+ }
90
+
91
+ /** @internal */
92
+ export const Value4$inboundSchema: z.ZodType<Value4, z.ZodTypeDef, unknown> = z
93
+ .object({});
94
+
95
+ /** @internal */
96
+ export type Value4$Outbound = {};
97
+
98
+ /** @internal */
99
+ export const Value4$outboundSchema: z.ZodType<
100
+ Value4$Outbound,
101
+ z.ZodTypeDef,
102
+ Value4
103
+ > = z.object({});
104
+
105
+ /**
106
+ * @internal
107
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
108
+ */
109
+ export namespace Value4$ {
110
+ /** @deprecated use `Value4$inboundSchema` instead. */
111
+ export const inboundSchema = Value4$inboundSchema;
112
+ /** @deprecated use `Value4$outboundSchema` instead. */
113
+ export const outboundSchema = Value4$outboundSchema;
114
+ /** @deprecated use `Value4$Outbound` instead. */
115
+ export type Outbound = Value4$Outbound;
116
+ }
117
+
118
+ export function value4ToJSON(value4: Value4): string {
119
+ return JSON.stringify(Value4$outboundSchema.parse(value4));
120
+ }
121
+
122
+ export function value4FromJSON(
123
+ jsonString: string,
124
+ ): SafeParseResult<Value4, SDKValidationError> {
125
+ return safeParse(
126
+ jsonString,
127
+ (x) => Value4$inboundSchema.parse(JSON.parse(x)),
128
+ `Failed to parse 'Value4' from JSON`,
129
+ );
130
+ }
131
+
132
+ /** @internal */
133
+ export const PayloadValidationErrorDtoValue$inboundSchema: z.ZodType<
134
+ PayloadValidationErrorDtoValue,
135
+ z.ZodTypeDef,
136
+ unknown
137
+ > = z.union([
138
+ z.lazy(() => Value4$inboundSchema),
139
+ z.string(),
140
+ z.number(),
141
+ z.boolean(),
142
+ z.array(
143
+ z.nullable(
144
+ z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]),
145
+ ),
146
+ ),
147
+ ]);
148
+
149
+ /** @internal */
150
+ export type PayloadValidationErrorDtoValue$Outbound =
151
+ | Value4$Outbound
152
+ | string
153
+ | number
154
+ | boolean
155
+ | Array<string | number | boolean | { [k: string]: any } | null>;
156
+
157
+ /** @internal */
158
+ export const PayloadValidationErrorDtoValue$outboundSchema: z.ZodType<
159
+ PayloadValidationErrorDtoValue$Outbound,
160
+ z.ZodTypeDef,
161
+ PayloadValidationErrorDtoValue
162
+ > = z.union([
163
+ z.lazy(() => Value4$outboundSchema),
164
+ z.string(),
165
+ z.number(),
166
+ z.boolean(),
167
+ z.array(
168
+ z.nullable(
169
+ z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]),
170
+ ),
171
+ ),
172
+ ]);
173
+
174
+ /**
175
+ * @internal
176
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
177
+ */
178
+ export namespace PayloadValidationErrorDtoValue$ {
179
+ /** @deprecated use `PayloadValidationErrorDtoValue$inboundSchema` instead. */
180
+ export const inboundSchema = PayloadValidationErrorDtoValue$inboundSchema;
181
+ /** @deprecated use `PayloadValidationErrorDtoValue$outboundSchema` instead. */
182
+ export const outboundSchema = PayloadValidationErrorDtoValue$outboundSchema;
183
+ /** @deprecated use `PayloadValidationErrorDtoValue$Outbound` instead. */
184
+ export type Outbound = PayloadValidationErrorDtoValue$Outbound;
185
+ }
186
+
187
+ export function payloadValidationErrorDtoValueToJSON(
188
+ payloadValidationErrorDtoValue: PayloadValidationErrorDtoValue,
189
+ ): string {
190
+ return JSON.stringify(
191
+ PayloadValidationErrorDtoValue$outboundSchema.parse(
192
+ payloadValidationErrorDtoValue,
193
+ ),
194
+ );
195
+ }
196
+
197
+ export function payloadValidationErrorDtoValueFromJSON(
198
+ jsonString: string,
199
+ ): SafeParseResult<PayloadValidationErrorDtoValue, SDKValidationError> {
200
+ return safeParse(
201
+ jsonString,
202
+ (x) => PayloadValidationErrorDtoValue$inboundSchema.parse(JSON.parse(x)),
203
+ `Failed to parse 'PayloadValidationErrorDtoValue' from JSON`,
204
+ );
205
+ }
206
+
207
+ /** @internal */
208
+ export const PayloadValidationErrorDto$inboundSchema: z.ZodType<
209
+ PayloadValidationErrorDto,
210
+ z.ZodTypeDef,
211
+ unknown
212
+ > = z.object({
213
+ field: z.string(),
214
+ message: z.string(),
215
+ value: z.nullable(
216
+ z.union([
217
+ z.lazy(() => Value4$inboundSchema),
218
+ z.string(),
219
+ z.number(),
220
+ z.boolean(),
221
+ z.array(
222
+ z.nullable(
223
+ z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]),
224
+ ),
225
+ ),
226
+ ]),
227
+ ).optional(),
228
+ schemaPath: z.string().optional(),
229
+ });
230
+
231
+ /** @internal */
232
+ export type PayloadValidationErrorDto$Outbound = {
233
+ field: string;
234
+ message: string;
235
+ value?:
236
+ | Value4$Outbound
237
+ | string
238
+ | number
239
+ | boolean
240
+ | Array<string | number | boolean | { [k: string]: any } | null>
241
+ | null
242
+ | undefined;
243
+ schemaPath?: string | undefined;
244
+ };
245
+
246
+ /** @internal */
247
+ export const PayloadValidationErrorDto$outboundSchema: z.ZodType<
248
+ PayloadValidationErrorDto$Outbound,
249
+ z.ZodTypeDef,
250
+ PayloadValidationErrorDto
251
+ > = z.object({
252
+ field: z.string(),
253
+ message: z.string(),
254
+ value: z.nullable(
255
+ z.union([
256
+ z.lazy(() => Value4$outboundSchema),
257
+ z.string(),
258
+ z.number(),
259
+ z.boolean(),
260
+ z.array(
261
+ z.nullable(
262
+ z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]),
263
+ ),
264
+ ),
265
+ ]),
266
+ ).optional(),
267
+ schemaPath: z.string().optional(),
268
+ });
269
+
270
+ /**
271
+ * @internal
272
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
273
+ */
274
+ export namespace PayloadValidationErrorDto$ {
275
+ /** @deprecated use `PayloadValidationErrorDto$inboundSchema` instead. */
276
+ export const inboundSchema = PayloadValidationErrorDto$inboundSchema;
277
+ /** @deprecated use `PayloadValidationErrorDto$outboundSchema` instead. */
278
+ export const outboundSchema = PayloadValidationErrorDto$outboundSchema;
279
+ /** @deprecated use `PayloadValidationErrorDto$Outbound` instead. */
280
+ export type Outbound = PayloadValidationErrorDto$Outbound;
281
+ }
282
+
283
+ export function payloadValidationErrorDtoToJSON(
284
+ payloadValidationErrorDto: PayloadValidationErrorDto,
285
+ ): string {
286
+ return JSON.stringify(
287
+ PayloadValidationErrorDto$outboundSchema.parse(payloadValidationErrorDto),
288
+ );
289
+ }
290
+
291
+ export function payloadValidationErrorDtoFromJSON(
292
+ jsonString: string,
293
+ ): SafeParseResult<PayloadValidationErrorDto, SDKValidationError> {
294
+ return safeParse(
295
+ jsonString,
296
+ (x) => PayloadValidationErrorDto$inboundSchema.parse(JSON.parse(x)),
297
+ `Failed to parse 'PayloadValidationErrorDto' from JSON`,
298
+ );
299
+ }
@@ -13,11 +13,7 @@ import {
13
13
  SubscriberChannelDto$outboundSchema,
14
14
  } from "./subscriberchanneldto.js";
15
15
 
16
- export type SubscriberPayloadDtoData =
17
- | string
18
- | Array<string>
19
- | boolean
20
- | number;
16
+ export type Data = string | Array<string> | boolean | number;
21
17
 
22
18
  export type SubscriberPayloadDto = {
23
19
  /**
@@ -63,54 +59,40 @@ export type SubscriberPayloadDto = {
63
59
  };
64
60
 
65
61
  /** @internal */
66
- export const SubscriberPayloadDtoData$inboundSchema: z.ZodType<
67
- SubscriberPayloadDtoData,
68
- z.ZodTypeDef,
69
- unknown
70
- > = z.union([z.string(), z.array(z.string()), z.boolean(), z.number()]);
62
+ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
63
+ .union([z.string(), z.array(z.string()), z.boolean(), z.number()]);
71
64
 
72
65
  /** @internal */
73
- export type SubscriberPayloadDtoData$Outbound =
74
- | string
75
- | Array<string>
76
- | boolean
77
- | number;
66
+ export type Data$Outbound = string | Array<string> | boolean | number;
78
67
 
79
68
  /** @internal */
80
- export const SubscriberPayloadDtoData$outboundSchema: z.ZodType<
81
- SubscriberPayloadDtoData$Outbound,
82
- z.ZodTypeDef,
83
- SubscriberPayloadDtoData
84
- > = z.union([z.string(), z.array(z.string()), z.boolean(), z.number()]);
69
+ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
70
+ z.union([z.string(), z.array(z.string()), z.boolean(), z.number()]);
85
71
 
86
72
  /**
87
73
  * @internal
88
74
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
75
  */
90
- export namespace SubscriberPayloadDtoData$ {
91
- /** @deprecated use `SubscriberPayloadDtoData$inboundSchema` instead. */
92
- export const inboundSchema = SubscriberPayloadDtoData$inboundSchema;
93
- /** @deprecated use `SubscriberPayloadDtoData$outboundSchema` instead. */
94
- export const outboundSchema = SubscriberPayloadDtoData$outboundSchema;
95
- /** @deprecated use `SubscriberPayloadDtoData$Outbound` instead. */
96
- export type Outbound = SubscriberPayloadDtoData$Outbound;
76
+ export namespace Data$ {
77
+ /** @deprecated use `Data$inboundSchema` instead. */
78
+ export const inboundSchema = Data$inboundSchema;
79
+ /** @deprecated use `Data$outboundSchema` instead. */
80
+ export const outboundSchema = Data$outboundSchema;
81
+ /** @deprecated use `Data$Outbound` instead. */
82
+ export type Outbound = Data$Outbound;
97
83
  }
98
84
 
99
- export function subscriberPayloadDtoDataToJSON(
100
- subscriberPayloadDtoData: SubscriberPayloadDtoData,
101
- ): string {
102
- return JSON.stringify(
103
- SubscriberPayloadDtoData$outboundSchema.parse(subscriberPayloadDtoData),
104
- );
85
+ export function dataToJSON(data: Data): string {
86
+ return JSON.stringify(Data$outboundSchema.parse(data));
105
87
  }
106
88
 
107
- export function subscriberPayloadDtoDataFromJSON(
89
+ export function dataFromJSON(
108
90
  jsonString: string,
109
- ): SafeParseResult<SubscriberPayloadDtoData, SDKValidationError> {
91
+ ): SafeParseResult<Data, SDKValidationError> {
110
92
  return safeParse(
111
93
  jsonString,
112
- (x) => SubscriberPayloadDtoData$inboundSchema.parse(JSON.parse(x)),
113
- `Failed to parse 'SubscriberPayloadDtoData' from JSON`,
94
+ (x) => Data$inboundSchema.parse(JSON.parse(x)),
95
+ `Failed to parse 'Data' from JSON`,
114
96
  );
115
97
  }
116
98
 
@@ -29,10 +29,6 @@ export type UpdateIntegrationRequestDto = {
29
29
  */
30
30
  active?: boolean | undefined;
31
31
  credentials?: CredentialsDto | undefined;
32
- /**
33
- * If true, the Novu branding will be removed from the Inbox component
34
- */
35
- removeNovuBranding?: boolean | undefined;
36
32
  check?: boolean | undefined;
37
33
  conditions?: Array<StepFilterDto> | undefined;
38
34
  };
@@ -48,7 +44,6 @@ export const UpdateIntegrationRequestDto$inboundSchema: z.ZodType<
48
44
  _environmentId: z.string().optional(),
49
45
  active: z.boolean().optional(),
50
46
  credentials: CredentialsDto$inboundSchema.optional(),
51
- removeNovuBranding: z.boolean().optional(),
52
47
  check: z.boolean().optional(),
53
48
  conditions: z.array(StepFilterDto$inboundSchema).optional(),
54
49
  }).transform((v) => {
@@ -64,7 +59,6 @@ export type UpdateIntegrationRequestDto$Outbound = {
64
59
  _environmentId?: string | undefined;
65
60
  active?: boolean | undefined;
66
61
  credentials?: CredentialsDto$Outbound | undefined;
67
- removeNovuBranding?: boolean | undefined;
68
62
  check?: boolean | undefined;
69
63
  conditions?: Array<StepFilterDto$Outbound> | undefined;
70
64
  };
@@ -80,7 +74,6 @@ export const UpdateIntegrationRequestDto$outboundSchema: z.ZodType<
80
74
  environmentId: z.string().optional(),
81
75
  active: z.boolean().optional(),
82
76
  credentials: CredentialsDto$outboundSchema.optional(),
83
- removeNovuBranding: z.boolean().optional(),
84
77
  check: z.boolean().optional(),
85
78
  conditions: z.array(StepFilterDto$outboundSchema).optional(),
86
79
  }).transform((v) => {
@@ -4,6 +4,7 @@
4
4
 
5
5
  export * from "./errordto.js";
6
6
  export * from "./httpclienterrors.js";
7
+ export * from "./payloadvalidationexceptiondto.js";
7
8
  export * from "./sdkerror.js";
8
9
  export * from "./sdkvalidationerror.js";
9
10
  export * from "./validationerrordto.js";