@novu/api 0.6.2 → 0.7.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 (253) hide show
  1. package/FUNCTIONS.md +12 -3
  2. package/README.md +143 -30
  3. package/bin/mcp-server.js +644 -433
  4. package/bin/mcp-server.js.map +53 -48
  5. package/docs/sdks/novu/README.md +142 -24
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +4 -4
  8. package/lib/config.js +4 -4
  9. package/lib/config.js.map +1 -1
  10. package/lib/matchers.d.ts +3 -1
  11. package/lib/matchers.d.ts.map +1 -1
  12. package/lib/matchers.js +13 -1
  13. package/lib/matchers.js.map +1 -1
  14. package/lib/sdks.d.ts +3 -1
  15. package/lib/sdks.d.ts.map +1 -1
  16. package/lib/sdks.js +13 -13
  17. package/lib/sdks.js.map +1 -1
  18. package/mcp-server/mcp-server.js +1 -1
  19. package/mcp-server/prompts.d.ts.map +1 -1
  20. package/mcp-server/prompts.js +5 -1
  21. package/mcp-server/prompts.js.map +1 -1
  22. package/mcp-server/resources.d.ts.map +1 -1
  23. package/mcp-server/resources.js +10 -2
  24. package/mcp-server/resources.js.map +1 -1
  25. package/mcp-server/server.d.ts.map +1 -1
  26. package/mcp-server/server.js +2 -3
  27. package/mcp-server/server.js.map +1 -1
  28. package/mcp-server/tools.d.ts.map +1 -1
  29. package/mcp-server/tools.js +4 -3
  30. package/mcp-server/tools.js.map +1 -1
  31. package/models/components/activitynotificationjobresponsedto.d.ts +15 -15
  32. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  33. package/models/components/activitynotificationjobresponsedto.js +19 -18
  34. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  35. package/models/components/activitynotificationstepresponsedto.d.ts +15 -15
  36. package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
  37. package/models/components/activitynotificationstepresponsedto.js +18 -18
  38. package/models/components/activitynotificationstepresponsedto.js.map +1 -1
  39. package/models/components/channelsettingsdto.d.ts +2 -78
  40. package/models/components/channelsettingsdto.d.ts.map +1 -1
  41. package/models/components/channelsettingsdto.js +4 -41
  42. package/models/components/channelsettingsdto.js.map +1 -1
  43. package/models/components/chatorpushproviderenum.d.ts +79 -0
  44. package/models/components/chatorpushproviderenum.d.ts.map +1 -0
  45. package/models/components/chatorpushproviderenum.js +68 -0
  46. package/models/components/chatorpushproviderenum.js.map +1 -0
  47. package/models/components/constraintvalidation.d.ts +115 -0
  48. package/models/components/constraintvalidation.d.ts.map +1 -0
  49. package/models/components/constraintvalidation.js +157 -0
  50. package/models/components/constraintvalidation.js.map +1 -0
  51. package/models/components/digestmetadatadto.d.ts +8 -8
  52. package/models/components/digestmetadatadto.d.ts.map +1 -1
  53. package/models/components/digestmetadatadto.js +13 -13
  54. package/models/components/digestmetadatadto.js.map +1 -1
  55. package/models/components/digestregularmetadata.d.ts +16 -16
  56. package/models/components/digestregularmetadata.d.ts.map +1 -1
  57. package/models/components/digestregularmetadata.js +25 -25
  58. package/models/components/digestregularmetadata.js.map +1 -1
  59. package/models/components/digesttimedconfigdto.d.ts +8 -8
  60. package/models/components/digesttimedconfigdto.d.ts.map +1 -1
  61. package/models/components/digesttimedconfigdto.js +13 -14
  62. package/models/components/digesttimedconfigdto.js.map +1 -1
  63. package/models/components/getsubscriberpreferencesdto.d.ts +6 -6
  64. package/models/components/getsubscriberpreferencesdto.d.ts.map +1 -1
  65. package/models/components/getsubscriberpreferencesdto.js +6 -6
  66. package/models/components/getsubscriberpreferencesdto.js.map +1 -1
  67. package/models/components/index.d.ts +10 -5
  68. package/models/components/index.d.ts.map +1 -1
  69. package/models/components/index.js +10 -5
  70. package/models/components/index.js.map +1 -1
  71. package/models/components/integrationresponsedto.d.ts +8 -8
  72. package/models/components/integrationresponsedto.d.ts.map +1 -1
  73. package/models/components/integrationresponsedto.js +14 -13
  74. package/models/components/integrationresponsedto.js.map +1 -1
  75. package/models/components/messageactionresult.d.ts +15 -15
  76. package/models/components/messageactionresult.d.ts.map +1 -1
  77. package/models/components/messageactionresult.js +18 -18
  78. package/models/components/messageactionresult.js.map +1 -1
  79. package/models/components/messagecta.d.ts +2 -2
  80. package/models/components/messagecta.d.ts.map +1 -1
  81. package/models/components/messagecta.js +2 -2
  82. package/models/components/messagecta.js.map +1 -1
  83. package/models/components/messageresponsedto.d.ts +14 -4
  84. package/models/components/messageresponsedto.d.ts.map +1 -1
  85. package/models/components/messageresponsedto.js +8 -4
  86. package/models/components/messageresponsedto.js.map +1 -1
  87. package/models/components/messagesresponsedto.d.ts +53 -0
  88. package/models/components/messagesresponsedto.d.ts.map +1 -0
  89. package/models/components/messagesresponsedto.js +68 -0
  90. package/models/components/messagesresponsedto.js.map +1 -0
  91. package/models/components/notificationfeeditemdto.d.ts +0 -5
  92. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  93. package/models/components/notificationfeeditemdto.js +0 -2
  94. package/models/components/notificationfeeditemdto.js.map +1 -1
  95. package/models/components/notificationstepdto.d.ts +13 -13
  96. package/models/components/notificationstepdto.d.ts.map +1 -1
  97. package/models/components/notificationstepdto.js +16 -16
  98. package/models/components/notificationstepdto.js.map +1 -1
  99. package/models/components/notificationtriggerdto.d.ts +8 -8
  100. package/models/components/notificationtriggerdto.d.ts.map +1 -1
  101. package/models/components/notificationtriggerdto.js +13 -13
  102. package/models/components/notificationtriggerdto.js.map +1 -1
  103. package/models/components/patchsubscriberpreferencesdto.d.ts +1 -1
  104. package/models/components/preferenceoverridesourceenum.d.ts +37 -0
  105. package/models/components/preferenceoverridesourceenum.d.ts.map +1 -0
  106. package/models/components/preferenceoverridesourceenum.js +54 -0
  107. package/models/components/preferenceoverridesourceenum.js.map +1 -0
  108. package/models/components/providersidenum.d.ts +3 -0
  109. package/models/components/providersidenum.d.ts.map +1 -1
  110. package/models/components/providersidenum.js +1 -0
  111. package/models/components/providersidenum.js.map +1 -1
  112. package/models/components/stepfilterdto.d.ts +8 -8
  113. package/models/components/stepfilterdto.d.ts.map +1 -1
  114. package/models/components/stepfilterdto.js +13 -13
  115. package/models/components/stepfilterdto.js.map +1 -1
  116. package/models/components/stepsoverrides.d.ts +40 -0
  117. package/models/components/stepsoverrides.d.ts.map +1 -0
  118. package/models/components/{workflowinfodto.js → stepsoverrides.js} +19 -25
  119. package/models/components/stepsoverrides.js.map +1 -0
  120. package/models/components/steptypeenum.d.ts +2 -2
  121. package/models/components/steptypeenum.js +1 -1
  122. package/models/components/subscriberchanneldto.d.ts +8 -8
  123. package/models/components/subscriberchanneldto.d.ts.map +1 -1
  124. package/models/components/subscriberchanneldto.js +14 -13
  125. package/models/components/subscriberchanneldto.js.map +1 -1
  126. package/models/components/subscriberglobalpreferencedto.d.ts +38 -0
  127. package/models/components/subscriberglobalpreferencedto.d.ts.map +1 -0
  128. package/models/components/subscriberglobalpreferencedto.js +62 -0
  129. package/models/components/subscriberglobalpreferencedto.js.map +1 -0
  130. package/models/components/subscriberpreferencechannels.d.ts +52 -0
  131. package/models/components/subscriberpreferencechannels.d.ts.map +1 -0
  132. package/models/components/{preferencechannels.js → subscriberpreferencechannels.js} +17 -17
  133. package/models/components/subscriberpreferencechannels.js.map +1 -0
  134. package/models/components/subscriberpreferenceoverridedto.d.ts +39 -0
  135. package/models/components/subscriberpreferenceoverridedto.d.ts.map +1 -0
  136. package/models/components/subscriberpreferenceoverridedto.js +63 -0
  137. package/models/components/subscriberpreferenceoverridedto.js.map +1 -0
  138. package/models/components/subscriberpreferencesworkflowinfodto.d.ts +47 -0
  139. package/models/components/subscriberpreferencesworkflowinfodto.d.ts.map +1 -0
  140. package/models/components/subscriberpreferencesworkflowinfodto.js +65 -0
  141. package/models/components/subscriberpreferencesworkflowinfodto.js.map +1 -0
  142. package/models/components/subscriberresponsedto.d.ts +26 -26
  143. package/models/components/subscriberresponsedto.d.ts.map +1 -1
  144. package/models/components/subscriberresponsedto.js +12 -12
  145. package/models/components/subscriberresponsedto.js.map +1 -1
  146. package/models/components/subscriberworkflowpreferencedto.d.ts +50 -0
  147. package/models/components/subscriberworkflowpreferencedto.d.ts.map +1 -0
  148. package/models/components/subscriberworkflowpreferencedto.js +68 -0
  149. package/models/components/subscriberworkflowpreferencedto.js.map +1 -0
  150. package/models/components/timedconfig.d.ts +8 -8
  151. package/models/components/timedconfig.d.ts.map +1 -1
  152. package/models/components/timedconfig.js +14 -13
  153. package/models/components/timedconfig.js.map +1 -1
  154. package/models/components/triggereventrequestdto.d.ts +102 -10
  155. package/models/components/triggereventrequestdto.d.ts.map +1 -1
  156. package/models/components/triggereventrequestdto.js +43 -3
  157. package/models/components/triggereventrequestdto.js.map +1 -1
  158. package/models/components/triggereventtoallrequestdto.d.ts +84 -2
  159. package/models/components/triggereventtoallrequestdto.d.ts.map +1 -1
  160. package/models/components/triggereventtoallrequestdto.js +28 -2
  161. package/models/components/triggereventtoallrequestdto.js.map +1 -1
  162. package/models/components/updatesubscriberchannelrequestdto.d.ts +2 -78
  163. package/models/components/updatesubscriberchannelrequestdto.d.ts.map +1 -1
  164. package/models/components/updatesubscriberchannelrequestdto.js +4 -41
  165. package/models/components/updatesubscriberchannelrequestdto.js.map +1 -1
  166. package/models/components/workflowresponse.d.ts +3 -3
  167. package/models/components/workflowresponse.d.ts.map +1 -1
  168. package/models/components/workflowresponse.js +3 -3
  169. package/models/components/workflowresponse.js.map +1 -1
  170. package/models/errors/errordto.d.ts +83 -3
  171. package/models/errors/errordto.d.ts.map +1 -1
  172. package/models/errors/errordto.js +99 -3
  173. package/models/errors/errordto.js.map +1 -1
  174. package/models/errors/validationerrordto.d.ts +66 -51
  175. package/models/errors/validationerrordto.d.ts.map +1 -1
  176. package/models/errors/validationerrordto.js +83 -67
  177. package/models/errors/validationerrordto.js.map +1 -1
  178. package/models/operations/messagescontrollergetmessages.d.ts +2 -2
  179. package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
  180. package/models/operations/messagescontrollergetmessages.js +2 -2
  181. package/models/operations/messagescontrollergetmessages.js.map +1 -1
  182. package/package.json +3 -3
  183. package/sources/json-development.json +2037 -305
  184. package/src/lib/config.ts +4 -4
  185. package/src/lib/matchers.ts +20 -0
  186. package/src/lib/sdks.ts +19 -13
  187. package/src/mcp-server/mcp-server.ts +1 -1
  188. package/src/mcp-server/prompts.ts +8 -1
  189. package/src/mcp-server/resources.ts +16 -2
  190. package/src/mcp-server/server.ts +3 -3
  191. package/src/mcp-server/tools.ts +6 -3
  192. package/src/models/components/activitynotificationjobresponsedto.ts +48 -26
  193. package/src/models/components/activitynotificationstepresponsedto.ts +50 -29
  194. package/src/models/components/channelsettingsdto.ts +8 -50
  195. package/src/models/components/chatorpushproviderenum.ts +54 -0
  196. package/src/models/components/constraintvalidation.ts +270 -0
  197. package/src/models/components/digestmetadatadto.ts +16 -15
  198. package/src/models/components/digestregularmetadata.ts +30 -36
  199. package/src/models/components/digesttimedconfigdto.ts +18 -14
  200. package/src/models/components/getsubscriberpreferencesdto.ts +18 -18
  201. package/src/models/components/index.ts +10 -5
  202. package/src/models/components/integrationresponsedto.ts +14 -18
  203. package/src/models/components/messageactionresult.ts +24 -31
  204. package/src/models/components/messagecta.ts +4 -4
  205. package/src/models/components/messageresponsedto.ts +22 -8
  206. package/src/models/components/messagesresponsedto.ts +103 -0
  207. package/src/models/components/notificationfeeditemdto.ts +0 -7
  208. package/src/models/components/notificationstepdto.ts +20 -26
  209. package/src/models/components/notificationtriggerdto.ts +18 -15
  210. package/src/models/components/patchsubscriberpreferencesdto.ts +1 -1
  211. package/src/models/components/preferenceoverridesourceenum.ts +42 -0
  212. package/src/models/components/providersidenum.ts +1 -0
  213. package/src/models/components/stepfilterdto.ts +16 -15
  214. package/src/models/components/stepsoverrides.ts +65 -0
  215. package/src/models/components/steptypeenum.ts +2 -2
  216. package/src/models/components/subscriberchanneldto.ts +14 -18
  217. package/src/models/components/subscriberglobalpreferencedto.ts +84 -0
  218. package/src/models/components/subscriberpreferencechannels.ts +108 -0
  219. package/src/models/components/subscriberpreferenceoverridedto.ts +88 -0
  220. package/src/models/components/subscriberpreferencesworkflowinfodto.ts +95 -0
  221. package/src/models/components/subscriberresponsedto.ts +34 -34
  222. package/src/models/components/subscriberworkflowpreferencedto.ts +110 -0
  223. package/src/models/components/timedconfig.ts +14 -16
  224. package/src/models/components/triggereventrequestdto.ts +122 -4
  225. package/src/models/components/triggereventtoallrequestdto.ts +92 -5
  226. package/src/models/components/updatesubscriberchannelrequestdto.ts +8 -56
  227. package/src/models/components/workflowresponse.ts +9 -9
  228. package/src/models/errors/errordto.ts +202 -5
  229. package/src/models/errors/validationerrordto.ts +178 -110
  230. package/src/models/operations/messagescontrollergetmessages.ts +4 -4
  231. package/models/components/globalpreferencedto.d.ts +0 -38
  232. package/models/components/globalpreferencedto.d.ts.map +0 -1
  233. package/models/components/globalpreferencedto.js +0 -62
  234. package/models/components/globalpreferencedto.js.map +0 -1
  235. package/models/components/overrides.d.ts +0 -112
  236. package/models/components/overrides.d.ts.map +0 -1
  237. package/models/components/overrides.js +0 -111
  238. package/models/components/overrides.js.map +0 -1
  239. package/models/components/preferencechannels.d.ts +0 -37
  240. package/models/components/preferencechannels.d.ts.map +0 -1
  241. package/models/components/preferencechannels.js.map +0 -1
  242. package/models/components/workflowinfodto.d.ts +0 -47
  243. package/models/components/workflowinfodto.d.ts.map +0 -1
  244. package/models/components/workflowinfodto.js.map +0 -1
  245. package/models/components/workflowpreferencedto.d.ts +0 -50
  246. package/models/components/workflowpreferencedto.d.ts.map +0 -1
  247. package/models/components/workflowpreferencedto.js +0 -68
  248. package/models/components/workflowpreferencedto.js.map +0 -1
  249. package/src/models/components/globalpreferencedto.ts +0 -82
  250. package/src/models/components/overrides.ts +0 -139
  251. package/src/models/components/preferencechannels.ts +0 -91
  252. package/src/models/components/workflowinfodto.ts +0 -88
  253. package/src/models/components/workflowpreferencedto.ts +0 -108
package/bin/mcp-server.js CHANGED
@@ -4028,12 +4028,6 @@ var init_console_logger = __esm(() => {
4028
4028
  ];
4029
4029
  });
4030
4030
 
