@novu/api 0.1.1 → 0.1.5

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 (616) hide show
  1. package/FUNCTIONS.md +2 -3
  2. package/README.md +43 -45
  3. package/docs/sdks/authentication/README.md +10 -10
  4. package/docs/sdks/credentials/README.md +12 -12
  5. package/docs/sdks/integrations/README.md +18 -18
  6. package/docs/sdks/messages/README.md +11 -17
  7. package/docs/sdks/notifications/README.md +8 -12
  8. package/docs/sdks/novu/README.md +21 -179
  9. package/docs/sdks/novumessages/README.md +13 -13
  10. package/docs/sdks/novunotifications/README.md +10 -16
  11. package/docs/sdks/novusubscribers/README.md +9 -9
  12. package/docs/sdks/preferences/README.md +183 -22
  13. package/docs/sdks/properties/README.md +4 -4
  14. package/docs/sdks/stats/README.md +6 -6
  15. package/docs/sdks/subscribers/README.md +349 -35
  16. package/docs/sdks/topics/README.md +15 -19
  17. package/docs/sdks/webhooks/README.md +3 -3
  18. package/funcs/cancel.js +4 -4
  19. package/funcs/cancel.js.map +1 -1
  20. package/funcs/integrationsCreate.js +4 -4
  21. package/funcs/integrationsCreate.js.map +1 -1
  22. package/funcs/integrationsDelete.js +4 -4
  23. package/funcs/integrationsDelete.js.map +1 -1
  24. package/funcs/integrationsList.js +4 -4
  25. package/funcs/integrationsList.js.map +1 -1
  26. package/funcs/integrationsListActive.js +4 -4
  27. package/funcs/integrationsListActive.js.map +1 -1
  28. package/funcs/integrationsSetAsPrimary.js +4 -4
  29. package/funcs/integrationsSetAsPrimary.js.map +1 -1
  30. package/funcs/integrationsUpdate.js +4 -4
  31. package/funcs/integrationsUpdate.js.map +1 -1
  32. package/funcs/integrationsWebhooksRetrieve.js +4 -4
  33. package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
  34. package/funcs/messagesDelete.js +4 -4
  35. package/funcs/messagesDelete.js.map +1 -1
  36. package/funcs/messagesDeleteByTransactionId.js +4 -4
  37. package/funcs/messagesDeleteByTransactionId.js.map +1 -1
  38. package/funcs/messagesRetrieve.js +4 -4
  39. package/funcs/messagesRetrieve.js.map +1 -1
  40. package/funcs/notificationsList.js +4 -4
  41. package/funcs/notificationsList.js.map +1 -1
  42. package/funcs/notificationsRetrieve.js +4 -4
  43. package/funcs/notificationsRetrieve.js.map +1 -1
  44. package/funcs/notificationsStatsGraph.js +4 -4
  45. package/funcs/notificationsStatsGraph.js.map +1 -1
  46. package/funcs/notificationsStatsRetrieve.js +4 -4
  47. package/funcs/notificationsStatsRetrieve.js.map +1 -1
  48. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +1 -1
  49. package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
  50. package/funcs/subscribersAuthenticationChatAccessOauth.js +7 -7
  51. package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
  52. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +2 -2
  53. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
  54. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +6 -6
  55. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
  56. package/funcs/subscribersCreate.d.ts +1 -1
  57. package/funcs/subscribersCreate.d.ts.map +1 -1
  58. package/funcs/subscribersCreate.js +6 -6
  59. package/funcs/subscribersCreate.js.map +1 -1
  60. package/funcs/subscribersCreateBulk.d.ts +1 -1
  61. package/funcs/subscribersCreateBulk.d.ts.map +1 -1
  62. package/funcs/subscribersCreateBulk.js +7 -6
  63. package/funcs/subscribersCreateBulk.js.map +1 -1
  64. package/funcs/subscribersCredentialsAppend.d.ts +1 -1
  65. package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
  66. package/funcs/subscribersCredentialsAppend.js +6 -6
  67. package/funcs/subscribersCredentialsAppend.js.map +1 -1
  68. package/funcs/subscribersCredentialsDelete.d.ts +1 -1
  69. package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
  70. package/funcs/subscribersCredentialsDelete.js +7 -7
  71. package/funcs/subscribersCredentialsDelete.js.map +1 -1
  72. package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
  73. package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
  74. package/funcs/subscribersCredentialsUpdate.js +6 -6
  75. package/funcs/subscribersCredentialsUpdate.js.map +1 -1
  76. package/funcs/subscribersDelete.js +5 -5
  77. package/funcs/subscribersDelete.js.map +1 -1
  78. package/funcs/subscribersDeleteLegacy.d.ts +18 -0
  79. package/funcs/subscribersDeleteLegacy.d.ts.map +1 -0
  80. package/funcs/subscribersDeleteLegacy.js +141 -0
  81. package/funcs/subscribersDeleteLegacy.js.map +1 -0
  82. package/funcs/subscribersList.d.ts +1 -1
  83. package/funcs/subscribersList.d.ts.map +1 -1
  84. package/funcs/subscribersList.js +6 -6
  85. package/funcs/subscribersList.js.map +1 -1
  86. package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
  87. package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
  88. package/funcs/subscribersMessagesMarkAll.js +8 -7
  89. package/funcs/subscribersMessagesMarkAll.js.map +1 -1
  90. package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
  91. package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
  92. package/funcs/subscribersMessagesMarkAllAs.js +6 -6
  93. package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
  94. package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
  95. package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
  96. package/funcs/subscribersMessagesUpdateAsSeen.js +6 -6
  97. package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
  98. package/funcs/subscribersNotificationsFeed.d.ts +1 -1
  99. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
  100. package/funcs/subscribersNotificationsFeed.js +7 -6
  101. package/funcs/subscribersNotificationsFeed.js.map +1 -1
  102. package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
  103. package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
  104. package/funcs/subscribersNotificationsUnseenCount.js +6 -6
  105. package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
  106. package/funcs/subscribersPatch.d.ts +17 -0
  107. package/funcs/subscribersPatch.d.ts.map +1 -0
  108. package/funcs/{supportControllerFetchUserOrganizations.js → subscribersPatch.js} +48 -16
  109. package/funcs/subscribersPatch.js.map +1 -0
  110. package/funcs/subscribersPreferencesList.d.ts +1 -1
  111. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  112. package/funcs/subscribersPreferencesList.js +6 -6
  113. package/funcs/subscribersPreferencesList.js.map +1 -1
  114. package/funcs/subscribersPreferencesRetrieve.d.ts +16 -0
  115. package/funcs/subscribersPreferencesRetrieve.d.ts.map +1 -0
  116. package/funcs/{create.js → subscribersPreferencesRetrieve.js} +51 -20
  117. package/funcs/subscribersPreferencesRetrieve.js.map +1 -0
  118. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts +1 -1
  119. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
  120. package/funcs/subscribersPreferencesRetrieveByLevel.js +6 -6
  121. package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
  122. package/funcs/subscribersPreferencesUpdate.d.ts +6 -2
  123. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  124. package/funcs/subscribersPreferencesUpdate.js +21 -15
  125. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  126. package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -1
  127. package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
  128. package/funcs/subscribersPreferencesUpdateGlobal.js +6 -6
  129. package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
  130. package/funcs/subscribersPreferencesUpdateLegacy.d.ts +13 -0
  131. package/funcs/subscribersPreferencesUpdateLegacy.d.ts.map +1 -0
  132. package/funcs/subscribersPreferencesUpdateLegacy.js +139 -0
  133. package/funcs/subscribersPreferencesUpdateLegacy.js.map +1 -0
  134. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
  135. package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
  136. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +6 -6
  137. package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
  138. package/funcs/subscribersRetrieve.d.ts +1 -1
  139. package/funcs/subscribersRetrieve.d.ts.map +1 -1
  140. package/funcs/subscribersRetrieve.js +6 -11
  141. package/funcs/subscribersRetrieve.js.map +1 -1
  142. package/funcs/subscribersRetrieveLegacy.d.ts +16 -0
  143. package/funcs/subscribersRetrieveLegacy.d.ts.map +1 -0
  144. package/funcs/subscribersRetrieveLegacy.js +144 -0
  145. package/funcs/subscribersRetrieveLegacy.js.map +1 -0
  146. package/funcs/subscribersSearch.d.ts +13 -0
  147. package/funcs/subscribersSearch.d.ts.map +1 -0
  148. package/funcs/subscribersSearch.js +138 -0
  149. package/funcs/subscribersSearch.js.map +1 -0
  150. package/funcs/subscribersUpdate.d.ts +1 -1
  151. package/funcs/subscribersUpdate.d.ts.map +1 -1
  152. package/funcs/subscribersUpdate.js +6 -6
  153. package/funcs/subscribersUpdate.js.map +1 -1
  154. package/funcs/topicsCreate.js +4 -4
  155. package/funcs/topicsCreate.js.map +1 -1
  156. package/funcs/topicsDelete.js +4 -4
  157. package/funcs/topicsDelete.js.map +1 -1
  158. package/funcs/topicsList.js +4 -4
  159. package/funcs/topicsList.js.map +1 -1
  160. package/funcs/topicsRename.js +4 -4
  161. package/funcs/topicsRename.js.map +1 -1
  162. package/funcs/topicsRetrieve.js +4 -4
  163. package/funcs/topicsRetrieve.js.map +1 -1
  164. package/funcs/topicsSubscribersAssign.js +4 -4
  165. package/funcs/topicsSubscribersAssign.js.map +1 -1
  166. package/funcs/topicsSubscribersRemove.js +4 -4
  167. package/funcs/topicsSubscribersRemove.js.map +1 -1
  168. package/funcs/topicsSubscribersRetrieve.js +4 -4
  169. package/funcs/topicsSubscribersRetrieve.js.map +1 -1
  170. package/funcs/trigger.js +4 -4
  171. package/funcs/trigger.js.map +1 -1
  172. package/funcs/triggerBroadcast.js +4 -4
  173. package/funcs/triggerBroadcast.js.map +1 -1
  174. package/funcs/triggerBulk.js +4 -4
  175. package/funcs/triggerBulk.js.map +1 -1
  176. package/jsr.json +1 -1
  177. package/lib/config.d.ts +4 -4
  178. package/lib/config.d.ts.map +1 -1
  179. package/lib/config.js +3 -3
  180. package/lib/config.js.map +1 -1
  181. package/lib/retries.js +0 -1
  182. package/lib/retries.js.map +1 -1
  183. package/lib/security.js +1 -1
  184. package/lib/security.js.map +1 -1
  185. package/models/components/{channelsettings.d.ts → channelsettingsdto.d.ts} +22 -22
  186. package/models/components/channelsettingsdto.d.ts.map +1 -0
  187. package/models/components/{channelsettings.js → channelsettingsdto.js} +29 -29
  188. package/models/components/channelsettingsdto.js.map +1 -0
  189. package/models/components/getsubscriberpreferencesdto.d.ts +39 -0
  190. package/models/components/getsubscriberpreferencesdto.d.ts.map +1 -0
  191. package/models/components/getsubscriberpreferencesdto.js +63 -0
  192. package/models/components/getsubscriberpreferencesdto.js.map +1 -0
  193. package/models/components/globalpreferencedto.d.ts +38 -0
  194. package/models/components/globalpreferencedto.d.ts.map +1 -0
  195. package/models/components/globalpreferencedto.js +62 -0
  196. package/models/components/globalpreferencedto.js.map +1 -0
  197. package/models/components/index.d.ts +11 -4
  198. package/models/components/index.d.ts.map +1 -1
  199. package/models/components/index.js +11 -4
  200. package/models/components/index.js.map +1 -1
  201. package/models/components/listsubscribersresponsedto.d.ts +43 -0
  202. package/models/components/listsubscribersresponsedto.d.ts.map +1 -0
  203. package/models/components/listsubscribersresponsedto.js +64 -0
  204. package/models/components/listsubscribersresponsedto.js.map +1 -0
  205. package/models/components/overrides.d.ts +112 -0
  206. package/models/components/overrides.d.ts.map +1 -0
  207. package/models/components/overrides.js +110 -0
  208. package/models/components/overrides.js.map +1 -0
  209. package/models/components/patchpreferencechannelsdto.d.ts +52 -0
  210. package/models/components/patchpreferencechannelsdto.d.ts.map +1 -0
  211. package/models/components/patchpreferencechannelsdto.js +76 -0
  212. package/models/components/patchpreferencechannelsdto.js.map +1 -0
  213. package/models/components/patchsubscriberpreferencesdto.d.ts +38 -0
  214. package/models/components/patchsubscriberpreferencesdto.d.ts.map +1 -0
  215. package/models/components/patchsubscriberpreferencesdto.js +62 -0
  216. package/models/components/patchsubscriberpreferencesdto.js.map +1 -0
  217. package/models/components/patchsubscriberrequestdto.d.ts +96 -0
  218. package/models/components/patchsubscriberrequestdto.d.ts.map +1 -0
  219. package/models/components/patchsubscriberrequestdto.js +100 -0
  220. package/models/components/patchsubscriberrequestdto.js.map +1 -0
  221. package/models/components/removesubscriberresponsedto.d.ts +37 -0
  222. package/models/components/removesubscriberresponsedto.d.ts.map +1 -0
  223. package/models/components/removesubscriberresponsedto.js +61 -0
  224. package/models/components/removesubscriberresponsedto.js.map +1 -0
  225. package/models/components/security.d.ts +2 -2
  226. package/models/components/security.d.ts.map +1 -1
  227. package/models/components/security.js +2 -11
  228. package/models/components/security.js.map +1 -1
  229. package/models/components/subscriberresponsedto.d.ts +14 -3
  230. package/models/components/subscriberresponsedto.d.ts.map +1 -1
  231. package/models/components/subscriberresponsedto.js +5 -3
  232. package/models/components/subscriberresponsedto.js.map +1 -1
  233. package/models/components/triggereventrequestdto.d.ts +1 -12
  234. package/models/components/triggereventrequestdto.d.ts.map +1 -1
  235. package/models/components/triggereventrequestdto.js +10 -6
  236. package/models/components/triggereventrequestdto.js.map +1 -1
  237. package/models/components/triggereventtoallrequestdto.d.ts +15 -15
  238. package/models/components/triggereventtoallrequestdto.d.ts.map +1 -1
  239. package/models/components/triggereventtoallrequestdto.js +20 -18
  240. package/models/components/triggereventtoallrequestdto.js.map +1 -1
  241. package/models/components/workflowinfodto.d.ts +42 -0
  242. package/models/components/workflowinfodto.d.ts.map +1 -0
  243. package/models/components/{createsupportthreaddto.js → workflowinfodto.js} +23 -19
  244. package/models/components/workflowinfodto.js.map +1 -0
  245. package/models/components/workflowpreferencedto.d.ts +50 -0
  246. package/models/components/workflowpreferencedto.d.ts.map +1 -0
  247. package/models/components/workflowpreferencedto.js +68 -0
  248. package/models/components/workflowpreferencedto.js.map +1 -0
  249. package/models/operations/index.d.ts +25 -21
  250. package/models/operations/index.d.ts.map +1 -1
  251. package/models/operations/index.js +25 -21
  252. package/models/operations/index.js.map +1 -1
  253. package/models/operations/subscriberscontrollergetsubscriber.d.ts +0 -5
  254. package/models/operations/subscriberscontrollergetsubscriber.d.ts.map +1 -1
  255. package/models/operations/subscriberscontrollergetsubscriber.js +0 -2
  256. package/models/operations/subscriberscontrollergetsubscriber.js.map +1 -1
  257. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts +66 -0
  258. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts.map +1 -0
  259. package/models/operations/subscriberscontrollergetsubscriberpreferences.js +110 -0
  260. package/models/operations/subscriberscontrollergetsubscriberpreferences.js.map +1 -0
  261. package/models/operations/subscriberscontrollerpatchsubscriber.d.ts +68 -0
  262. package/models/operations/subscriberscontrollerpatchsubscriber.d.ts.map +1 -0
  263. package/models/operations/subscriberscontrollerpatchsubscriber.js +114 -0
  264. package/models/operations/subscriberscontrollerpatchsubscriber.js.map +1 -0
  265. package/models/operations/subscriberscontrollerremovesubscriber.d.ts +2 -2
  266. package/models/operations/subscriberscontrollerremovesubscriber.js +2 -2
  267. package/models/operations/subscriberscontrollersearchsubscribers.d.ts +126 -0
  268. package/models/operations/subscriberscontrollersearchsubscribers.d.ts.map +1 -0
  269. package/models/operations/subscriberscontrollersearchsubscribers.js +145 -0
  270. package/models/operations/subscriberscontrollersearchsubscribers.js.map +1 -0
  271. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.d.ts +68 -0
  272. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.d.ts.map +1 -0
  273. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.js +118 -0
  274. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.js.map +1 -0
  275. package/models/operations/subscribersv1controllerbulkcreatesubscribers.d.ts +66 -0
  276. package/models/operations/subscribersv1controllerbulkcreatesubscribers.d.ts.map +1 -0
  277. package/models/operations/subscribersv1controllerbulkcreatesubscribers.js +112 -0
  278. package/models/operations/subscribersv1controllerbulkcreatesubscribers.js.map +1 -0
  279. package/models/operations/subscribersv1controllerchataccessoauth.d.ts +80 -0
  280. package/models/operations/subscribersv1controllerchataccessoauth.d.ts.map +1 -0
  281. package/models/operations/subscribersv1controllerchataccessoauth.js +113 -0
  282. package/models/operations/subscribersv1controllerchataccessoauth.js.map +1 -0
  283. package/models/operations/subscribersv1controllerchatoauthcallback.d.ts +108 -0
  284. package/models/operations/subscribersv1controllerchatoauthcallback.d.ts.map +1 -0
  285. package/models/operations/subscribersv1controllerchatoauthcallback.js +143 -0
  286. package/models/operations/subscribersv1controllerchatoauthcallback.js.map +1 -0
  287. package/models/operations/subscribersv1controllercreatesubscriber.d.ts +66 -0
  288. package/models/operations/subscribersv1controllercreatesubscriber.d.ts.map +1 -0
  289. package/models/operations/subscribersv1controllercreatesubscriber.js +112 -0
  290. package/models/operations/subscribersv1controllercreatesubscriber.js.map +1 -0
  291. package/models/operations/subscribersv1controllerdeletesubscribercredentials.d.ts +65 -0
  292. package/models/operations/subscribersv1controllerdeletesubscribercredentials.d.ts.map +1 -0
  293. package/models/operations/subscribersv1controllerdeletesubscribercredentials.js +111 -0
  294. package/models/operations/subscribersv1controllerdeletesubscribercredentials.js.map +1 -0
  295. package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts +79 -0
  296. package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts.map +1 -0
  297. package/models/operations/subscribersv1controllergetnotificationsfeed.js +120 -0
  298. package/models/operations/subscribersv1controllergetnotificationsfeed.js.map +1 -0
  299. package/models/operations/subscribersv1controllergetsubscriber.d.ts +71 -0
  300. package/models/operations/subscribersv1controllergetsubscriber.d.ts.map +1 -0
  301. package/models/operations/subscribersv1controllergetsubscriber.js +112 -0
  302. package/models/operations/subscribersv1controllergetsubscriber.js.map +1 -0
  303. package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.d.ts +108 -0
  304. package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.d.ts.map +1 -0
  305. package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.js +141 -0
  306. package/models/operations/subscribersv1controllergetsubscriberpreferencebylevel.js.map +1 -0
  307. package/models/operations/subscribersv1controllergetunseencount.d.ts +76 -0
  308. package/models/operations/subscribersv1controllergetunseencount.d.ts.map +1 -0
  309. package/models/operations/subscribersv1controllergetunseencount.js +114 -0
  310. package/models/operations/subscribersv1controllergetunseencount.js.map +1 -0
  311. package/models/operations/subscribersv1controllerlistsubscriberpreferences.d.ts +71 -0
  312. package/models/operations/subscribersv1controllerlistsubscriberpreferences.d.ts.map +1 -0
  313. package/models/operations/subscribersv1controllerlistsubscriberpreferences.js +116 -0
  314. package/models/operations/subscribersv1controllerlistsubscriberpreferences.js.map +1 -0
  315. package/models/operations/subscribersv1controllerlistsubscribers.d.ts +108 -0
  316. package/models/operations/subscribersv1controllerlistsubscribers.d.ts.map +1 -0
  317. package/models/operations/subscribersv1controllerlistsubscribers.js +145 -0
  318. package/models/operations/subscribersv1controllerlistsubscribers.js.map +1 -0
  319. package/models/operations/subscribersv1controllermarkactionasseen.d.ts +72 -0
  320. package/models/operations/subscribersv1controllermarkactionasseen.d.ts.map +1 -0
  321. package/models/operations/subscribersv1controllermarkactionasseen.js +118 -0
  322. package/models/operations/subscribersv1controllermarkactionasseen.js.map +1 -0
  323. package/models/operations/subscribersv1controllermarkallunreadasread.d.ts +68 -0
  324. package/models/operations/subscribersv1controllermarkallunreadasread.d.ts.map +1 -0
  325. package/models/operations/subscribersv1controllermarkallunreadasread.js +114 -0
  326. package/models/operations/subscribersv1controllermarkallunreadasread.js.map +1 -0
  327. package/models/operations/subscribersv1controllermarkmessagesas.d.ts +68 -0
  328. package/models/operations/subscribersv1controllermarkmessagesas.d.ts.map +1 -0
  329. package/models/operations/subscribersv1controllermarkmessagesas.js +114 -0
  330. package/models/operations/subscribersv1controllermarkmessagesas.js.map +1 -0
  331. package/models/operations/subscribersv1controllermodifysubscriberchannel.d.ts +68 -0
  332. package/models/operations/subscribersv1controllermodifysubscriberchannel.d.ts.map +1 -0
  333. package/models/operations/subscribersv1controllermodifysubscriberchannel.js +115 -0
  334. package/models/operations/subscribersv1controllermodifysubscriberchannel.js.map +1 -0
  335. package/models/operations/subscribersv1controllerremovesubscriber.d.ts +66 -0
  336. package/models/operations/subscribersv1controllerremovesubscriber.d.ts.map +1 -0
  337. package/models/operations/subscribersv1controllerremovesubscriber.js +110 -0
  338. package/models/operations/subscribersv1controllerremovesubscriber.js.map +1 -0
  339. package/models/operations/subscribersv1controllerupdatesubscriber.d.ts +68 -0
  340. package/models/operations/subscribersv1controllerupdatesubscriber.d.ts.map +1 -0
  341. package/models/operations/subscribersv1controllerupdatesubscriber.js +114 -0
  342. package/models/operations/subscribersv1controllerupdatesubscriber.js.map +1 -0
  343. package/models/operations/subscribersv1controllerupdatesubscriberchannel.d.ts +68 -0
  344. package/models/operations/subscribersv1controllerupdatesubscriberchannel.d.ts.map +1 -0
  345. package/models/operations/subscribersv1controllerupdatesubscriberchannel.js +115 -0
  346. package/models/operations/subscribersv1controllerupdatesubscriberchannel.js.map +1 -0
  347. package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.d.ts +68 -0
  348. package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.d.ts.map +1 -0
  349. package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.js +118 -0
  350. package/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.js.map +1 -0
  351. package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.d.ts +68 -0
  352. package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.d.ts.map +1 -0
  353. package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.js +118 -0
  354. package/models/operations/subscribersv1controllerupdatesubscriberonlineflag.js.map +1 -0
  355. package/models/operations/subscribersv1controllerupdatesubscriberpreference.d.ts +70 -0
  356. package/models/operations/subscribersv1controllerupdatesubscriberpreference.d.ts.map +1 -0
  357. package/models/operations/subscribersv1controllerupdatesubscriberpreference.js +120 -0
  358. package/models/operations/subscribersv1controllerupdatesubscriberpreference.js.map +1 -0
  359. package/package.json +6 -7
  360. package/sdk/authentication.d.ts +3 -3
  361. package/sdk/authentication.d.ts.map +1 -1
  362. package/sdk/authentication.js.map +1 -1
  363. package/sdk/credentials.d.ts +3 -3
  364. package/sdk/credentials.d.ts.map +1 -1
  365. package/sdk/credentials.js.map +1 -1
  366. package/sdk/novumessages.d.ts +3 -3
  367. package/sdk/novumessages.d.ts.map +1 -1
  368. package/sdk/novumessages.js.map +1 -1
  369. package/sdk/novunotifications.d.ts +2 -2
  370. package/sdk/novunotifications.d.ts.map +1 -1
  371. package/sdk/novunotifications.js.map +1 -1
  372. package/sdk/preferences.d.ts +18 -4
  373. package/sdk/preferences.d.ts.map +1 -1
  374. package/sdk/preferences.js +22 -2
  375. package/sdk/preferences.js.map +1 -1
  376. package/sdk/properties.d.ts +1 -1
  377. package/sdk/properties.d.ts.map +1 -1
  378. package/sdk/sdk.d.ts +0 -8
  379. package/sdk/sdk.d.ts.map +1 -1
  380. package/sdk/sdk.js +0 -14
  381. package/sdk/sdk.js.map +1 -1
  382. package/sdk/subscribers.d.ts +33 -6
  383. package/sdk/subscribers.d.ts.map +1 -1
  384. package/sdk/subscribers.js +43 -4
  385. package/sdk/subscribers.js.map +1 -1
  386. package/sources/json-development.json +3504 -356
  387. package/src/funcs/cancel.ts +4 -4
  388. package/src/funcs/integrationsCreate.ts +4 -4
  389. package/src/funcs/integrationsDelete.ts +4 -4
  390. package/src/funcs/integrationsList.ts +4 -4
  391. package/src/funcs/integrationsListActive.ts +4 -4
  392. package/src/funcs/integrationsSetAsPrimary.ts +5 -5
  393. package/src/funcs/integrationsUpdate.ts +5 -5
  394. package/src/funcs/integrationsWebhooksRetrieve.ts +4 -4
  395. package/src/funcs/messagesDelete.ts +4 -4
  396. package/src/funcs/messagesDeleteByTransactionId.ts +4 -4
  397. package/src/funcs/messagesRetrieve.ts +4 -4
  398. package/src/funcs/notificationsList.ts +4 -4
  399. package/src/funcs/notificationsRetrieve.ts +4 -4
  400. package/src/funcs/notificationsStatsGraph.ts +4 -4
  401. package/src/funcs/notificationsStatsRetrieve.ts +4 -4
  402. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +10 -10
  403. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +11 -11
  404. package/src/funcs/subscribersCreate.ts +10 -10
  405. package/src/funcs/subscribersCreateBulk.ts +15 -15
  406. package/src/funcs/subscribersCredentialsAppend.ts +11 -11
  407. package/src/funcs/subscribersCredentialsDelete.ts +10 -10
  408. package/src/funcs/subscribersCredentialsUpdate.ts +11 -11
  409. package/src/funcs/subscribersDelete.ts +5 -5
  410. package/src/funcs/subscribersDeleteLegacy.ts +200 -0
  411. package/src/funcs/subscribersList.ts +11 -11
  412. package/src/funcs/subscribersMessagesMarkAll.ts +14 -11
  413. package/src/funcs/subscribersMessagesMarkAllAs.ts +10 -10
  414. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +10 -10
  415. package/src/funcs/subscribersNotificationsFeed.ts +11 -10
  416. package/src/funcs/subscribersNotificationsUnseenCount.ts +10 -10
  417. package/src/funcs/{supportControllerFetchUserOrganizations.ts → subscribersPatch.ts} +73 -19
  418. package/src/funcs/subscribersPreferencesList.ts +10 -10
  419. package/src/funcs/subscribersPreferencesRetrieve.ts +203 -0
  420. package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +10 -10
  421. package/src/funcs/subscribersPreferencesUpdate.ts +31 -24
  422. package/src/funcs/subscribersPreferencesUpdateGlobal.ts +16 -15
  423. package/src/funcs/subscribersPreferencesUpdateLegacy.ts +202 -0
  424. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +10 -10
  425. package/src/funcs/subscribersRetrieve.ts +6 -13
  426. package/src/funcs/subscribersRetrieveLegacy.ts +205 -0
  427. package/src/funcs/{create.ts → subscribersSearch.ts} +78 -31
  428. package/src/funcs/subscribersUpdate.ts +10 -10
  429. package/src/funcs/topicsCreate.ts +4 -4
  430. package/src/funcs/topicsDelete.ts +4 -4
  431. package/src/funcs/topicsList.ts +4 -4
  432. package/src/funcs/topicsRename.ts +4 -4
  433. package/src/funcs/topicsRetrieve.ts +4 -4
  434. package/src/funcs/topicsSubscribersAssign.ts +4 -4
  435. package/src/funcs/topicsSubscribersRemove.ts +4 -4
  436. package/src/funcs/topicsSubscribersRetrieve.ts +4 -4
  437. package/src/funcs/trigger.ts +4 -4
  438. package/src/funcs/triggerBroadcast.ts +4 -4
  439. package/src/funcs/triggerBulk.ts +4 -4
  440. package/src/lib/config.ts +4 -4
  441. package/src/lib/retries.ts +0 -1
  442. package/src/lib/security.ts +1 -1
  443. package/src/models/components/{channelsettings.ts → channelsettingsdto.ts} +40 -38
  444. package/src/models/components/getsubscriberpreferencesdto.ts +90 -0
  445. package/src/models/components/globalpreferencedto.ts +82 -0
  446. package/src/models/components/index.ts +11 -4
  447. package/src/models/components/listsubscribersresponsedto.ts +89 -0
  448. package/src/models/components/overrides.ts +141 -0
  449. package/src/models/components/patchpreferencechannelsdto.ts +106 -0
  450. package/src/models/components/patchsubscriberpreferencesdto.ts +84 -0
  451. package/src/models/components/patchsubscriberrequestdto.ts +182 -0
  452. package/src/models/components/removesubscriberresponsedto.ts +78 -0
  453. package/src/models/components/security.ts +4 -13
  454. package/src/models/components/subscriberresponsedto.ts +18 -9
  455. package/src/models/components/triggereventrequestdto.ts +11 -22
  456. package/src/models/components/triggereventtoallrequestdto.ts +35 -24
  457. package/src/models/components/workflowinfodto.ts +81 -0
  458. package/src/models/components/workflowpreferencedto.ts +108 -0
  459. package/src/models/operations/index.ts +25 -21
  460. package/src/models/operations/subscriberscontrollergetsubscriber.ts +0 -7
  461. package/src/models/operations/subscriberscontrollergetsubscriberpreferences.ts +183 -0
  462. package/src/models/operations/subscriberscontrollerpatchsubscriber.ts +189 -0
  463. package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
  464. package/src/models/operations/subscriberscontrollersearchsubscribers.ts +260 -0
  465. package/src/models/operations/subscriberscontrollerupdatesubscriberpreferences.ts +189 -0
  466. package/src/models/operations/subscribersv1controllerbulkcreatesubscribers.ts +185 -0
  467. package/src/models/operations/{subscriberscontrollerchataccessoauth.ts → subscribersv1controllerchataccessoauth.ts} +47 -46
  468. package/src/models/operations/subscribersv1controllerchatoauthcallback.ts +281 -0
  469. package/src/models/operations/subscribersv1controllercreatesubscriber.ts +187 -0
  470. package/src/models/operations/subscribersv1controllerdeletesubscribercredentials.ts +178 -0
  471. package/src/models/operations/{subscriberscontrollergetnotificationsfeed.ts → subscribersv1controllergetnotificationsfeed.ts} +46 -46
  472. package/src/models/operations/subscribersv1controllergetsubscriber.ts +188 -0
  473. package/src/models/operations/{subscriberscontrollergetsubscriberpreferencebylevel.ts → subscribersv1controllergetsubscriberpreferencebylevel.ts} +46 -46
  474. package/src/models/operations/subscribersv1controllergetunseencount.ts +195 -0
  475. package/src/models/operations/subscribersv1controllerlistsubscriberpreferences.ts +191 -0
  476. package/src/models/operations/subscribersv1controllerlistsubscribers.ts +283 -0
  477. package/src/models/operations/{subscriberscontrollermarkactionasseen.ts → subscribersv1controllermarkactionasseen.ts} +48 -46
  478. package/src/models/operations/subscribersv1controllermarkallunreadasread.ts +191 -0
  479. package/src/models/operations/subscribersv1controllermarkmessagesas.ts +187 -0
  480. package/src/models/operations/subscribersv1controllermodifysubscriberchannel.ts +192 -0
  481. package/src/models/operations/subscribersv1controllerremovesubscriber.ts +183 -0
  482. package/src/models/operations/{subscriberscontrollerupdatesubscriber.ts → subscribersv1controllerupdatesubscriber.ts} +48 -46
  483. package/src/models/operations/subscribersv1controllerupdatesubscriberchannel.ts +192 -0
  484. package/src/models/operations/subscribersv1controllerupdatesubscriberglobalpreferences.ts +195 -0
  485. package/src/models/operations/subscribersv1controllerupdatesubscriberonlineflag.ts +193 -0
  486. package/src/models/operations/subscribersv1controllerupdatesubscriberpreference.ts +197 -0
  487. package/src/sdk/authentication.ts +4 -4
  488. package/src/sdk/credentials.ts +7 -3
  489. package/src/sdk/novumessages.ts +4 -4
  490. package/src/sdk/novunotifications.ts +4 -4
  491. package/src/sdk/preferences.ts +52 -7
  492. package/src/sdk/properties.ts +1 -1
  493. package/src/sdk/sdk.ts +0 -34
  494. package/src/sdk/subscribers.ts +89 -10
  495. package/funcs/create.d.ts +0 -9
  496. package/funcs/create.d.ts.map +0 -1
  497. package/funcs/create.js.map +0 -1
  498. package/funcs/supportControllerFetchUserOrganizations.d.ts +0 -10
  499. package/funcs/supportControllerFetchUserOrganizations.d.ts.map +0 -1
  500. package/funcs/supportControllerFetchUserOrganizations.js.map +0 -1
  501. package/models/components/channelsettings.d.ts.map +0 -1
  502. package/models/components/channelsettings.js.map +0 -1
  503. package/models/components/createsupportthreaddto.d.ts +0 -29
  504. package/models/components/createsupportthreaddto.d.ts.map +0 -1
  505. package/models/components/createsupportthreaddto.js.map +0 -1
  506. package/models/components/plaincardrequestdto.d.ts +0 -100
  507. package/models/components/plaincardrequestdto.d.ts.map +0 -1
  508. package/models/components/plaincardrequestdto.js +0 -139
  509. package/models/components/plaincardrequestdto.js.map +0 -1
  510. package/models/components/workflowtostepcontrolvaluesdto.d.ts +0 -40
  511. package/models/components/workflowtostepcontrolvaluesdto.d.ts.map +0 -1
  512. package/models/components/workflowtostepcontrolvaluesdto.js +0 -59
  513. package/models/components/workflowtostepcontrolvaluesdto.js.map +0 -1
  514. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +0 -66
  515. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +0 -1
  516. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +0 -112
  517. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +0 -1
  518. package/models/operations/subscriberscontrollerchataccessoauth.d.ts +0 -80
  519. package/models/operations/subscriberscontrollerchataccessoauth.d.ts.map +0 -1
  520. package/models/operations/subscriberscontrollerchataccessoauth.js +0 -113
  521. package/models/operations/subscriberscontrollerchataccessoauth.js.map +0 -1
  522. package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +0 -108
  523. package/models/operations/subscriberscontrollerchatoauthcallback.d.ts.map +0 -1
  524. package/models/operations/subscriberscontrollerchatoauthcallback.js +0 -142
  525. package/models/operations/subscriberscontrollerchatoauthcallback.js.map +0 -1
  526. package/models/operations/subscriberscontrollercreatesubscriber.d.ts +0 -66
  527. package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +0 -1
  528. package/models/operations/subscriberscontrollercreatesubscriber.js +0 -112
  529. package/models/operations/subscriberscontrollercreatesubscriber.js.map +0 -1
  530. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +0 -65
  531. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +0 -1
  532. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +0 -111
  533. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +0 -1
  534. package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +0 -79
  535. package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts.map +0 -1
  536. package/models/operations/subscriberscontrollergetnotificationsfeed.js +0 -120
  537. package/models/operations/subscriberscontrollergetnotificationsfeed.js.map +0 -1
  538. package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +0 -108
  539. package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts.map +0 -1
  540. package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +0 -141
  541. package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js.map +0 -1
  542. package/models/operations/subscriberscontrollergetunseencount.d.ts +0 -76
  543. package/models/operations/subscriberscontrollergetunseencount.d.ts.map +0 -1
  544. package/models/operations/subscriberscontrollergetunseencount.js +0 -114
  545. package/models/operations/subscriberscontrollergetunseencount.js.map +0 -1
  546. package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +0 -71
  547. package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts.map +0 -1
  548. package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +0 -113
  549. package/models/operations/subscriberscontrollerlistsubscriberpreferences.js.map +0 -1
  550. package/models/operations/subscriberscontrollerlistsubscribers.d.ts +0 -108
  551. package/models/operations/subscriberscontrollerlistsubscribers.d.ts.map +0 -1
  552. package/models/operations/subscriberscontrollerlistsubscribers.js +0 -145
  553. package/models/operations/subscriberscontrollerlistsubscribers.js.map +0 -1
  554. package/models/operations/subscriberscontrollermarkactionasseen.d.ts +0 -72
  555. package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +0 -1
  556. package/models/operations/subscriberscontrollermarkactionasseen.js +0 -118
  557. package/models/operations/subscriberscontrollermarkactionasseen.js.map +0 -1
  558. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +0 -68
  559. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +0 -1
  560. package/models/operations/subscriberscontrollermarkallunreadasread.js +0 -114
  561. package/models/operations/subscriberscontrollermarkallunreadasread.js.map +0 -1
  562. package/models/operations/subscriberscontrollermarkmessagesas.d.ts +0 -68
  563. package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +0 -1
  564. package/models/operations/subscriberscontrollermarkmessagesas.js +0 -114
  565. package/models/operations/subscriberscontrollermarkmessagesas.js.map +0 -1
  566. package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +0 -68
  567. package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts.map +0 -1
  568. package/models/operations/subscriberscontrollermodifysubscriberchannel.js +0 -114
  569. package/models/operations/subscriberscontrollermodifysubscriberchannel.js.map +0 -1
  570. package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +0 -68
  571. package/models/operations/subscriberscontrollerupdatesubscriber.d.ts.map +0 -1
  572. package/models/operations/subscriberscontrollerupdatesubscriber.js +0 -114
  573. package/models/operations/subscriberscontrollerupdatesubscriber.js.map +0 -1
  574. package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +0 -68
  575. package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts.map +0 -1
  576. package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +0 -114
  577. package/models/operations/subscriberscontrollerupdatesubscriberchannel.js.map +0 -1
  578. package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +0 -68
  579. package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts.map +0 -1
  580. package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +0 -118
  581. package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js.map +0 -1
  582. package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +0 -68
  583. package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts.map +0 -1
  584. package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +0 -117
  585. package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js.map +0 -1
  586. package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +0 -70
  587. package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts.map +0 -1
  588. package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +0 -119
  589. package/models/operations/subscriberscontrollerupdatesubscriberpreference.js.map +0 -1
  590. package/models/operations/supportcontrollercreatethread.d.ts +0 -35
  591. package/models/operations/supportcontrollercreatethread.d.ts.map +0 -1
  592. package/models/operations/supportcontrollercreatethread.js +0 -73
  593. package/models/operations/supportcontrollercreatethread.js.map +0 -1
  594. package/models/operations/supportcontrollerfetchuserorganizations.d.ts +0 -56
  595. package/models/operations/supportcontrollerfetchuserorganizations.d.ts.map +0 -1
  596. package/models/operations/supportcontrollerfetchuserorganizations.js +0 -96
  597. package/models/operations/supportcontrollerfetchuserorganizations.js.map +0 -1
  598. package/src/models/components/createsupportthreaddto.ts +0 -66
  599. package/src/models/components/plaincardrequestdto.ts +0 -223
  600. package/src/models/components/workflowtostepcontrolvaluesdto.ts +0 -71
  601. package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +0 -185
  602. package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +0 -281
  603. package/src/models/operations/subscriberscontrollercreatesubscriber.ts +0 -185
  604. package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -177
  605. package/src/models/operations/subscriberscontrollergetunseencount.ts +0 -192
  606. package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +0 -193
  607. package/src/models/operations/subscriberscontrollerlistsubscribers.ts +0 -282
  608. package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +0 -191
  609. package/src/models/operations/subscriberscontrollermarkmessagesas.ts +0 -184
  610. package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +0 -193
  611. package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +0 -193
  612. package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +0 -195
  613. package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +0 -192
  614. package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +0 -196
  615. package/src/models/operations/supportcontrollercreatethread.ts +0 -90
  616. package/src/models/operations/supportcontrollerfetchuserorganizations.ts +0 -163
