@novu/api 1.4.0 → 1.5.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 (315) hide show
  1. package/README.md +11 -7
  2. package/bin/mcp-server.js +1464 -1202
  3. package/bin/mcp-server.js.map +68 -62
  4. package/docs/sdks/credentials/README.md +6 -6
  5. package/docs/sdks/environments/README.md +74 -0
  6. package/docs/sdks/integrations/README.md +1 -1
  7. package/docs/sdks/novu/README.md +68 -1
  8. package/examples/README.md +31 -0
  9. package/examples/package-lock.json +626 -0
  10. package/examples/package.json +18 -0
  11. package/examples/trigger.example.ts +36 -0
  12. package/funcs/environmentsGetTags.d.ts +18 -0
  13. package/funcs/environmentsGetTags.d.ts.map +1 -0
  14. package/funcs/environmentsGetTags.js +146 -0
  15. package/funcs/environmentsGetTags.js.map +1 -0
  16. package/funcs/retrieve.d.ts +11 -0
  17. package/funcs/retrieve.d.ts.map +1 -0
  18. package/funcs/retrieve.js +119 -0
  19. package/funcs/retrieve.js.map +1 -0
  20. package/funcs/subscribersCredentialsAppend.d.ts +3 -3
  21. package/funcs/subscribersCredentialsAppend.js +3 -3
  22. package/funcs/subscribersCredentialsUpdate.d.ts +3 -3
  23. package/funcs/subscribersCredentialsUpdate.js +3 -3
  24. package/jsr.json +1 -1
  25. package/lib/config.d.ts +4 -4
  26. package/lib/config.js +4 -4
  27. package/mcp-server/cli/start/command.d.ts.map +1 -1
  28. package/mcp-server/cli/start/command.js +0 -12
  29. package/mcp-server/cli/start/command.js.map +1 -1
  30. package/mcp-server/cli/start/impl.d.ts +0 -2
  31. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  32. package/mcp-server/cli/start/impl.js +0 -2
  33. package/mcp-server/cli/start/impl.js.map +1 -1
  34. package/mcp-server/mcp-server.js +1 -1
  35. package/mcp-server/server.d.ts.map +1 -1
  36. package/mcp-server/server.js +9 -5
  37. package/mcp-server/server.js.map +1 -1
  38. package/mcp-server/tools/environmentsGetTags.d.ts +9 -0
  39. package/mcp-server/tools/environmentsGetTags.d.ts.map +1 -0
  40. package/mcp-server/tools/environmentsGetTags.js +55 -0
  41. package/mcp-server/tools/environmentsGetTags.js.map +1 -0
  42. package/mcp-server/tools/retrieve.d.ts +8 -0
  43. package/mcp-server/tools/retrieve.d.ts.map +1 -0
  44. package/mcp-server/tools/retrieve.js +52 -0
  45. package/mcp-server/tools/retrieve.js.map +1 -0
  46. package/mcp-server/tools/subscribersCredentialsAppend.js +3 -3
  47. package/mcp-server/tools/subscribersCredentialsAppend.js.map +1 -1
  48. package/mcp-server/tools/subscribersCredentialsUpdate.js +3 -3
  49. package/mcp-server/tools/subscribersCredentialsUpdate.js.map +1 -1
  50. package/models/components/activitynotificationtemplateresponsedto.d.ts +2 -2
  51. package/models/components/activitynotificationtemplateresponsedto.js +3 -3
  52. package/models/components/chatorpushproviderenum.d.ts +3 -0
  53. package/models/components/chatorpushproviderenum.d.ts.map +1 -1
  54. package/models/components/chatorpushproviderenum.js +1 -0
  55. package/models/components/chatorpushproviderenum.js.map +1 -1
  56. package/models/components/chatstepresponsedto.d.ts +2 -2
  57. package/models/components/chatstepresponsedto.d.ts.map +1 -1
  58. package/models/components/chatstepresponsedto.js +3 -3
  59. package/models/components/chatstepresponsedto.js.map +1 -1
  60. package/models/components/chatstepupsertdto.d.ts +13 -20
  61. package/models/components/chatstepupsertdto.d.ts.map +1 -1
  62. package/models/components/chatstepupsertdto.js +7 -10
  63. package/models/components/chatstepupsertdto.js.map +1 -1
  64. package/models/components/{stepcontentissueenum.d.ts → contentissueenum.d.ts} +8 -8
  65. package/models/components/contentissueenum.d.ts.map +1 -0
  66. package/models/components/{stepcontentissueenum.js → contentissueenum.js} +12 -12
  67. package/models/components/contentissueenum.js.map +1 -0
  68. package/models/components/createworkflowdto.d.ts +19 -14
  69. package/models/components/createworkflowdto.d.ts.map +1 -1
  70. package/models/components/createworkflowdto.js +6 -4
  71. package/models/components/createworkflowdto.js.map +1 -1
  72. package/models/components/customstepresponsedto.d.ts +2 -2
  73. package/models/components/customstepresponsedto.d.ts.map +1 -1
  74. package/models/components/customstepresponsedto.js +3 -3
  75. package/models/components/customstepresponsedto.js.map +1 -1
  76. package/models/components/customstepupsertdto.d.ts +13 -15
  77. package/models/components/customstepupsertdto.d.ts.map +1 -1
  78. package/models/components/customstepupsertdto.js +7 -8
  79. package/models/components/customstepupsertdto.js.map +1 -1
  80. package/models/components/delaycontroldto.d.ts +8 -8
  81. package/models/components/delaycontroldto.d.ts.map +1 -1
  82. package/models/components/delaycontroldto.js +13 -13
  83. package/models/components/delaycontroldto.js.map +1 -1
  84. package/models/components/delaystepresponsedto.d.ts +2 -2
  85. package/models/components/delaystepresponsedto.d.ts.map +1 -1
  86. package/models/components/delaystepresponsedto.js +3 -3
  87. package/models/components/delaystepresponsedto.js.map +1 -1
  88. package/models/components/delaystepupsertdto.d.ts +13 -102
  89. package/models/components/delaystepupsertdto.d.ts.map +1 -1
  90. package/models/components/delaystepupsertdto.js +8 -62
  91. package/models/components/delaystepupsertdto.js.map +1 -1
  92. package/models/components/digeststepresponsedto.d.ts +2 -2
  93. package/models/components/digeststepresponsedto.d.ts.map +1 -1
  94. package/models/components/digeststepresponsedto.js +3 -3
  95. package/models/components/digeststepresponsedto.js.map +1 -1
  96. package/models/components/digeststepupsertdto.d.ts +13 -121
  97. package/models/components/digeststepupsertdto.d.ts.map +1 -1
  98. package/models/components/digeststepupsertdto.js +8 -70
  99. package/models/components/digeststepupsertdto.js.map +1 -1
  100. package/models/components/emailcontroldto.d.ts +5 -0
  101. package/models/components/emailcontroldto.d.ts.map +1 -1
  102. package/models/components/emailcontroldto.js +2 -0
  103. package/models/components/emailcontroldto.js.map +1 -1
  104. package/models/components/emailstepresponsedto.d.ts +7 -2
  105. package/models/components/emailstepresponsedto.d.ts.map +1 -1
  106. package/models/components/emailstepresponsedto.js +5 -3
  107. package/models/components/emailstepresponsedto.js.map +1 -1
  108. package/models/components/emailstepupsertdto.d.ts +13 -67
  109. package/models/components/emailstepupsertdto.d.ts.map +1 -1
  110. package/models/components/emailstepupsertdto.js +8 -39
  111. package/models/components/emailstepupsertdto.js.map +1 -1
  112. package/models/components/environmentresponsedto.d.ts +37 -0
  113. package/models/components/environmentresponsedto.d.ts.map +1 -1
  114. package/models/components/environmentresponsedto.js +25 -1
  115. package/models/components/environmentresponsedto.js.map +1 -1
  116. package/models/components/getenvironmenttagsdto.d.ts +29 -0
  117. package/models/components/getenvironmenttagsdto.d.ts.map +1 -0
  118. package/models/components/getenvironmenttagsdto.js +59 -0
  119. package/models/components/getenvironmenttagsdto.js.map +1 -0
  120. package/models/components/inappstepresponsedto.d.ts +2 -2
  121. package/models/components/inappstepresponsedto.d.ts.map +1 -1
  122. package/models/components/inappstepresponsedto.js +3 -3
  123. package/models/components/inappstepresponsedto.js.map +1 -1
  124. package/models/components/inappstepupsertdto.d.ts +13 -61
  125. package/models/components/inappstepupsertdto.d.ts.map +1 -1
  126. package/models/components/inappstepupsertdto.js +5 -26
  127. package/models/components/inappstepupsertdto.js.map +1 -1
  128. package/models/components/index.d.ts +4 -3
  129. package/models/components/index.d.ts.map +1 -1
  130. package/models/components/index.js +4 -3
  131. package/models/components/index.js.map +1 -1
  132. package/models/components/{stepintegrationissueenum.d.ts → integrationissueenum.d.ts} +8 -8
  133. package/models/components/integrationissueenum.d.ts.map +1 -0
  134. package/models/components/{stepintegrationissueenum.js → integrationissueenum.js} +12 -12
  135. package/models/components/integrationissueenum.js.map +1 -0
  136. package/models/components/lookbackwindowdto.d.ts +8 -8
  137. package/models/components/lookbackwindowdto.d.ts.map +1 -1
  138. package/models/components/lookbackwindowdto.js +13 -13
  139. package/models/components/lookbackwindowdto.js.map +1 -1
  140. package/models/components/messageresponsedto.d.ts +6 -6
  141. package/models/components/messageresponsedto.d.ts.map +1 -1
  142. package/models/components/messageresponsedto.js +8 -6
  143. package/models/components/messageresponsedto.js.map +1 -1
  144. package/models/components/notificationfeeditemdto.d.ts +14 -0
  145. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  146. package/models/components/notificationfeeditemdto.js +4 -0
  147. package/models/components/notificationfeeditemdto.js.map +1 -1
  148. package/models/components/patchworkflowdto.d.ts +7 -2
  149. package/models/components/patchworkflowdto.d.ts.map +1 -1
  150. package/models/components/patchworkflowdto.js +4 -2
  151. package/models/components/patchworkflowdto.js.map +1 -1
  152. package/models/components/providersidenum.d.ts +3 -0
  153. package/models/components/providersidenum.d.ts.map +1 -1
  154. package/models/components/providersidenum.js +1 -0
  155. package/models/components/providersidenum.js.map +1 -1
  156. package/models/components/pushstepresponsedto.d.ts +2 -2
  157. package/models/components/pushstepresponsedto.d.ts.map +1 -1
  158. package/models/components/pushstepresponsedto.js +3 -3
  159. package/models/components/pushstepresponsedto.js.map +1 -1
  160. package/models/components/pushstepupsertdto.d.ts +13 -25
  161. package/models/components/pushstepupsertdto.d.ts.map +1 -1
  162. package/models/components/pushstepupsertdto.js +7 -12
  163. package/models/components/pushstepupsertdto.js.map +1 -1
  164. package/models/components/{workfloworiginenum.d.ts → resourceoriginenum.d.ts} +8 -8
  165. package/models/components/{workfloworiginenum.d.ts.map → resourceoriginenum.d.ts.map} +1 -1
  166. package/models/components/{workfloworiginenum.js → resourceoriginenum.js} +12 -12
  167. package/models/components/{workfloworiginenum.js.map → resourceoriginenum.js.map} +1 -1
  168. package/models/components/smsstepresponsedto.d.ts +2 -2
  169. package/models/components/smsstepresponsedto.d.ts.map +1 -1
  170. package/models/components/smsstepresponsedto.js +3 -3
  171. package/models/components/smsstepresponsedto.js.map +1 -1
  172. package/models/components/smsstepupsertdto.d.ts +13 -20
  173. package/models/components/smsstepupsertdto.d.ts.map +1 -1
  174. package/models/components/smsstepupsertdto.js +7 -10
  175. package/models/components/smsstepupsertdto.js.map +1 -1
  176. package/models/components/stepcontentissuedto.d.ts +2 -2
  177. package/models/components/stepcontentissuedto.d.ts.map +1 -1
  178. package/models/components/stepcontentissuedto.js +3 -3
  179. package/models/components/stepcontentissuedto.js.map +1 -1
  180. package/models/components/stepintegrationissue.d.ts +2 -2
  181. package/models/components/stepintegrationissue.d.ts.map +1 -1
  182. package/models/components/stepintegrationissue.js +3 -3
  183. package/models/components/stepintegrationissue.js.map +1 -1
  184. package/models/components/stepresponsedto.d.ts +2 -2
  185. package/models/components/stepresponsedto.d.ts.map +1 -1
  186. package/models/components/stepresponsedto.js +3 -3
  187. package/models/components/stepresponsedto.js.map +1 -1
  188. package/models/components/subscriberchanneldto.d.ts +3 -0
  189. package/models/components/subscriberchanneldto.d.ts.map +1 -1
  190. package/models/components/subscriberchanneldto.js +1 -0
  191. package/models/components/subscriberchanneldto.js.map +1 -1
  192. package/models/components/uicomponentenum.d.ts +6 -0
  193. package/models/components/uicomponentenum.d.ts.map +1 -1
  194. package/models/components/uicomponentenum.js +2 -0
  195. package/models/components/uicomponentenum.js.map +1 -1
  196. package/models/components/uischemagroupenum.d.ts +3 -0
  197. package/models/components/uischemagroupenum.d.ts.map +1 -1
  198. package/models/components/uischemagroupenum.js +1 -0
  199. package/models/components/uischemagroupenum.js.map +1 -1
  200. package/models/components/uischemaproperty.d.ts +9 -0
  201. package/models/components/uischemaproperty.d.ts.map +1 -1
  202. package/models/components/uischemaproperty.js +3 -0
  203. package/models/components/uischemaproperty.js.map +1 -1
  204. package/models/components/updateworkflowdto.d.ts +21 -16
  205. package/models/components/updateworkflowdto.d.ts.map +1 -1
  206. package/models/components/updateworkflowdto.js +9 -7
  207. package/models/components/updateworkflowdto.js.map +1 -1
  208. package/models/components/workflowlistresponsedto.d.ts +82 -2
  209. package/models/components/workflowlistresponsedto.d.ts.map +1 -1
  210. package/models/components/workflowlistresponsedto.js +72 -4
  211. package/models/components/workflowlistresponsedto.js.map +1 -1
  212. package/models/components/workflowresponsedto.d.ts +96 -16
  213. package/models/components/workflowresponsedto.d.ts.map +1 -1
  214. package/models/components/workflowresponsedto.js +76 -8
  215. package/models/components/workflowresponsedto.js.map +1 -1
  216. package/models/errors/sdkerror.d.ts.map +1 -1
  217. package/models/errors/sdkerror.js +8 -2
  218. package/models/errors/sdkerror.js.map +1 -1
  219. package/models/operations/environmentscontrollergetenvironmenttags.d.ts +69 -0
  220. package/models/operations/environmentscontrollergetenvironmenttags.d.ts.map +1 -0
  221. package/models/operations/environmentscontrollergetenvironmenttags.js +110 -0
  222. package/models/operations/environmentscontrollergetenvironmenttags.js.map +1 -0
  223. package/models/operations/index.d.ts +2 -0
  224. package/models/operations/index.d.ts.map +1 -1
  225. package/models/operations/index.js +2 -0
  226. package/models/operations/index.js.map +1 -1
  227. package/models/operations/logscontrollergetlogs.d.ts +67 -0
  228. package/models/operations/logscontrollergetlogs.d.ts.map +1 -0
  229. package/models/operations/logscontrollergetlogs.js +107 -0
  230. package/models/operations/logscontrollergetlogs.js.map +1 -0
  231. package/models/operations/notificationscontrollerlistnotifications.d.ts +1 -1
  232. package/package.json +4 -4
  233. package/sdk/credentials.d.ts +6 -6
  234. package/sdk/credentials.js +6 -6
  235. package/sdk/environments.d.ts +7 -0
  236. package/sdk/environments.d.ts.map +1 -1
  237. package/sdk/environments.js +10 -0
  238. package/sdk/environments.js.map +1 -1
  239. package/sdk/sdk.d.ts +3 -2
  240. package/sdk/sdk.d.ts.map +1 -1
  241. package/sdk/sdk.js +7 -3
  242. package/sdk/sdk.js.map +1 -1
  243. package/sources/json-development.json +2980 -2226
  244. package/src/funcs/environmentsGetTags.ts +232 -0
  245. package/src/funcs/retrieve.ts +180 -0
  246. package/src/funcs/subscribersCredentialsAppend.ts +3 -3
  247. package/src/funcs/subscribersCredentialsUpdate.ts +3 -3
  248. package/src/lib/config.ts +4 -4
  249. package/src/mcp-server/cli/start/command.ts +0 -13
  250. package/src/mcp-server/cli/start/impl.ts +0 -4
  251. package/src/mcp-server/mcp-server.ts +1 -1
  252. package/src/mcp-server/server.ts +9 -5
  253. package/src/mcp-server/tools/environmentsGetTags.ts +39 -0
  254. package/src/mcp-server/tools/retrieve.ts +35 -0
  255. package/src/mcp-server/tools/subscribersCredentialsAppend.ts +3 -3
  256. package/src/mcp-server/tools/subscribersCredentialsUpdate.ts +3 -3
  257. package/src/models/components/activitynotificationtemplateresponsedto.ts +7 -7
  258. package/src/models/components/chatorpushproviderenum.ts +1 -0
  259. package/src/models/components/chatstepresponsedto.ts +8 -8
  260. package/src/models/components/chatstepupsertdto.ts +21 -31
  261. package/src/models/components/contentissueenum.ts +41 -0
  262. package/src/models/components/createworkflowdto.ts +21 -14
  263. package/src/models/components/customstepresponsedto.ts +8 -8
  264. package/src/models/components/customstepupsertdto.ts +21 -24
  265. package/src/models/components/delaycontroldto.ts +15 -16
  266. package/src/models/components/delaystepresponsedto.ts +8 -8
  267. package/src/models/components/delaystepupsertdto.ts +21 -115
  268. package/src/models/components/digeststepresponsedto.ts +8 -8
  269. package/src/models/components/digeststepupsertdto.ts +20 -146
  270. package/src/models/components/emailcontroldto.ts +7 -0
  271. package/src/models/components/emailstepresponsedto.ts +15 -8
  272. package/src/models/components/emailstepupsertdto.ts +21 -88
  273. package/src/models/components/environmentresponsedto.ts +43 -0
  274. package/src/models/components/getenvironmenttagsdto.ts +66 -0
  275. package/src/models/components/inappstepresponsedto.ts +8 -8
  276. package/src/models/components/inappstepupsertdto.ts +16 -87
  277. package/src/models/components/index.ts +4 -3
  278. package/src/models/components/integrationissueenum.ts +38 -0
  279. package/src/models/components/lookbackwindowdto.ts +16 -15
  280. package/src/models/components/messageresponsedto.ts +14 -12
  281. package/src/models/components/notificationfeeditemdto.ts +14 -0
  282. package/src/models/components/patchworkflowdto.ts +11 -4
  283. package/src/models/components/providersidenum.ts +1 -0
  284. package/src/models/components/pushstepresponsedto.ts +8 -8
  285. package/src/models/components/pushstepupsertdto.ts +21 -38
  286. package/src/models/components/resourceoriginenum.ts +40 -0
  287. package/src/models/components/smsstepresponsedto.ts +8 -8
  288. package/src/models/components/smsstepupsertdto.ts +20 -30
  289. package/src/models/components/stepcontentissuedto.ts +7 -7
  290. package/src/models/components/stepintegrationissue.ts +7 -7
  291. package/src/models/components/stepresponsedto.ts +8 -8
  292. package/src/models/components/subscriberchanneldto.ts +1 -0
  293. package/src/models/components/uicomponentenum.ts +2 -0
  294. package/src/models/components/uischemagroupenum.ts +1 -0
  295. package/src/models/components/uischemaproperty.ts +8 -0
  296. package/src/models/components/updateworkflowdto.ts +29 -22
  297. package/src/models/components/workflowlistresponsedto.ts +180 -8
  298. package/src/models/components/workflowresponsedto.ts +174 -22
  299. package/src/models/errors/sdkerror.ts +8 -2
  300. package/src/models/operations/environmentscontrollergetenvironmenttags.ts +186 -0
  301. package/src/models/operations/index.ts +2 -0
  302. package/src/models/operations/logscontrollergetlogs.ts +163 -0
  303. package/src/models/operations/notificationscontrollerlistnotifications.ts +1 -1
  304. package/src/sdk/credentials.ts +6 -6
  305. package/src/sdk/environments.ts +20 -0
  306. package/src/sdk/sdk.ts +17 -5
  307. package/src/types/constdatetime.ts +1 -1
  308. package/types/constdatetime.js +1 -1
  309. package/models/components/stepcontentissueenum.d.ts.map +0 -1
  310. package/models/components/stepcontentissueenum.js.map +0 -1
  311. package/models/components/stepintegrationissueenum.d.ts.map +0 -1
  312. package/models/components/stepintegrationissueenum.js.map +0 -1
  313. package/src/models/components/stepcontentissueenum.ts +0 -41
  314. package/src/models/components/stepintegrationissueenum.ts +0 -40
  315. package/src/models/components/workfloworiginenum.ts +0 -40
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  /**
12
12
  * Unit of time for the look-back window.
13
13
  */