4031
- // src/mcp-server/scopes.ts
4032
- var mcpScopes;
4033
- var init_scopes = __esm(() => {
4034
- mcpScopes = [];
4035
- });
4036
-
4037
4031
  // node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
4038
4032
  var LATEST_PROTOCOL_VERSION = "2024-11-05", SUPPORTED_PROTOCOL_VERSIONS, JSONRPC_VERSION = "2.0", ProgressTokenSchema, CursorSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, EmbeddedResourceSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, ResourceReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError;
4039
4033
  var init_types = __esm(() => {
@@ -34263,10 +34257,10 @@ var init_config = __esm(() => {
34263
34257
  ];
34264
34258
  SDK_METADATA = {
34265
34259
  language: "typescript",
34266
- openapiDocVersion: "1.0",
34267
- sdkVersion: "0.6.2",
34268
- genVersion: "2.563.1",
34269
- userAgent: "speakeasy-sdk/typescript 0.6.2 2.563.1 1.0 @novu/api"
34260
+ openapiDocVersion: "2.1.13",
34261
+ sdkVersion: "0.7.0",
34262
+ genVersion: "2.597.9",
34263
+ userAgent: "speakeasy-sdk/typescript 0.7.0 2.597.9 2.1.13 @novu/api"
34270
34264
  };
34271
34265
  });
34272
34266
 
@@ -34861,26 +34855,22 @@ class ClientSDK {
34861
34855
  }
34862
34856
  cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
34863
34857
  headers.set("cookie", cookie);
34864
- const userHeaders = new Headers(options?.fetchOptions?.headers);
34858
+ const userHeaders = new Headers(options?.headers ?? options?.fetchOptions?.headers);
34865
34859
  for (const [k2, v2] of userHeaders) {
34866
34860
  headers.set(k2, v2);
34867
34861
  }
34868
34862
  if (!isBrowserLike) {
34869
34863
  headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34870
34864
  }
34871
- let fetchOptions = options?.fetchOptions;
34865
+ const fetchOptions = {
34866
+ ...options?.fetchOptions,
34867
+ ...options
34868
+ };
34872
34869
  if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
34873
34870
  const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
34874
- if (!fetchOptions) {
34875
- fetchOptions = { signal: timeoutSignal };
34876
- } else {
34877
- fetchOptions.signal = timeoutSignal;
34878
- }
34871
+ fetchOptions.signal = timeoutSignal;
34879
34872
  }
34880
34873
  if (conf.body instanceof ReadableStream) {
34881
- if (!fetchOptions) {
34882
- fetchOptions = {};
34883
- }
34884
34874
  Object.assign(fetchOptions, { duplex: "half" });
34885
34875
  }
34886
34876
  let input;
