@novu/api 0.1.6 → 0.2.1

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 (398) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/README.md +14 -31
  3. package/docs/sdks/authentication/README.md +4 -4
  4. package/docs/sdks/credentials/README.md +6 -6
  5. package/docs/sdks/integrations/README.md +12 -12
  6. package/docs/sdks/messages/README.md +6 -6
  7. package/docs/sdks/notifications/README.md +4 -4
  8. package/docs/sdks/novu/README.md +8 -8
  9. package/docs/sdks/novumessages/README.md +6 -6
  10. package/docs/sdks/novunotifications/README.md +4 -4
  11. package/docs/sdks/novusubscribers/README.md +6 -6
  12. package/docs/sdks/preferences/README.md +9 -260
  13. package/docs/sdks/properties/README.md +2 -2
  14. package/docs/sdks/stats/README.md +4 -4
  15. package/docs/sdks/subscribers/README.md +50 -322
  16. package/docs/sdks/topics/README.md +10 -10
  17. package/docs/sdks/webhooks/README.md +2 -2
  18. package/funcs/cancel.d.ts.map +1 -1
  19. package/funcs/cancel.js +1 -0
  20. package/funcs/cancel.js.map +1 -1
  21. package/funcs/integrationsCreate.d.ts.map +1 -1
  22. package/funcs/integrationsCreate.js +1 -0
  23. package/funcs/integrationsCreate.js.map +1 -1
  24. package/funcs/integrationsDelete.d.ts.map +1 -1
  25. package/funcs/integrationsDelete.js +1 -0
  26. package/funcs/integrationsDelete.js.map +1 -1
  27. package/funcs/integrationsList.d.ts.map +1 -1
  28. package/funcs/integrationsList.js +1 -0
  29. package/funcs/integrationsList.js.map +1 -1
  30. package/funcs/integrationsListActive.d.ts.map +1 -1
  31. package/funcs/integrationsListActive.js +1 -0
  32. package/funcs/integrationsListActive.js.map +1 -1
  33. package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
  34. package/funcs/integrationsSetAsPrimary.js +1 -0
  35. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  36. package/funcs/integrationsUpdate.d.ts.map +1 -1
  37. package/funcs/integrationsUpdate.js +1 -0
  38. package/funcs/integrationsUpdate.js.map +1 -1
  39. package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
  40. package/funcs/integrationsWebhooksRetrieve.js +1 -0
  41. package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
  42. package/funcs/messagesDelete.d.ts.map +1 -1
  43. package/funcs/messagesDelete.js +1 -0
  44. package/funcs/messagesDelete.js.map +1 -1
  45. package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
  46. package/funcs/messagesDeleteByTransactionId.js +1 -0
  47. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  48. package/funcs/messagesRetrieve.d.ts.map +1 -1
  49. package/funcs/messagesRetrieve.js +1 -0
  50. package/funcs/messagesRetrieve.js.map +1 -1
  51. package/funcs/notificationsList.d.ts.map +1 -1
  52. package/funcs/notificationsList.js +1 -0
  53. package/funcs/notificationsList.js.map +1 -1
  54. package/funcs/notificationsRetrieve.d.ts.map +1 -1
  55. package/funcs/notificationsRetrieve.js +1 -0
  56. package/funcs/notificationsRetrieve.js.map +1 -1
  57. package/funcs/notificationsStatsGraph.d.ts.map +1 -1
  58. package/funcs/notificationsStatsGraph.js +1 -0
  59. package/funcs/notificationsStatsGraph.js.map +1 -1
  60. package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
  61. package/funcs/notificationsStatsRetrieve.js +1 -0
  62. package/funcs/notificationsStatsRetrieve.js.map +1 -1
  63. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
  64. package/funcs/subscribersAuthenticationChatAccessOauth.js +1 -0
  65. package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
  66. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
  67. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +1 -0
  68. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
  69. package/funcs/subscribersCreate.d.ts +2 -2
  70. package/funcs/subscribersCreate.d.ts.map +1 -1
  71. package/funcs/subscribersCreate.js +6 -5
  72. package/funcs/subscribersCreate.js.map +1 -1
  73. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  74. package/funcs/subscribersCreateBulk.js +1 -0
  75. package/funcs/subscribersCreateBulk.js.map +1 -1
  76. package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
  77. package/funcs/subscribersCredentialsAppend.js +1 -0
  78. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  79. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  80. package/funcs/subscribersCredentialsDelete.js +1 -0
  81. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  82. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  83. package/funcs/subscribersCredentialsUpdate.js +1 -0
  84. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  85. package/funcs/subscribersDelete.d.ts.map +1 -1
  86. package/funcs/subscribersDelete.js +1 -0
  87. package/funcs/subscribersDelete.js.map +1 -1
  88. package/funcs/subscribersList.d.ts.map +1 -1
  89. package/funcs/subscribersList.js +1 -0
  90. package/funcs/subscribersList.js.map +1 -1
  91. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  92. package/funcs/subscribersMessagesMarkAll.js +1 -0
  93. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  94. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  95. package/funcs/subscribersMessagesMarkAllAs.js +1 -0
  96. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  97. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  98. package/funcs/subscribersMessagesUpdateAsSeen.js +1 -0
  99. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  100. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  101. package/funcs/subscribersNotificationsFeed.js +1 -0
  102. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  103. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  104. package/funcs/subscribersNotificationsUnseenCount.js +1 -0
  105. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  106. package/funcs/subscribersPatch.d.ts.map +1 -1
  107. package/funcs/subscribersPatch.js +1 -0
  108. package/funcs/subscribersPatch.js.map +1 -1
  109. package/funcs/{subscribersPreferencesRetrieve.d.ts → subscribersPreferencesList.d.ts} +2 -2
  110. package/funcs/subscribersPreferencesList.d.ts.map +1 -0
  111. package/funcs/{subscribersPreferencesRetrieve.js → subscribersPreferencesList.js} +5 -4
  112. package/funcs/subscribersPreferencesList.js.map +1 -0
  113. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  114. package/funcs/subscribersPreferencesUpdate.js +1 -0
  115. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  116. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
  117. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -0
  118. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  119. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  120. package/funcs/subscribersRetrieve.js +1 -0
  121. package/funcs/subscribersRetrieve.js.map +1 -1
  122. package/funcs/subscribersSearch.d.ts.map +1 -1
  123. package/funcs/subscribersSearch.js +1 -0
  124. package/funcs/subscribersSearch.js.map +1 -1
  125. package/funcs/topicsCreate.d.ts.map +1 -1
  126. package/funcs/topicsCreate.js +1 -0
  127. package/funcs/topicsCreate.js.map +1 -1
  128. package/funcs/topicsDelete.d.ts.map +1 -1
  129. package/funcs/topicsDelete.js +1 -0
  130. package/funcs/topicsDelete.js.map +1 -1
  131. package/funcs/topicsList.d.ts.map +1 -1
  132. package/funcs/topicsList.js +1 -0
  133. package/funcs/topicsList.js.map +1 -1
  134. package/funcs/topicsRename.d.ts.map +1 -1
  135. package/funcs/topicsRename.js +1 -0
  136. package/funcs/topicsRename.js.map +1 -1
  137. package/funcs/topicsRetrieve.d.ts.map +1 -1
  138. package/funcs/topicsRetrieve.js +1 -0
  139. package/funcs/topicsRetrieve.js.map +1 -1
  140. package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
  141. package/funcs/topicsSubscribersAssign.js +1 -0
  142. package/funcs/topicsSubscribersAssign.js.map +1 -1
  143. package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
  144. package/funcs/topicsSubscribersRemove.js +1 -0
  145. package/funcs/topicsSubscribersRemove.js.map +1 -1
  146. package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
  147. package/funcs/topicsSubscribersRetrieve.js +1 -0
  148. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  149. package/funcs/trigger.d.ts.map +1 -1
  150. package/funcs/trigger.js +1 -0
  151. package/funcs/trigger.js.map +1 -1
  152. package/funcs/triggerBroadcast.d.ts.map +1 -1
  153. package/funcs/triggerBroadcast.js +1 -0
  154. package/funcs/triggerBroadcast.js.map +1 -1
  155. package/funcs/triggerBulk.d.ts.map +1 -1
  156. package/funcs/triggerBulk.js +1 -0
  157. package/funcs/triggerBulk.js.map +1 -1
  158. package/hooks/types.d.ts +1 -0
  159. package/hooks/types.d.ts.map +1 -1
  160. package/jsr.json +1 -1
  161. package/lib/config.d.ts +3 -3
  162. package/lib/config.js +3 -3
  163. package/lib/security.d.ts.map +1 -1
  164. package/lib/security.js.map +1 -1
  165. package/models/components/index.d.ts +0 -14
  166. package/models/components/index.d.ts.map +1 -1
  167. package/models/components/index.js +0 -14
  168. package/models/components/index.js.map +1 -1
  169. package/models/components/subscriberresponsedto.d.ts +5 -0
  170. package/models/components/subscriberresponsedto.d.ts.map +1 -1
  171. package/models/components/subscriberresponsedto.js +2 -0
  172. package/models/components/subscriberresponsedto.js.map +1 -1
  173. package/models/operations/index.d.ts +1 -8
  174. package/models/operations/index.d.ts.map +1 -1
  175. package/models/operations/index.js +1 -8
  176. package/models/operations/index.js.map +1 -1
  177. package/models/operations/subscriberscontrollercreatesubscriber.d.ts +66 -0
  178. package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +1 -0
  179. package/models/operations/subscriberscontrollercreatesubscriber.js +112 -0
  180. package/models/operations/subscriberscontrollercreatesubscriber.js.map +1 -0
  181. package/package.json +1 -1
  182. package/sdk/preferences.d.ts +1 -20
  183. package/sdk/preferences.d.ts.map +1 -1
  184. package/sdk/preferences.js +3 -32
  185. package/sdk/preferences.js.map +1 -1
  186. package/sdk/subscribers.d.ts +9 -32
  187. package/sdk/subscribers.d.ts.map +1 -1
  188. package/sdk/subscribers.js +12 -44
  189. package/sdk/subscribers.js.map +1 -1
  190. package/sources/json-development.json +2313 -6112
  191. package/src/funcs/cancel.ts +1 -0
  192. package/src/funcs/integrationsCreate.ts +1 -0
  193. package/src/funcs/integrationsDelete.ts +1 -0
  194. package/src/funcs/integrationsList.ts +1 -0
  195. package/src/funcs/integrationsListActive.ts +1 -0
  196. package/src/funcs/integrationsSetAsPrimary.ts +1 -0
  197. package/src/funcs/integrationsUpdate.ts +1 -0
  198. package/src/funcs/integrationsWebhooksRetrieve.ts +1 -0
  199. package/src/funcs/messagesDelete.ts +1 -0
  200. package/src/funcs/messagesDeleteByTransactionId.ts +1 -0
  201. package/src/funcs/messagesRetrieve.ts +1 -0
  202. package/src/funcs/notificationsList.ts +1 -0
  203. package/src/funcs/notificationsRetrieve.ts +1 -0
  204. package/src/funcs/notificationsStatsGraph.ts +1 -0
  205. package/src/funcs/notificationsStatsRetrieve.ts +1 -0
  206. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +1 -0
  207. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +1 -0
  208. package/src/funcs/subscribersCreate.ts +10 -9
  209. package/src/funcs/subscribersCreateBulk.ts +1 -0
  210. package/src/funcs/subscribersCredentialsAppend.ts +1 -0
  211. package/src/funcs/subscribersCredentialsDelete.ts +1 -0
  212. package/src/funcs/subscribersCredentialsUpdate.ts +1 -0
  213. package/src/funcs/subscribersDelete.ts +1 -0
  214. package/src/funcs/subscribersList.ts +1 -0
  215. package/src/funcs/subscribersMessagesMarkAll.ts +1 -0
  216. package/src/funcs/subscribersMessagesMarkAllAs.ts +1 -0
  217. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +1 -0
  218. package/src/funcs/subscribersNotificationsFeed.ts +1 -0
  219. package/src/funcs/subscribersNotificationsUnseenCount.ts +1 -0
  220. package/src/funcs/subscribersPatch.ts +1 -0
  221. package/src/funcs/{subscribersPreferencesRetrieve.ts → subscribersPreferencesList.ts} +2 -1
  222. package/src/funcs/subscribersPreferencesUpdate.ts +1 -0
  223. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +1 -0
  224. package/src/funcs/subscribersRetrieve.ts +1 -0
  225. package/src/funcs/subscribersSearch.ts +1 -0
  226. package/src/funcs/topicsCreate.ts +1 -0
  227. package/src/funcs/topicsDelete.ts +1 -0
  228. package/src/funcs/topicsList.ts +1 -0
  229. package/src/funcs/topicsRename.ts +1 -0
  230. package/src/funcs/topicsRetrieve.ts +1 -0
  231. package/src/funcs/topicsSubscribersAssign.ts +1 -0
  232. package/src/funcs/topicsSubscribersRemove.ts +1 -0
  233. package/src/funcs/topicsSubscribersRetrieve.ts +1 -0
  234. package/src/funcs/trigger.ts +1 -0
  235. package/src/funcs/triggerBroadcast.ts +1 -0
  236. package/src/funcs/triggerBulk.ts +1 -0
  237. package/src/hooks/types.ts +1 -0
  238. package/src/lib/config.ts +3 -3
  239. package/src/lib/security.ts +0 -1
  240. package/src/models/components/index.ts +0 -14
  241. package/src/models/components/subscriberresponsedto.ts +7 -0
  242. package/src/models/operations/index.ts +1 -8
  243. package/src/models/operations/subscriberscontrollercreatesubscriber.ts +185 -0
  244. package/src/sdk/preferences.ts +3 -70
  245. package/src/sdk/subscribers.ts +24 -90
  246. package/docs/sdks/legacy/README.md +0 -86
  247. package/funcs/subscribersDeleteLegacy.d.ts +0 -18
  248. package/funcs/subscribersDeleteLegacy.d.ts.map +0 -1
  249. package/funcs/subscribersDeleteLegacy.js +0 -141
  250. package/funcs/subscribersDeleteLegacy.js.map +0 -1
  251. package/funcs/subscribersPreferencesLegacyUpdateGlobal.d.ts +0 -14
  252. package/funcs/subscribersPreferencesLegacyUpdateGlobal.d.ts.map +0 -1
  253. package/funcs/subscribersPreferencesLegacyUpdateGlobal.js +0 -140
  254. package/funcs/subscribersPreferencesLegacyUpdateGlobal.js.map +0 -1
  255. package/funcs/subscribersPreferencesListLegacy.d.ts +0 -15
  256. package/funcs/subscribersPreferencesListLegacy.d.ts.map +0 -1
  257. package/funcs/subscribersPreferencesListLegacy.js +0 -145
  258. package/funcs/subscribersPreferencesListLegacy.js.map +0 -1
  259. package/funcs/subscribersPreferencesRetrieve.d.ts.map +0 -1
  260. package/funcs/subscribersPreferencesRetrieve.js.map +0 -1
  261. package/funcs/subscribersPreferencesRetrieveByLevelLegacy.d.ts +0 -15
  262. package/funcs/subscribersPreferencesRetrieveByLevelLegacy.d.ts.map +0 -1
  263. package/funcs/subscribersPreferencesRetrieveByLevelLegacy.js +0 -144
  264. package/funcs/subscribersPreferencesRetrieveByLevelLegacy.js.map +0 -1
  265. package/funcs/subscribersPreferencesUpdateLegacy.d.ts +0 -13
  266. package/funcs/subscribersPreferencesUpdateLegacy.d.ts.map +0 -1
  267. package/funcs/subscribersPreferencesUpdateLegacy.js +0 -139
  268. package/funcs/subscribersPreferencesUpdateLegacy.js.map +0 -1
  269. package/funcs/subscribersRetrieveLegacy.d.ts +0 -16
  270. package/funcs/subscribersRetrieveLegacy.d.ts.map +0 -1
  271. package/funcs/subscribersRetrieveLegacy.js +0 -144
  272. package/funcs/subscribersRetrieveLegacy.js.map +0 -1
  273. package/funcs/subscribersUpdateLegacy.d.ts +0 -17
  274. package/funcs/subscribersUpdateLegacy.d.ts.map +0 -1
  275. package/funcs/subscribersUpdateLegacy.js +0 -143
  276. package/funcs/subscribersUpdateLegacy.js.map +0 -1
  277. package/models/components/channelpreference.d.ts +0 -38
  278. package/models/components/channelpreference.d.ts.map +0 -1
  279. package/models/components/channelpreference.js +0 -62
  280. package/models/components/channelpreference.js.map +0 -1
  281. package/models/components/deletesubscriberresponsedto.d.ts +0 -66
  282. package/models/components/deletesubscriberresponsedto.d.ts.map +0 -1
  283. package/models/components/deletesubscriberresponsedto.js +0 -82
  284. package/models/components/deletesubscriberresponsedto.js.map +0 -1
  285. package/models/components/getsubscriberpreferencesresponsedto.d.ts +0 -39
  286. package/models/components/getsubscriberpreferencesresponsedto.d.ts.map +0 -1
  287. package/models/components/getsubscriberpreferencesresponsedto.js +0 -63
  288. package/models/components/getsubscriberpreferencesresponsedto.js.map +0 -1
  289. package/models/components/notificationtriggerresponse.d.ts +0 -55
  290. package/models/components/notificationtriggerresponse.d.ts.map +0 -1
  291. package/models/components/notificationtriggerresponse.js +0 -72
  292. package/models/components/notificationtriggerresponse.js.map +0 -1
  293. package/models/components/notificationtriggervariableresponse.d.ts +0 -101
  294. package/models/components/notificationtriggervariableresponse.d.ts.map +0 -1
  295. package/models/components/notificationtriggervariableresponse.js +0 -112
  296. package/models/components/notificationtriggervariableresponse.js.map +0 -1
  297. package/models/components/preference.d.ts +0 -38
  298. package/models/components/preference.d.ts.map +0 -1
  299. package/models/components/preference.js +0 -62
  300. package/models/components/preference.js.map +0 -1
  301. package/models/components/templateresponse.d.ts +0 -48
  302. package/models/components/templateresponse.d.ts.map +0 -1
  303. package/models/components/templateresponse.js +0 -75
  304. package/models/components/templateresponse.js.map +0 -1
  305. package/models/components/triggerreservedvariableresponse.d.ts +0 -69
  306. package/models/components/triggerreservedvariableresponse.d.ts.map +0 -1
  307. package/models/components/triggerreservedvariableresponse.js +0 -83
  308. package/models/components/triggerreservedvariableresponse.js.map +0 -1
  309. package/models/components/triggertypeenum.d.ts +0 -31
  310. package/models/components/triggertypeenum.d.ts.map +0 -1
  311. package/models/components/triggertypeenum.js +0 -52
  312. package/models/components/triggertypeenum.js.map +0 -1
  313. package/models/components/updatesubscriberglobalpreferencesrequestdto.d.ts +0 -38
  314. package/models/components/updatesubscriberglobalpreferencesrequestdto.d.ts.map +0 -1
  315. package/models/components/updatesubscriberglobalpreferencesrequestdto.js +0 -62
  316. package/models/components/updatesubscriberglobalpreferencesrequestdto.js.map +0 -1
  317. package/models/components/updatesubscriberpreferenceglobalresponsedto.d.ts +0 -33
  318. package/models/components/updatesubscriberpreferenceglobalresponsedto.d.ts.map +0 -1
  319. package/models/components/updatesubscriberpreferenceglobalresponsedto.js +0 -60
  320. package/models/components/updatesubscriberpreferenceglobalresponsedto.js.map +0 -1
  321. package/models/components/updatesubscriberpreferencerequestdto.d.ts +0 -38
  322. package/models/components/updatesubscriberpreferencerequestdto.d.ts.map +0 -1
  323. package/models/components/updatesubscriberpreferencerequestdto.js +0 -62
  324. package/models/components/updatesubscriberpreferencerequestdto.js.map +0 -1
  325. package/models/components/updatesubscriberpreferenceresponsedto.d.ts +0 -39
  326. package/models/components/updatesubscriberpreferenceresponsedto.d.ts.map +0 -1
  327. package/models/components/updatesubscriberpreferenceresponsedto.js +0 -63
  328. package/models/components/updatesubscriberpreferenceresponsedto.js.map +0 -1
  329. package/models/components/updatesubscriberrequestdto.d.ts +0 -72
  330. package/models/components/updatesubscriberrequestdto.d.ts.map +0 -1
  331. package/models/components/updatesubscriberrequestdto.js +0 -74
  332. package/models/components/updatesubscriberrequestdto.js.map +0 -1
  333. package/models/operations/subscribersv1controllercreatesubscriber.d.ts +0 -66
  334. package/models/operations/subscribersv1controllercreatesubscriber.d.ts.map +0 -1
  335. package/models/operations/subscribersv1controllercreatesubscriber.js +0 -112
  336. package/models/operations/subscribersv1controllercreatesubscriber.js.map +0 -1
  337. package/models/operations/subscribersv1controllergetsubscriber.d.ts +0 -71
  338. package/models/operations/subscribersv1controllergetsubscriber.d.ts.map +0 -1
  339. package/models/operations/subscribersv1controllergetsubscriber.js +0 -112
  340. package/models/operations/subscribersv1controllergetsubscriber.js.map +0 -1
  341. package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.d.ts +0 -108
  342. package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.d.ts.map +0 -1
  343. package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.js +0 -141
  344. package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.js.map +0 -1
  345. package/models/operations/subscribersv1controllerlistsubscriberpreferences.d.ts +0 -71
  346. package/models/operations/subscribersv1controllerlistsubscriberpreferences.d.ts.map +0 -1
  347. package/models/operations/subscribersv1controllerlistsubscriberpreferences.js +0 -116
  348. package/models/operations/subscribersv1controllerlistsubscriberpreferences.js.map +0 -1
  349. package/models/operations/subscribersv1controllerremovesubscriber.d.ts +0 -66
  350. package/models/operations/subscribersv1controllerremovesubscriber.d.ts.map +0 -1
  351. package/models/operations/subscribersv1controllerremovesubscriber.js +0 -110
  352. package/models/operations/subscribersv1controllerremovesubscriber.js.map +0 -1
  353. package/models/operations/subscribersv1controllerupdatesubscriber.d.ts +0 -68
  354. package/models/operations/subscribersv1controllerupdatesubscriber.d.ts.map +0 -1
  355. package/models/operations/subscribersv1controllerupdatesubscriber.js +0 -114
  356. package/models/operations/subscribersv1controllerupdatesubscriber.js.map +0 -1
  357. package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.d.ts +0 -68
  358. package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.d.ts.map +0 -1
  359. package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.js +0 -118
  360. package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.js.map +0 -1
  361. package/models/operations/subscribersv1controllerupdatesubscriberpreference.d.ts +0 -70
  362. package/models/operations/subscribersv1controllerupdatesubscriberpreference.d.ts.map +0 -1
  363. package/models/operations/subscribersv1controllerupdatesubscriberpreference.js +0 -120
  364. package/models/operations/subscribersv1controllerupdatesubscriberpreference.js.map +0 -1
  365. package/sdk/legacy.d.ts +0 -10
  366. package/sdk/legacy.d.ts.map +0 -1
  367. package/sdk/legacy.js +0 -19
  368. package/sdk/legacy.js.map +0 -1
  369. package/src/funcs/subscribersDeleteLegacy.ts +0 -200
  370. package/src/funcs/subscribersPreferencesLegacyUpdateGlobal.ts +0 -211
  371. package/src/funcs/subscribersPreferencesListLegacy.ts +0 -209
  372. package/src/funcs/subscribersPreferencesRetrieveByLevelLegacy.ts +0 -205
  373. package/src/funcs/subscribersPreferencesUpdateLegacy.ts +0 -202
  374. package/src/funcs/subscribersRetrieveLegacy.ts +0 -205
  375. package/src/funcs/subscribersUpdateLegacy.ts +0 -204
  376. package/src/models/components/channelpreference.ts +0 -81
  377. package/src/models/components/deletesubscriberresponsedto.ts +0 -114
  378. package/src/models/components/getsubscriberpreferencesresponsedto.ts +0 -93
  379. package/src/models/components/notificationtriggerresponse.ts +0 -126
  380. package/src/models/components/notificationtriggervariableresponse.ts +0 -193
  381. package/src/models/components/preference.ts +0 -78
  382. package/src/models/components/templateresponse.ts +0 -105
  383. package/src/models/components/triggerreservedvariableresponse.ts +0 -116
  384. package/src/models/components/triggertypeenum.ts +0 -38
  385. package/src/models/components/updatesubscriberglobalpreferencesrequestdto.ts +0 -95
  386. package/src/models/components/updatesubscriberpreferenceglobalresponsedto.ts +0 -88
  387. package/src/models/components/updatesubscriberpreferencerequestdto.ts +0 -87
  388. package/src/models/components/updatesubscriberpreferenceresponsedto.ts +0 -93
  389. package/src/models/components/updatesubscriberrequestdto.ts +0 -124
  390. package/src/models/operations/subscribersv1controllercreatesubscriber.ts +0 -187
  391. package/src/models/operations/subscribersv1controllergetsubscriber.ts +0 -188
  392. package/src/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.ts +0 -231
  393. package/src/models/operations/subscribersv1controllerlistsubscriberpreferences.ts +0 -191
  394. package/src/models/operations/subscribersv1controllerremovesubscriber.ts +0 -183
  395. package/src/models/operations/subscribersv1controllerupdatesubscriber.ts +0 -191
  396. package/src/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.ts +0 -195
  397. package/src/models/operations/subscribersv1controllerupdatesubscriberpreference.ts +0 -197
  398. package/src/sdk/legacy.ts +0 -32