@@ -0,0 +1,185 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type SubscribersV1ControllerBulkCreateSubscribersRequest = {
13
+ /**
14
+ * A header for idempotency purposes
15
+ */
16
+ idempotencyKey?: string | undefined;
17
+ bulkSubscriberCreateDto: components.BulkSubscriberCreateDto;
18
+ };
19
+
20
+ export type SubscribersV1ControllerBulkCreateSubscribersResponse = {
21
+ headers: { [k: string]: Array<string> };
22
+ result: components.BulkCreateSubscriberResponseDto;
23
+ };
24
+
25
+ /** @internal */
26
+ export const SubscribersV1ControllerBulkCreateSubscribersRequest$inboundSchema:
27
+ z.ZodType<
28
+ SubscribersV1ControllerBulkCreateSubscribersRequest,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ "idempotency-key": z.string().optional(),
33
+ BulkSubscriberCreateDto: components.BulkSubscriberCreateDto$inboundSchema,
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "idempotency-key": "idempotencyKey",
37
+ "BulkSubscriberCreateDto": "bulkSubscriberCreateDto",
38
+ });
39
+ });
40
+
41
+ /** @internal */
42
+ export type SubscribersV1ControllerBulkCreateSubscribersRequest$Outbound = {
43
+ "idempotency-key"?: string | undefined;
44
+ BulkSubscriberCreateDto: components.BulkSubscriberCreateDto$Outbound;
45
+ };
46
+
47
+ /** @internal */
48
+ export const SubscribersV1ControllerBulkCreateSubscribersRequest$outboundSchema:
49
+ z.ZodType<
50
+ SubscribersV1ControllerBulkCreateSubscribersRequest$Outbound,
51
+ z.ZodTypeDef,
52
+ SubscribersV1ControllerBulkCreateSubscribersRequest
53
+ > = z.object({
54
+ idempotencyKey: z.string().optional(),
55
+ bulkSubscriberCreateDto: components.BulkSubscriberCreateDto$outboundSchema,
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ idempotencyKey: "idempotency-key",
59
+ bulkSubscriberCreateDto: "BulkSubscriberCreateDto",
60
+ });
61
+ });
62
+
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export namespace SubscribersV1ControllerBulkCreateSubscribersRequest$ {
68
+ /** @deprecated use `SubscribersV1ControllerBulkCreateSubscribersRequest$inboundSchema` instead. */
69
+ export const inboundSchema =
70
+ SubscribersV1ControllerBulkCreateSubscribersRequest$inboundSchema;
71
+ /** @deprecated use `SubscribersV1ControllerBulkCreateSubscribersRequest$outboundSchema` instead. */
72
+ export const outboundSchema =
73
+ SubscribersV1ControllerBulkCreateSubscribersRequest$outboundSchema;
74
+ /** @deprecated use `SubscribersV1ControllerBulkCreateSubscribersRequest$Outbound` instead. */
75
+ export type Outbound =
76
+ SubscribersV1ControllerBulkCreateSubscribersRequest$Outbound;
77
+ }
78
+
79
+ export function subscribersV1ControllerBulkCreateSubscribersRequestToJSON(
80
+ subscribersV1ControllerBulkCreateSubscribersRequest:
81
+ SubscribersV1ControllerBulkCreateSubscribersRequest,
82
+ ): string {
83
+ return JSON.stringify(
84
+ SubscribersV1ControllerBulkCreateSubscribersRequest$outboundSchema.parse(
85
+ subscribersV1ControllerBulkCreateSubscribersRequest,
86
+ ),
87
+ );
88
+ }
89
+
90
+ export function subscribersV1ControllerBulkCreateSubscribersRequestFromJSON(
91
+ jsonString: string,
92
+ ): SafeParseResult<
93
+ SubscribersV1ControllerBulkCreateSubscribersRequest,
94
+ SDKValidationError
95
+ > {
96
+ return safeParse(
97
+ jsonString,
98
+ (x) =>
99
+ SubscribersV1ControllerBulkCreateSubscribersRequest$inboundSchema.parse(
100
+ JSON.parse(x),
101
+ ),
102
+ `Failed to parse 'SubscribersV1ControllerBulkCreateSubscribersRequest' from JSON`,
103
+ );
104
+ }
105
+
106
+ /** @internal */
107
+ export const SubscribersV1ControllerBulkCreateSubscribersResponse$inboundSchema:
108
+ z.ZodType<
109
+ SubscribersV1ControllerBulkCreateSubscribersResponse,
110
+ z.ZodTypeDef,
111
+ unknown
112
+ > = z.object({
113
+ Headers: z.record(z.array(z.string())),
114
+ Result: components.BulkCreateSubscriberResponseDto$inboundSchema,
115
+ }).transform((v) => {
116
+ return remap$(v, {
117
+ "Headers": "headers",
118
+ "Result": "result",
119
+ });
120
+ });
121
+
122
+ /** @internal */
123
+ export type SubscribersV1ControllerBulkCreateSubscribersResponse$Outbound = {
124
+ Headers: { [k: string]: Array<string> };
125
+ Result: components.BulkCreateSubscriberResponseDto$Outbound;
126
+ };
127
+
128
+ /** @internal */
129
+ export const SubscribersV1ControllerBulkCreateSubscribersResponse$outboundSchema:
130
+ z.ZodType<
131
+ SubscribersV1ControllerBulkCreateSubscribersResponse$Outbound,
132
+ z.ZodTypeDef,
133
+ SubscribersV1ControllerBulkCreateSubscribersResponse
134
+ > = z.object({
135
+ headers: z.record(z.array(z.string())),
136
+ result: components.BulkCreateSubscriberResponseDto$outboundSchema,
137
+ }).transform((v) => {
138
+ return remap$(v, {
139
+ headers: "Headers",
140
+ result: "Result",
141
+ });
142
+ });
143
+
144
+ /**
145
+ * @internal
146
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
147
+ */
148
+ export namespace SubscribersV1ControllerBulkCreateSubscribersResponse$ {
149
+ /** @deprecated use `SubscribersV1ControllerBulkCreateSubscribersResponse$inboundSchema` instead. */
150
+ export const inboundSchema =
151
+ SubscribersV1ControllerBulkCreateSubscribersResponse$inboundSchema;
152
+ /** @deprecated use `SubscribersV1ControllerBulkCreateSubscribersResponse$outboundSchema` instead. */
153
+ export const outboundSchema =
154
+ SubscribersV1ControllerBulkCreateSubscribersResponse$outboundSchema;
155
+ /** @deprecated use `SubscribersV1ControllerBulkCreateSubscribersResponse$Outbound` instead. */
156
+ export type Outbound =
157
+ SubscribersV1ControllerBulkCreateSubscribersResponse$Outbound;
158
+ }
159
+
160
+ export function subscribersV1ControllerBulkCreateSubscribersResponseToJSON(
161
+ subscribersV1ControllerBulkCreateSubscribersResponse:
162
+ SubscribersV1ControllerBulkCreateSubscribersResponse,
163
+ ): string {
164
+ return JSON.stringify(
165
+ SubscribersV1ControllerBulkCreateSubscribersResponse$outboundSchema.parse(
166
+ subscribersV1ControllerBulkCreateSubscribersResponse,
167
+ ),
168
+ );
169
+ }
170
+
171
+ export function subscribersV1ControllerBulkCreateSubscribersResponseFromJSON(
172
+ jsonString: string,
173
+ ): SafeParseResult<
174
+ SubscribersV1ControllerBulkCreateSubscribersResponse,
175
+ SDKValidationError
176
+ > {
177
+ return safeParse(
178
+ jsonString,
179
+ (x) =>
180
+ SubscribersV1ControllerBulkCreateSubscribersResponse$inboundSchema.parse(
181
+ JSON.parse(x),
182
+ ),
183
+ `Failed to parse 'SubscribersV1ControllerBulkCreateSubscribersResponse' from JSON`,
184
+ );
185
+ }
@@ -8,7 +8,7 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export type SubscribersControllerChatAccessOauthRequest = {
11
+ export type SubscribersV1ControllerChatAccessOauthRequest = {
12
12
  subscriberId: string;
13
13
  providerId?: any | undefined;
14
14
  /**
@@ -29,14 +29,14 @@ export type SubscribersControllerChatAccessOauthRequest = {
29
29
  idempotencyKey?: string | undefined;
30
30
  };
31
31
 
32
- export type SubscribersControllerChatAccessOauthResponse = {
32
+ export type SubscribersV1ControllerChatAccessOauthResponse = {
33
33
  headers: { [k: string]: Array<string> };
34
34
  };
35
35
 
36
36
  /** @internal */
37
- export const SubscribersControllerChatAccessOauthRequest$inboundSchema:
37
+ export const SubscribersV1ControllerChatAccessOauthRequest$inboundSchema:
38
38
  z.ZodType<
39
- SubscribersControllerChatAccessOauthRequest,
39
+ SubscribersV1ControllerChatAccessOauthRequest,
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
@@ -53,7 +53,7 @@ export const SubscribersControllerChatAccessOauthRequest$inboundSchema:
53
53
  });