@@ -34989,9 +34979,12 @@ async function logResponse(logger, res, req) {
34989
34979
  logger.groupEnd();
34990
34980
  logger.group("Body:");
34991
34981
  switch (true) {
34992
- case (matchContentType(res, "application/json") || jsonLikeContentTypeRE.test(ct)):
34982
+ case (matchContentType(res, "application/json") || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct)):
34993
34983
  logger.log(await res.clone().json());
34994
34984
  break;
34985
+ case (matchContentType(res, "application/jsonl") || jsonlLikeContentTypeRE.test(ct)):
34986
+ logger.log(await res.clone().text());
34987
+ break;
34995
34988
  case matchContentType(res, "text/event-stream"):
34996
34989
  logger.log(`<${contentType2}>`);
34997
34990
  break;
@@ -35013,7 +35006,7 @@ async function logResponse(logger, res, req) {
35013
35006
  logger.groupEnd();
35014
35007
  logger.groupEnd();
35015
35008
  }
35016
- var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE;
35009
+ var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE, jsonlLikeContentTypeRE;
35017
35010
  var init_sdks = __esm(() => {
35018
35011
  init_hooks();
35019
35012
  init_httpclienterrors();
@@ -35025,7 +35018,8 @@ var init_sdks = __esm(() => {
35025
35018
  gt = typeof globalThis === "undefined" ? null : globalThis;
35026
35019
  webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
35027
35020
  isBrowserLike = webWorkerLike || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
35028
- jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
35021
+ jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
35022
+ jsonlLikeContentTypeRE = /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
35029
35023
  });
35030
35024
 
35031
35025
  // src/core.ts
@@ -35040,7 +35034,10 @@ var init_core = __esm(() => {
35040
35034
  function createRegisterPrompt(logger, server, sdk, allowedScopes) {
35041
35035
  return (prompt) => {
35042
35036
  const scopes = prompt.scopes ?? [];
35043
- if (!scopes.every((s) => allowedScopes.has(s))) {
35037
+ if (allowedScopes.size > 0 && scopes.length === 0) {
35038
+ return;
35039
+ }
35040
+ if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
35044
35041
  return;
35045
35042
  }
35046
35043
  if (prompt.args) {
@@ -35111,7 +35108,10 @@ var init_shared = __esm(() => {
35111
35108
  function createRegisterResource(logger, server, sdk, allowedScopes) {
35112
35109
  return (resource) => {
35113
35110
  const scopes = resource.scopes ?? [];
35114
- if (!scopes.every((s) => allowedScopes.has(s))) {
35111
+ if (allowedScopes.size > 0 && scopes.length === 0) {
35112
+ return;
35113
+ }
35114
+ if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
35115
35115
  return;
35116
35116
  }
35117
35117
  const metadata = {
@@ -35125,7 +35125,10 @@ function createRegisterResource(logger, server, sdk, allowedScopes) {
35125
35125
  function createRegisterResourceTemplate(logger, server, sdk, allowedScopes) {
35126
35126
  return (resource) => {
35127
35127
  const scopes = resource.scopes ?? [];
35128
- if (!scopes.every((s) => allowedScopes.has(s))) {
35128
+ if (allowedScopes.size > 0 && scopes.length === 0) {
35129
+ return;
35130
+ }
35131
+ if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
35129
35132
  return;
35130
35133
  }
35131
35134
  const metadata = {
@@ -35183,11 +35186,11 @@ function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
35183
35186
  if (allowedTools && !allowedTools.has(tool.name)) {
35184
35187
  return;
35185
35188
  }
35186
- const toolScopes = tool.scopes ?? [];
35187
- if (allowedScopes.size > 0 && toolScopes.length === 0) {
35189
+ const scopes = tool.scopes ?? [];
35190
+ if (allowedScopes.size > 0 && scopes.length === 0) {
35188
35191
  return;
35189
35192
  }
35190
- if (!toolScopes.every((s) => allowedScopes.has(s))) {
35193
+ if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
35191
35194
  return;
35192
35195
  }
35193
35196
  if (tool.args) {
@@ -35313,6 +35316,27 @@ function safeParse(rawValue, fn, errorMessage) {
35313
35316
  return ERR(new SDKValidationError(errorMessage, err, rawValue));
35314
35317
  }
35315
35318
  }
35319
+ function collectExtraKeys(obj, extrasKey, optional2) {
35320
+ return obj.transform((val) => {
35321
+ const extras = {};
35322
+ const { shape } = obj;
35323
+ for (const [key] of Object.entries(val)) {
35324
+ if (key in shape) {
35325
+ continue;
35326
+ }
35327
+ const v2 = val[key];
35328
+ if (typeof v2 === "undefined") {
35329
+ continue;
35330
+ }
35331
+ extras[key] = v2;
35332
+ delete val[key];
35333
+ }
35334
+ if (optional2 && Object.keys(extras).length === 0) {
35335
+ return val;
35336
+ }
35337
+ return { ...val, [extrasKey]: extras };
35338
+ });
35339
+ }
35316
35340
  var init_schemas = __esm(() => {
35317
35341
  init_sdkvalidationerror();
35318
35342
  });
@@ -35360,6 +35384,9 @@ function match(...matchers) {
35360
35384
  case "json":
35361
35385
  raw = await response.json();
35362
35386
  break;
35387
+ case "jsonl":
35388
+ raw = response.body;
35389
+ break;
35363
35390
  case "bytes":
35364
35391
  raw = new Uint8Array(await response.arrayBuffer());
35365
35392
  break;
@@ -35449,6 +35476,7 @@ var init_matchers = __esm(() => {
35449
35476
  init_http();
35450
35477
  init_schemas();
35451
35478
  DEFAULT_CONTENT_TYPES = {
35479
+ jsonl: "application/jsonl",
35452
35480
  json: "application/json",
35453
35481
  text: "text/plain",
35454
35482
  bytes: "application/octet-stream",
@@ -35614,7 +35642,7 @@ var init_security = __esm(() => {
35614
35642
  });
35615
35643
 
35616
35644
  // src/models/errors/errordto.ts
35617
- var ErrorDto, ErrorDto$inboundSchema, ErrorDto$outboundSchema, ErrorDto$;
35645
+ var ErrorDto, Five$inboundSchema, Five$outboundSchema, Five$, Four$inboundSchema, Four$outboundSchema, Four$, Message$inboundSchema, Message$outboundSchema, Message$, ErrorDto$inboundSchema, ErrorDto$outboundSchema, ErrorDto$;
35618
35646
  var init_errordto = __esm(() => {
35619
35647
  init_lib();
35620
35648
  ErrorDto = class ErrorDto extends Error {
@@ -35638,11 +35666,47 @@ var init_errordto = __esm(() => {
35638
35666
  this.name = "ErrorDto";
35639
35667
  }
35640
35668
  };
35669
+ Five$inboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
35670
+ Five$outboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
35671
+ ((Five$) => {
35672
+ Five$.inboundSchema = Five$inboundSchema;
35673
+ Five$.outboundSchema = Five$outboundSchema;
35674
+ })(Five$ ||= {});
35675
+ Four$inboundSchema = objectType({});
35676
+ Four$outboundSchema = objectType({});
35677
+ ((Four$) => {
35678
+ Four$.inboundSchema = Four$inboundSchema;
35679
+ Four$.outboundSchema = Four$outboundSchema;
35680
+ })(Four$ ||= {});
35681
+ Message$inboundSchema = unionType([
35682
+ lazyType(() => Four$inboundSchema),
35683
+ stringType(),
35684
+ numberType(),
35685
+ booleanType(),
35686
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
35687
+ ]);
35688
+ Message$outboundSchema = unionType([
35689
+ lazyType(() => Four$outboundSchema),
35690
+ stringType(),
35691
+ numberType(),
35692
+ booleanType(),
35693
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
35694
+ ]);
35695
+ ((Message$) => {
35696
+ Message$.inboundSchema = Message$inboundSchema;
35697
+ Message$.outboundSchema = Message$outboundSchema;
35698
+ })(Message$ ||= {});
35641
35699
  ErrorDto$inboundSchema = objectType({
35642
35700
  statusCode: numberType(),
35643
35701
  timestamp: stringType(),
35644
35702
  path: stringType(),
35645
- message: stringType(),
35703
+ message: nullableType(unionType([
35704
+ lazyType(() => Four$inboundSchema),
35705
+ stringType(),
35706
+ numberType(),
35707
+ booleanType(),
35708
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
35709
+ ])).optional(),
35646
35710
  ctx: recordType(anyType()).optional(),
35647
35711
  errorId: stringType().optional()
35648
35712
  }).transform((v2) => {
@@ -35652,7 +35716,13 @@ var init_errordto = __esm(() => {
35652
35716
  statusCode: numberType(),
35653
35717
  timestamp: stringType(),
35654
35718
  path: stringType(),
35655
- message: stringType(),
35719
+ message: nullableType(unionType([
35720
+ lazyType(() => Four$outboundSchema),
35721
+ stringType(),
35722
+ numberType(),
35723
+ booleanType(),
35724
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
35725
+ ])).optional(),
35656
35726
  ctx: recordType(anyType()).optional(),
35657
35727
  errorId: stringType().optional()
35658
35728
  }));
@@ -35662,110 +35732,6 @@ var init_errordto = __esm(() => {
35662
35732
  })(ErrorDto$ ||= {});
35663
35733
  });
35664
35734
 
35665
- // src/models/errors/validationerrordto.ts
35666
- var ValidationErrorDto, Value$inboundSchema, Value$outboundSchema, Value$, Errors$inboundSchema, Errors$outboundSchema, Errors$, ValidationErrorDto$inboundSchema, ValidationErrorDto$outboundSchema, ValidationErrorDto$;
35667
- var init_validationerrordto = __esm(() => {
35668
- init_lib();
35669
- ValidationErrorDto = class ValidationErrorDto extends Error {
35670
- statusCode;
35671
- timestamp;
35672
- path;
35673
- ctx;
35674
- errorId;
35675
- errors;
35676
- data$;
35677
- constructor(err) {
35678
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
35679
- super(message);
35680
- this.data$ = err;
35681
- this.statusCode = err.statusCode;
35682
- this.timestamp = err.timestamp;
35683
- this.path = err.path;
35684
- if (err.ctx != null)
35685
- this.ctx = err.ctx;
35686
- if (err.errorId != null)
35687
- this.errorId = err.errorId;
35688
- this.errors = err.errors;
35689
- this.name = "ValidationErrorDto";
35690
- }
35691
- };
35692
- Value$inboundSchema = unionType([
35693
- stringType(),
35694
- numberType(),
35695
- booleanType(),
35696
- recordType(anyType()),
35697
- arrayType(recordType(anyType()))
35698
- ]);
35699
- Value$outboundSchema = unionType([
35700
- stringType(),
35701
- numberType(),
35702
- booleanType(),
35703
- recordType(anyType()),
35704
- arrayType(recordType(anyType()))
35705
- ]);
35706
- ((Value$) => {
35707
- Value$.inboundSchema = Value$inboundSchema;
35708
- Value$.outboundSchema = Value$outboundSchema;
35709
- })(Value$ ||= {});
35710
- Errors$inboundSchema = objectType({
35711
- messages: arrayType(stringType()),
35712
- value: nullableType(unionType([
35713
- stringType(),
35714
- numberType(),
35715
- booleanType(),
35716
- recordType(anyType()),
35717
- arrayType(recordType(anyType()))
35718
- ]))
35719
- });
35720
- Errors$outboundSchema = objectType({
35721
- messages: arrayType(stringType()),
35722
- value: nullableType(unionType([
35723
- stringType(),
35724
- numberType(),
35725
- booleanType(),
35726
- recordType(anyType()),
35727
- arrayType(recordType(anyType()))
35728
- ]))
35729
- });
35730
- ((Errors$) => {
35731
- Errors$.inboundSchema = Errors$inboundSchema;
35732
- Errors$.outboundSchema = Errors$outboundSchema;
35733
- })(Errors$ ||= {});
35734
- ValidationErrorDto$inboundSchema = objectType({
35735
- statusCode: numberType(),
35736
- timestamp: stringType(),
35737
- path: stringType(),
35738
- message: stringType(),
35739
- ctx: recordType(anyType()).optional(),
35740
- errorId: stringType().optional(),
35741
- errors: recordType(lazyType(() => Errors$inboundSchema))
35742
- }).transform((v2) => {
35743
- return new ValidationErrorDto(v2);
35744
- });
35745
- ValidationErrorDto$outboundSchema = instanceOfType(ValidationErrorDto).transform((v2) => v2.data$).pipe(objectType({
35746
- statusCode: numberType(),
35747
- timestamp: stringType(),
35748
- path: stringType(),
35749
- message: stringType(),
35750
- ctx: recordType(anyType()).optional(),
35751
- errorId: stringType().optional(),
35752
- errors: recordType(lazyType(() => Errors$outboundSchema))
35753
- }));
35754
- ((ValidationErrorDto$) => {
35755
- ValidationErrorDto$.inboundSchema = ValidationErrorDto$inboundSchema;
35756
- ValidationErrorDto$.outboundSchema = ValidationErrorDto$outboundSchema;
35757
- })(ValidationErrorDto$ ||= {});
35758
- });
35759
-
35760
- // src/models/errors/index.ts
35761
- var init_errors = __esm(() => {
35762
- init_errordto();
35763
- init_httpclienterrors();
35764
- init_sdkerror();
35765
- init_sdkvalidationerror();
35766
- init_validationerrordto();
35767
- });
35768
-
35769
35735
  // src/models/components/executiondetailssourceenum.ts
35770
35736
  var ExecutionDetailsSourceEnum, ExecutionDetailsSourceEnum$inboundSchema, ExecutionDetailsSourceEnum$outboundSchema, ExecutionDetailsSourceEnum$;
35771
35737
  var init_executiondetailssourceenum = __esm(() => {
@@ -35860,6 +35826,7 @@ var init_providersidenum = __esm(() => {
35860
35826
  BrevoSms: "brevo-sms",
35861
35827
  EazySms: "eazy-sms",
35862
35828
  Mobishastra: "mobishastra",
35829
+ AfroMessage: "afro-message",
35863
35830
  Fcm: "fcm",
35864
35831
  Apns: "apns",
35865
35832
  Expo: "expo",
@@ -36020,31 +35987,31 @@ var init_fieldfilterpartdto = __esm(() => {
36020
35987
  });
36021
35988
 
36022
35989
  // src/models/components/stepfilterdto.ts
36023
- var Value, Value$inboundSchema2, Value$outboundSchema2, Value$2, StepFilterDto$inboundSchema, StepFilterDto$outboundSchema, StepFilterDto$;
35990
+ var StepFilterDtoValue, StepFilterDtoValue$inboundSchema, StepFilterDtoValue$outboundSchema, StepFilterDtoValue$, StepFilterDto$inboundSchema, StepFilterDto$outboundSchema, StepFilterDto$;
36024
35991
  var init_stepfilterdto = __esm(() => {
36025
35992
  init_lib();
36026
35993
  init_builderfieldtypeenum();
36027
35994
  init_fieldfilterpartdto();
36028
- Value = {
35995
+ StepFilterDtoValue = {
36029
35996
  And: "AND",
36030
35997
  Or: "OR"
36031
35998
  };
36032
- Value$inboundSchema2 = nativeEnumType(Value);
36033
- Value$outboundSchema2 = Value$inboundSchema2;
36034
- ((Value$) => {
36035
- Value$.inboundSchema = Value$inboundSchema2;
36036
- Value$.outboundSchema = Value$outboundSchema2;
36037
- })(Value$2 ||= {});
35999
+ StepFilterDtoValue$inboundSchema = nativeEnumType(StepFilterDtoValue);
36000
+ StepFilterDtoValue$outboundSchema = StepFilterDtoValue$inboundSchema;
36001
+ ((StepFilterDtoValue$) => {
36002
+ StepFilterDtoValue$.inboundSchema = StepFilterDtoValue$inboundSchema;
36003
+ StepFilterDtoValue$.outboundSchema = StepFilterDtoValue$outboundSchema;
36004
+ })(StepFilterDtoValue$ ||= {});
36038
36005
  StepFilterDto$inboundSchema = objectType({
36039
36006
  isNegated: booleanType(),
36040
36007
  type: BuilderFieldTypeEnum$inboundSchema,
36041
- value: Value$inboundSchema2,
36008
+ value: StepFilterDtoValue$inboundSchema,
36042
36009
  children: arrayType(FieldFilterPartDto$inboundSchema)
36043
36010
  });
36044
36011
  StepFilterDto$outboundSchema = objectType({
36045
36012
  isNegated: booleanType(),
36046
36013
  type: BuilderFieldTypeEnum$outboundSchema,
36047
- value: Value$outboundSchema2,
36014
+ value: StepFilterDtoValue$outboundSchema,
36048
36015
  children: arrayType(FieldFilterPartDto$outboundSchema)
36049
36016
  });
36050
36017
  ((StepFilterDto$) => {
@@ -36054,7 +36021,7 @@ var init_stepfilterdto = __esm(() => {
36054
36021
  });
36055
36022
 
36056
36023
  // src/models/components/activitynotificationstepresponsedto.ts
36057
- var ActivityNotificationStepResponseDtoReplyCallback$inboundSchema, ActivityNotificationStepResponseDtoReplyCallback$outboundSchema, ActivityNotificationStepResponseDtoReplyCallback$, ControlVariables$inboundSchema, ControlVariables$outboundSchema, ControlVariables$, Metadata$inboundSchema, Metadata$outboundSchema, Metadata$, Issues$inboundSchema, Issues$outboundSchema, Issues$, ActivityNotificationStepResponseDto$inboundSchema, ActivityNotificationStepResponseDto$outboundSchema, ActivityNotificationStepResponseDto$;
36024
+ var ActivityNotificationStepResponseDtoReplyCallback$inboundSchema, ActivityNotificationStepResponseDtoReplyCallback$outboundSchema, ActivityNotificationStepResponseDtoReplyCallback$, ControlVariables$inboundSchema, ControlVariables$outboundSchema, ControlVariables$, ActivityNotificationStepResponseDtoMetadata$inboundSchema, ActivityNotificationStepResponseDtoMetadata$outboundSchema, ActivityNotificationStepResponseDtoMetadata$, Issues$inboundSchema, Issues$outboundSchema, Issues$, ActivityNotificationStepResponseDto$inboundSchema, ActivityNotificationStepResponseDto$outboundSchema, ActivityNotificationStepResponseDto$;
36058
36025
  var init_activitynotificationstepresponsedto = __esm(() => {
36059
36026
  init_lib();
36060
36027
  init_primitives();
@@ -36072,12 +36039,12 @@ var init_activitynotificationstepresponsedto = __esm(() => {
36072
36039
  ControlVariables$.inboundSchema = ControlVariables$inboundSchema;
36073
36040
  ControlVariables$.outboundSchema = ControlVariables$outboundSchema;
36074
36041
  })(ControlVariables$ ||= {});
36075
- Metadata$inboundSchema = objectType({});
36076
- Metadata$outboundSchema = objectType({});
36077
- ((Metadata$) => {
36078
- Metadata$.inboundSchema = Metadata$inboundSchema;
36079
- Metadata$.outboundSchema = Metadata$outboundSchema;
36080
- })(Metadata$ ||= {});
36042
+ ActivityNotificationStepResponseDtoMetadata$inboundSchema = objectType({});
36043
+ ActivityNotificationStepResponseDtoMetadata$outboundSchema = objectType({});
36044
+ ((ActivityNotificationStepResponseDtoMetadata$) => {
36045
+ ActivityNotificationStepResponseDtoMetadata$.inboundSchema = ActivityNotificationStepResponseDtoMetadata$inboundSchema;
36046
+ ActivityNotificationStepResponseDtoMetadata$.outboundSchema = ActivityNotificationStepResponseDtoMetadata$outboundSchema;
36047
+ })(ActivityNotificationStepResponseDtoMetadata$ ||= {});
36081
36048
  Issues$inboundSchema = objectType({});
36082
36049
  Issues$outboundSchema = objectType({});
36083
36050
  ((Issues$) => {
@@ -36089,7 +36056,7 @@ var init_activitynotificationstepresponsedto = __esm(() => {
36089
36056
  active: booleanType(),
36090
36057
  replyCallback: lazyType(() => ActivityNotificationStepResponseDtoReplyCallback$inboundSchema).optional(),
36091
36058
  controlVariables: lazyType(() => ControlVariables$inboundSchema).optional(),
36092
- metadata: lazyType(() => Metadata$inboundSchema).optional(),
36059
+ metadata: lazyType(() => ActivityNotificationStepResponseDtoMetadata$inboundSchema).optional(),
36093
36060
  issues: lazyType(() => Issues$inboundSchema).optional(),
36094
36061
  filters: arrayType(StepFilterDto$inboundSchema),
36095
36062
  template: MessageTemplateDto$inboundSchema.optional(),
@@ -36109,7 +36076,7 @@ var init_activitynotificationstepresponsedto = __esm(() => {
36109
36076
  active: booleanType(),
36110
36077
  replyCallback: lazyType(() => ActivityNotificationStepResponseDtoReplyCallback$outboundSchema).optional(),
36111
36078
  controlVariables: lazyType(() => ControlVariables$outboundSchema).optional(),
36112
- metadata: lazyType(() => Metadata$outboundSchema).optional(),
36079
+ metadata: lazyType(() => ActivityNotificationStepResponseDtoMetadata$outboundSchema).optional(),
36113
36080
  issues: lazyType(() => Issues$outboundSchema).optional(),
36114
36081
  filters: arrayType(StepFilterDto$outboundSchema),
36115
36082
  template: MessageTemplateDto$outboundSchema.optional(),
@@ -36191,13 +36158,13 @@ var init_ordinalvalueenum = __esm(() => {
36191
36158
  });
36192
36159
 
36193
36160
  // src/models/components/digesttimedconfigdto.ts
36194
- var WeekDays, WeekDays$inboundSchema, WeekDays$outboundSchema, WeekDays$, DigestTimedConfigDto$inboundSchema, DigestTimedConfigDto$outboundSchema, DigestTimedConfigDto$;
36161
+ var DigestTimedConfigDtoWeekDays, DigestTimedConfigDtoWeekDays$inboundSchema, DigestTimedConfigDtoWeekDays$outboundSchema, DigestTimedConfigDtoWeekDays$, DigestTimedConfigDto$inboundSchema, DigestTimedConfigDto$outboundSchema, DigestTimedConfigDto$;
36195
36162
  var init_digesttimedconfigdto = __esm(() => {
36196
36163
  init_lib();
36197
36164
  init_monthlytypeenum();
36198
36165
  init_ordinalenum();
36199
36166
  init_ordinalvalueenum();
36200
- WeekDays = {
36167
+ DigestTimedConfigDtoWeekDays = {
36201
36168
  Monday: "monday",
36202
36169
  Tuesday: "tuesday",
36203
36170
  Wednesday: "wednesday",
@@ -36206,15 +36173,15 @@ var init_digesttimedconfigdto = __esm(() => {
36206
36173
  Saturday: "saturday",
36207
36174
  Sunday: "sunday"
36208
36175
  };
36209
- WeekDays$inboundSchema = nativeEnumType(WeekDays);
36210
- WeekDays$outboundSchema = WeekDays$inboundSchema;
36211
- ((WeekDays$) => {
36212
- WeekDays$.inboundSchema = WeekDays$inboundSchema;
36213
- WeekDays$.outboundSchema = WeekDays$outboundSchema;
36214
- })(WeekDays$ ||= {});
36176
+ DigestTimedConfigDtoWeekDays$inboundSchema = nativeEnumType(DigestTimedConfigDtoWeekDays);
36177
+ DigestTimedConfigDtoWeekDays$outboundSchema = DigestTimedConfigDtoWeekDays$inboundSchema;
36178
+ ((DigestTimedConfigDtoWeekDays$) => {
36179
+ DigestTimedConfigDtoWeekDays$.inboundSchema = DigestTimedConfigDtoWeekDays$inboundSchema;
36180
+ DigestTimedConfigDtoWeekDays$.outboundSchema = DigestTimedConfigDtoWeekDays$outboundSchema;
36181
+ })(DigestTimedConfigDtoWeekDays$ ||= {});
36215
36182
  DigestTimedConfigDto$inboundSchema = objectType({
36216
36183
  atTime: stringType().optional(),
36217
- weekDays: arrayType(WeekDays$inboundSchema).optional(),
36184
+ weekDays: arrayType(DigestTimedConfigDtoWeekDays$inboundSchema).optional(),
36218
36185
  monthDays: arrayType(numberType()).optional(),
36219
36186
  ordinal: OrdinalEnum$inboundSchema.optional(),
36220
36187
  ordinalValue: OrdinalValueEnum$inboundSchema.optional(),
@@ -36223,7 +36190,7 @@ var init_digesttimedconfigdto = __esm(() => {
36223
36190
  });
36224
36191
  DigestTimedConfigDto$outboundSchema = objectType({
36225
36192
  atTime: stringType().optional(),
36226
- weekDays: arrayType(WeekDays$outboundSchema).optional(),
36193
+ weekDays: arrayType(DigestTimedConfigDtoWeekDays$outboundSchema).optional(),
36227
36194
  monthDays: arrayType(numberType()).optional(),
36228
36195
  ordinal: OrdinalEnum$outboundSchema.optional(),
36229
36196
  ordinalValue: OrdinalValueEnum$outboundSchema.optional(),
@@ -36274,13 +36241,13 @@ var init_digestunitenum = __esm(() => {
36274
36241
  });
36275
36242
 
36276
36243
  // src/models/components/digestmetadatadto.ts
36277
- var Unit, Unit$inboundSchema, Unit$outboundSchema, Unit$, DigestMetadataDto$inboundSchema, DigestMetadataDto$outboundSchema, DigestMetadataDto$;
36244
+ var DigestMetadataDtoUnit, DigestMetadataDtoUnit$inboundSchema, DigestMetadataDtoUnit$outboundSchema, DigestMetadataDtoUnit$, DigestMetadataDto$inboundSchema, DigestMetadataDto$outboundSchema, DigestMetadataDto$;
36278
36245
  var init_digestmetadatadto = __esm(() => {
36279
36246
  init_lib();
36280
36247
  init_digesttimedconfigdto();
36281
36248
  init_digesttypeenum();
36282
36249
  init_digestunitenum();
36283
- Unit = {
36250
+ DigestMetadataDtoUnit = {
36284
36251
  Seconds: "seconds",
36285
36252
  Minutes: "minutes",
36286
36253
  Hours: "hours",
@@ -36288,16 +36255,16 @@ var init_digestmetadatadto = __esm(() => {
36288
36255
  Weeks: "weeks",
36289
36256
  Months: "months"
36290
36257
  };
36291
- Unit$inboundSchema = nativeEnumType(Unit);
36292
- Unit$outboundSchema = Unit$inboundSchema;
36293
- ((Unit$) => {
36294
- Unit$.inboundSchema = Unit$inboundSchema;
36295
- Unit$.outboundSchema = Unit$outboundSchema;
36296
- })(Unit$ ||= {});
36258
+ DigestMetadataDtoUnit$inboundSchema = nativeEnumType(DigestMetadataDtoUnit);
36259
+ DigestMetadataDtoUnit$outboundSchema = DigestMetadataDtoUnit$inboundSchema;
36260
+ ((DigestMetadataDtoUnit$) => {
36261
+ DigestMetadataDtoUnit$.inboundSchema = DigestMetadataDtoUnit$inboundSchema;
36262
+ DigestMetadataDtoUnit$.outboundSchema = DigestMetadataDtoUnit$outboundSchema;
36263
+ })(DigestMetadataDtoUnit$ ||= {});
36297
36264
  DigestMetadataDto$inboundSchema = objectType({
36298
36265
  digestKey: stringType().optional(),
36299
36266
  amount: numberType().optional(),
36300
- unit: Unit$inboundSchema.optional(),
36267
+ unit: DigestMetadataDtoUnit$inboundSchema.optional(),
36301
36268
  type: DigestTypeEnum$inboundSchema,
36302
36269
  events: arrayType(recordType(anyType())).optional(),
36303
36270
  backoff: booleanType().optional(),
@@ -36309,7 +36276,7 @@ var init_digestmetadatadto = __esm(() => {
36309
36276
  DigestMetadataDto$outboundSchema = objectType({
36310
36277
  digestKey: stringType().optional(),
36311
36278
  amount: numberType().optional(),
36312
- unit: Unit$outboundSchema.optional(),
36279
+ unit: DigestMetadataDtoUnit$outboundSchema.optional(),
36313
36280
  type: DigestTypeEnum$outboundSchema,
36314
36281
  events: arrayType(recordType(anyType())).optional(),
36315
36282
  backoff: booleanType().optional(),
@@ -36325,7 +36292,7 @@ var init_digestmetadatadto = __esm(() => {
36325
36292
  });
36326
36293
 
36327
36294
  // src/models/components/activitynotificationjobresponsedto.ts
36328
- var ActivityNotificationJobResponseDtoType, ActivityNotificationJobResponseDtoType$inboundSchema, ActivityNotificationJobResponseDtoType$outboundSchema, ActivityNotificationJobResponseDtoType$, Payload$inboundSchema, Payload$outboundSchema, Payload$, ActivityNotificationJobResponseDto$inboundSchema, ActivityNotificationJobResponseDto$outboundSchema, ActivityNotificationJobResponseDto$;
36295
+ var ActivityNotificationJobResponseDtoType, ActivityNotificationJobResponseDtoType$inboundSchema, ActivityNotificationJobResponseDtoType$outboundSchema, ActivityNotificationJobResponseDtoType$, ActivityNotificationJobResponseDtoPayload$inboundSchema, ActivityNotificationJobResponseDtoPayload$outboundSchema, ActivityNotificationJobResponseDtoPayload$, ActivityNotificationJobResponseDto$inboundSchema, ActivityNotificationJobResponseDto$outboundSchema, ActivityNotificationJobResponseDto$;
36329
36296
  var init_activitynotificationjobresponsedto = __esm(() => {
36330
36297
  init_lib();
36331
36298
  init_primitives();
@@ -36350,12 +36317,12 @@ var init_activitynotificationjobresponsedto = __esm(() => {
36350
36317
  ActivityNotificationJobResponseDtoType$.inboundSchema = ActivityNotificationJobResponseDtoType$inboundSchema;
36351
36318
  ActivityNotificationJobResponseDtoType$.outboundSchema = ActivityNotificationJobResponseDtoType$outboundSchema;
36352
36319
  })(ActivityNotificationJobResponseDtoType$ ||= {});
36353
- Payload$inboundSchema = objectType({});
36354
- Payload$outboundSchema = objectType({});
36355
- ((Payload$) => {
36356
- Payload$.inboundSchema = Payload$inboundSchema;
36357
- Payload$.outboundSchema = Payload$outboundSchema;
36358
- })(Payload$ ||= {});
36320
+ ActivityNotificationJobResponseDtoPayload$inboundSchema = objectType({});
36321
+ ActivityNotificationJobResponseDtoPayload$outboundSchema = objectType({});
36322
+ ((ActivityNotificationJobResponseDtoPayload$) => {
36323
+ ActivityNotificationJobResponseDtoPayload$.inboundSchema = ActivityNotificationJobResponseDtoPayload$inboundSchema;
36324
+ ActivityNotificationJobResponseDtoPayload$.outboundSchema = ActivityNotificationJobResponseDtoPayload$outboundSchema;
36325
+ })(ActivityNotificationJobResponseDtoPayload$ ||= {});
36359
36326
  ActivityNotificationJobResponseDto$inboundSchema = objectType({
36360
36327
  _id: stringType(),
36361
36328
  type: ActivityNotificationJobResponseDtoType$inboundSchema,
@@ -36363,7 +36330,7 @@ var init_activitynotificationjobresponsedto = __esm(() => {
36363
36330
  executionDetails: arrayType(ActivityNotificationExecutionDetailResponseDto$inboundSchema),
36364
36331
  step: ActivityNotificationStepResponseDto$inboundSchema,
36365
36332
  overrides: recordType(anyType()).optional(),
36366
- payload: lazyType(() => Payload$inboundSchema).optional(),
36333
+ payload: lazyType(() => ActivityNotificationJobResponseDtoPayload$inboundSchema).optional(),
36367
36334
  providerId: ProvidersIdEnum$inboundSchema,
36368
36335
  status: stringType(),
36369
36336
  updatedAt: stringType().optional()
@@ -36379,7 +36346,7 @@ var init_activitynotificationjobresponsedto = __esm(() => {
36379
36346
  executionDetails: arrayType(ActivityNotificationExecutionDetailResponseDto$outboundSchema),
36380
36347
  step: ActivityNotificationStepResponseDto$outboundSchema,
36381
36348
  overrides: recordType(anyType()).optional(),
36382
- payload: lazyType(() => Payload$outboundSchema).optional(),
36349
+ payload: lazyType(() => ActivityNotificationJobResponseDtoPayload$outboundSchema).optional(),
36383
36350
  providerId: ProvidersIdEnum$outboundSchema,
36384
36351
  status: stringType(),
36385
36352
  updatedAt: stringType().optional()
@@ -36446,27 +36413,27 @@ var init_notificationtriggervariable = __esm(() => {
36446
36413
  });
36447
36414
 
36448
36415
  // src/models/components/notificationtriggerdto.ts
36449
- var Type, Type$inboundSchema, Type$outboundSchema, Type$, NotificationTriggerDto$inboundSchema, NotificationTriggerDto$outboundSchema, NotificationTriggerDto$;
36416
+ var NotificationTriggerDtoType, NotificationTriggerDtoType$inboundSchema, NotificationTriggerDtoType$outboundSchema, NotificationTriggerDtoType$, NotificationTriggerDto$inboundSchema, NotificationTriggerDto$outboundSchema, NotificationTriggerDto$;
36450
36417
  var init_notificationtriggerdto = __esm(() => {
36451
36418
  init_lib();
36452
36419
  init_notificationtriggervariable();
36453
- Type = {
36420
+ NotificationTriggerDtoType = {
36454
36421
  Event: "event"
36455
36422
  };
36456
- Type$inboundSchema = nativeEnumType(Type);
36457
- Type$outboundSchema = Type$inboundSchema;
36458
- ((Type$) => {
36459
- Type$.inboundSchema = Type$inboundSchema;
36460
- Type$.outboundSchema = Type$outboundSchema;
36461
- })(Type$ ||= {});
36423
+ NotificationTriggerDtoType$inboundSchema = nativeEnumType(NotificationTriggerDtoType);
36424
+ NotificationTriggerDtoType$outboundSchema = NotificationTriggerDtoType$inboundSchema;
36425
+ ((NotificationTriggerDtoType$) => {
36426
+ NotificationTriggerDtoType$.inboundSchema = NotificationTriggerDtoType$inboundSchema;
36427
+ NotificationTriggerDtoType$.outboundSchema = NotificationTriggerDtoType$outboundSchema;
36428
+ })(NotificationTriggerDtoType$ ||= {});
36462
36429
  NotificationTriggerDto$inboundSchema = objectType({
36463
- type: Type$inboundSchema,
36430
+ type: NotificationTriggerDtoType$inboundSchema,
36464
36431
  identifier: stringType(),
36465
36432
  variables: arrayType(NotificationTriggerVariable$inboundSchema),
36466
36433
  subscriberVariables: arrayType(NotificationTriggerVariable$inboundSchema).optional()
36467
36434
  });
36468
36435
  NotificationTriggerDto$outboundSchema = objectType({
36469
- type: Type$outboundSchema,
36436
+ type: NotificationTriggerDtoType$outboundSchema,
36470
36437
  identifier: stringType(),
36471
36438
  variables: arrayType(NotificationTriggerVariable$outboundSchema),
36472
36439
  subscriberVariables: arrayType(NotificationTriggerVariable$outboundSchema).optional()
@@ -36934,6 +36901,22 @@ var init_bulksubscribercreatedto = __esm(() => {
36934
36901
  })(BulkSubscriberCreateDto$ ||= {});
36935
36902
  });
36936
36903
 
36904
+ // src/models/components/stepsoverrides.ts
36905
+ var StepsOverrides$inboundSchema, StepsOverrides$outboundSchema, StepsOverrides$;
36906
+ var init_stepsoverrides = __esm(() => {
36907
+ init_lib();
36908
+ StepsOverrides$inboundSchema = objectType({
36909
+ providers: recordType(recordType(anyType()))
36910
+ });
36911
+ StepsOverrides$outboundSchema = objectType({
36912
+ providers: recordType(recordType(anyType()))
36913
+ });
36914
+ ((StepsOverrides$) => {
36915
+ StepsOverrides$.inboundSchema = StepsOverrides$inboundSchema;
36916
+ StepsOverrides$.outboundSchema = StepsOverrides$outboundSchema;
36917
+ })(StepsOverrides$ ||= {});
36918
+ });
36919
+
36937
36920
  // src/models/components/channelcredentialsdto.ts
36938
36921
  var ChannelCredentialsDto$inboundSchema, ChannelCredentialsDto$outboundSchema, ChannelCredentialsDto$;
36939
36922
  var init_channelcredentialsdto = __esm(() => {
@@ -36953,11 +36936,11 @@ var init_channelcredentialsdto = __esm(() => {
36953
36936
  });
36954
36937
 
36955
36938
  // src/models/components/subscriberchanneldto.ts
36956
- var SubscriberChannelDtoProviderId, SubscriberChannelDtoProviderId$inboundSchema, SubscriberChannelDtoProviderId$outboundSchema, SubscriberChannelDtoProviderId$, SubscriberChannelDto$inboundSchema, SubscriberChannelDto$outboundSchema, SubscriberChannelDto$;
36939
+ var ProviderId, ProviderId$inboundSchema, ProviderId$outboundSchema, ProviderId$, SubscriberChannelDto$inboundSchema, SubscriberChannelDto$outboundSchema, SubscriberChannelDto$;
36957
36940
  var init_subscriberchanneldto = __esm(() => {
36958
36941
  init_lib();
36959
36942
  init_channelcredentialsdto();
36960
- SubscriberChannelDtoProviderId = {
36943
+ ProviderId = {
36961
36944
  Slack: "slack",
36962
36945
  Discord: "discord",
36963
36946
  Msteams: "msteams",
@@ -36976,19 +36959,19 @@ var init_subscriberchanneldto = __esm(() => {
36976
36959
  PushWebhook: "push-webhook",
36977
36960
  PusherBeams: "pusher-beams"
36978
36961
  };
36979
- SubscriberChannelDtoProviderId$inboundSchema = nativeEnumType(SubscriberChannelDtoProviderId);
36980
- SubscriberChannelDtoProviderId$outboundSchema = SubscriberChannelDtoProviderId$inboundSchema;
36981
- ((SubscriberChannelDtoProviderId$) => {
36982
- SubscriberChannelDtoProviderId$.inboundSchema = SubscriberChannelDtoProviderId$inboundSchema;
36983
- SubscriberChannelDtoProviderId$.outboundSchema = SubscriberChannelDtoProviderId$outboundSchema;
36984
- })(SubscriberChannelDtoProviderId$ ||= {});
36962
+ ProviderId$inboundSchema = nativeEnumType(ProviderId);
36963
+ ProviderId$outboundSchema = ProviderId$inboundSchema;
36964
+ ((ProviderId$) => {
36965
+ ProviderId$.inboundSchema = ProviderId$inboundSchema;
36966
+ ProviderId$.outboundSchema = ProviderId$outboundSchema;
36967
+ })(ProviderId$ ||= {});
36985
36968
  SubscriberChannelDto$inboundSchema = objectType({
36986
- providerId: SubscriberChannelDtoProviderId$inboundSchema,
36969
+ providerId: ProviderId$inboundSchema,
36987
36970
  integrationIdentifier: stringType().optional(),
36988
36971
  credentials: ChannelCredentialsDto$inboundSchema
36989
36972
  });
36990
36973
  SubscriberChannelDto$outboundSchema = objectType({
36991
- providerId: SubscriberChannelDtoProviderId$outboundSchema,
36974
+ providerId: ProviderId$outboundSchema,
36992
36975
  integrationIdentifier: stringType().optional(),
36993
36976
  credentials: ChannelCredentialsDto$outboundSchema
36994
36977
  });
@@ -37101,13 +37084,36 @@ var init_topicpayloaddto = __esm(() => {
37101
37084
  });
37102
37085
 
37103
37086
  // src/models/components/triggereventrequestdto.ts
37104
- var One$inboundSchema, One$outboundSchema, One$, To$inboundSchema, To$outboundSchema, To$, Actor$inboundSchema, Actor$outboundSchema, Actor$, Tenant$inboundSchema, Tenant$outboundSchema, Tenant$, TriggerEventRequestDto$inboundSchema, TriggerEventRequestDto$outboundSchema, TriggerEventRequestDto$;
37087
+ var Overrides$inboundSchema, Overrides$outboundSchema, Overrides$, One$inboundSchema, One$outboundSchema, One$, To$inboundSchema, To$outboundSchema, To$, Actor$inboundSchema, Actor$outboundSchema, Actor$, Tenant$inboundSchema, Tenant$outboundSchema, Tenant$, TriggerEventRequestDto$inboundSchema, TriggerEventRequestDto$outboundSchema, TriggerEventRequestDto$;
37105
37088
  var init_triggereventrequestdto = __esm(() => {
37106
37089
  init_lib();
37107
37090
  init_primitives();
37091
+ init_stepsoverrides();
37108
37092
  init_subscriberpayloaddto();
37109
37093
  init_tenantpayloaddto();
37110
37094
  init_topicpayloaddto();
37095
+ Overrides$inboundSchema = objectType({
37096
+ steps: recordType(StepsOverrides$inboundSchema).optional(),
37097
+ providers: recordType(recordType(anyType())).optional(),
37098
+ email: recordType(anyType()).optional(),
37099
+ push: recordType(anyType()).optional(),
37100
+ sms: recordType(anyType()).optional(),
37101
+ chat: recordType(anyType()).optional(),
37102
+ layoutIdentifier: stringType().optional()
37103
+ });
37104
+ Overrides$outboundSchema = objectType({
37105
+ steps: recordType(StepsOverrides$outboundSchema).optional(),
37106
+ providers: recordType(recordType(anyType())).optional(),
37107
+ email: recordType(anyType()).optional(),
37108
+ push: recordType(anyType()).optional(),
37109
+ sms: recordType(anyType()).optional(),
37110
+ chat: recordType(anyType()).optional(),
37111
+ layoutIdentifier: stringType().optional()
37112
+ });
37113
+ ((Overrides$) => {
37114
+ Overrides$.inboundSchema = Overrides$inboundSchema;
37115
+ Overrides$.outboundSchema = Overrides$outboundSchema;
37116
+ })(Overrides$ ||= {});
37111
37117
  One$inboundSchema = unionType([
37112
37118
  TopicPayloadDto$inboundSchema,
37113
37119
  SubscriberPayloadDto$inboundSchema,
@@ -37161,7 +37167,7 @@ var init_triggereventrequestdto = __esm(() => {
37161
37167
  TriggerEventRequestDto$inboundSchema = objectType({
37162
37168
  name: stringType(),
37163
37169
  payload: recordType(anyType()).optional(),
37164
- overrides: recordType(recordType(anyType())).optional(),
37170
+ overrides: lazyType(() => Overrides$inboundSchema).optional(),
37165
37171
  to: unionType([
37166
37172
  TopicPayloadDto$inboundSchema,
37167
37173
  SubscriberPayloadDto$inboundSchema,
@@ -37183,7 +37189,7 @@ var init_triggereventrequestdto = __esm(() => {
37183
37189
  TriggerEventRequestDto$outboundSchema = objectType({
37184
37190
  workflowId: stringType(),
37185
37191
  payload: recordType(anyType()).optional(),
37186
- overrides: recordType(recordType(anyType())).optional(),
37192
+ overrides: lazyType(() => Overrides$outboundSchema).optional(),
37187
37193
  to: unionType([
37188
37194
  TopicPayloadDto$outboundSchema,
37189
37195
  SubscriberPayloadDto$outboundSchema,
@@ -37286,13 +37292,11 @@ var init_channelctatypeenum = __esm(() => {
37286
37292
  })(ChannelCTATypeEnum$ ||= {});
37287
37293
  });
37288
37294
 
37289
- // src/models/components/channelsettingsdto.ts
37290
- var ProviderId, ProviderId$inboundSchema, ProviderId$outboundSchema, ProviderId$, ChannelSettingsDto$inboundSchema, ChannelSettingsDto$outboundSchema, ChannelSettingsDto$;
37291
- var init_channelsettingsdto = __esm(() => {
37295
+ // src/models/components/chatorpushproviderenum.ts
37296
+ var ChatOrPushProviderEnum, ChatOrPushProviderEnum$inboundSchema, ChatOrPushProviderEnum$outboundSchema, ChatOrPushProviderEnum$;
37297
+ var init_chatorpushproviderenum = __esm(() => {
37292
37298
  init_lib();
37293
- init_primitives();
37294
- init_channelcredentials();
37295
- ProviderId = {
37299
+ ChatOrPushProviderEnum = {
37296
37300
  Slack: "slack",
37297
37301
  Discord: "discord",
37298
37302
  Msteams: "msteams",
@@ -37311,14 +37315,23 @@ var init_channelsettingsdto = __esm(() => {
37311
37315
  PushWebhook: "push-webhook",
37312
37316
  PusherBeams: "pusher-beams"
37313
37317
  };
37314
- ProviderId$inboundSchema = nativeEnumType(ProviderId);
37315
- ProviderId$outboundSchema = ProviderId$inboundSchema;
37316
- ((ProviderId$) => {
37317
- ProviderId$.inboundSchema = ProviderId$inboundSchema;
37318
- ProviderId$.outboundSchema = ProviderId$outboundSchema;
37319
- })(ProviderId$ ||= {});
37318
+ ChatOrPushProviderEnum$inboundSchema = nativeEnumType(ChatOrPushProviderEnum);
37319
+ ChatOrPushProviderEnum$outboundSchema = ChatOrPushProviderEnum$inboundSchema;
37320
+ ((ChatOrPushProviderEnum$) => {
37321
+ ChatOrPushProviderEnum$.inboundSchema = ChatOrPushProviderEnum$inboundSchema;
37322
+ ChatOrPushProviderEnum$.outboundSchema = ChatOrPushProviderEnum$outboundSchema;
37323
+ })(ChatOrPushProviderEnum$ ||= {});
37324
+ });
37325
+
37326
+ // src/models/components/channelsettingsdto.ts
37327
+ var ChannelSettingsDto$inboundSchema, ChannelSettingsDto$outboundSchema, ChannelSettingsDto$;
37328
+ var init_channelsettingsdto = __esm(() => {
37329
+ init_lib();
37330
+ init_primitives();
37331
+ init_channelcredentials();
37332
+ init_chatorpushproviderenum();
37320
37333
  ChannelSettingsDto$inboundSchema = objectType({
37321
- providerId: ProviderId$inboundSchema,
37334
+ providerId: ChatOrPushProviderEnum$inboundSchema,
37322
37335
  integrationIdentifier: stringType().optional(),
37323
37336
  credentials: ChannelCredentials$inboundSchema,
37324
37337
  _integrationId: stringType()
@@ -37328,7 +37341,7 @@ var init_channelsettingsdto = __esm(() => {
37328
37341
  });
37329
37342
  });
37330
37343
  ChannelSettingsDto$outboundSchema = objectType({
37331
- providerId: ProviderId$outboundSchema,
37344
+ providerId: ChatOrPushProviderEnum$outboundSchema,
37332
37345
  integrationIdentifier: stringType().optional(),
37333
37346
  credentials: ChannelCredentials$outboundSchema,
37334
37347
  integrationId: stringType()
@@ -37362,6 +37375,66 @@ var init_channeltypeenum = __esm(() => {
37362
37375
  })(ChannelTypeEnum$ ||= {});
37363
37376
  });
37364
37377
 
37378
+ // src/models/components/constraintvalidation.ts
37379
+ var Five$inboundSchema2, Five$outboundSchema2, Five$2, Four$inboundSchema2, Four$outboundSchema2, Four$2, Value$inboundSchema, Value$outboundSchema, Value$, ConstraintValidation$inboundSchema, ConstraintValidation$outboundSchema, ConstraintValidation$;
37380
+ var init_constraintvalidation = __esm(() => {
37381
+ init_lib();
37382
+ Five$inboundSchema2 = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
37383
+ Five$outboundSchema2 = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
37384
+ ((Five$) => {
37385
+ Five$.inboundSchema = Five$inboundSchema2;
37386
+ Five$.outboundSchema = Five$outboundSchema2;
37387
+ })(Five$2 ||= {});
37388
+ Four$inboundSchema2 = objectType({});
37389
+ Four$outboundSchema2 = objectType({});
37390
+ ((Four$) => {
37391
+ Four$.inboundSchema = Four$inboundSchema2;
37392
+ Four$.outboundSchema = Four$outboundSchema2;
37393
+ })(Four$2 ||= {});
37394
+ Value$inboundSchema = unionType([
37395
+ lazyType(() => Four$inboundSchema2),
37396
+ stringType(),
37397
+ numberType(),
37398
+ booleanType(),
37399
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
37400
+ ]);
37401
+ Value$outboundSchema = unionType([
37402
+ lazyType(() => Four$outboundSchema2),
37403
+ stringType(),
37404
+ numberType(),
37405
+ booleanType(),
37406
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
37407
+ ]);
37408
+ ((Value$) => {
37409
+ Value$.inboundSchema = Value$inboundSchema;
37410
+ Value$.outboundSchema = Value$outboundSchema;
37411
+ })(Value$ ||= {});
37412
+ ConstraintValidation$inboundSchema = objectType({
37413
+ messages: arrayType(stringType()),
37414
+ value: nullableType(unionType([
37415
+ lazyType(() => Four$inboundSchema2),
37416
+ stringType(),
37417
+ numberType(),
37418
+ booleanType(),
37419
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
37420
+ ])).optional()
37421
+ });
37422
+ ConstraintValidation$outboundSchema = objectType({
37423
+ messages: arrayType(stringType()),
37424
+ value: nullableType(unionType([
37425
+ lazyType(() => Four$outboundSchema2),
37426
+ stringType(),
37427
+ numberType(),
37428
+ booleanType(),
37429
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
37430
+ ])).optional()
37431
+ });
37432
+ ((ConstraintValidation$) => {
37433
+ ConstraintValidation$.inboundSchema = ConstraintValidation$inboundSchema;
37434
+ ConstraintValidation$.outboundSchema = ConstraintValidation$outboundSchema;
37435
+ })(ConstraintValidation$ ||= {});
37436
+ });
37437
+
37365
37438
  // src/models/components/credentialsdto.ts
37366
37439
  var TlsOptions$inboundSchema, TlsOptions$outboundSchema, TlsOptions$, CredentialsDto$inboundSchema, CredentialsDto$outboundSchema, CredentialsDto$;
37367
37440
  var init_credentialsdto = __esm(() => {
@@ -37665,10 +37738,10 @@ var init_deletemessageresponsedto = __esm(() => {
37665
37738
  });
37666
37739
 
37667
37740
  // src/models/components/digestregularmetadata.ts
37668
- var DigestRegularMetadataUnit, DigestRegularMetadataType, BackoffUnit, DigestRegularMetadataUnit$inboundSchema, DigestRegularMetadataUnit$outboundSchema, DigestRegularMetadataUnit$, DigestRegularMetadataType$inboundSchema, DigestRegularMetadataType$outboundSchema, DigestRegularMetadataType$, BackoffUnit$inboundSchema, BackoffUnit$outboundSchema, BackoffUnit$, DigestRegularMetadata$inboundSchema, DigestRegularMetadata$outboundSchema, DigestRegularMetadata$;
37741
+ var Unit, Type, BackoffUnit, Unit$inboundSchema, Unit$outboundSchema, Unit$, Type$inboundSchema, Type$outboundSchema, Type$, BackoffUnit$inboundSchema, BackoffUnit$outboundSchema, BackoffUnit$, DigestRegularMetadata$inboundSchema, DigestRegularMetadata$outboundSchema, DigestRegularMetadata$;
37669
37742
  var init_digestregularmetadata = __esm(() => {
37670
37743
  init_lib();
37671
- DigestRegularMetadataUnit = {
37744
+ Unit = {
37672
37745
  Seconds: "seconds",
37673
37746
  Minutes: "minutes",
37674
37747
  Hours: "hours",
@@ -37676,7 +37749,7 @@ var init_digestregularmetadata = __esm(() => {
37676
37749
  Weeks: "weeks",
37677
37750
  Months: "months"
37678
37751
  };
37679
- DigestRegularMetadataType = {
37752
+ Type = {
37680
37753
  Regular: "regular",
37681
37754
  Backoff: "backoff"
37682
37755
  };
@@ -37688,18 +37761,18 @@ var init_digestregularmetadata = __esm(() => {
37688
37761
  Weeks: "weeks",
37689
37762
  Months: "months"
37690
37763
  };
37691
- DigestRegularMetadataUnit$inboundSchema = nativeEnumType(DigestRegularMetadataUnit);
37692
- DigestRegularMetadataUnit$outboundSchema = DigestRegularMetadataUnit$inboundSchema;
37693
- ((DigestRegularMetadataUnit$) => {
37694
- DigestRegularMetadataUnit$.inboundSchema = DigestRegularMetadataUnit$inboundSchema;
37695
- DigestRegularMetadataUnit$.outboundSchema = DigestRegularMetadataUnit$outboundSchema;
37696
- })(DigestRegularMetadataUnit$ ||= {});
37697
- DigestRegularMetadataType$inboundSchema = nativeEnumType(DigestRegularMetadataType);
37698
- DigestRegularMetadataType$outboundSchema = DigestRegularMetadataType$inboundSchema;
37699
- ((DigestRegularMetadataType$) => {
37700
- DigestRegularMetadataType$.inboundSchema = DigestRegularMetadataType$inboundSchema;
37701
- DigestRegularMetadataType$.outboundSchema = DigestRegularMetadataType$outboundSchema;
37702
- })(DigestRegularMetadataType$ ||= {});
37764
+ Unit$inboundSchema = nativeEnumType(Unit);
37765
+ Unit$outboundSchema = Unit$inboundSchema;
37766
+ ((Unit$) => {
37767
+ Unit$.inboundSchema = Unit$inboundSchema;
37768
+ Unit$.outboundSchema = Unit$outboundSchema;
37769
+ })(Unit$ ||= {});
37770
+ Type$inboundSchema = nativeEnumType(Type);
37771
+ Type$outboundSchema = Type$inboundSchema;
37772
+ ((Type$) => {
37773
+ Type$.inboundSchema = Type$inboundSchema;
37774
+ Type$.outboundSchema = Type$outboundSchema;
37775
+ })(Type$ ||= {});
37703
37776
  BackoffUnit$inboundSchema = nativeEnumType(BackoffUnit);
37704
37777
  BackoffUnit$outboundSchema = BackoffUnit$inboundSchema;
37705
37778
  ((BackoffUnit$) => {
@@ -37708,9 +37781,9 @@ var init_digestregularmetadata = __esm(() => {
37708
37781
  })(BackoffUnit$ ||= {});
37709
37782
  DigestRegularMetadata$inboundSchema = objectType({
37710
37783
  amount: numberType().optional(),
37711
- unit: DigestRegularMetadataUnit$inboundSchema.optional(),
37784
+ unit: Unit$inboundSchema.optional(),
37712
37785
  digestKey: stringType().optional(),
37713
- type: DigestRegularMetadataType$inboundSchema,
37786
+ type: Type$inboundSchema,
37714
37787
  backoff: booleanType().optional(),
37715
37788
  backoffAmount: numberType().optional(),
37716
37789
  backoffUnit: BackoffUnit$inboundSchema.optional(),
@@ -37718,9 +37791,9 @@ var init_digestregularmetadata = __esm(() => {
37718
37791
  });
37719
37792
  DigestRegularMetadata$outboundSchema = objectType({
37720
37793
  amount: numberType().optional(),
37721
- unit: DigestRegularMetadataUnit$outboundSchema.optional(),
37794
+ unit: Unit$outboundSchema.optional(),
37722
37795
  digestKey: stringType().optional(),
37723
- type: DigestRegularMetadataType$outboundSchema,
37796
+ type: Type$outboundSchema,
37724
37797
  backoff: booleanType().optional(),
37725
37798
  backoffAmount: numberType().optional(),
37726
37799
  backoffUnit: BackoffUnit$outboundSchema.optional(),
@@ -37733,10 +37806,10 @@ var init_digestregularmetadata = __esm(() => {
37733
37806
  });
37734
37807
 
37735
37808
  // src/models/components/timedconfig.ts
37736
- var TimedConfigWeekDays, Ordinal, OrdinalValue, MonthlyType, TimedConfigWeekDays$inboundSchema, TimedConfigWeekDays$outboundSchema, TimedConfigWeekDays$, Ordinal$inboundSchema, Ordinal$outboundSchema, Ordinal$, OrdinalValue$inboundSchema, OrdinalValue$outboundSchema, OrdinalValue$, MonthlyType$inboundSchema, MonthlyType$outboundSchema, MonthlyType$, TimedConfig$inboundSchema, TimedConfig$outboundSchema, TimedConfig$;
37809
+ var WeekDays, Ordinal, OrdinalValue, MonthlyType, WeekDays$inboundSchema, WeekDays$outboundSchema, WeekDays$, Ordinal$inboundSchema, Ordinal$outboundSchema, Ordinal$, OrdinalValue$inboundSchema, OrdinalValue$outboundSchema, OrdinalValue$, MonthlyType$inboundSchema, MonthlyType$outboundSchema, MonthlyType$, TimedConfig$inboundSchema, TimedConfig$outboundSchema, TimedConfig$;
37737
37810
  var init_timedconfig = __esm(() => {
37738
37811
  init_lib();
37739
- TimedConfigWeekDays = {
37812
+ WeekDays = {
37740
37813
  Monday: "monday",
37741
37814
  Tuesday: "tuesday",
37742
37815
  Wednesday: "wednesday",
@@ -37769,12 +37842,12 @@ var init_timedconfig = __esm(() => {
37769
37842
  Each: "each",
37770
37843
  On: "on"
37771
37844
  };
37772
- TimedConfigWeekDays$inboundSchema = nativeEnumType(TimedConfigWeekDays);
37773
- TimedConfigWeekDays$outboundSchema = TimedConfigWeekDays$inboundSchema;
37774
- ((TimedConfigWeekDays$) => {
37775
- TimedConfigWeekDays$.inboundSchema = TimedConfigWeekDays$inboundSchema;
37776
- TimedConfigWeekDays$.outboundSchema = TimedConfigWeekDays$outboundSchema;
37777
- })(TimedConfigWeekDays$ ||= {});
37845
+ WeekDays$inboundSchema = nativeEnumType(WeekDays);
37846
+ WeekDays$outboundSchema = WeekDays$inboundSchema;
37847
+ ((WeekDays$) => {
37848
+ WeekDays$.inboundSchema = WeekDays$inboundSchema;
37849
+ WeekDays$.outboundSchema = WeekDays$outboundSchema;
37850
+ })(WeekDays$ ||= {});
37778
37851
  Ordinal$inboundSchema = nativeEnumType(Ordinal);
37779
37852
  Ordinal$outboundSchema = Ordinal$inboundSchema;
37780
37853
  ((Ordinal$) => {
@@ -37795,7 +37868,7 @@ var init_timedconfig = __esm(() => {
37795
37868
  })(MonthlyType$ ||= {});
37796
37869
  TimedConfig$inboundSchema = objectType({
37797
37870
  atTime: stringType().optional(),
37798
- weekDays: arrayType(TimedConfigWeekDays$inboundSchema).optional(),
37871
+ weekDays: arrayType(WeekDays$inboundSchema).optional(),
37799
37872
  monthDays: arrayType(stringType()).optional(),
37800
37873
  ordinal: Ordinal$inboundSchema.optional(),
37801
37874
  ordinalValue: OrdinalValue$inboundSchema.optional(),
@@ -37803,7 +37876,7 @@ var init_timedconfig = __esm(() => {
37803
37876
  });
37804
37877
  TimedConfig$outboundSchema = objectType({
37805
37878
  atTime: stringType().optional(),
37806
- weekDays: arrayType(TimedConfigWeekDays$outboundSchema).optional(),
37879
+ weekDays: arrayType(WeekDays$outboundSchema).optional(),
37807
37880
  monthDays: arrayType(stringType()).optional(),
37808
37881
  ordinal: Ordinal$outboundSchema.optional(),
37809
37882
  ordinalValue: OrdinalValue$outboundSchema.optional(),
@@ -37938,22 +38011,22 @@ var init_emailblock = __esm(() => {
37938
38011
  });
37939
38012
 
37940
38013
  // src/models/components/messageactionresult.ts
37941
- var MessageActionResultPayload$inboundSchema, MessageActionResultPayload$outboundSchema, MessageActionResultPayload$, MessageActionResult$inboundSchema, MessageActionResult$outboundSchema, MessageActionResult$;
38014
+ var Payload$inboundSchema, Payload$outboundSchema, Payload$, MessageActionResult$inboundSchema, MessageActionResult$outboundSchema, MessageActionResult$;
37942
38015
  var init_messageactionresult = __esm(() => {
37943
38016
  init_lib();
37944
38017
  init_buttontypeenum();
37945
- MessageActionResultPayload$inboundSchema = objectType({});
37946
- MessageActionResultPayload$outboundSchema = objectType({});
37947
- ((MessageActionResultPayload$) => {
37948
- MessageActionResultPayload$.inboundSchema = MessageActionResultPayload$inboundSchema;
37949
- MessageActionResultPayload$.outboundSchema = MessageActionResultPayload$outboundSchema;
37950
- })(MessageActionResultPayload$ ||= {});
38018
+ Payload$inboundSchema = objectType({});
38019
+ Payload$outboundSchema = objectType({});
38020
+ ((Payload$) => {
38021
+ Payload$.inboundSchema = Payload$inboundSchema;
38022
+ Payload$.outboundSchema = Payload$outboundSchema;
38023
+ })(Payload$ ||= {});
37951
38024
  MessageActionResult$inboundSchema = objectType({
37952
- payload: lazyType(() => MessageActionResultPayload$inboundSchema).optional(),
38025
+ payload: lazyType(() => Payload$inboundSchema).optional(),
37953
38026
  type: ButtonTypeEnum$inboundSchema.optional()
37954
38027
  });
37955
38028
  MessageActionResult$outboundSchema = objectType({
37956
- payload: lazyType(() => MessageActionResultPayload$outboundSchema).optional(),
38029
+ payload: lazyType(() => Payload$outboundSchema).optional(),
37957
38030
  type: ButtonTypeEnum$outboundSchema.optional()
37958
38031
  });
37959
38032
  ((MessageActionResult$) => {
@@ -38047,12 +38120,12 @@ var init_messagecta = __esm(() => {
38047
38120
  init_messagectadata();
38048
38121
  MessageCTA$inboundSchema = objectType({
38049
38122
  type: ChannelCTATypeEnum$inboundSchema.optional(),
38050
- data: MessageCTAData$inboundSchema,
38123
+ data: MessageCTAData$inboundSchema.optional(),
38051
38124
  action: MessageAction$inboundSchema.optional()
38052
38125
  });
38053
38126
  MessageCTA$outboundSchema = objectType({
38054
38127
  type: ChannelCTATypeEnum$outboundSchema.optional(),
38055
- data: MessageCTAData$outboundSchema,
38128
+ data: MessageCTAData$outboundSchema.optional(),
38056
38129
  action: MessageAction$outboundSchema.optional()
38057
38130
  });
38058
38131
  ((MessageCTA$) => {
@@ -38136,7 +38209,6 @@ var init_notificationfeeditemdto = __esm(() => {
38136
38209
  channel: ChannelTypeEnum$inboundSchema,
38137
38210
  read: booleanType(),
38138
38211
  seen: booleanType(),
38139
- deleted: booleanType(),
38140
38212
  deviceTokens: nullableType(arrayType(stringType())).optional(),
38141
38213
  cta: MessageCTA$inboundSchema,
38142
38214
  status: NotificationFeedItemDtoStatus$inboundSchema,
@@ -38177,7 +38249,6 @@ var init_notificationfeeditemdto = __esm(() => {
38177
38249
  channel: ChannelTypeEnum$outboundSchema,
38178
38250
  read: booleanType(),
38179
38251
  seen: booleanType(),
38180
- deleted: booleanType(),
38181
38252
  deviceTokens: nullableType(arrayType(stringType())).optional(),
38182
38253
  cta: MessageCTA$outboundSchema,
38183
38254
  status: NotificationFeedItemDtoStatus$outboundSchema,
@@ -38289,12 +38360,12 @@ var init_filtertopicsresponsedto = __esm(() => {
38289
38360
  })(FilterTopicsResponseDto$ ||= {});
38290
38361
  });
38291
38362
 
38292
- // src/models/components/preferencechannels.ts
38293
- var PreferenceChannels$inboundSchema, PreferenceChannels$outboundSchema, PreferenceChannels$;
38294
- var init_preferencechannels = __esm(() => {
38363
+ // src/models/components/subscriberpreferencechannels.ts
38364
+ var SubscriberPreferenceChannels$inboundSchema, SubscriberPreferenceChannels$outboundSchema, SubscriberPreferenceChannels$;
38365
+ var init_subscriberpreferencechannels = __esm(() => {
38295
38366
  init_lib();
38296
38367
  init_primitives();
38297
- PreferenceChannels$inboundSchema = objectType({
38368
+ SubscriberPreferenceChannels$inboundSchema = objectType({
38298
38369
  email: booleanType().optional(),
38299
38370
  sms: booleanType().optional(),
38300
38371
  in_app: booleanType().optional(),
@@ -38305,7 +38376,7 @@ var init_preferencechannels = __esm(() => {
38305
38376
  in_app: "inApp"
38306
38377
  });
38307
38378
  });
38308
- PreferenceChannels$outboundSchema = objectType({
38379
+ SubscriberPreferenceChannels$outboundSchema = objectType({
38309
38380
  email: booleanType().optional(),
38310
38381
  sms: booleanType().optional(),
38311
38382
  inApp: booleanType().optional(),
@@ -38316,133 +38387,128 @@ var init_preferencechannels = __esm(() => {
38316
38387
  inApp: "in_app"
38317
38388
  });
38318
38389
  });
38319
- ((PreferenceChannels$) => {
38320
- PreferenceChannels$.inboundSchema = PreferenceChannels$inboundSchema;
38321
- PreferenceChannels$.outboundSchema = PreferenceChannels$outboundSchema;
38322
- })(PreferenceChannels$ ||= {});
38390
+ ((SubscriberPreferenceChannels$) => {
38391
+ SubscriberPreferenceChannels$.inboundSchema = SubscriberPreferenceChannels$inboundSchema;
38392
+ SubscriberPreferenceChannels$.outboundSchema = SubscriberPreferenceChannels$outboundSchema;
38393
+ })(SubscriberPreferenceChannels$ ||= {});
38323
38394
  });
38324
38395
 
38325
- // src/models/components/globalpreferencedto.ts
38326
- var GlobalPreferenceDto$inboundSchema, GlobalPreferenceDto$outboundSchema, GlobalPreferenceDto$;
38327
- var init_globalpreferencedto = __esm(() => {
38396
+ // src/models/components/subscriberglobalpreferencedto.ts
38397
+ var SubscriberGlobalPreferenceDto$inboundSchema, SubscriberGlobalPreferenceDto$outboundSchema, SubscriberGlobalPreferenceDto$;
38398
+ var init_subscriberglobalpreferencedto = __esm(() => {
38328
38399
  init_lib();
38329
- init_preferencechannels();
38330
- GlobalPreferenceDto$inboundSchema = objectType({
38400
+ init_subscriberpreferencechannels();
38401
+ SubscriberGlobalPreferenceDto$inboundSchema = objectType({
38331
38402
  enabled: booleanType(),
38332
- channels: PreferenceChannels$inboundSchema
38403
+ channels: SubscriberPreferenceChannels$inboundSchema
38333
38404
  });
38334
- GlobalPreferenceDto$outboundSchema = objectType({
38405
+ SubscriberGlobalPreferenceDto$outboundSchema = objectType({
38335
38406
  enabled: booleanType(),
38336
- channels: PreferenceChannels$outboundSchema
38407
+ channels: SubscriberPreferenceChannels$outboundSchema
38337
38408
  });
38338
- ((GlobalPreferenceDto$) => {
38339
- GlobalPreferenceDto$.inboundSchema = GlobalPreferenceDto$inboundSchema;
38340
- GlobalPreferenceDto$.outboundSchema = GlobalPreferenceDto$outboundSchema;
38341
- })(GlobalPreferenceDto$ ||= {});
38409
+ ((SubscriberGlobalPreferenceDto$) => {
38410
+ SubscriberGlobalPreferenceDto$.inboundSchema = SubscriberGlobalPreferenceDto$inboundSchema;
38411
+ SubscriberGlobalPreferenceDto$.outboundSchema = SubscriberGlobalPreferenceDto$outboundSchema;
38412
+ })(SubscriberGlobalPreferenceDto$ ||= {});
38342
38413
  });
38343
38414
 
38344
- // src/models/components/overrides.ts
38345
- var Channel, Source, Channel$inboundSchema, Channel$outboundSchema, Channel$, Source$inboundSchema, Source$outboundSchema, Source$, Overrides$inboundSchema, Overrides$outboundSchema, Overrides$;
38346
- var init_overrides = __esm(() => {
38415
+ // src/models/components/preferenceoverridesourceenum.ts
38416
+ var PreferenceOverrideSourceEnum, PreferenceOverrideSourceEnum$inboundSchema, PreferenceOverrideSourceEnum$outboundSchema, PreferenceOverrideSourceEnum$;
38417
+ var init_preferenceoverridesourceenum = __esm(() => {
38347
38418
  init_lib();
38348
- Channel = {
38349
- InApp: "in_app",
38350
- Email: "email",
38351
- Sms: "sms",
38352
- Chat: "chat",
38353
- Push: "push"
38354
- };
38355
- Source = {
38419
+ PreferenceOverrideSourceEnum = {
38356
38420
  Subscriber: "subscriber",
38357
38421
  Template: "template",
38358
38422
  WorkflowOverride: "workflowOverride"
38359
38423
  };
38360
- Channel$inboundSchema = nativeEnumType(Channel);
38361
- Channel$outboundSchema = Channel$inboundSchema;
38362
- ((Channel$) => {
38363
- Channel$.inboundSchema = Channel$inboundSchema;
38364
- Channel$.outboundSchema = Channel$outboundSchema;
38365
- })(Channel$ ||= {});
38366
- Source$inboundSchema = nativeEnumType(Source);
38367
- Source$outboundSchema = Source$inboundSchema;
38368
- ((Source$) => {
38369
- Source$.inboundSchema = Source$inboundSchema;
38370
- Source$.outboundSchema = Source$outboundSchema;
38371
- })(Source$ ||= {});
38372
- Overrides$inboundSchema = objectType({
38373
- channel: Channel$inboundSchema,
38374
- source: Source$inboundSchema
38424
+ PreferenceOverrideSourceEnum$inboundSchema = nativeEnumType(PreferenceOverrideSourceEnum);
38425
+ PreferenceOverrideSourceEnum$outboundSchema = PreferenceOverrideSourceEnum$inboundSchema;
38426
+ ((PreferenceOverrideSourceEnum$) => {
38427
+ PreferenceOverrideSourceEnum$.inboundSchema = PreferenceOverrideSourceEnum$inboundSchema;
38428
+ PreferenceOverrideSourceEnum$.outboundSchema = PreferenceOverrideSourceEnum$outboundSchema;
38429
+ })(PreferenceOverrideSourceEnum$ ||= {});
38430
+ });
38431
+
38432
+ // src/models/components/subscriberpreferenceoverridedto.ts
38433
+ var SubscriberPreferenceOverrideDto$inboundSchema, SubscriberPreferenceOverrideDto$outboundSchema, SubscriberPreferenceOverrideDto$;
38434
+ var init_subscriberpreferenceoverridedto = __esm(() => {
38435
+ init_lib();
38436
+ init_channeltypeenum();
38437
+ init_preferenceoverridesourceenum();
38438
+ SubscriberPreferenceOverrideDto$inboundSchema = objectType({
38439
+ channel: ChannelTypeEnum$inboundSchema,
38440
+ source: PreferenceOverrideSourceEnum$inboundSchema
38375
38441
  });
38376
- Overrides$outboundSchema = objectType({
38377
- channel: Channel$outboundSchema,
38378
- source: Source$outboundSchema
38442
+ SubscriberPreferenceOverrideDto$outboundSchema = objectType({
38443
+ channel: ChannelTypeEnum$outboundSchema,
38444
+ source: PreferenceOverrideSourceEnum$outboundSchema
38379
38445
  });
38380
- ((Overrides$) => {
38381
- Overrides$.inboundSchema = Overrides$inboundSchema;
38382
- Overrides$.outboundSchema = Overrides$outboundSchema;
38383
- })(Overrides$ ||= {});
38446
+ ((SubscriberPreferenceOverrideDto$) => {
38447
+ SubscriberPreferenceOverrideDto$.inboundSchema = SubscriberPreferenceOverrideDto$inboundSchema;
38448
+ SubscriberPreferenceOverrideDto$.outboundSchema = SubscriberPreferenceOverrideDto$outboundSchema;
38449
+ })(SubscriberPreferenceOverrideDto$ ||= {});
38384
38450
  });
38385
38451
 
38386
- // src/models/components/workflowinfodto.ts
38387
- var WorkflowInfoDto$inboundSchema, WorkflowInfoDto$outboundSchema, WorkflowInfoDto$;
38388
- var init_workflowinfodto = __esm(() => {
38452
+ // src/models/components/subscriberpreferencesworkflowinfodto.ts
38453
+ var SubscriberPreferencesWorkflowInfoDto$inboundSchema, SubscriberPreferencesWorkflowInfoDto$outboundSchema, SubscriberPreferencesWorkflowInfoDto$;
38454
+ var init_subscriberpreferencesworkflowinfodto = __esm(() => {
38389
38455
  init_lib();
38390
- WorkflowInfoDto$inboundSchema = objectType({
38456
+ SubscriberPreferencesWorkflowInfoDto$inboundSchema = objectType({
38391
38457
  slug: stringType(),
38392
38458
  identifier: stringType(),
38393
38459
  name: stringType(),
38394
38460
  updatedAt: stringType().optional()
38395
38461
  });
38396
- WorkflowInfoDto$outboundSchema = objectType({
38462
+ SubscriberPreferencesWorkflowInfoDto$outboundSchema = objectType({
38397
38463
  slug: stringType(),
38398
38464
  identifier: stringType(),
38399
38465
  name: stringType(),
38400
38466
  updatedAt: stringType().optional()
38401
38467
  });
38402
- ((WorkflowInfoDto$) => {
38403
- WorkflowInfoDto$.inboundSchema = WorkflowInfoDto$inboundSchema;
38404
- WorkflowInfoDto$.outboundSchema = WorkflowInfoDto$outboundSchema;
38405
- })(WorkflowInfoDto$ ||= {});
38468
+ ((SubscriberPreferencesWorkflowInfoDto$) => {
38469
+ SubscriberPreferencesWorkflowInfoDto$.inboundSchema = SubscriberPreferencesWorkflowInfoDto$inboundSchema;
38470
+ SubscriberPreferencesWorkflowInfoDto$.outboundSchema = SubscriberPreferencesWorkflowInfoDto$outboundSchema;
38471
+ })(SubscriberPreferencesWorkflowInfoDto$ ||= {});
38406
38472
  });
38407
38473
 
38408
- // src/models/components/workflowpreferencedto.ts
38409
- var WorkflowPreferenceDto$inboundSchema, WorkflowPreferenceDto$outboundSchema, WorkflowPreferenceDto$;
38410
- var init_workflowpreferencedto = __esm(() => {
38474
+ // src/models/components/subscriberworkflowpreferencedto.ts
38475
+ var SubscriberWorkflowPreferenceDto$inboundSchema, SubscriberWorkflowPreferenceDto$outboundSchema, SubscriberWorkflowPreferenceDto$;
38476
+ var init_subscriberworkflowpreferencedto = __esm(() => {
38411
38477
  init_lib();
38412
- init_overrides();
38413
- init_preferencechannels();
38414
- init_workflowinfodto();
38415
- WorkflowPreferenceDto$inboundSchema = objectType({
38478
+ init_subscriberpreferencechannels();
38479
+ init_subscriberpreferenceoverridedto();
38480
+ init_subscriberpreferencesworkflowinfodto();
38481
+ SubscriberWorkflowPreferenceDto$inboundSchema = objectType({
38416
38482
  enabled: booleanType(),
38417
- channels: PreferenceChannels$inboundSchema,
38418
- overrides: arrayType(Overrides$inboundSchema),
38419
- workflow: WorkflowInfoDto$inboundSchema
38483
+ channels: SubscriberPreferenceChannels$inboundSchema,
38484
+ overrides: arrayType(SubscriberPreferenceOverrideDto$inboundSchema),
38485
+ workflow: SubscriberPreferencesWorkflowInfoDto$inboundSchema
38420
38486
  });
38421
- WorkflowPreferenceDto$outboundSchema = objectType({
38487
+ SubscriberWorkflowPreferenceDto$outboundSchema = objectType({
38422
38488
  enabled: booleanType(),
38423
- channels: PreferenceChannels$outboundSchema,
38424
- overrides: arrayType(Overrides$outboundSchema),
38425
- workflow: WorkflowInfoDto$outboundSchema
38489
+ channels: SubscriberPreferenceChannels$outboundSchema,
38490
+ overrides: arrayType(SubscriberPreferenceOverrideDto$outboundSchema),
38491
+ workflow: SubscriberPreferencesWorkflowInfoDto$outboundSchema
38426
38492
  });
38427
- ((WorkflowPreferenceDto$) => {
38428
- WorkflowPreferenceDto$.inboundSchema = WorkflowPreferenceDto$inboundSchema;
38429
- WorkflowPreferenceDto$.outboundSchema = WorkflowPreferenceDto$outboundSchema;
38430
- })(WorkflowPreferenceDto$ ||= {});
38493
+ ((SubscriberWorkflowPreferenceDto$) => {
38494
+ SubscriberWorkflowPreferenceDto$.inboundSchema = SubscriberWorkflowPreferenceDto$inboundSchema;
38495
+ SubscriberWorkflowPreferenceDto$.outboundSchema = SubscriberWorkflowPreferenceDto$outboundSchema;
38496
+ })(SubscriberWorkflowPreferenceDto$ ||= {});
38431
38497
  });
38432
38498
 
38433
38499
  // src/models/components/getsubscriberpreferencesdto.ts
38434
38500
  var GetSubscriberPreferencesDto$inboundSchema, GetSubscriberPreferencesDto$outboundSchema, GetSubscriberPreferencesDto$;
38435
38501
  var init_getsubscriberpreferencesdto = __esm(() => {
38436
38502
  init_lib();
38437
- init_globalpreferencedto();
38438
- init_workflowpreferencedto();
38503
+ init_subscriberglobalpreferencedto();
38504
+ init_subscriberworkflowpreferencedto();
38439
38505
  GetSubscriberPreferencesDto$inboundSchema = objectType({
38440
- global: GlobalPreferenceDto$inboundSchema,
38441
- workflows: arrayType(WorkflowPreferenceDto$inboundSchema)
38506
+ global: SubscriberGlobalPreferenceDto$inboundSchema,
38507
+ workflows: arrayType(SubscriberWorkflowPreferenceDto$inboundSchema)
38442
38508
  });
38443
38509
  GetSubscriberPreferencesDto$outboundSchema = objectType({
38444
- global: GlobalPreferenceDto$outboundSchema,
38445
- workflows: arrayType(WorkflowPreferenceDto$outboundSchema)
38510
+ global: SubscriberGlobalPreferenceDto$outboundSchema,
38511
+ workflows: arrayType(SubscriberWorkflowPreferenceDto$outboundSchema)
38446
38512
  });
38447
38513
  ((GetSubscriberPreferencesDto$) => {
38448
38514
  GetSubscriberPreferencesDto$.inboundSchema = GetSubscriberPreferencesDto$inboundSchema;
@@ -38490,25 +38556,25 @@ var init_gettopicresponsedto = __esm(() => {
38490
38556
  });
38491
38557
 
38492
38558
  // src/models/components/integrationresponsedto.ts
38493
- var IntegrationResponseDtoChannel, IntegrationResponseDtoChannel$inboundSchema, IntegrationResponseDtoChannel$outboundSchema, IntegrationResponseDtoChannel$, IntegrationResponseDto$inboundSchema, IntegrationResponseDto$outboundSchema, IntegrationResponseDto$;
38559
+ var Channel, Channel$inboundSchema, Channel$outboundSchema, Channel$, IntegrationResponseDto$inboundSchema, IntegrationResponseDto$outboundSchema, IntegrationResponseDto$;
38494
38560
  var init_integrationresponsedto = __esm(() => {
38495
38561
  init_lib();
38496
38562
  init_primitives();
38497
38563
  init_credentialsdto();
38498
38564
  init_stepfilterdto();
38499
- IntegrationResponseDtoChannel = {
38565
+ Channel = {
38500
38566
  InApp: "in_app",
38501
38567
  Email: "email",
38502
38568
  Sms: "sms",
38503
38569
  Chat: "chat",
38504
38570
  Push: "push"
38505
38571
  };
38506
- IntegrationResponseDtoChannel$inboundSchema = nativeEnumType(IntegrationResponseDtoChannel);
38507
- IntegrationResponseDtoChannel$outboundSchema = IntegrationResponseDtoChannel$inboundSchema;
38508
- ((IntegrationResponseDtoChannel$) => {
38509
- IntegrationResponseDtoChannel$.inboundSchema = IntegrationResponseDtoChannel$inboundSchema;
38510
- IntegrationResponseDtoChannel$.outboundSchema = IntegrationResponseDtoChannel$outboundSchema;
38511
- })(IntegrationResponseDtoChannel$ ||= {});
38572
+ Channel$inboundSchema = nativeEnumType(Channel);
38573
+ Channel$outboundSchema = Channel$inboundSchema;
38574
+ ((Channel$) => {
38575
+ Channel$.inboundSchema = Channel$inboundSchema;
38576
+ Channel$.outboundSchema = Channel$outboundSchema;
38577
+ })(Channel$ ||= {});
38512
38578
  IntegrationResponseDto$inboundSchema = objectType({
38513
38579
  _id: stringType().optional(),
38514
38580
  _environmentId: stringType(),
@@ -38516,7 +38582,7 @@ var init_integrationresponsedto = __esm(() => {
38516
38582
  name: stringType(),
38517
38583
  identifier: stringType(),
38518
38584
  providerId: stringType(),
38519
- channel: IntegrationResponseDtoChannel$inboundSchema,
38585
+ channel: Channel$inboundSchema,
38520
38586
  credentials: CredentialsDto$inboundSchema,
38521
38587
  active: booleanType(),
38522
38588
  deleted: booleanType(),
@@ -38538,7 +38604,7 @@ var init_integrationresponsedto = __esm(() => {
38538
38604
  name: stringType(),
38539
38605
  identifier: stringType(),
38540
38606
  providerId: stringType(),
38541
- channel: IntegrationResponseDtoChannel$outboundSchema,
38607
+ channel: Channel$outboundSchema,
38542
38608
  credentials: CredentialsDto$outboundSchema,
38543
38609
  active: booleanType(),
38544
38610
  deleted: booleanType(),
@@ -38569,58 +38635,58 @@ var init_subscriberresponsedto = __esm(() => {
38569
38635
  _id: stringType().optional(),
38570
38636
  firstName: stringType().optional(),
38571
38637
  lastName: stringType().optional(),
38572
- email: nullableType(stringType()).optional(),
38638
+ email: stringType().optional(),
38573
38639
  phone: stringType().optional(),
38574
38640
  avatar: stringType().optional(),
38575
38641
  locale: stringType().optional(),
38576
- subscriberId: stringType(),
38577
38642
  channels: arrayType(ChannelSettingsDto$inboundSchema).optional(),
38578
38643
  topics: arrayType(stringType()).optional(),
38579
38644
  isOnline: booleanType().optional(),
38580
38645
  lastOnlineAt: stringType().optional(),
38646
+ __v: numberType().optional(),
38647
+ data: nullableType(recordType(anyType())).optional(),
38648
+ timezone: stringType().optional(),
38649
+ subscriberId: stringType(),
38581
38650
  _organizationId: stringType(),
38582
38651
  _environmentId: stringType(),
38583
38652
  deleted: booleanType(),
38584
38653
  createdAt: stringType(),
38585
- updatedAt: stringType(),
38586
- __v: numberType().optional(),
38587
- data: nullableType(recordType(anyType())).optional(),
38588
- timezone: stringType().optional()
38654
+ updatedAt: stringType()
38589
38655
  }).transform((v2) => {
38590
38656
  return remap(v2, {
38591
38657
  _id: "id",
38658
+ __v: "v",
38592
38659
  _organizationId: "organizationId",
38593
- _environmentId: "environmentId",
38594
- __v: "v"
38660
+ _environmentId: "environmentId"
38595
38661
  });
38596
38662
  });
38597
38663
  SubscriberResponseDto$outboundSchema = objectType({
38598
38664
  id: stringType().optional(),
38599
38665
  firstName: stringType().optional(),
38600
38666
  lastName: stringType().optional(),
38601
- email: nullableType(stringType()).optional(),
38667
+ email: stringType().optional(),
38602
38668
  phone: stringType().optional(),
38603
38669
  avatar: stringType().optional(),
38604
38670
  locale: stringType().optional(),
38605
- subscriberId: stringType(),
38606
38671
  channels: arrayType(ChannelSettingsDto$outboundSchema).optional(),
38607
38672
  topics: arrayType(stringType()).optional(),
38608
38673
  isOnline: booleanType().optional(),
38609
38674
  lastOnlineAt: stringType().optional(),
38675
+ v: numberType().optional(),
38676
+ data: nullableType(recordType(anyType())).optional(),
38677
+ timezone: stringType().optional(),
38678
+ subscriberId: stringType(),
38610
38679
  organizationId: stringType(),
38611
38680
  environmentId: stringType(),
38612
38681
  deleted: booleanType(),
38613
38682
  createdAt: stringType(),
38614
- updatedAt: stringType(),
38615
- v: numberType().optional(),
38616
- data: nullableType(recordType(anyType())).optional(),
38617
- timezone: stringType().optional()
38683
+ updatedAt: stringType()
38618
38684
  }).transform((v2) => {
38619
38685
  return remap(v2, {
38620
38686
  id: "_id",
38687
+ v: "__v",
38621
38688
  organizationId: "_organizationId",
38622
- environmentId: "_environmentId",
38623
- v: "__v"
38689
+ environmentId: "_environmentId"
38624
38690
  });
38625
38691
  });
38626
38692
  ((SubscriberResponseDto$) => {
@@ -38925,7 +38991,7 @@ var init_notificationstepdata = __esm(() => {
38925
38991
  });
38926
38992
 
38927
38993
  // src/models/components/notificationstepdto.ts
38928
- var NotificationStepDtoMetadata$inboundSchema, NotificationStepDtoMetadata$outboundSchema, NotificationStepDtoMetadata$, NotificationStepDto$inboundSchema, NotificationStepDto$outboundSchema, NotificationStepDto$;
38994
+ var Metadata$inboundSchema, Metadata$outboundSchema, Metadata$, NotificationStepDto$inboundSchema, NotificationStepDto$outboundSchema, NotificationStepDto$;
38929
38995
  var init_notificationstepdto = __esm(() => {
38930
38996
  init_lib();
38931
38997
  init_primitives();
@@ -38937,22 +39003,22 @@ var init_notificationstepdto = __esm(() => {
38937
39003
  init_notificationstepdata();
38938
39004
  init_replycallback();
38939
39005
  init_stepfilterdto();
38940
- NotificationStepDtoMetadata$inboundSchema = unionType([
39006
+ Metadata$inboundSchema = unionType([
38941
39007
  DelayScheduledMetadata$inboundSchema,
38942
39008
  DelayRegularMetadata$inboundSchema,
38943
39009
  DigestTimedMetadata$inboundSchema,
38944
39010
  DigestRegularMetadata$inboundSchema
38945
39011
  ]);
38946
- NotificationStepDtoMetadata$outboundSchema = unionType([
39012
+ Metadata$outboundSchema = unionType([
38947
39013
  DelayScheduledMetadata$outboundSchema,
38948
39014
  DelayRegularMetadata$outboundSchema,
38949
39015
  DigestTimedMetadata$outboundSchema,
38950
39016
  DigestRegularMetadata$outboundSchema
38951
39017
  ]);
38952
- ((NotificationStepDtoMetadata$) => {
38953
- NotificationStepDtoMetadata$.inboundSchema = NotificationStepDtoMetadata$inboundSchema;
38954
- NotificationStepDtoMetadata$.outboundSchema = NotificationStepDtoMetadata$outboundSchema;
38955
- })(NotificationStepDtoMetadata$ ||= {});
39018
+ ((Metadata$) => {
39019
+ Metadata$.inboundSchema = Metadata$inboundSchema;
39020
+ Metadata$.outboundSchema = Metadata$outboundSchema;
39021
+ })(Metadata$ ||= {});
38956
39022
  NotificationStepDto$inboundSchema = objectType({
38957
39023
  _id: stringType().optional(),
38958
39024
  uuid: stringType().optional(),
@@ -39049,7 +39115,7 @@ var init_workflowresponse = __esm(() => {
39049
39115
  init_notificationgroup();
39050
39116
  init_notificationstepdto();
39051
39117
  init_notificationtrigger();
39052
- init_preferencechannels();
39118
+ init_subscriberpreferencechannels();
39053
39119
  WorkflowResponseData$inboundSchema = objectType({});
39054
39120
  WorkflowResponseData$outboundSchema = objectType({});
39055
39121
  ((WorkflowResponseData$) => {
@@ -39068,7 +39134,7 @@ var init_workflowresponse = __esm(() => {
39068
39134
  description: stringType(),
39069
39135
  active: booleanType(),
39070
39136
  draft: booleanType(),
39071
- preferenceSettings: PreferenceChannels$inboundSchema,
39137
+ preferenceSettings: SubscriberPreferenceChannels$inboundSchema,
39072
39138
  critical: booleanType(),
39073
39139
  tags: arrayType(stringType()),
39074
39140
  steps: arrayType(NotificationStepDto$inboundSchema),
@@ -39100,7 +39166,7 @@ var init_workflowresponse = __esm(() => {
39100
39166
  description: stringType(),
39101
39167
  active: booleanType(),
39102
39168
  draft: booleanType(),
39103
- preferenceSettings: PreferenceChannels$outboundSchema,
39169
+ preferenceSettings: SubscriberPreferenceChannels$outboundSchema,
39104
39170
  critical: booleanType(),
39105
39171
  tags: arrayType(stringType()),
39106
39172
  steps: arrayType(NotificationStepDto$outboundSchema),
@@ -39143,8 +39209,8 @@ var init_messageresponsedto = __esm(() => {
39143
39209
  init_messagestatusenum();
39144
39210
  init_subscriberresponsedto();
39145
39211
  init_workflowresponse();
39146
- Content$inboundSchema = unionType([EmailBlock$inboundSchema, stringType()]);
39147
- Content$outboundSchema = unionType([EmailBlock$outboundSchema, stringType()]);
39212
+ Content$inboundSchema = unionType([arrayType(EmailBlock$inboundSchema), stringType()]);
39213
+ Content$outboundSchema = unionType([arrayType(EmailBlock$outboundSchema), stringType()]);
39148
39214
  ((Content$) => {
39149
39215
  Content$.inboundSchema = Content$inboundSchema;
39150
39216
  Content$.outboundSchema = Content$outboundSchema;
@@ -39173,14 +39239,16 @@ var init_messageresponsedto = __esm(() => {
39173
39239
  template: WorkflowResponse$inboundSchema.optional(),
39174
39240
  templateIdentifier: stringType().optional(),
39175
39241
  createdAt: stringType(),
39242
+ deliveredAt: arrayType(stringType()).optional(),
39176
39243
  lastSeenDate: stringType().optional(),
39177
39244
  lastReadDate: stringType().optional(),
39178
- content: unionType([EmailBlock$inboundSchema, stringType()]),
39245
+ content: unionType([arrayType(EmailBlock$inboundSchema), stringType()]),
39179
39246
  transactionId: stringType(),
39180
39247
  subject: stringType().optional(),
39181
39248
  channel: ChannelTypeEnum$inboundSchema,
39182
39249
  read: booleanType(),
39183
39250
  seen: booleanType(),
39251
+ snoozedUntil: stringType().optional(),
39184
39252
  email: stringType().optional(),
39185
39253
  phone: stringType().optional(),
39186
39254
  directWebhookUrl: stringType().optional(),
@@ -39218,14 +39286,16 @@ var init_messageresponsedto = __esm(() => {
39218
39286
  template: WorkflowResponse$outboundSchema.optional(),
39219
39287
  templateIdentifier: stringType().optional(),
39220
39288
  createdAt: stringType(),
39289
+ deliveredAt: arrayType(stringType()).optional(),
39221
39290
  lastSeenDate: stringType().optional(),
39222
39291
  lastReadDate: stringType().optional(),
39223
- content: unionType([EmailBlock$outboundSchema, stringType()]),
39292
+ content: unionType([arrayType(EmailBlock$outboundSchema), stringType()]),
39224
39293
  transactionId: stringType(),
39225
39294
  subject: stringType().optional(),
39226
39295
  channel: ChannelTypeEnum$outboundSchema,
39227
39296
  read: booleanType(),
39228
39297
  seen: booleanType(),
39298
+ snoozedUntil: stringType().optional(),
39229
39299
  email: stringType().optional(),
39230
39300
  phone: stringType().optional(),
39231
39301
  directWebhookUrl: stringType().optional(),
@@ -39257,6 +39327,31 @@ var init_messageresponsedto = __esm(() => {
39257
39327
  })(MessageResponseDto$ ||= {});
39258
39328
  });
39259
39329
 
39330
+ // src/models/components/messagesresponsedto.ts
39331
+ var MessagesResponseDto$inboundSchema, MessagesResponseDto$outboundSchema, MessagesResponseDto$;
39332
+ var init_messagesresponsedto = __esm(() => {
39333
+ init_lib();
39334
+ init_messageresponsedto();
39335
+ MessagesResponseDto$inboundSchema = objectType({
39336
+ totalCount: numberType().optional(),
39337
+ hasMore: booleanType(),
39338
+ data: arrayType(MessageResponseDto$inboundSchema),
39339
+ pageSize: numberType(),
39340
+ page: numberType()
39341
+ });
39342
+ MessagesResponseDto$outboundSchema = objectType({
39343
+ totalCount: numberType().optional(),
39344
+ hasMore: booleanType(),
39345
+ data: arrayType(MessageResponseDto$outboundSchema),
39346
+ pageSize: numberType(),
39347
+ page: numberType()
39348
+ });
39349
+ ((MessagesResponseDto$) => {
39350
+ MessagesResponseDto$.inboundSchema = MessagesResponseDto$inboundSchema;
39351
+ MessagesResponseDto$.outboundSchema = MessagesResponseDto$outboundSchema;
39352
+ })(MessagesResponseDto$ ||= {});
39353
+ });
39354
+
39260
39355
  // src/models/components/patchpreferencechannelsdto.ts
39261
39356
  var PatchPreferenceChannelsDto$inboundSchema, PatchPreferenceChannelsDto$outboundSchema, PatchPreferenceChannelsDto$;
39262
39357
  var init_patchpreferencechannelsdto = __esm(() => {
@@ -39532,10 +39627,37 @@ var init_triggereventresponsedto = __esm(() => {
39532
39627
  var TriggerEventToAllRequestDtoOverrides$inboundSchema, TriggerEventToAllRequestDtoOverrides$outboundSchema, TriggerEventToAllRequestDtoOverrides$, TriggerEventToAllRequestDtoActor$inboundSchema, TriggerEventToAllRequestDtoActor$outboundSchema, TriggerEventToAllRequestDtoActor$, TriggerEventToAllRequestDtoTenant$inboundSchema, TriggerEventToAllRequestDtoTenant$outboundSchema, TriggerEventToAllRequestDtoTenant$, TriggerEventToAllRequestDto$inboundSchema, TriggerEventToAllRequestDto$outboundSchema, TriggerEventToAllRequestDto$;
39533
39628
  var init_triggereventtoallrequestdto = __esm(() => {
39534
39629
  init_lib();
39630
+ init_primitives();
39631
+ init_schemas();
39632
+ init_stepsoverrides();
39535
39633
  init_subscriberpayloaddto();
39536
39634
  init_tenantpayloaddto();
39537
- TriggerEventToAllRequestDtoOverrides$inboundSchema = objectType({});
39538
- TriggerEventToAllRequestDtoOverrides$outboundSchema = objectType({});
39635
+ TriggerEventToAllRequestDtoOverrides$inboundSchema = collectExtraKeys(objectType({
39636
+ steps: recordType(StepsOverrides$inboundSchema).optional(),
39637
+ providers: recordType(recordType(anyType())).optional(),
39638
+ email: recordType(anyType()).optional(),
39639
+ push: recordType(anyType()).optional(),
39640
+ sms: recordType(anyType()).optional(),
39641
+ chat: recordType(anyType()).optional(),
39642
+ layoutIdentifier: stringType().optional()
39643
+ }).catchall(recordType(anyType())), "additionalProperties", true);
39644
+ TriggerEventToAllRequestDtoOverrides$outboundSchema = objectType({
39645
+ steps: recordType(StepsOverrides$outboundSchema).optional(),
39646
+ providers: recordType(recordType(anyType())).optional(),
39647
+ email: recordType(anyType()).optional(),
39648
+ push: recordType(anyType()).optional(),
39649
+ sms: recordType(anyType()).optional(),
39650
+ chat: recordType(anyType()).optional(),
39651
+ layoutIdentifier: stringType().optional(),
39652
+ additionalProperties: recordType(recordType(anyType()))
39653
+ }).transform((v2) => {
39654
+ return {
39655
+ ...v2.additionalProperties,
39656
+ ...remap(v2, {
39657
+ additionalProperties: null
39658
+ })
39659
+ };
39660
+ });
39539
39661
  ((TriggerEventToAllRequestDtoOverrides$) => {
39540
39662
  TriggerEventToAllRequestDtoOverrides$.inboundSchema = TriggerEventToAllRequestDtoOverrides$inboundSchema;
39541
39663
  TriggerEventToAllRequestDtoOverrides$.outboundSchema = TriggerEventToAllRequestDtoOverrides$outboundSchema;
@@ -39632,42 +39754,18 @@ var init_updateintegrationrequestdto = __esm(() => {
39632
39754
  });
39633
39755
 
39634
39756
  // src/models/components/updatesubscriberchannelrequestdto.ts
39635
- var UpdateSubscriberChannelRequestDtoProviderId, UpdateSubscriberChannelRequestDtoProviderId$inboundSchema, UpdateSubscriberChannelRequestDtoProviderId$outboundSchema, UpdateSubscriberChannelRequestDtoProviderId$, UpdateSubscriberChannelRequestDto$inboundSchema, UpdateSubscriberChannelRequestDto$outboundSchema, UpdateSubscriberChannelRequestDto$;
39757
+ var UpdateSubscriberChannelRequestDto$inboundSchema, UpdateSubscriberChannelRequestDto$outboundSchema, UpdateSubscriberChannelRequestDto$;
39636
39758
  var init_updatesubscriberchannelrequestdto = __esm(() => {
39637
39759
  init_lib();
39638
39760
  init_channelcredentials();
39639
- UpdateSubscriberChannelRequestDtoProviderId = {
39640
- Slack: "slack",
39641
- Discord: "discord",
39642
- Msteams: "msteams",
39643
- Mattermost: "mattermost",
39644
- Ryver: "ryver",
39645
- Zulip: "zulip",
39646
- GrafanaOnCall: "grafana-on-call",
39647
- Getstream: "getstream",
39648
- RocketChat: "rocket-chat",
39649
- WhatsappBusiness: "whatsapp-business",
39650
- Fcm: "fcm",
39651
- Apns: "apns",
39652
- Expo: "expo",
39653
- OneSignal: "one-signal",
39654
- Pushpad: "pushpad",
39655
- PushWebhook: "push-webhook",
39656
- PusherBeams: "pusher-beams"
39657
- };
39658
- UpdateSubscriberChannelRequestDtoProviderId$inboundSchema = nativeEnumType(UpdateSubscriberChannelRequestDtoProviderId);
39659
- UpdateSubscriberChannelRequestDtoProviderId$outboundSchema = UpdateSubscriberChannelRequestDtoProviderId$inboundSchema;
39660
- ((UpdateSubscriberChannelRequestDtoProviderId$) => {
39661
- UpdateSubscriberChannelRequestDtoProviderId$.inboundSchema = UpdateSubscriberChannelRequestDtoProviderId$inboundSchema;
39662
- UpdateSubscriberChannelRequestDtoProviderId$.outboundSchema = UpdateSubscriberChannelRequestDtoProviderId$outboundSchema;
39663
- })(UpdateSubscriberChannelRequestDtoProviderId$ ||= {});
39761
+ init_chatorpushproviderenum();
39664
39762
  UpdateSubscriberChannelRequestDto$inboundSchema = objectType({
39665
- providerId: UpdateSubscriberChannelRequestDtoProviderId$inboundSchema,
39763
+ providerId: ChatOrPushProviderEnum$inboundSchema,
39666
39764
  integrationIdentifier: stringType().optional(),
39667
39765
  credentials: ChannelCredentials$inboundSchema
39668
39766
  });
39669
39767
  UpdateSubscriberChannelRequestDto$outboundSchema = objectType({
39670
- providerId: UpdateSubscriberChannelRequestDtoProviderId$outboundSchema,
39768
+ providerId: ChatOrPushProviderEnum$outboundSchema,
39671
39769
  integrationIdentifier: stringType().optional(),
39672
39770
  credentials: ChannelCredentials$outboundSchema
39673
39771
  });
@@ -39749,6 +39847,8 @@ var init_components = __esm(() => {
39749
39847
  init_channelctatypeenum();
39750
39848
  init_channelsettingsdto();
39751
39849
  init_channeltypeenum();
39850
+ init_chatorpushproviderenum();
39851
+ init_constraintvalidation();
39752
39852
  init_createdsubscriberdto();
39753
39853
  init_createintegrationrequestdto();
39754
39854
  init_createsubscriberrequestdto();
@@ -39776,7 +39876,6 @@ var init_components = __esm(() => {
39776
39876
  init_filtertopicsresponsedto();
39777
39877
  init_getsubscriberpreferencesdto();
39778
39878
  init_gettopicresponsedto();
39779
- init_globalpreferencedto();
39780
39879
  init_integrationresponsedto();
39781
39880
  init_listsubscribersresponsedto();
39782
39881
  init_markallmessageasrequestdto();
@@ -39789,6 +39888,7 @@ var init_components = __esm(() => {
39789
39888
  init_messagectadata();
39790
39889
  init_messagemarkasrequestdto();
39791
39890
  init_messageresponsedto();
39891
+ init_messagesresponsedto();
39792
39892
  init_messagestatusenum();
39793
39893
  init_messagetemplate();
39794
39894
  init_messagetemplatedto();
@@ -39802,11 +39902,10 @@ var init_components = __esm(() => {
39802
39902
  init_notificationtriggervariable();
39803
39903
  init_ordinalenum();
39804
39904
  init_ordinalvalueenum();
39805
- init_overrides();
39806
39905
  init_patchpreferencechannelsdto();
39807
39906
  init_patchsubscriberpreferencesdto();
39808
39907
  init_patchsubscriberrequestdto();
39809
- init_preferencechannels();
39908
+ init_preferenceoverridesourceenum();
39810
39909
  init_providersidenum();
39811
39910
  init_removesubscriberresponsedto();
39812
39911
  init_removesubscribersrequestdto();
@@ -39815,11 +39914,17 @@ var init_components = __esm(() => {
39815
39914
  init_replycallback();
39816
39915
  init_security2();
39817
39916
  init_stepfilterdto();
39917
+ init_stepsoverrides();
39818
39918
  init_steptypeenum();
39819
39919
  init_subscriberchanneldto();
39820
39920
  init_subscriberfeedresponsedto();
39921
+ init_subscriberglobalpreferencedto();
39821
39922
  init_subscriberpayloaddto();
39923
+ init_subscriberpreferencechannels();
39924
+ init_subscriberpreferenceoverridedto();
39925
+ init_subscriberpreferencesworkflowinfodto();
39822
39926
  init_subscriberresponsedto();
39927
+ init_subscriberworkflowpreferencedto();
39823
39928
  init_tenantpayloaddto();
39824
39929
  init_textalignenum();
39825
39930
  init_timedconfig();
@@ -39836,12 +39941,115 @@ var init_components = __esm(() => {
39836
39941
  init_updatesubscriberchannelrequestdto();
39837
39942
  init_updatesubscriberonlineflagrequestdto();
39838
39943
  init_updatesubscriberrequestdto();
39839
- init_workflowinfodto();
39840
39944
  init_workfloworiginenum();
39841
- init_workflowpreferencedto();
39842
39945
  init_workflowresponse();
39843
39946
  });
39844
39947
 
39948
+ // src/models/errors/validationerrordto.ts
39949
+ var ValidationErrorDto, Message5$inboundSchema, Message5$outboundSchema, Message5$, Message4$inboundSchema, Message4$outboundSchema, Message4$, ValidationErrorDtoMessage$inboundSchema, ValidationErrorDtoMessage$outboundSchema, ValidationErrorDtoMessage$, ValidationErrorDto$inboundSchema, ValidationErrorDto$outboundSchema, ValidationErrorDto$;
39950
+ var init_validationerrordto = __esm(() => {
39951
+ init_lib();
39952
+ init_components();
39953
+ ValidationErrorDto = class ValidationErrorDto extends Error {
39954
+ statusCode;
39955
+ timestamp;
39956
+ path;
39957
+ ctx;
39958
+ errorId;
39959
+ errors;
39960
+ data$;
39961
+ constructor(err) {
39962
+ const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
39963
+ super(message);
39964
+ this.data$ = err;
39965
+ this.statusCode = err.statusCode;
39966
+ this.timestamp = err.timestamp;
39967
+ this.path = err.path;
39968
+ if (err.ctx != null)
39969
+ this.ctx = err.ctx;
39970
+ if (err.errorId != null)
39971
+ this.errorId = err.errorId;
39972
+ this.errors = err.errors;
39973
+ this.name = "ValidationErrorDto";
39974
+ }
39975
+ };
39976
+ Message5$inboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
39977
+ Message5$outboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
39978
+ ((Message5$) => {
39979
+ Message5$.inboundSchema = Message5$inboundSchema;
39980
+ Message5$.outboundSchema = Message5$outboundSchema;
39981
+ })(Message5$ ||= {});
39982
+ Message4$inboundSchema = objectType({});
39983
+ Message4$outboundSchema = objectType({});
39984
+ ((Message4$) => {
39985
+ Message4$.inboundSchema = Message4$inboundSchema;
39986
+ Message4$.outboundSchema = Message4$outboundSchema;
39987
+ })(Message4$ ||= {});
39988
+ ValidationErrorDtoMessage$inboundSchema = unionType([
39989
+ lazyType(() => Message4$inboundSchema),
39990
+ stringType(),
39991
+ numberType(),
39992
+ booleanType(),
39993
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
39994
+ ]);
39995
+ ValidationErrorDtoMessage$outboundSchema = unionType([
39996
+ lazyType(() => Message4$outboundSchema),
39997
+ stringType(),
39998
+ numberType(),
39999
+ booleanType(),
40000
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
40001
+ ]);
40002
+ ((ValidationErrorDtoMessage$) => {
40003
+ ValidationErrorDtoMessage$.inboundSchema = ValidationErrorDtoMessage$inboundSchema;
40004
+ ValidationErrorDtoMessage$.outboundSchema = ValidationErrorDtoMessage$outboundSchema;
40005
+ })(ValidationErrorDtoMessage$ ||= {});
40006
+ ValidationErrorDto$inboundSchema = objectType({
40007
+ statusCode: numberType(),
40008
+ timestamp: stringType(),
40009
+ path: stringType(),
40010
+ message: nullableType(unionType([
40011
+ lazyType(() => Message4$inboundSchema),
40012
+ stringType(),
40013
+ numberType(),
40014
+ booleanType(),
40015
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
40016
+ ])).optional(),
40017
+ ctx: recordType(anyType()).optional(),
40018
+ errorId: stringType().optional(),
40019
+ errors: recordType(ConstraintValidation$inboundSchema)
40020
+ }).transform((v2) => {
40021
+ return new ValidationErrorDto(v2);
40022
+ });
40023
+ ValidationErrorDto$outboundSchema = instanceOfType(ValidationErrorDto).transform((v2) => v2.data$).pipe(objectType({
40024
+ statusCode: numberType(),
40025
+ timestamp: stringType(),
40026
+ path: stringType(),
40027
+ message: nullableType(unionType([
40028
+ lazyType(() => Message4$outboundSchema),
40029
+ stringType(),
40030
+ numberType(),
40031
+ booleanType(),
40032
+ arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
40033
+ ])).optional(),
40034
+ ctx: recordType(anyType()).optional(),
40035
+ errorId: stringType().optional(),
40036
+ errors: recordType(ConstraintValidation$outboundSchema)
40037
+ }));
40038
+ ((ValidationErrorDto$) => {
40039
+ ValidationErrorDto$.inboundSchema = ValidationErrorDto$inboundSchema;
40040
+ ValidationErrorDto$.outboundSchema = ValidationErrorDto$outboundSchema;
40041
+ })(ValidationErrorDto$ ||= {});
40042
+ });
40043
+
40044
+ // src/models/errors/index.ts
40045
+ var init_errors = __esm(() => {
40046
+ init_errordto();
40047
+ init_httpclienterrors();
40048
+ init_sdkerror();
40049
+ init_sdkvalidationerror();
40050
+ init_validationerrordto();
40051
+ });
40052
+
39845
40053
  // src/models/operations/eventscontrollerbroadcasteventtoall.ts
39846
40054
  var EventsControllerBroadcastEventToAllRequest$inboundSchema, EventsControllerBroadcastEventToAllRequest$outboundSchema, EventsControllerBroadcastEventToAllRequest$, EventsControllerBroadcastEventToAllResponse$inboundSchema, EventsControllerBroadcastEventToAllResponse$outboundSchema, EventsControllerBroadcastEventToAllResponse$;
39847
40055
  var init_eventscontrollerbroadcasteventtoall = __esm(() => {
@@ -40544,7 +40752,7 @@ var init_messagescontrollergetmessages = __esm(() => {
40544
40752
  })(MessagesControllerGetMessagesRequest$ ||= {});
40545
40753
  MessagesControllerGetMessagesResponse$inboundSchema = objectType({
40546
40754
  Headers: recordType(arrayType(stringType())),
40547
- Result: ActivitiesResponseDto$inboundSchema
40755
+ Result: MessagesResponseDto$inboundSchema
40548
40756
  }).transform((v2) => {
40549
40757
  return remap(v2, {
40550
40758
  Headers: "headers",
@@ -40553,7 +40761,7 @@ var init_messagescontrollergetmessages = __esm(() => {
40553
40761
  });
40554
40762
  MessagesControllerGetMessagesResponse$outboundSchema = objectType({
40555
40763
  headers: recordType(arrayType(stringType())),
40556
- result: ActivitiesResponseDto$outboundSchema
40764
+ result: MessagesResponseDto$outboundSchema
40557
40765
  }).transform((v2) => {
40558
40766
  return remap(v2, {
40559
40767
  headers: "Headers",
@@ -49015,14 +49223,14 @@ var init_triggerBulk2 = __esm(() => {
49015
49223
  function createMCPServer(deps) {
49016
49224
  const server = new McpServer({
49017
49225
  name: "Novu",
49018
- version: "0.6.2"
49226
+ version: "0.7.0"
49019
49227
  });
49020
49228
  const client = new NovuCore({
49021
49229
  secretKey: deps.secretKey,
49022
49230
  serverURL: deps.serverURL,
49023
49231
  serverIdx: deps.serverIdx
49024
49232
  });
49025
- const scopes = new Set(deps.scopes ?? mcpScopes);
49233
+ const scopes = new Set(deps.scopes);
49026
49234
  const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
49027
49235
  const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
49028
49236
  const resource = createRegisterResource(deps.logger, server, client, scopes);
@@ -49082,7 +49290,6 @@ var init_server2 = __esm(() => {
49082
49290
  init_mcp();
49083
49291
  init_core();
49084
49292
  init_resources();
49085
- init_scopes();
49086
49293
  init_tools();
49087
49294
  init_cancel2();
49088
49295
  init_integrationsCreate2();
@@ -50215,7 +50422,11 @@ function buildContext(process2) {
50215
50422
  // src/mcp-server/cli/start/command.ts
50216
50423
  init_lib();
50217
50424
  init_console_logger();
50218
- init_scopes();
50425
+
50426
+ // src/mcp-server/scopes.ts
50427
+ var mcpScopes = [];
50428
+
50429
+ // src/mcp-server/cli/start/command.ts
50219
50430
  var startCommand = tn({
50220
50431
  loader: async () => {
50221
50432
  const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
@@ -50320,7 +50531,7 @@ var routes = rn({
50320
50531
  var app = Ve(routes, {
50321
50532
  name: "mcp",
50322
50533
  versionInfo: {
50323
- currentVersion: "0.6.2"
50534
+ currentVersion: "0.7.0"
50324
50535
  }
50325
50536
  });
50326
50537
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -50328,5 +50539,5 @@ export {
50328
50539
  app
50329
50540
  };
50330
50541
 
50331
- //# debugId=0124D112E064DBEC64756E2164756E21
50542
+ //# debugId=D2A4F2C8177278F264756E2164756E21
50332
50543
  //# sourceMappingURL=mcp-server.js.map