14
- export const Unit = {
14
+ export const LookBackWindowDtoUnit = {
15
15
  Seconds: "seconds",
16
16
  Minutes: "minutes",
17
17
  Hours: "hours",
@@ -22,7 +22,7 @@ export const Unit = {
22
22
  /**
23
23
  * Unit of time for the look-back window.
24
24
  */
25
- export type Unit = ClosedEnum<typeof Unit>;
25
+ export type LookBackWindowDtoUnit = ClosedEnum<typeof LookBackWindowDtoUnit>;
26
26
 
27
27
  export type LookBackWindowDto = {
28
28
  /**
@@ -32,27 +32,28 @@ export type LookBackWindowDto = {
32
32
  /**
33
33
  * Unit of time for the look-back window.
34
34
  */
35
- unit: Unit;
35
+ unit: LookBackWindowDtoUnit;
36
36
  };
37
37
 
38
38
  /** @internal */
39
- export const Unit$inboundSchema: z.ZodNativeEnum<typeof Unit> = z.nativeEnum(
40
- Unit,
41
- );
39
+ export const LookBackWindowDtoUnit$inboundSchema: z.ZodNativeEnum<
40
+ typeof LookBackWindowDtoUnit
41
+ > = z.nativeEnum(LookBackWindowDtoUnit);
42
42
 
43
43
  /** @internal */
44
- export const Unit$outboundSchema: z.ZodNativeEnum<typeof Unit> =
45
- Unit$inboundSchema;
44
+ export const LookBackWindowDtoUnit$outboundSchema: z.ZodNativeEnum<
45
+ typeof LookBackWindowDtoUnit
46
+ > = LookBackWindowDtoUnit$inboundSchema;
46
47
 
47
48
  /**
48
49
  * @internal
49
50
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
51
  */
51
- export namespace Unit$ {
52
- /** @deprecated use `Unit$inboundSchema` instead. */
53
- export const inboundSchema = Unit$inboundSchema;
54
- /** @deprecated use `Unit$outboundSchema` instead. */
55
- export const outboundSchema = Unit$outboundSchema;
52
+ export namespace LookBackWindowDtoUnit$ {
53
+ /** @deprecated use `LookBackWindowDtoUnit$inboundSchema` instead. */
54
+ export const inboundSchema = LookBackWindowDtoUnit$inboundSchema;
55
+ /** @deprecated use `LookBackWindowDtoUnit$outboundSchema` instead. */
56
+ export const outboundSchema = LookBackWindowDtoUnit$outboundSchema;
56
57
  }
57
58
 
58
59
  /** @internal */
@@ -62,7 +63,7 @@ export const LookBackWindowDto$inboundSchema: z.ZodType<
62
63
  unknown
63
64
  > = z.object({
64
65
  amount: z.number(),
65
- unit: Unit$inboundSchema,
66
+ unit: LookBackWindowDtoUnit$inboundSchema,
66
67
  });
67
68
 
68
69
  /** @internal */
@@ -78,7 +79,7 @@ export const LookBackWindowDto$outboundSchema: z.ZodType<
78
79
  LookBackWindowDto
79
80
  > = z.object({
80
81
  amount: z.number(),
81
- unit: Unit$outboundSchema,
82
+ unit: LookBackWindowDtoUnit$outboundSchema,
82
83
  });
83
84
 
84
85
  /**
@@ -65,7 +65,7 @@ export type MessageResponseDto = {
65
65
  /**
66
66
  * Template ID associated with the message
67
67
  */
68
- templateId: string;
68
+ templateId?: string | null | undefined;
69
69
  /**
70
70
  * Environment ID where the message is sent
71
71
  */
@@ -73,7 +73,7 @@ export type MessageResponseDto = {
73
73
  /**
74
74
  * Message template ID
75
75
  */
76
- messageTemplateId: string;
76
+ messageTemplateId?: string | null | undefined;
77
77
  /**
78
78
  * Organization ID associated with the message
79
79
  */
@@ -117,7 +117,7 @@ export type MessageResponseDto = {
117
117
  /**
118
118
  * Content of the message, can be an email block or a string
119
119
  */
120
- content: Array<EmailBlock> | string;
120
+ content?: Array<EmailBlock> | string | null | undefined;
121
121
  /**
122
122
  * Transaction ID associated with the message
123
123
  */
@@ -342,9 +342,9 @@ export const MessageResponseDto$inboundSchema: z.ZodType<
342
342
  unknown
343
343
  > = z.object({
344
344
  _id: z.string().optional(),
345
- _templateId: z.string(),
345
+ _templateId: z.nullable(z.string()).optional(),
346
346
  _environmentId: z.string(),
347
- _messageTemplateId: z.string(),
347
+ _messageTemplateId: z.nullable(z.string()).optional(),
348
348
  _organizationId: z.string(),
349
349
  _notificationId: z.string(),
350
350
  _subscriberId: z.string(),
@@ -355,7 +355,8 @@ export const MessageResponseDto$inboundSchema: z.ZodType<
355
355
  deliveredAt: z.array(z.string()).optional(),
356
356
  lastSeenDate: z.string().optional(),
357
357
  lastReadDate: z.string().optional(),
358
- content: z.union([z.array(EmailBlock$inboundSchema), z.string()]),
358
+ content: z.nullable(z.union([z.array(EmailBlock$inboundSchema), z.string()]))
359
+ .optional(),
359
360
  transactionId: z.string(),
360
361
  subject: z.string().optional(),
361
362
  channel: ChannelTypeEnum$inboundSchema,
@@ -391,9 +392,9 @@ export const MessageResponseDto$inboundSchema: z.ZodType<
391
392
  /** @internal */
392
393
  export type MessageResponseDto$Outbound = {
393
394
  _id?: string | undefined;
394
- _templateId: string;
395
+ _templateId?: string | null | undefined;
395
396
  _environmentId: string;
396
- _messageTemplateId: string;
397
+ _messageTemplateId?: string | null | undefined;
397
398
  _organizationId: string;
398
399
  _notificationId: string;
399
400
  _subscriberId: string;
@@ -404,7 +405,7 @@ export type MessageResponseDto$Outbound = {
404
405
  deliveredAt?: Array<string> | undefined;
405
406
  lastSeenDate?: string | undefined;
406
407
  lastReadDate?: string | undefined;
407
- content: Array<EmailBlock$Outbound> | string;
408
+ content?: Array<EmailBlock$Outbound> | string | null | undefined;
408
409
  transactionId: string;
409
410
  subject?: string | undefined;
410
411
  channel: string;
@@ -433,9 +434,9 @@ export const MessageResponseDto$outboundSchema: z.ZodType<
433
434
  MessageResponseDto
434
435
  > = z.object({
435
436
  id: z.string().optional(),
436
- templateId: z.string(),
437
+ templateId: z.nullable(z.string()).optional(),
437
438
  environmentId: z.string(),
438
- messageTemplateId: z.string(),
439
+ messageTemplateId: z.nullable(z.string()).optional(),
439
440
  organizationId: z.string(),
440
441
  notificationId: z.string(),
441
442
  subscriberId: z.string(),
@@ -446,7 +447,8 @@ export const MessageResponseDto$outboundSchema: z.ZodType<
446
447
  deliveredAt: z.array(z.string()).optional(),
447
448
  lastSeenDate: z.string().optional(),
448
449
  lastReadDate: z.string().optional(),
449
- content: z.union([z.array(EmailBlock$outboundSchema), z.string()]),
450
+ content: z.nullable(z.union([z.array(EmailBlock$outboundSchema), z.string()]))
451
+ .optional(),
450
452
  transactionId: z.string(),
451
453
  subject: z.string().optional(),
452
454
  channel: ChannelTypeEnum$outboundSchema,
@@ -148,10 +148,18 @@ export type NotificationFeedItemDto = {
148
148
  * The payload that was used to send the notification trigger.
149
149
  */
150
150
  payload?: { [k: string]: any } | undefined;
151
+ /**
152
+ * The data sent with the notification.
153
+ */
154
+ data?: { [k: string]: any } | null | undefined;
151
155
  /**
152
156
  * Provider-specific overrides used when triggering the notification.
153
157
  */
154
158
  overrides?: { [k: string]: any } | undefined;
159
+ /**
160
+ * Tags associated with the workflow that triggered the notification.
161
+ */
162
+ tags?: Array<string> | null | undefined;
155
163
  };
156
164
 
157
165
  /** @internal */
@@ -210,7 +218,9 @@ export const NotificationFeedItemDto$inboundSchema: z.ZodType<
210
218
  cta: MessageCTA$inboundSchema,
211
219
  status: NotificationFeedItemDtoStatus$inboundSchema,
212
220
  payload: z.record(z.any()).optional(),
221
+ data: z.nullable(z.record(z.any())).optional(),
213
222
  overrides: z.record(z.any()).optional(),
223
+ tags: z.nullable(z.array(z.string())).optional(),
214
224
  }).transform((v) => {
215
225
  return remap$(v, {
216
226
  "_id": "id",
@@ -252,7 +262,9 @@ export type NotificationFeedItemDto$Outbound = {
252
262
  cta: MessageCTA$Outbound;
253
263
  status: string;
254
264
  payload?: { [k: string]: any } | undefined;
265
+ data?: { [k: string]: any } | null | undefined;
255
266
  overrides?: { [k: string]: any } | undefined;
267
+ tags?: Array<string> | null | undefined;
256
268
  };
257
269
 
258
270
  /** @internal */
@@ -286,7 +298,9 @@ export const NotificationFeedItemDto$outboundSchema: z.ZodType<
286
298
  cta: MessageCTA$outboundSchema,
287
299
  status: NotificationFeedItemDtoStatus$outboundSchema,
288
300
  payload: z.record(z.any()).optional(),
301
+ data: z.nullable(z.record(z.any())).optional(),
289
302
  overrides: z.record(z.any()).optional(),
303
+ tags: z.nullable(z.array(z.string())).optional(),
290
304
  }).transform((v) => {
291
305
  return remap$(v, {
292
306
  id: "_id",
@@ -27,11 +27,15 @@ export type PatchWorkflowDto = {
27
27
  /**
28
28
  * The payload JSON Schema for the workflow
29
29
  */
30
- payloadSchema?: { [k: string]: any } | undefined;
30
+ payloadSchema?: { [k: string]: any } | null | undefined;
31
31
  /**
32
32
  * Enable or disable payload schema validation
33
33
  */
34
34
  validatePayload?: boolean | undefined;
35
+ /**
36
+ * Enable or disable translations for this workflow
37
+ */
38
+ isTranslationEnabled?: boolean | undefined;
35
39
  };
36
40
 
37
41
  /** @internal */
@@ -44,8 +48,9 @@ export const PatchWorkflowDto$inboundSchema: z.ZodType<
44
48
  name: z.string().optional(),
45
49
  description: z.string().optional(),
46
50
  tags: z.array(z.string()).optional(),
47
- payloadSchema: z.record(z.any()).optional(),
51
+ payloadSchema: z.nullable(z.record(z.any())).optional(),
48
52
  validatePayload: z.boolean().optional(),
53
+ isTranslationEnabled: z.boolean().optional(),
49
54
  });
50
55
 
51
56
  /** @internal */
@@ -54,8 +59,9 @@ export type PatchWorkflowDto$Outbound = {
54
59
  name?: string | undefined;
55
60
  description?: string | undefined;
56
61
  tags?: Array<string> | undefined;
57
- payloadSchema?: { [k: string]: any } | undefined;
62
+ payloadSchema?: { [k: string]: any } | null | undefined;
58
63
  validatePayload?: boolean | undefined;
64
+ isTranslationEnabled?: boolean | undefined;
59
65
  };
60
66
 
61
67
  /** @internal */
@@ -68,8 +74,9 @@ export const PatchWorkflowDto$outboundSchema: z.ZodType<
68
74
  name: z.string().optional(),
69
75
  description: z.string().optional(),
70
76
  tags: z.array(z.string()).optional(),
71
- payloadSchema: z.record(z.any()).optional(),
77
+ payloadSchema: z.nullable(z.record(z.any())).optional(),
72
78
  validatePayload: z.boolean().optional(),
79
+ isTranslationEnabled: z.boolean().optional(),
73
80
  });
74
81
 
75
82
  /**
@@ -79,6 +79,7 @@ export const ProvidersIdEnum = {
79
79
  Getstream: "getstream",
80
80
  RocketChat: "rocket-chat",
81
81
  WhatsappBusiness: "whatsapp-business",
82
+ ChatWebhook: "chat-webhook",
82
83
  } as const;
83
84
  /**
84
85
  * Provider ID of the job
@@ -16,6 +16,11 @@ import {
16
16
  PushControlsMetadataResponseDto$Outbound,
17
17
  PushControlsMetadataResponseDto$outboundSchema,
18
18
  } from "./pushcontrolsmetadataresponsedto.js";
19
+ import {
20
+ ResourceOriginEnum,
21
+ ResourceOriginEnum$inboundSchema,
22
+ ResourceOriginEnum$outboundSchema,
23
+ } from "./resourceoriginenum.js";
19
24
  import {
20
25
  StepIssuesDto,
21
26
  StepIssuesDto$inboundSchema,
@@ -27,11 +32,6 @@ import {
27
32
  StepTypeEnum$inboundSchema,
28
33
  StepTypeEnum$outboundSchema,
29
34
  } from "./steptypeenum.js";
30
- import {
31
- WorkflowOriginEnum,
32
- WorkflowOriginEnum$inboundSchema,
33
- WorkflowOriginEnum$outboundSchema,
34
- } from "./workfloworiginenum.js";
35
35
 
36
36
  /**
37
37
  * Control values for the push step
@@ -93,7 +93,7 @@ export type PushStepResponseDto = {
93
93
  /**
94
94
  * Origin of the workflow
95
95
  */
96
- origin: WorkflowOriginEnum;
96
+ origin: ResourceOriginEnum;
97
97
  /**
98
98
  * Workflow identifier
99
99
  */
@@ -246,7 +246,7 @@ export const PushStepResponseDto$inboundSchema: z.ZodType<
246
246
  name: z.string(),
247
247
  slug: z.lazy(() => PushStepResponseDtoSlug$inboundSchema),
248
248
  type: StepTypeEnum$inboundSchema,
249
- origin: WorkflowOriginEnum$inboundSchema,
249
+ origin: ResourceOriginEnum$inboundSchema,
250
250
  workflowId: z.string(),
251
251
  workflowDatabaseId: z.string(),
252
252
  issues: StepIssuesDto$inboundSchema.optional(),
@@ -287,7 +287,7 @@ export const PushStepResponseDto$outboundSchema: z.ZodType<
287
287
  name: z.string(),
288
288
  slug: z.lazy(() => PushStepResponseDtoSlug$outboundSchema),
289
289
  type: StepTypeEnum$outboundSchema,
290
- origin: WorkflowOriginEnum$outboundSchema,
290
+ origin: ResourceOriginEnum$outboundSchema,
291
291
  workflowId: z.string(),
292
292
  workflowDatabaseId: z.string(),
293
293
  issues: StepIssuesDto$outboundSchema.optional(),
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ PushControlDto,
12
+ PushControlDto$inboundSchema,
13
+ PushControlDto$Outbound,
14
+ PushControlDto$outboundSchema,
15
+ } from "./pushcontroldto.js";
10
16
  import {
11
17
  StepTypeEnum,
12
18
  StepTypeEnum$inboundSchema,
@@ -14,21 +20,10 @@ import {
14
20
  } from "./steptypeenum.js";
15
21
 
16
22
  /**
17
- * Control values for the Push step
23
+ * Control values for the Push step.
18
24
  */
19
- export type PushStepUpsertDtoControlValues = {
20
- /**
21
- * JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference.
22
- */
23
- skip?: { [k: string]: any } | undefined;
24
- /**
25
- * Subject/title of the push notification.
26
- */
27
- subject?: string | undefined;
28
- /**
29
- * Body content of the push notification.
30
- */
31
- body?: string | undefined;
25
+ export type PushStepUpsertDtoControlValues = PushControlDto | {
26
+ [k: string]: any;
32
27
  };
33
28
 
34
29
  export type PushStepUpsertDto = {
@@ -45,9 +40,9 @@ export type PushStepUpsertDto = {
45
40
  */
46
41
  type: StepTypeEnum;
47
42
  /**
48
- * Control values for the Push step
43
+ * Control values for the Push step.
49
44
  */
50
- controlValues?: PushStepUpsertDtoControlValues | null | undefined;
45
+ controlValues?: PushControlDto | { [k: string]: any } | undefined;
51
46
  };
52
47
 
53
48
  /** @internal */
@@ -55,29 +50,19 @@ export const PushStepUpsertDtoControlValues$inboundSchema: z.ZodType<
55
50
  PushStepUpsertDtoControlValues,
56
51
  z.ZodTypeDef,
57
52
  unknown
58
- > = z.object({
59
- skip: z.record(z.any()).optional(),
60
- subject: z.string().optional(),
61
- body: z.string().optional(),
62
- });
53
+ > = z.union([PushControlDto$inboundSchema, z.record(z.any())]);
63
54
 
64
55
  /** @internal */
65
- export type PushStepUpsertDtoControlValues$Outbound = {
66
- skip?: { [k: string]: any } | undefined;
67
- subject?: string | undefined;
68
- body?: string | undefined;
69
- };
56
+ export type PushStepUpsertDtoControlValues$Outbound =
57
+ | PushControlDto$Outbound
58
+ | { [k: string]: any };
70
59
 
71
60
  /** @internal */
72
61
  export const PushStepUpsertDtoControlValues$outboundSchema: z.ZodType<
73
62
  PushStepUpsertDtoControlValues$Outbound,
74
63
  z.ZodTypeDef,
75
64
  PushStepUpsertDtoControlValues
76
- > = z.object({
77
- skip: z.record(z.any()).optional(),
78
- subject: z.string().optional(),
79
- body: z.string().optional(),
80
- });
65
+ > = z.union([PushControlDto$outboundSchema, z.record(z.any())]);
81
66
 
82
67
  /**
83
68
  * @internal
@@ -121,9 +106,8 @@ export const PushStepUpsertDto$inboundSchema: z.ZodType<
121
106
  _id: z.string().optional(),
122
107
  name: z.string(),
123
108
  type: StepTypeEnum$inboundSchema,
124
- controlValues: z.nullable(
125
- z.lazy(() => PushStepUpsertDtoControlValues$inboundSchema),
126
- ).optional(),
109
+ controlValues: z.union([PushControlDto$inboundSchema, z.record(z.any())])
110
+ .optional(),
127
111
  }).transform((v) => {
128
112
  return remap$(v, {
129
113
  "_id": "id",
@@ -135,7 +119,7 @@ export type PushStepUpsertDto$Outbound = {
135
119
  _id?: string | undefined;
136
120
  name: string;
137
121
  type: string;
138
- controlValues?: PushStepUpsertDtoControlValues$Outbound | null | undefined;
122
+ controlValues?: PushControlDto$Outbound | { [k: string]: any } | undefined;
139
123
  };
140
124
 
141
125
  /** @internal */
@@ -147,9 +131,8 @@ export const PushStepUpsertDto$outboundSchema: z.ZodType<
147
131
  id: z.string().optional(),
148
132
  name: z.string(),
149
133
  type: StepTypeEnum$outboundSchema,
150
- controlValues: z.nullable(
151
- z.lazy(() => PushStepUpsertDtoControlValues$outboundSchema),
152
- ).optional(),
134
+ controlValues: z.union([PushControlDto$outboundSchema, z.record(z.any())])
135
+ .optional(),
153
136
  }).transform((v) => {
154
137
  return remap$(v, {
155
138
  id: "_id",
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Origin of the workflow
10
+ */
11
+ export const ResourceOriginEnum = {
12
+ NovuCloud: "novu-cloud",
13
+ NovuCloudV1: "novu-cloud-v1",
14
+ External: "external",
15
+ } as const;
16
+ /**
17
+ * Origin of the workflow
18
+ */
19
+ export type ResourceOriginEnum = ClosedEnum<typeof ResourceOriginEnum>;
20
+
21
+ /** @internal */
22
+ export const ResourceOriginEnum$inboundSchema: z.ZodNativeEnum<
23
+ typeof ResourceOriginEnum
24
+ > = z.nativeEnum(ResourceOriginEnum);
25
+
26
+ /** @internal */
27
+ export const ResourceOriginEnum$outboundSchema: z.ZodNativeEnum<
28
+ typeof ResourceOriginEnum
29
+ > = ResourceOriginEnum$inboundSchema;
30
+
31
+ /**
32
+ * @internal
33
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
34
+ */
35
+ export namespace ResourceOriginEnum$ {
36
+ /** @deprecated use `ResourceOriginEnum$inboundSchema` instead. */
37
+ export const inboundSchema = ResourceOriginEnum$inboundSchema;
38
+ /** @deprecated use `ResourceOriginEnum$outboundSchema` instead. */
39
+ export const outboundSchema = ResourceOriginEnum$outboundSchema;
40
+ }
@@ -10,6 +10,11 @@ import {
10
10
  } from "../../lib/schemas.js";
11
11
  import { Result as SafeParseResult } from "../../types/fp.js";
12
12
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+ import {
14
+ ResourceOriginEnum,
15
+ ResourceOriginEnum$inboundSchema,
16
+ ResourceOriginEnum$outboundSchema,
17
+ } from "./resourceoriginenum.js";
13
18
  import {
14
19
  SmsControlsMetadataResponseDto,
15
20
  SmsControlsMetadataResponseDto$inboundSchema,
@@ -27,11 +32,6 @@ import {
27
32
  StepTypeEnum$inboundSchema,
28
33
  StepTypeEnum$outboundSchema,
29
34
  } from "./steptypeenum.js";
30
- import {
31
- WorkflowOriginEnum,
32
- WorkflowOriginEnum$inboundSchema,
33
- WorkflowOriginEnum$outboundSchema,
34
- } from "./workfloworiginenum.js";
35
35
 
36
36
  /**
37
37
  * Control values for the SMS step
@@ -89,7 +89,7 @@ export type SmsStepResponseDto = {
89
89
  /**
90
90
  * Origin of the workflow
91
91
  */
92
- origin: WorkflowOriginEnum;
92
+ origin: ResourceOriginEnum;
93
93
  /**
94
94
  * Workflow identifier
95
95
  */
@@ -239,7 +239,7 @@ export const SmsStepResponseDto$inboundSchema: z.ZodType<
239
239
  name: z.string(),
240
240
  slug: z.lazy(() => SmsStepResponseDtoSlug$inboundSchema),
241
241
  type: StepTypeEnum$inboundSchema,
242
- origin: WorkflowOriginEnum$inboundSchema,
242
+ origin: ResourceOriginEnum$inboundSchema,
243
243
  workflowId: z.string(),
244
244
  workflowDatabaseId: z.string(),
245
245
  issues: StepIssuesDto$inboundSchema.optional(),
@@ -280,7 +280,7 @@ export const SmsStepResponseDto$outboundSchema: z.ZodType<
280
280
  name: z.string(),
281
281
  slug: z.lazy(() => SmsStepResponseDtoSlug$outboundSchema),
282
282
  type: StepTypeEnum$outboundSchema,
283
- origin: WorkflowOriginEnum$outboundSchema,
283
+ origin: ResourceOriginEnum$outboundSchema,
284
284
  workflowId: z.string(),
285
285
  workflowDatabaseId: z.string(),
286
286
  issues: StepIssuesDto$outboundSchema.optional(),
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ SmsControlDto,
12
+ SmsControlDto$inboundSchema,
13
+ SmsControlDto$Outbound,
14
+ SmsControlDto$outboundSchema,
15
+ } from "./smscontroldto.js";
10
16
  import {
11
17
  StepTypeEnum,
12
18
  StepTypeEnum$inboundSchema,
@@ -14,17 +20,10 @@ import {
14
20
  } from "./steptypeenum.js";
15
21
 
16
22
  /**
17
- * Control values for the SMS step
23
+ * Control values for the SMS step.
18
24
  */
19
- export type SmsStepUpsertDtoControlValues = {
20
- /**
21
- * JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference.
22
- */
23
- skip?: { [k: string]: any } | undefined;
24
- /**
25
- * Content of the SMS message.
26
- */
27
- body?: string | undefined;
25
+ export type SmsStepUpsertDtoControlValues = SmsControlDto | {
26
+ [k: string]: any;
28
27
  };
29
28
 
30
29
  export type SmsStepUpsertDto = {
@@ -41,9 +40,9 @@ export type SmsStepUpsertDto = {
41
40
  */
42
41
  type: StepTypeEnum;
43
42
  /**
44
- * Control values for the SMS step
43
+ * Control values for the SMS step.
45
44
  */
46
- controlValues?: SmsStepUpsertDtoControlValues | null | undefined;
45
+ controlValues?: SmsControlDto | { [k: string]: any } | undefined;
47
46
  };
48
47
 
49
48
  /** @internal */
@@ -51,15 +50,11 @@ export const SmsStepUpsertDtoControlValues$inboundSchema: z.ZodType<
51
50
  SmsStepUpsertDtoControlValues,
52
51
  z.ZodTypeDef,
53
52
  unknown
54
- > = z.object({
55
- skip: z.record(z.any()).optional(),
56
- body: z.string().optional(),
57
- });
53
+ > = z.union([SmsControlDto$inboundSchema, z.record(z.any())]);
58
54
 
59
55
  /** @internal */
60
- export type SmsStepUpsertDtoControlValues$Outbound = {
61
- skip?: { [k: string]: any } | undefined;
62
- body?: string | undefined;
56
+ export type SmsStepUpsertDtoControlValues$Outbound = SmsControlDto$Outbound | {
57
+ [k: string]: any;
63
58
  };
64
59
 
65
60
  /** @internal */
@@ -67,10 +62,7 @@ export const SmsStepUpsertDtoControlValues$outboundSchema: z.ZodType<
67
62
  SmsStepUpsertDtoControlValues$Outbound,
68
63
  z.ZodTypeDef,
69
64
  SmsStepUpsertDtoControlValues
70
- > = z.object({
71
- skip: z.record(z.any()).optional(),
72
- body: z.string().optional(),
73
- });
65
+ > = z.union([SmsControlDto$outboundSchema, z.record(z.any())]);
74
66
 
75
67
  /**
76
68
  * @internal
@@ -114,9 +106,8 @@ export const SmsStepUpsertDto$inboundSchema: z.ZodType<
114
106
  _id: z.string().optional(),
115
107
  name: z.string(),
116
108
  type: StepTypeEnum$inboundSchema,
117
- controlValues: z.nullable(
118
- z.lazy(() => SmsStepUpsertDtoControlValues$inboundSchema),
119
- ).optional(),
109
+ controlValues: z.union([SmsControlDto$inboundSchema, z.record(z.any())])
110
+ .optional(),
120
111
  }).transform((v) => {
121
112
  return remap$(v, {
122
113
  "_id": "id",
@@ -128,7 +119,7 @@ export type SmsStepUpsertDto$Outbound = {
128
119
  _id?: string | undefined;
129
120
  name: string;
130
121
  type: string;
131
- controlValues?: SmsStepUpsertDtoControlValues$Outbound | null | undefined;
122
+ controlValues?: SmsControlDto$Outbound | { [k: string]: any } | undefined;
132
123
  };
133
124
 
134
125
  /** @internal */
@@ -140,9 +131,8 @@ export const SmsStepUpsertDto$outboundSchema: z.ZodType<
140
131
  id: z.string().optional(),
141
132
  name: z.string(),
142
133
  type: StepTypeEnum$outboundSchema,
143
- controlValues: z.nullable(
144
- z.lazy(() => SmsStepUpsertDtoControlValues$outboundSchema),
145
- ).optional(),
134
+ controlValues: z.union([SmsControlDto$outboundSchema, z.record(z.any())])
135
+ .optional(),
146
136
  }).transform((v) => {
147
137
  return remap$(v, {
148
138
  id: "_id",
@@ -7,16 +7,16 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
- StepContentIssueEnum,
11
- StepContentIssueEnum$inboundSchema,
12
- StepContentIssueEnum$outboundSchema,
13
- } from "./stepcontentissueenum.js";
10
+ ContentIssueEnum,
11
+ ContentIssueEnum$inboundSchema,
12
+ ContentIssueEnum$outboundSchema,
13
+ } from "./contentissueenum.js";
14
14
 
15
15
  export type StepContentIssueDto = {
16
16
  /**
17
17
  * Type of step content issue
18
18
  */
19
- issueType: StepContentIssueEnum;
19
+ issueType: ContentIssueEnum;
20
20
  /**
21
21
  * Name of the variable related to the issue
22
22
  */
@@ -33,7 +33,7 @@ export const StepContentIssueDto$inboundSchema: z.ZodType<
33
33
  z.ZodTypeDef,
34
34
  unknown
35
35
  > = z.object({
36
- issueType: StepContentIssueEnum$inboundSchema,
36
+ issueType: ContentIssueEnum$inboundSchema,
37
37
  variableName: z.string().optional(),
38
38
  message: z.string(),
39
39
  });
@@ -51,7 +51,7 @@ export const StepContentIssueDto$outboundSchema: z.ZodType<
51
51
  z.ZodTypeDef,
52
52
  StepContentIssueDto
53
53
  > = z.object({
54
- issueType: StepContentIssueEnum$outboundSchema,
54
+ issueType: ContentIssueEnum$outboundSchema,
55
55
  variableName: z.string().optional(),
56
56
  message: z.string(),
57
57
  });