@@ -1,72 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.notificationTriggerResponseFromJSON = exports.notificationTriggerResponseToJSON = exports.NotificationTriggerResponse$ = exports.NotificationTriggerResponse$outboundSchema = exports.NotificationTriggerResponse$inboundSchema = void 0;
30
- const z = __importStar(require("zod"));
31
- const schemas_js_1 = require("../../lib/schemas.js");
32
- const notificationtriggervariableresponse_js_1 = require("./notificationtriggervariableresponse.js");
33
- const triggerreservedvariableresponse_js_1 = require("./triggerreservedvariableresponse.js");
34
- const triggertypeenum_js_1 = require("./triggertypeenum.js");
35
- /** @internal */
36
- exports.NotificationTriggerResponse$inboundSchema = z.object({
37
- type: triggertypeenum_js_1.TriggerTypeEnum$inboundSchema,
38
- identifier: z.string(),
39
- variables: z.array(notificationtriggervariableresponse_js_1.NotificationTriggerVariableResponse$inboundSchema),
40
- subscriberVariables: z.array(notificationtriggervariableresponse_js_1.NotificationTriggerVariableResponse$inboundSchema).optional(),
41
- reservedVariables: z.array(triggerreservedvariableresponse_js_1.TriggerReservedVariableResponse$inboundSchema)
42
- .optional(),
43
- });
44
- /** @internal */
45
- exports.NotificationTriggerResponse$outboundSchema = z.object({
46
- type: triggertypeenum_js_1.TriggerTypeEnum$outboundSchema,
47
- identifier: z.string(),
48
- variables: z.array(notificationtriggervariableresponse_js_1.NotificationTriggerVariableResponse$outboundSchema),
49
- subscriberVariables: z.array(notificationtriggervariableresponse_js_1.NotificationTriggerVariableResponse$outboundSchema).optional(),
50
- reservedVariables: z.array(triggerreservedvariableresponse_js_1.TriggerReservedVariableResponse$outboundSchema)
51
- .optional(),
52
- });
53
- /**
54
- * @internal
55
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
- */
57
- var NotificationTriggerResponse$;
58
- (function (NotificationTriggerResponse$) {
59
- /** @deprecated use `NotificationTriggerResponse$inboundSchema` instead. */
60
- NotificationTriggerResponse$.inboundSchema = exports.NotificationTriggerResponse$inboundSchema;
61
- /** @deprecated use `NotificationTriggerResponse$outboundSchema` instead. */
62
- NotificationTriggerResponse$.outboundSchema = exports.NotificationTriggerResponse$outboundSchema;
63
- })(NotificationTriggerResponse$ || (exports.NotificationTriggerResponse$ = NotificationTriggerResponse$ = {}));
64
- function notificationTriggerResponseToJSON(notificationTriggerResponse) {
65
- return JSON.stringify(exports.NotificationTriggerResponse$outboundSchema.parse(notificationTriggerResponse));
66
- }
67
- exports.notificationTriggerResponseToJSON = notificationTriggerResponseToJSON;
68
- function notificationTriggerResponseFromJSON(jsonString) {
69
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationTriggerResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationTriggerResponse' from JSON`);
70
- }
71
- exports.notificationTriggerResponseFromJSON = notificationTriggerResponseFromJSON;
72
- //# sourceMappingURL=notificationtriggerresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notificationtriggerresponse.js","sourceRoot":"","s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;AACJ,CAAC;AARD,8EAQC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC;AARD,kFAQC"}
@@ -1,101 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- /**
6
- * The value of the variable
7
- */
8
- export type NotificationTriggerVariableResponseValue = {};
9
- /**
10
- * The type of the variable
11
- */
12
- export declare const NotificationTriggerVariableResponseType: {
13
- readonly String: "String";
14
- readonly Array: "Array";
15
- readonly Boolean: "Boolean";
16
- };
17
- /**
18
- * The type of the variable
19
- */
20
- export type NotificationTriggerVariableResponseType = ClosedEnum<typeof NotificationTriggerVariableResponseType>;
21
- export type NotificationTriggerVariableResponse = {
22
- /**
23
- * The name of the variable
24
- */
25
- name: string;
26
- /**
27
- * The value of the variable
28
- */
29
- value?: NotificationTriggerVariableResponseValue | undefined;
30
- /**
31
- * The type of the variable
32
- */
33
- type?: NotificationTriggerVariableResponseType | undefined;
34
- };
35
- /** @internal */
36
- export declare const NotificationTriggerVariableResponseValue$inboundSchema: z.ZodType<NotificationTriggerVariableResponseValue, z.ZodTypeDef, unknown>;
37
- /** @internal */
38
- export type NotificationTriggerVariableResponseValue$Outbound = {};
39
- /** @internal */
40
- export declare const NotificationTriggerVariableResponseValue$outboundSchema: z.ZodType<NotificationTriggerVariableResponseValue$Outbound, z.ZodTypeDef, NotificationTriggerVariableResponseValue>;
41
- /**
42
- * @internal
43
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
- */
45
- export declare namespace NotificationTriggerVariableResponseValue$ {
46
- /** @deprecated use `NotificationTriggerVariableResponseValue$inboundSchema` instead. */
47
- const inboundSchema: z.ZodType<NotificationTriggerVariableResponseValue, z.ZodTypeDef, unknown>;
48
- /** @deprecated use `NotificationTriggerVariableResponseValue$outboundSchema` instead. */
49
- const outboundSchema: z.ZodType<NotificationTriggerVariableResponseValue$Outbound, z.ZodTypeDef, NotificationTriggerVariableResponseValue>;
50
- /** @deprecated use `NotificationTriggerVariableResponseValue$Outbound` instead. */
51
- type Outbound = NotificationTriggerVariableResponseValue$Outbound;
52
- }
53
- export declare function notificationTriggerVariableResponseValueToJSON(notificationTriggerVariableResponseValue: NotificationTriggerVariableResponseValue): string;
54
- export declare function notificationTriggerVariableResponseValueFromJSON(jsonString: string): SafeParseResult<NotificationTriggerVariableResponseValue, SDKValidationError>;
55
- /** @internal */
56
- export declare const NotificationTriggerVariableResponseType$inboundSchema: z.ZodNativeEnum<typeof NotificationTriggerVariableResponseType>;
57
- /** @internal */
58
- export declare const NotificationTriggerVariableResponseType$outboundSchema: z.ZodNativeEnum<typeof NotificationTriggerVariableResponseType>;
59
- /**
60
- * @internal
61
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
- */
63
- export declare namespace NotificationTriggerVariableResponseType$ {
64
- /** @deprecated use `NotificationTriggerVariableResponseType$inboundSchema` instead. */
65
- const inboundSchema: z.ZodNativeEnum<{
66
- readonly String: "String";
67
- readonly Array: "Array";
68
- readonly Boolean: "Boolean";
69
- }>;
70
- /** @deprecated use `NotificationTriggerVariableResponseType$outboundSchema` instead. */
71
- const outboundSchema: z.ZodNativeEnum<{
72
- readonly String: "String";
73
- readonly Array: "Array";
74
- readonly Boolean: "Boolean";
75
- }>;
76
- }
77
- /** @internal */
78
- export declare const NotificationTriggerVariableResponse$inboundSchema: z.ZodType<NotificationTriggerVariableResponse, z.ZodTypeDef, unknown>;
79
- /** @internal */
80
- export type NotificationTriggerVariableResponse$Outbound = {
81
- name: string;
82
- value?: NotificationTriggerVariableResponseValue$Outbound | undefined;
83
- type?: string | undefined;
84
- };
85
- /** @internal */
86
- export declare const NotificationTriggerVariableResponse$outboundSchema: z.ZodType<NotificationTriggerVariableResponse$Outbound, z.ZodTypeDef, NotificationTriggerVariableResponse>;
87
- /**
88
- * @internal
89
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
- */
91
- export declare namespace NotificationTriggerVariableResponse$ {
92
- /** @deprecated use `NotificationTriggerVariableResponse$inboundSchema` instead. */
93
- const inboundSchema: z.ZodType<NotificationTriggerVariableResponse, z.ZodTypeDef, unknown>;
94
- /** @deprecated use `NotificationTriggerVariableResponse$outboundSchema` instead. */
95
- const outboundSchema: z.ZodType<NotificationTriggerVariableResponse$Outbound, z.ZodTypeDef, NotificationTriggerVariableResponse>;
96
- /** @deprecated use `NotificationTriggerVariableResponse$Outbound` instead. */
97
- type Outbound = NotificationTriggerVariableResponse$Outbound;
98
- }
99
- export declare function notificationTriggerVariableResponseToJSON(notificationTriggerVariableResponse: NotificationTriggerVariableResponse): string;
100
- export declare function notificationTriggerVariableResponseFromJSON(jsonString: string): SafeParseResult<NotificationTriggerVariableResponse, SDKValidationError>;
101
- //# sourceMappingURL=notificationtriggervariableresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notificationtriggervariableresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationtriggervariableresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,EAAE,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;CAI1C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC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;IACjF,MAAM,cAAc;;;;MAC6B,CAAC;CAC1D;AAED,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,iDAAiD,GAAG,SAAS,CAAC;IACtE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CAMnC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oCAAoC,CAAC;IACpD,mFAAmF;IAC5E,MAAM,aAAa,uEACyB,CAAC;IACpD,oFAAoF;IAC7E,MAAM,cAAc,4GACyB,CAAC;IACrD,8EAA8E;IAC9E,KAAY,QAAQ,GAAG,4CAA4C,CAAC;CACrE;AAED,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AAED,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
@@ -1,112 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.notificationTriggerVariableResponseFromJSON = exports.notificationTriggerVariableResponseToJSON = exports.NotificationTriggerVariableResponse$ = exports.NotificationTriggerVariableResponse$outboundSchema = exports.NotificationTriggerVariableResponse$inboundSchema = exports.NotificationTriggerVariableResponseType$ = exports.NotificationTriggerVariableResponseType$outboundSchema = exports.NotificationTriggerVariableResponseType$inboundSchema = exports.notificationTriggerVariableResponseValueFromJSON = exports.notificationTriggerVariableResponseValueToJSON = exports.NotificationTriggerVariableResponseValue$ = exports.NotificationTriggerVariableResponseValue$outboundSchema = exports.NotificationTriggerVariableResponseValue$inboundSchema = exports.NotificationTriggerVariableResponseType = void 0;
30
- const z = __importStar(require("zod"));
31
- const schemas_js_1 = require("../../lib/schemas.js");
32
- /**
33
- * The type of the variable
34
- */
35
- exports.NotificationTriggerVariableResponseType = {
36
- String: "String",
37
- Array: "Array",
38
- Boolean: "Boolean",
39
- };
40
- /** @internal */
41
- exports.NotificationTriggerVariableResponseValue$inboundSchema = z.object({});
42
- /** @internal */
43
- exports.NotificationTriggerVariableResponseValue$outboundSchema = z.object({});
44
- /**
45
- * @internal
46
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
- */
48
- var NotificationTriggerVariableResponseValue$;
49
- (function (NotificationTriggerVariableResponseValue$) {
50
- /** @deprecated use `NotificationTriggerVariableResponseValue$inboundSchema` instead. */
51
- NotificationTriggerVariableResponseValue$.inboundSchema = exports.NotificationTriggerVariableResponseValue$inboundSchema;
52
- /** @deprecated use `NotificationTriggerVariableResponseValue$outboundSchema` instead. */
53
- NotificationTriggerVariableResponseValue$.outboundSchema = exports.NotificationTriggerVariableResponseValue$outboundSchema;
54
- })(NotificationTriggerVariableResponseValue$ || (exports.NotificationTriggerVariableResponseValue$ = NotificationTriggerVariableResponseValue$ = {}));
55
- function notificationTriggerVariableResponseValueToJSON(notificationTriggerVariableResponseValue) {
56
- return JSON.stringify(exports.NotificationTriggerVariableResponseValue$outboundSchema.parse(notificationTriggerVariableResponseValue));
57
- }
58
- exports.notificationTriggerVariableResponseValueToJSON = notificationTriggerVariableResponseValueToJSON;
59
- function notificationTriggerVariableResponseValueFromJSON(jsonString) {
60
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationTriggerVariableResponseValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationTriggerVariableResponseValue' from JSON`);
61
- }
62
- exports.notificationTriggerVariableResponseValueFromJSON = notificationTriggerVariableResponseValueFromJSON;
63
- /** @internal */
64
- exports.NotificationTriggerVariableResponseType$inboundSchema = z
65
- .nativeEnum(exports.NotificationTriggerVariableResponseType);
66
- /** @internal */
67
- exports.NotificationTriggerVariableResponseType$outboundSchema = exports.NotificationTriggerVariableResponseType$inboundSchema;
68
- /**
69
- * @internal
70
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
- */
72
- var NotificationTriggerVariableResponseType$;
73
- (function (NotificationTriggerVariableResponseType$) {
74
- /** @deprecated use `NotificationTriggerVariableResponseType$inboundSchema` instead. */
75
- NotificationTriggerVariableResponseType$.inboundSchema = exports.NotificationTriggerVariableResponseType$inboundSchema;
76
- /** @deprecated use `NotificationTriggerVariableResponseType$outboundSchema` instead. */
77
- NotificationTriggerVariableResponseType$.outboundSchema = exports.NotificationTriggerVariableResponseType$outboundSchema;
78
- })(NotificationTriggerVariableResponseType$ || (exports.NotificationTriggerVariableResponseType$ = NotificationTriggerVariableResponseType$ = {}));
79
- /** @internal */
80
- exports.NotificationTriggerVariableResponse$inboundSchema = z.object({
81
- name: z.string(),
82
- value: z.lazy(() => exports.NotificationTriggerVariableResponseValue$inboundSchema)
83
- .optional(),
84
- type: exports.NotificationTriggerVariableResponseType$inboundSchema.optional(),
85
- });
86
- /** @internal */
87
- exports.NotificationTriggerVariableResponse$outboundSchema = z.object({
88
- name: z.string(),
89
- value: z.lazy(() => exports.NotificationTriggerVariableResponseValue$outboundSchema)
90
- .optional(),
91
- type: exports.NotificationTriggerVariableResponseType$outboundSchema.optional(),
92
- });
93
- /**
94
- * @internal
95
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
96
- */
97
- var NotificationTriggerVariableResponse$;
98
- (function (NotificationTriggerVariableResponse$) {
99
- /** @deprecated use `NotificationTriggerVariableResponse$inboundSchema` instead. */
100
- NotificationTriggerVariableResponse$.inboundSchema = exports.NotificationTriggerVariableResponse$inboundSchema;
101
- /** @deprecated use `NotificationTriggerVariableResponse$outboundSchema` instead. */
102
- NotificationTriggerVariableResponse$.outboundSchema = exports.NotificationTriggerVariableResponse$outboundSchema;
103
- })(NotificationTriggerVariableResponse$ || (exports.NotificationTriggerVariableResponse$ = NotificationTriggerVariableResponse$ = {}));
104
- function notificationTriggerVariableResponseToJSON(notificationTriggerVariableResponse) {
105
- return JSON.stringify(exports.NotificationTriggerVariableResponse$outboundSchema.parse(notificationTriggerVariableResponse));
106
- }
107
- exports.notificationTriggerVariableResponseToJSON = notificationTriggerVariableResponseToJSON;
108
- function notificationTriggerVariableResponseFromJSON(jsonString) {
109
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationTriggerVariableResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationTriggerVariableResponse' from JSON`);
110
- }
111
- exports.notificationTriggerVariableResponseFromJSON = notificationTriggerVariableResponseFromJSON;
112
- //# sourceMappingURL=notificationtriggervariableresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notificationtriggervariableresponse.js","sourceRoot":"","sources":["../../src/models/components/notificationtriggervariableresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAUjD;;GAEG;AACU,QAAA,uCAAuC,GAAG;IACrD,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACV,CAAC;AAuBX,gBAAgB;AACH,QAAA,sDAAsD,GAI/D,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,uDAAuD,GAIhE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,yCAAyC,CASzD;AATD,WAAiB,yCAAyC;IACxD,wFAAwF;IAC3E,uDAAa,GACxB,8DAAsD,CAAC;IACzD,yFAAyF;IAC5E,wDAAc,GACzB,+DAAuD,CAAC;AAG5D,CAAC,EATgB,yCAAyC,yDAAzC,yCAAyC,QASzD;AAED,SAAgB,8CAA8C,CAC5D,wCAC0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,+DAAuD,CAAC,KAAK,CAC3D,wCAAwC,CACzC,CACF,CAAC;AACJ,CAAC;AATD,wGASC;AAED,SAAgB,gDAAgD,CAC9D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,8DAAsD,CAAC,KAAK,CAC1D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,sEAAsE,CACvE,CAAC;AACJ,CAAC;AAdD,4GAcC;AAED,gBAAgB;AACH,QAAA,qDAAqD,GACE,CAAC;KAChE,UAAU,CAAC,+CAAuC,CAAC,CAAC;AAEzD,gBAAgB;AACH,QAAA,sDAAsD,GAE/D,6DAAqD,CAAC;AAE1D;;;GAGG;AACH,IAAiB,wCAAwC,CAOxD;AAPD,WA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E,CAAC;AACJ,CAAC;AATD,kGASC"}
@@ -1,38 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { PreferenceChannels, PreferenceChannels$Outbound } from "./preferencechannels.js";
5
- export type Preference = {
6
- /**
7
- * Sets if the workflow is fully enabled for all channels or not for the subscriber.
8
- */
9
- enabled: boolean;
10
- /**
11
- * Subscriber preferences for the different channels regarding this workflow
12
- */
13
- channels: PreferenceChannels;
14
- };
15
- /** @internal */
16
- export declare const Preference$inboundSchema: z.ZodType<Preference, z.ZodTypeDef, unknown>;
17
- /** @internal */
18
- export type Preference$Outbound = {
19
- enabled: boolean;
20
- channels: PreferenceChannels$Outbound;
21
- };
22
- /** @internal */
23
- export declare const Preference$outboundSchema: z.ZodType<Preference$Outbound, z.ZodTypeDef, Preference>;
24
- /**
25
- * @internal
26
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
- */
28
- export declare namespace Preference$ {
29
- /** @deprecated use `Preference$inboundSchema` instead. */
30
- const inboundSchema: z.ZodType<Preference, z.ZodTypeDef, unknown>;
31
- /** @deprecated use `Preference$outboundSchema` instead. */
32
- const outboundSchema: z.ZodType<Preference$Outbound, z.ZodTypeDef, Preference>;
33
- /** @deprecated use `Preference$Outbound` instead. */
34
- type Outbound = Preference$Outbound;
35
- }
36
- export declare function preferenceToJSON(preference: Preference): string;
37
- export declare function preferenceFromJSON(jsonString: string): SafeParseResult<Preference, SDKValidationError>;
38
- //# sourceMappingURL=preference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preference.d.ts","sourceRoot":"","sources":["../../src/models/components/preference.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,2BAA2B,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,UAAU,CAIV,CAAC;AAEH;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa,8CAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc,0DAA4B,CAAC;IACxD,qDAAqD;IACrD,KAAY,QAAQ,GAAG,mBAAmB,CAAC;CAC5C;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -1,62 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.preferenceFromJSON = exports.preferenceToJSON = exports.Preference$ = exports.Preference$outboundSchema = exports.Preference$inboundSchema = void 0;
30
- const z = __importStar(require("zod"));
31
- const schemas_js_1 = require("../../lib/schemas.js");
32
- const preferencechannels_js_1 = require("./preferencechannels.js");
33
- /** @internal */
34
- exports.Preference$inboundSchema = z.object({
35
- enabled: z.boolean(),
36
- channels: preferencechannels_js_1.PreferenceChannels$inboundSchema,
37
- });
38
- /** @internal */
39
- exports.Preference$outboundSchema = z.object({
40
- enabled: z.boolean(),
41
- channels: preferencechannels_js_1.PreferenceChannels$outboundSchema,
42
- });
43
- /**
44
- * @internal
45
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
- */
47
- var Preference$;
48
- (function (Preference$) {
49
- /** @deprecated use `Preference$inboundSchema` instead. */
50
- Preference$.inboundSchema = exports.Preference$inboundSchema;
51
- /** @deprecated use `Preference$outboundSchema` instead. */
52
- Preference$.outboundSchema = exports.Preference$outboundSchema;
53
- })(Preference$ || (exports.Preference$ = Preference$ = {}));
54
- function preferenceToJSON(preference) {
55
- return JSON.stringify(exports.Preference$outboundSchema.parse(preference));
56
- }
57
- exports.preferenceToJSON = preferenceToJSON;
58
- function preferenceFromJSON(jsonString) {
59
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Preference$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Preference' from JSON`);
60
- }
61
- exports.preferenceFromJSON = preferenceFromJSON;
62
- //# sourceMappingURL=preference.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preference.js","sourceRoot":"","sources":["../../src/models/components/preference.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,mEAKiC;AAajC,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,wDAAgC;CAC3C,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,yDAAiC;CAC5C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,WAAW,CAO3B;AAPD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAG1D,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAFD,4CAEC;AAED,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC;AARD,gDAQC"}
@@ -1,48 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { NotificationTriggerResponse, NotificationTriggerResponse$Outbound } from "./notificationtriggerresponse.js";
5
- export type TemplateResponse = {
6
- /**
7
- * Unique identifier of the workflow
8
- */
9
- id: string;
10
- /**
11
- * Name of the workflow
12
- */
13
- name: string;
14
- /**
15
- * Critical templates will always be delivered to the end user and should be hidden from the subscriber preferences screen
16
- */
17
- critical: boolean;
18
- /**
19
- * Triggers are the events that will trigger the workflow.
20
- */
21
- triggers: Array<NotificationTriggerResponse>;
22
- };
23
- /** @internal */
24
- export declare const TemplateResponse$inboundSchema: z.ZodType<TemplateResponse, z.ZodTypeDef, unknown>;
25
- /** @internal */
26
- export type TemplateResponse$Outbound = {
27
- _id: string;
28
- name: string;
29
- critical: boolean;
30
- triggers: Array<NotificationTriggerResponse$Outbound>;
31
- };
32
- /** @internal */
33
- export declare const TemplateResponse$outboundSchema: z.ZodType<TemplateResponse$Outbound, z.ZodTypeDef, TemplateResponse>;
34
- /**
35
- * @internal
36
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
37
- */
38
- export declare namespace TemplateResponse$ {
39
- /** @deprecated use `TemplateResponse$inboundSchema` instead. */
40
- const inboundSchema: z.ZodType<TemplateResponse, z.ZodTypeDef, unknown>;
41
- /** @deprecated use `TemplateResponse$outboundSchema` instead. */
42
- const outboundSchema: z.ZodType<TemplateResponse$Outbound, z.ZodTypeDef, TemplateResponse>;
43
- /** @deprecated use `TemplateResponse$Outbound` instead. */
44
- type Outbound = TemplateResponse$Outbound;
45
- }
46
- export declare function templateResponseToJSON(templateResponse: TemplateResponse): string;
47
- export declare function templateResponseFromJSON(jsonString: string): SafeParseResult<TemplateResponse, SDKValidationError>;
48
- //# sourceMappingURL=templateresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"templateresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/templateresponse.ts"],"names":[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AU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -1,75 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.templateResponseFromJSON = exports.templateResponseToJSON = exports.TemplateResponse$ = exports.TemplateResponse$outboundSchema = exports.TemplateResponse$inboundSchema = void 0;
30
- const z = __importStar(require("zod"));
31
- const primitives_js_1 = require("../../lib/primitives.js");
32
- const schemas_js_1 = require("../../lib/schemas.js");
33
- const notificationtriggerresponse_js_1 = require("./notificationtriggerresponse.js");
34
- /** @internal */
35
- exports.TemplateResponse$inboundSchema = z.object({
36
- _id: z.string(),
37
- name: z.string(),
38
- critical: z.boolean(),
39
- triggers: z.array(notificationtriggerresponse_js_1.NotificationTriggerResponse$inboundSchema),
40
- }).transform((v) => {
41
- return (0, primitives_js_1.remap)(v, {
42
- "_id": "id",
43
- });
44
- });
45
- /** @internal */
46
- exports.TemplateResponse$outboundSchema = z.object({
47
- id: z.string(),
48
- name: z.string(),
49
- critical: z.boolean(),
50
- triggers: z.array(notificationtriggerresponse_js_1.NotificationTriggerResponse$outboundSchema),
51
- }).transform((v) => {
52
- return (0, primitives_js_1.remap)(v, {
53
- id: "_id",
54
- });
55
- });
56
- /**
57
- * @internal
58
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
- */
60
- var TemplateResponse$;
61
- (function (TemplateResponse$) {
62
- /** @deprecated use `TemplateResponse$inboundSchema` instead. */
63
- TemplateResponse$.inboundSchema = exports.TemplateResponse$inboundSchema;
64
- /** @deprecated use `TemplateResponse$outboundSchema` instead. */
65
- TemplateResponse$.outboundSchema = exports.TemplateResponse$outboundSchema;
66
- })(TemplateResponse$ || (exports.TemplateResponse$ = TemplateResponse$ = {}));
67
- function templateResponseToJSON(templateResponse) {
68
- return JSON.stringify(exports.TemplateResponse$outboundSchema.parse(templateResponse));
69
- }
70
- exports.templateResponseToJSON = templateResponseToJSON;
71
- function templateResponseFromJSON(jsonString) {
72
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TemplateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TemplateResponse' from JSON`);
73
- }
74
- exports.templateResponseFromJSON = templateResponseFromJSON;
75
- //# sourceMappingURL=templateresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"templateresponse.js","sourceRoot":"","sources":["../../src/models/components/templateresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,qFAK0C;AAqB1C,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,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QC"}
@@ -1,69 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- /**
6
- * The type of the reserved variable
7
- */
8
- export declare const TriggerReservedVariableResponseType: {
9
- readonly Tenant: "tenant";
10
- readonly Actor: "actor";
11
- };
12
- /**
13
- * The type of the reserved variable
14
- */
15
- export type TriggerReservedVariableResponseType = ClosedEnum<typeof TriggerReservedVariableResponseType>;
16
- export type TriggerReservedVariableResponse = {
17
- /**
18
- * The type of the reserved variable
19
- */
20
- type: TriggerReservedVariableResponseType;
21
- /**
22
- * The reserved variables of the trigger
23
- */
24
- variables: Array<string>;
25
- };
26
- /** @internal */
27
- export declare const TriggerReservedVariableResponseType$inboundSchema: z.ZodNativeEnum<typeof TriggerReservedVariableResponseType>;
28
- /** @internal */
29
- export declare const TriggerReservedVariableResponseType$outboundSchema: z.ZodNativeEnum<typeof TriggerReservedVariableResponseType>;
30
- /**
31
- * @internal
32
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
33
- */
34
- export declare namespace TriggerReservedVariableResponseType$ {
35
- /** @deprecated use `TriggerReservedVariableResponseType$inboundSchema` instead. */
36
- const inboundSchema: z.ZodNativeEnum<{
37
- readonly Tenant: "tenant";
38
- readonly Actor: "actor";
39
- }>;
40
- /** @deprecated use `TriggerReservedVariableResponseType$outboundSchema` instead. */
41
- const outboundSchema: z.ZodNativeEnum<{
42
- readonly Tenant: "tenant";
43
- readonly Actor: "actor";
44
- }>;
45
- }
46
- /** @internal */
47
- export declare const TriggerReservedVariableResponse$inboundSchema: z.ZodType<TriggerReservedVariableResponse, z.ZodTypeDef, unknown>;
48
- /** @internal */
49
- export type TriggerReservedVariableResponse$Outbound = {
50
- type: string;
51
- variables: Array<string>;
52
- };
53
- /** @internal */
54
- export declare const TriggerReservedVariableResponse$outboundSchema: z.ZodType<TriggerReservedVariableResponse$Outbound, z.ZodTypeDef, TriggerReservedVariableResponse>;
55
- /**
56
- * @internal
57
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
- */
59
- export declare namespace TriggerReservedVariableResponse$ {
60
- /** @deprecated use `TriggerReservedVariableResponse$inboundSchema` instead. */
61
- const inboundSchema: z.ZodType<TriggerReservedVariableResponse, z.ZodTypeDef, unknown>;
62
- /** @deprecated use `TriggerReservedVariableResponse$outboundSchema` instead. */
63
- const outboundSchema: z.ZodType<TriggerReservedVariableResponse$Outbound, z.ZodTypeDef, TriggerReservedVariableResponse>;
64
- /** @deprecated use `TriggerReservedVariableResponse$Outbound` instead. */
65
- type Outbound = TriggerReservedVariableResponse$Outbound;
66
- }
67
- export declare function triggerReservedVariableResponseToJSON(triggerReservedVariableResponse: TriggerReservedVariableResponse): string;
68
- export declare function triggerReservedVariableResponseFromJSON(jsonString: string): SafeParseResult<TriggerReservedVariableResponse, SDKValidationError>;
69
- //# sourceMappingURL=triggerreservedvariableresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"triggerreservedvariableresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/triggerreservedvariableresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,IAAI,EAAE,mCAAmC,CAAC;IAC1C;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC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