54
54
 
55
55
  /** @internal */
56
- export type SubscribersControllerChatAccessOauthRequest$Outbound = {
56
+ export type SubscribersV1ControllerChatAccessOauthRequest$Outbound = {
57
57
  subscriberId: string;
58
58
  providerId?: any | undefined;
59
59
  hmacHash: string;
@@ -63,11 +63,11 @@ export type SubscribersControllerChatAccessOauthRequest$Outbound = {
63
63
  };
64
64
 
65
65
  /** @internal */
66
- export const SubscribersControllerChatAccessOauthRequest$outboundSchema:
66
+ export const SubscribersV1ControllerChatAccessOauthRequest$outboundSchema:
67
67
  z.ZodType<
68
- SubscribersControllerChatAccessOauthRequest$Outbound,
68
+ SubscribersV1ControllerChatAccessOauthRequest$Outbound,
69
69
  z.ZodTypeDef,
70
- SubscribersControllerChatAccessOauthRequest
70
+ SubscribersV1ControllerChatAccessOauthRequest
71
71
  > = z.object({
72
72
  subscriberId: z.string(),
73
73
  providerId: z.any().optional(),
@@ -85,48 +85,48 @@ export const SubscribersControllerChatAccessOauthRequest$outboundSchema:
85
85
  * @internal
86
86
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
87
  */
88
- export namespace SubscribersControllerChatAccessOauthRequest$ {
89
- /** @deprecated use `SubscribersControllerChatAccessOauthRequest$inboundSchema` instead. */
88
+ export namespace SubscribersV1ControllerChatAccessOauthRequest$ {
89
+ /** @deprecated use `SubscribersV1ControllerChatAccessOauthRequest$inboundSchema` instead. */
90
90
  export const inboundSchema =
91
- SubscribersControllerChatAccessOauthRequest$inboundSchema;
92
- /** @deprecated use `SubscribersControllerChatAccessOauthRequest$outboundSchema` instead. */
91
+ SubscribersV1ControllerChatAccessOauthRequest$inboundSchema;
92
+ /** @deprecated use `SubscribersV1ControllerChatAccessOauthRequest$outboundSchema` instead. */
93
93
  export const outboundSchema =
94
- SubscribersControllerChatAccessOauthRequest$outboundSchema;
95
- /** @deprecated use `SubscribersControllerChatAccessOauthRequest$Outbound` instead. */
96
- export type Outbound = SubscribersControllerChatAccessOauthRequest$Outbound;
94
+ SubscribersV1ControllerChatAccessOauthRequest$outboundSchema;
95
+ /** @deprecated use `SubscribersV1ControllerChatAccessOauthRequest$Outbound` instead. */
96
+ export type Outbound = SubscribersV1ControllerChatAccessOauthRequest$Outbound;
97
97
  }
98
98
 
99
- export function subscribersControllerChatAccessOauthRequestToJSON(
100
- subscribersControllerChatAccessOauthRequest:
101
- SubscribersControllerChatAccessOauthRequest,
99
+ export function subscribersV1ControllerChatAccessOauthRequestToJSON(
100
+ subscribersV1ControllerChatAccessOauthRequest:
101
+ SubscribersV1ControllerChatAccessOauthRequest,
102
102
  ): string {
103
103
  return JSON.stringify(
104
- SubscribersControllerChatAccessOauthRequest$outboundSchema.parse(
105
- subscribersControllerChatAccessOauthRequest,
104
+ SubscribersV1ControllerChatAccessOauthRequest$outboundSchema.parse(
105
+ subscribersV1ControllerChatAccessOauthRequest,
106
106
  ),
107
107
  );
108
108
  }
109
109
 
110
- export function subscribersControllerChatAccessOauthRequestFromJSON(
110
+ export function subscribersV1ControllerChatAccessOauthRequestFromJSON(
111
111
  jsonString: string,
112
112
  ): SafeParseResult<
113
- SubscribersControllerChatAccessOauthRequest,
113
+ SubscribersV1ControllerChatAccessOauthRequest,
114
114
  SDKValidationError
115
115
  > {
116
116
  return safeParse(
117
117
  jsonString,
118
118
  (x) =>
119
- SubscribersControllerChatAccessOauthRequest$inboundSchema.parse(
119
+ SubscribersV1ControllerChatAccessOauthRequest$inboundSchema.parse(
120
120
  JSON.parse(x),
121
121
  ),
122
- `Failed to parse 'SubscribersControllerChatAccessOauthRequest' from JSON`,
122
+ `Failed to parse 'SubscribersV1ControllerChatAccessOauthRequest' from JSON`,
123
123
  );
124
124
  }
125
125
 
126
126
  /** @internal */
127
- export const SubscribersControllerChatAccessOauthResponse$inboundSchema:
127
+ export const SubscribersV1ControllerChatAccessOauthResponse$inboundSchema:
128
128
  z.ZodType<
129
- SubscribersControllerChatAccessOauthResponse,
129
+ SubscribersV1ControllerChatAccessOauthResponse,
130
130
  z.ZodTypeDef,
131
131
  unknown
132
132
  > = z.object({
@@ -138,16 +138,16 @@ export const SubscribersControllerChatAccessOauthResponse$inboundSchema:
138
138
  });
139
139
 
140
140
  /** @internal */
141
- export type SubscribersControllerChatAccessOauthResponse$Outbound = {
141
+ export type SubscribersV1ControllerChatAccessOauthResponse$Outbound = {
142
142
  Headers: { [k: string]: Array<string> };
143
143
  };
144
144
 
145
145
  /** @internal */
146
- export const SubscribersControllerChatAccessOauthResponse$outboundSchema:
146
+ export const SubscribersV1ControllerChatAccessOauthResponse$outboundSchema:
147
147
  z.ZodType<
148
- SubscribersControllerChatAccessOauthResponse$Outbound,
148
+ SubscribersV1ControllerChatAccessOauthResponse$Outbound,
149
149
  z.ZodTypeDef,
150
- SubscribersControllerChatAccessOauthResponse
150
+ SubscribersV1ControllerChatAccessOauthResponse
151
151
  > = z.object({
152
152
  headers: z.record(z.array(z.string())),
153
153
  }).transform((v) => {
@@ -160,40 +160,41 @@ export const SubscribersControllerChatAccessOauthResponse$outboundSchema:
160
160
  * @internal
161
161
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
162
162
  */
163
- export namespace SubscribersControllerChatAccessOauthResponse$ {
164
- /** @deprecated use `SubscribersControllerChatAccessOauthResponse$inboundSchema` instead. */
163
+ export namespace SubscribersV1ControllerChatAccessOauthResponse$ {
164
+ /** @deprecated use `SubscribersV1ControllerChatAccessOauthResponse$inboundSchema` instead. */
165
165
  export const inboundSchema =
166
- SubscribersControllerChatAccessOauthResponse$inboundSchema;
167
- /** @deprecated use `SubscribersControllerChatAccessOauthResponse$outboundSchema` instead. */
166
+ SubscribersV1ControllerChatAccessOauthResponse$inboundSchema;
167
+ /** @deprecated use `SubscribersV1ControllerChatAccessOauthResponse$outboundSchema` instead. */
168
168
  export const outboundSchema =
169
- SubscribersControllerChatAccessOauthResponse$outboundSchema;
170
- /** @deprecated use `SubscribersControllerChatAccessOauthResponse$Outbound` instead. */
171
- export type Outbound = SubscribersControllerChatAccessOauthResponse$Outbound;
169
+ SubscribersV1ControllerChatAccessOauthResponse$outboundSchema;
170
+ /** @deprecated use `SubscribersV1ControllerChatAccessOauthResponse$Outbound` instead. */
171
+ export type Outbound =
172
+ SubscribersV1ControllerChatAccessOauthResponse$Outbound;
172
173
  }
173
174
 
174
- export function subscribersControllerChatAccessOauthResponseToJSON(
175
- subscribersControllerChatAccessOauthResponse:
176
- SubscribersControllerChatAccessOauthResponse,
175
+ export function subscribersV1ControllerChatAccessOauthResponseToJSON(
176
+ subscribersV1ControllerChatAccessOauthResponse:
177
+ SubscribersV1ControllerChatAccessOauthResponse,
177
178
  ): string {
178
179
  return JSON.stringify(
179
- SubscribersControllerChatAccessOauthResponse$outboundSchema.parse(
180
- subscribersControllerChatAccessOauthResponse,
180
+ SubscribersV1ControllerChatAccessOauthResponse$outboundSchema.parse(
181
+ subscribersV1ControllerChatAccessOauthResponse,
181
182
  ),
182
183
  );
183
184
  }
184
185
 
185
- export function subscribersControllerChatAccessOauthResponseFromJSON(
186
+ export function subscribersV1ControllerChatAccessOauthResponseFromJSON(
186
187
  jsonString: string,
187
188
  ): SafeParseResult<
188
- SubscribersControllerChatAccessOauthResponse,
189
+ SubscribersV1ControllerChatAccessOauthResponse,
189
190
  SDKValidationError
190
191
  > {
191
192
  return safeParse(
192
193
  jsonString,
193
194
  (x) =>
194
- SubscribersControllerChatAccessOauthResponse$inboundSchema.parse(
195
+ SubscribersV1ControllerChatAccessOauthResponse$inboundSchema.parse(
195
196
  JSON.parse(x),
196
197
  ),
197
- `Failed to parse 'SubscribersControllerChatAccessOauthResponse' from JSON`,
198
+ `Failed to parse 'SubscribersV1ControllerChatAccessOauthResponse' from JSON`,
198
199
  );
199
200
  }
@@ -0,0 +1,281 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type SubscribersV1ControllerChatOauthCallbackRequest = {
12
+ subscriberId: string;
13
+ providerId?: any | undefined;
14
+ /**
15
+ * HMAC hash for the request
16
+ */
17
+ hmacHash: string;
18
+ /**
19
+ * The ID of the environment, must be a valid MongoDB ID
20
+ */
21
+ environmentId: string;
22
+ /**
23
+ * Optional integration identifier
24
+ */
25
+ integrationIdentifier?: string | undefined;
26
+ /**
27
+ * Optional authorization code returned from the OAuth provider
28
+ */
29
+ code: string;
30
+ /**
31
+ * A header for idempotency purposes
32
+ */
33
+ idempotencyKey?: string | undefined;
34
+ };
35
+
36
+ export type SubscribersV1ControllerChatOauthCallbackResponseResult =
37
+ | string
38
+ | string;
39
+
40
+ export type SubscribersV1ControllerChatOauthCallbackResponse = {
41
+ headers: { [k: string]: Array<string> };
42
+ result: string | string;
43
+ };
44
+
45
+ /** @internal */
46
+ export const SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema:
47
+ z.ZodType<
48
+ SubscribersV1ControllerChatOauthCallbackRequest,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = z.object({
52
+ subscriberId: z.string(),
53
+ providerId: z.any().optional(),
54
+ hmacHash: z.string(),
55
+ environmentId: z.string(),
56
+ integrationIdentifier: z.string().optional(),
57
+ code: z.string(),
58
+ "idempotency-key": z.string().optional(),
59
+ }).transform((v) => {
60
+ return remap$(v, {
61
+ "idempotency-key": "idempotencyKey",
62
+ });
63
+ });
64
+
65
+ /** @internal */
66
+ export type SubscribersV1ControllerChatOauthCallbackRequest$Outbound = {
67
+ subscriberId: string;
68
+ providerId?: any | undefined;
69
+ hmacHash: string;
70
+ environmentId: string;
71
+ integrationIdentifier?: string | undefined;
72
+ code: string;
73
+ "idempotency-key"?: string | undefined;
74
+ };
75
+
76
+ /** @internal */
77
+ export const SubscribersV1ControllerChatOauthCallbackRequest$outboundSchema:
78
+ z.ZodType<
79
+ SubscribersV1ControllerChatOauthCallbackRequest$Outbound,
80
+ z.ZodTypeDef,
81
+ SubscribersV1ControllerChatOauthCallbackRequest
82
+ > = z.object({
83
+ subscriberId: z.string(),
84
+ providerId: z.any().optional(),
85
+ hmacHash: z.string(),
86
+ environmentId: z.string(),
87
+ integrationIdentifier: z.string().optional(),
88
+ code: z.string(),
89
+ idempotencyKey: z.string().optional(),
90
+ }).transform((v) => {
91
+ return remap$(v, {
92
+ idempotencyKey: "idempotency-key",
93
+ });
94
+ });
95
+
96
+ /**
97
+ * @internal
98
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
99
+ */
100
+ export namespace SubscribersV1ControllerChatOauthCallbackRequest$ {
101
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema` instead. */
102
+ export const inboundSchema =
103
+ SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema;
104
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackRequest$outboundSchema` instead. */
105
+ export const outboundSchema =
106
+ SubscribersV1ControllerChatOauthCallbackRequest$outboundSchema;
107
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackRequest$Outbound` instead. */
108
+ export type Outbound =
109
+ SubscribersV1ControllerChatOauthCallbackRequest$Outbound;
110
+ }
111
+
112
+ export function subscribersV1ControllerChatOauthCallbackRequestToJSON(
113
+ subscribersV1ControllerChatOauthCallbackRequest:
114
+ SubscribersV1ControllerChatOauthCallbackRequest,
115
+ ): string {
116
+ return JSON.stringify(
117
+ SubscribersV1ControllerChatOauthCallbackRequest$outboundSchema.parse(
118
+ subscribersV1ControllerChatOauthCallbackRequest,
119
+ ),
120
+ );
121
+ }
122
+
123
+ export function subscribersV1ControllerChatOauthCallbackRequestFromJSON(
124
+ jsonString: string,
125
+ ): SafeParseResult<
126
+ SubscribersV1ControllerChatOauthCallbackRequest,
127
+ SDKValidationError
128
+ > {
129
+ return safeParse(
130
+ jsonString,
131
+ (x) =>
132
+ SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema.parse(
133
+ JSON.parse(x),
134
+ ),
135
+ `Failed to parse 'SubscribersV1ControllerChatOauthCallbackRequest' from JSON`,
136
+ );
137
+ }
138
+
139
+ /** @internal */
140
+ export const SubscribersV1ControllerChatOauthCallbackResponseResult$inboundSchema:
141
+ z.ZodType<
142
+ SubscribersV1ControllerChatOauthCallbackResponseResult,
143
+ z.ZodTypeDef,
144
+ unknown
145
+ > = z.union([z.string(), z.string()]);
146
+
147
+ /** @internal */
148
+ export type SubscribersV1ControllerChatOauthCallbackResponseResult$Outbound =
149
+ | string
150
+ | string;
151
+
152
+ /** @internal */
153
+ export const SubscribersV1ControllerChatOauthCallbackResponseResult$outboundSchema:
154
+ z.ZodType<
155
+ SubscribersV1ControllerChatOauthCallbackResponseResult$Outbound,
156
+ z.ZodTypeDef,
157
+ SubscribersV1ControllerChatOauthCallbackResponseResult
158
+ > = z.union([z.string(), z.string()]);
159
+
160
+ /**
161
+ * @internal
162
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
163
+ */
164
+ export namespace SubscribersV1ControllerChatOauthCallbackResponseResult$ {
165
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackResponseResult$inboundSchema` instead. */
166
+ export const inboundSchema =
167
+ SubscribersV1ControllerChatOauthCallbackResponseResult$inboundSchema;
168
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackResponseResult$outboundSchema` instead. */
169
+ export const outboundSchema =
170
+ SubscribersV1ControllerChatOauthCallbackResponseResult$outboundSchema;
171
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackResponseResult$Outbound` instead. */
172
+ export type Outbound =
173
+ SubscribersV1ControllerChatOauthCallbackResponseResult$Outbound;
174
+ }
175
+
176
+ export function subscribersV1ControllerChatOauthCallbackResponseResultToJSON(
177
+ subscribersV1ControllerChatOauthCallbackResponseResult:
178
+ SubscribersV1ControllerChatOauthCallbackResponseResult,
179
+ ): string {
180
+ return JSON.stringify(
181
+ SubscribersV1ControllerChatOauthCallbackResponseResult$outboundSchema.parse(
182
+ subscribersV1ControllerChatOauthCallbackResponseResult,
183
+ ),
184
+ );
185
+ }
186
+
187
+ export function subscribersV1ControllerChatOauthCallbackResponseResultFromJSON(
188
+ jsonString: string,
189
+ ): SafeParseResult<
190
+ SubscribersV1ControllerChatOauthCallbackResponseResult,
191
+ SDKValidationError
192
+ > {
193
+ return safeParse(
194
+ jsonString,
195
+ (x) =>
196
+ SubscribersV1ControllerChatOauthCallbackResponseResult$inboundSchema
197
+ .parse(JSON.parse(x)),
198
+ `Failed to parse 'SubscribersV1ControllerChatOauthCallbackResponseResult' from JSON`,
199
+ );
200
+ }
201
+
202
+ /** @internal */
203
+ export const SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema:
204
+ z.ZodType<
205
+ SubscribersV1ControllerChatOauthCallbackResponse,
206
+ z.ZodTypeDef,
207
+ unknown
208
+ > = z.object({
209
+ Headers: z.record(z.array(z.string())),
210
+ Result: z.union([z.string(), z.string()]),
211
+ }).transform((v) => {
212
+ return remap$(v, {
213
+ "Headers": "headers",
214
+ "Result": "result",
215
+ });
216
+ });
217
+
218
+ /** @internal */
219
+ export type SubscribersV1ControllerChatOauthCallbackResponse$Outbound = {
220
+ Headers: { [k: string]: Array<string> };
221
+ Result: string | string;
222
+ };
223
+
224
+ /** @internal */
225
+ export const SubscribersV1ControllerChatOauthCallbackResponse$outboundSchema:
226
+ z.ZodType<
227
+ SubscribersV1ControllerChatOauthCallbackResponse$Outbound,
228
+ z.ZodTypeDef,
229
+ SubscribersV1ControllerChatOauthCallbackResponse
230
+ > = z.object({
231
+ headers: z.record(z.array(z.string())),
232
+ result: z.union([z.string(), z.string()]),
233
+ }).transform((v) => {
234
+ return remap$(v, {
235
+ headers: "Headers",
236
+ result: "Result",
237
+ });
238
+ });
239
+
240
+ /**
241
+ * @internal
242
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
243
+ */
244
+ export namespace SubscribersV1ControllerChatOauthCallbackResponse$ {
245
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema` instead. */
246
+ export const inboundSchema =
247
+ SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema;
248
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackResponse$outboundSchema` instead. */
249
+ export const outboundSchema =
250
+ SubscribersV1ControllerChatOauthCallbackResponse$outboundSchema;
251
+ /** @deprecated use `SubscribersV1ControllerChatOauthCallbackResponse$Outbound` instead. */
252
+ export type Outbound =
253
+ SubscribersV1ControllerChatOauthCallbackResponse$Outbound;
254
+ }
255
+
256
+ export function subscribersV1ControllerChatOauthCallbackResponseToJSON(
257
+ subscribersV1ControllerChatOauthCallbackResponse:
258
+ SubscribersV1ControllerChatOauthCallbackResponse,
259
+ ): string {
260
+ return JSON.stringify(
261
+ SubscribersV1ControllerChatOauthCallbackResponse$outboundSchema.parse(
262
+ subscribersV1ControllerChatOauthCallbackResponse,
263
+ ),
264
+ );
265
+ }
266
+
267
+ export function subscribersV1ControllerChatOauthCallbackResponseFromJSON(
268
+ jsonString: string,
269
+ ): SafeParseResult<
270
+ SubscribersV1ControllerChatOauthCallbackResponse,
271
+ SDKValidationError
272
+ > {
273
+ return safeParse(
274
+ jsonString,
275
+ (x) =>
276
+ SubscribersV1ControllerChatOauthCallbackResponse$inboundSchema.parse(
277
+ JSON.parse(x),
278
+ ),
279
+ `Failed to parse 'SubscribersV1ControllerChatOauthCallbackResponse' from JSON`,
280
+ );
281
+ }