@novu/api 3.17.1 → 3.18.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 (437) hide show
  1. package/FUNCTIONS.md +1 -0
  2. package/README.md +63 -3
  3. package/examples/trigger.example.ts +1 -0
  4. package/funcs/agentsCreate.d.ts +19 -0
  5. package/funcs/agentsCreate.d.ts.map +1 -0
  6. package/funcs/agentsCreate.js +141 -0
  7. package/funcs/agentsCreate.js.map +1 -0
  8. package/funcs/agentsDelete.d.ts +18 -0
  9. package/funcs/agentsDelete.d.ts.map +1 -0
  10. package/funcs/agentsDelete.js +144 -0
  11. package/funcs/agentsDelete.js.map +1 -0
  12. package/funcs/agentsIntegrationsCreate.d.ts +19 -0
  13. package/funcs/agentsIntegrationsCreate.d.ts.map +1 -0
  14. package/funcs/agentsIntegrationsCreate.js +146 -0
  15. package/funcs/agentsIntegrationsCreate.js.map +1 -0
  16. package/funcs/agentsIntegrationsDelete.d.ts +18 -0
  17. package/funcs/agentsIntegrationsDelete.d.ts.map +1 -0
  18. package/funcs/agentsIntegrationsDelete.js +145 -0
  19. package/funcs/agentsIntegrationsDelete.js.map +1 -0
  20. package/funcs/agentsIntegrationsList.d.ts +18 -0
  21. package/funcs/agentsIntegrationsList.d.ts.map +1 -0
  22. package/funcs/agentsIntegrationsList.js +148 -0
  23. package/funcs/agentsIntegrationsList.js.map +1 -0
  24. package/funcs/agentsIntegrationsUpdate.d.ts +18 -0
  25. package/funcs/agentsIntegrationsUpdate.d.ts.map +1 -0
  26. package/funcs/agentsIntegrationsUpdate.js +142 -0
  27. package/funcs/agentsIntegrationsUpdate.js.map +1 -0
  28. package/funcs/agentsList.d.ts +18 -0
  29. package/funcs/agentsList.d.ts.map +1 -0
  30. package/funcs/agentsList.js +142 -0
  31. package/funcs/agentsList.js.map +1 -0
  32. package/funcs/agentsRetrieve.d.ts +18 -0
  33. package/funcs/agentsRetrieve.d.ts.map +1 -0
  34. package/funcs/agentsRetrieve.js +142 -0
  35. package/funcs/agentsRetrieve.js.map +1 -0
  36. package/funcs/agentsSendReply.d.ts +41 -0
  37. package/funcs/agentsSendReply.d.ts.map +1 -0
  38. package/funcs/agentsSendReply.js +168 -0
  39. package/funcs/agentsSendReply.js.map +1 -0
  40. package/funcs/agentsUpdate.d.ts +19 -0
  41. package/funcs/agentsUpdate.d.ts.map +1 -0
  42. package/funcs/agentsUpdate.js +146 -0
  43. package/funcs/agentsUpdate.js.map +1 -0
  44. package/funcs/agentsUpdateBridge.d.ts +19 -0
  45. package/funcs/agentsUpdateBridge.d.ts.map +1 -0
  46. package/funcs/agentsUpdateBridge.js +143 -0
  47. package/funcs/agentsUpdateBridge.js.map +1 -0
  48. package/funcs/integrationsGenerateChatOAuthUrl.d.ts +1 -1
  49. package/funcs/integrationsGenerateChatOAuthUrl.js +1 -1
  50. package/funcs/integrationsGenerateConnectOAuthUrl.d.ts +1 -1
  51. package/funcs/integrationsGenerateConnectOAuthUrl.js +1 -1
  52. package/funcs/integrationsGenerateLinkUserOAuthUrl.d.ts +1 -1
  53. package/funcs/integrationsGenerateLinkUserOAuthUrl.js +1 -1
  54. package/jsr.json +1 -1
  55. package/lib/config.d.ts +4 -4
  56. package/lib/config.js +4 -4
  57. package/lib/http.d.ts +1 -1
  58. package/lib/http.d.ts.map +1 -1
  59. package/lib/http.js +1 -1
  60. package/lib/http.js.map +1 -1
  61. package/lib/security.d.ts +5 -4
  62. package/lib/security.d.ts.map +1 -1
  63. package/lib/security.js +6 -7
  64. package/lib/security.js.map +1 -1
  65. package/models/components/addagentintegrationrequestdto.d.ts +20 -0
  66. package/models/components/addagentintegrationrequestdto.d.ts.map +1 -0
  67. package/models/components/addagentintegrationrequestdto.js +50 -0
  68. package/models/components/addagentintegrationrequestdto.js.map +1 -0
  69. package/models/components/addreactionpayloaddto.d.ts +20 -0
  70. package/models/components/addreactionpayloaddto.d.ts.map +1 -0
  71. package/models/components/addreactionpayloaddto.js +50 -0
  72. package/models/components/addreactionpayloaddto.js.map +1 -0
  73. package/models/components/agentbehaviordto.d.ts +58 -0
  74. package/models/components/agentbehaviordto.d.ts.map +1 -0
  75. package/models/components/agentbehaviordto.js +86 -0
  76. package/models/components/agentbehaviordto.js.map +1 -0
  77. package/models/components/agentintegrationresponsedto.d.ts +35 -0
  78. package/models/components/agentintegrationresponsedto.d.ts.map +1 -0
  79. package/models/components/agentintegrationresponsedto.js +73 -0
  80. package/models/components/agentintegrationresponsedto.js.map +1 -0
  81. package/models/components/agentintegrationresponseintegrationdto.d.ts +37 -0
  82. package/models/components/agentintegrationresponseintegrationdto.d.ts.map +1 -0
  83. package/models/components/agentintegrationresponseintegrationdto.js +64 -0
  84. package/models/components/agentintegrationresponseintegrationdto.js.map +1 -0
  85. package/models/components/agentintegrationsummarydto.d.ts +22 -0
  86. package/models/components/agentintegrationsummarydto.d.ts.map +1 -0
  87. package/models/components/agentintegrationsummarydto.js +56 -0
  88. package/models/components/agentintegrationsummarydto.js.map +1 -0
  89. package/models/components/agentmcpserverdto.d.ts +12 -0
  90. package/models/components/agentmcpserverdto.d.ts.map +1 -0
  91. package/models/components/agentmcpserverdto.js +52 -0
  92. package/models/components/agentmcpserverdto.js.map +1 -0
  93. package/models/components/agentplanusagedto.d.ts +43 -0
  94. package/models/components/agentplanusagedto.d.ts.map +1 -0
  95. package/models/components/agentplanusagedto.js +64 -0
  96. package/models/components/agentplanusagedto.js.map +1 -0
  97. package/models/components/agentreplypayloaddto.d.ts +121 -0
  98. package/models/components/agentreplypayloaddto.d.ts.map +1 -0
  99. package/models/components/agentreplypayloaddto.js +120 -0
  100. package/models/components/agentreplypayloaddto.js.map +1 -0
  101. package/models/components/agentresponsedto.d.ts +82 -0
  102. package/models/components/agentresponsedto.d.ts.map +1 -0
  103. package/models/components/agentresponsedto.js +97 -0
  104. package/models/components/agentresponsedto.js.map +1 -0
  105. package/models/components/agentskillinputdto.d.ts +39 -0
  106. package/models/components/agentskillinputdto.d.ts.map +1 -0
  107. package/models/components/agentskillinputdto.js +63 -0
  108. package/models/components/agentskillinputdto.js.map +1 -0
  109. package/models/components/agenttooldto.d.ts +21 -0
  110. package/models/components/agenttooldto.d.ts.map +1 -0
  111. package/models/components/agenttooldto.js +59 -0
  112. package/models/components/agenttooldto.js.map +1 -0
  113. package/models/components/authdto.d.ts +6 -0
  114. package/models/components/authdto.d.ts.map +1 -1
  115. package/models/components/authdto.js +6 -0
  116. package/models/components/authdto.js.map +1 -1
  117. package/models/components/cardreplycontentdto.d.ts +25 -0
  118. package/models/components/cardreplycontentdto.d.ts.map +1 -0
  119. package/models/components/cardreplycontentdto.js +51 -0
  120. package/models/components/cardreplycontentdto.js.map +1 -0
  121. package/models/components/chatorpushproviderenum.d.ts +3 -0
  122. package/models/components/chatorpushproviderenum.d.ts.map +1 -1
  123. package/models/components/chatorpushproviderenum.js +3 -0
  124. package/models/components/chatorpushproviderenum.js.map +1 -1
  125. package/models/components/createagentrequestdto.d.ts +37 -0
  126. package/models/components/createagentrequestdto.d.ts.map +1 -0
  127. package/models/components/createagentrequestdto.js +62 -0
  128. package/models/components/createagentrequestdto.js.map +1 -0
  129. package/models/components/createlineuserendpointdto.d.ts +75 -0
  130. package/models/components/createlineuserendpointdto.d.ts.map +1 -0
  131. package/models/components/createlineuserendpointdto.js +77 -0
  132. package/models/components/createlineuserendpointdto.js.map +1 -0
  133. package/models/components/createwebexpersonendpointdto.d.ts +75 -0
  134. package/models/components/createwebexpersonendpointdto.d.ts.map +1 -0
  135. package/models/components/createwebexpersonendpointdto.js +77 -0
  136. package/models/components/createwebexpersonendpointdto.js.map +1 -0
  137. package/models/components/createwebexroomendpointdto.d.ts +75 -0
  138. package/models/components/createwebexroomendpointdto.d.ts.map +1 -0
  139. package/models/components/createwebexroomendpointdto.js +77 -0
  140. package/models/components/createwebexroomendpointdto.js.map +1 -0
  141. package/models/components/credentialsdto.d.ts +5 -0
  142. package/models/components/credentialsdto.d.ts.map +1 -1
  143. package/models/components/credentialsdto.js +2 -0
  144. package/models/components/credentialsdto.js.map +1 -1
  145. package/models/components/deletemessagepayloaddto.d.ts +15 -0
  146. package/models/components/deletemessagepayloaddto.d.ts.map +1 -0
  147. package/models/components/deletemessagepayloaddto.js +49 -0
  148. package/models/components/deletemessagepayloaddto.js.map +1 -0
  149. package/models/components/editpayloaddto.d.ts +32 -0
  150. package/models/components/editpayloaddto.d.ts.map +1 -0
  151. package/models/components/editpayloaddto.js +67 -0
  152. package/models/components/editpayloaddto.js.map +1 -0
  153. package/models/components/filerefdto.d.ts +30 -0
  154. package/models/components/filerefdto.d.ts.map +1 -0
  155. package/models/components/filerefdto.js +52 -0
  156. package/models/components/filerefdto.js.map +1 -0
  157. package/models/components/generatechatoauthurlrequestdto.d.ts +2 -2
  158. package/models/components/generateconnectoauthurlrequestdto.d.ts +3 -3
  159. package/models/components/generatelinkuseroauthurlrequestdto.d.ts +2 -2
  160. package/models/components/getchannelconnectionresponsedto.d.ts +8 -4
  161. package/models/components/getchannelconnectionresponsedto.d.ts.map +1 -1
  162. package/models/components/getchannelconnectionresponsedto.js +9 -5
  163. package/models/components/getchannelconnectionresponsedto.js.map +1 -1
  164. package/models/components/getchannelendpointresponsedto.d.ts +12 -2
  165. package/models/components/getchannelendpointresponsedto.d.ts.map +1 -1
  166. package/models/components/getchannelendpointresponsedto.js +16 -0
  167. package/models/components/getchannelendpointresponsedto.js.map +1 -1
  168. package/models/components/grouppreferencefilterdto.d.ts +1 -1
  169. package/models/components/index.d.ts +41 -0
  170. package/models/components/index.d.ts.map +1 -1
  171. package/models/components/index.js +41 -0
  172. package/models/components/index.js.map +1 -1
  173. package/models/components/lineuserendpointdto.d.ts +20 -0
  174. package/models/components/lineuserendpointdto.d.ts.map +1 -0
  175. package/models/components/lineuserendpointdto.js +58 -0
  176. package/models/components/lineuserendpointdto.js.map +1 -0
  177. package/models/components/listagentintegrationsresponsedto.d.ts +35 -0
  178. package/models/components/listagentintegrationsresponsedto.d.ts.map +1 -0
  179. package/models/components/listagentintegrationsresponsedto.js +57 -0
  180. package/models/components/listagentintegrationsresponsedto.js.map +1 -0
  181. package/models/components/listagentsresponsedto.d.ts +35 -0
  182. package/models/components/listagentsresponsedto.d.ts.map +1 -0
  183. package/models/components/listagentsresponsedto.js +57 -0
  184. package/models/components/listagentsresponsedto.js.map +1 -0
  185. package/models/components/managedruntimedto.d.ts +47 -0
  186. package/models/components/managedruntimedto.d.ts.map +1 -0
  187. package/models/components/managedruntimedto.js +66 -0
  188. package/models/components/managedruntimedto.js.map +1 -0
  189. package/models/components/managedruntimeresponsedto.d.ts +38 -0
  190. package/models/components/managedruntimeresponsedto.d.ts.map +1 -0
  191. package/models/components/managedruntimeresponsedto.js +60 -0
  192. package/models/components/managedruntimeresponsedto.js.map +1 -0
  193. package/models/components/markdownreplycontentdto.d.ts +21 -0
  194. package/models/components/markdownreplycontentdto.d.ts.map +1 -0
  195. package/models/components/markdownreplycontentdto.js +51 -0
  196. package/models/components/markdownreplycontentdto.js.map +1 -0
  197. package/models/components/messageresponsedto.d.ts +3 -3
  198. package/models/components/messageresponsedto.d.ts.map +1 -1
  199. package/models/components/messageresponsedto.js +5 -5
  200. package/models/components/messageresponsedto.js.map +1 -1
  201. package/models/components/metadataclearsignaldto.d.ts +27 -0
  202. package/models/components/metadataclearsignaldto.d.ts.map +1 -0
  203. package/models/components/metadataclearsignaldto.js +60 -0
  204. package/models/components/metadataclearsignaldto.js.map +1 -0
  205. package/models/components/metadatadeletesignaldto.d.ts +32 -0
  206. package/models/components/metadatadeletesignaldto.d.ts.map +1 -0
  207. package/models/components/metadatadeletesignaldto.js +61 -0
  208. package/models/components/metadatadeletesignaldto.js.map +1 -0
  209. package/models/components/metadatasetsignaldto.d.ts +55 -0
  210. package/models/components/metadatasetsignaldto.d.ts.map +1 -0
  211. package/models/components/metadatasetsignaldto.js +72 -0
  212. package/models/components/metadatasetsignaldto.js.map +1 -0
  213. package/models/components/planusagedto.d.ts +17 -0
  214. package/models/components/planusagedto.d.ts.map +1 -0
  215. package/models/components/planusagedto.js +51 -0
  216. package/models/components/planusagedto.js.map +1 -0
  217. package/models/components/providersidenum.d.ts +4 -0
  218. package/models/components/providersidenum.d.ts.map +1 -1
  219. package/models/components/providersidenum.js +4 -0
  220. package/models/components/providersidenum.js.map +1 -1
  221. package/models/components/resolvedto.d.ts +15 -0
  222. package/models/components/resolvedto.d.ts.map +1 -0
  223. package/models/components/resolvedto.js +49 -0
  224. package/models/components/resolvedto.js.map +1 -0
  225. package/models/components/subscriberchanneldto.d.ts +3 -0
  226. package/models/components/subscriberchanneldto.d.ts.map +1 -1
  227. package/models/components/subscriberchanneldto.js +3 -0
  228. package/models/components/subscriberchanneldto.js.map +1 -1
  229. package/models/components/subscriptionpreferencedto.d.ts +1 -1
  230. package/models/components/toolapprovalcardreplycontentdto.d.ts +22 -0
  231. package/models/components/toolapprovalcardreplycontentdto.d.ts.map +1 -0
  232. package/models/components/toolapprovalcardreplycontentdto.js +51 -0
  233. package/models/components/toolapprovalcardreplycontentdto.js.map +1 -0
  234. package/models/components/toolapprovalrequestpayloaddto.d.ts +34 -0
  235. package/models/components/toolapprovalrequestpayloaddto.d.ts.map +1 -0
  236. package/models/components/toolapprovalrequestpayloaddto.js +52 -0
  237. package/models/components/toolapprovalrequestpayloaddto.js.map +1 -0
  238. package/models/components/toolresultdto.d.ts +39 -0
  239. package/models/components/toolresultdto.d.ts.map +1 -0
  240. package/models/components/toolresultdto.js +58 -0
  241. package/models/components/toolresultdto.js.map +1 -0
  242. package/models/components/triggereventrequestdto.d.ts +9 -4
  243. package/models/components/triggereventrequestdto.d.ts.map +1 -1
  244. package/models/components/triggereventrequestdto.js +6 -6
  245. package/models/components/triggereventrequestdto.js.map +1 -1
  246. package/models/components/triggersignaldto.d.ts +73 -0
  247. package/models/components/triggersignaldto.d.ts.map +1 -0
  248. package/models/components/triggersignaldto.js +79 -0
  249. package/models/components/triggersignaldto.js.map +1 -0
  250. package/models/components/typingstatusdto.d.ts +15 -0
  251. package/models/components/typingstatusdto.d.ts.map +1 -0
  252. package/models/components/typingstatusdto.js +49 -0
  253. package/models/components/typingstatusdto.js.map +1 -0
  254. package/models/components/updateagentbridgerequestdto.d.ts +25 -0
  255. package/models/components/updateagentbridgerequestdto.d.ts.map +1 -0
  256. package/models/components/updateagentbridgerequestdto.js +51 -0
  257. package/models/components/updateagentbridgerequestdto.js.map +1 -0
  258. package/models/components/updateagentintegrationrequestdto.d.ts +15 -0
  259. package/models/components/updateagentintegrationrequestdto.d.ts.map +1 -0
  260. package/models/components/updateagentintegrationrequestdto.js +49 -0
  261. package/models/components/updateagentintegrationrequestdto.js.map +1 -0
  262. package/models/components/updateagentrequestdto.d.ts +34 -0
  263. package/models/components/updateagentrequestdto.d.ts.map +1 -0
  264. package/models/components/updateagentrequestdto.js +56 -0
  265. package/models/components/updateagentrequestdto.js.map +1 -0
  266. package/models/components/updatechannelendpointrequestdto.d.ts +6 -4
  267. package/models/components/updatechannelendpointrequestdto.d.ts.map +1 -1
  268. package/models/components/updatechannelendpointrequestdto.js +6 -0
  269. package/models/components/updatechannelendpointrequestdto.js.map +1 -1
  270. package/models/components/webexpersonendpointdto.d.ts +25 -0
  271. package/models/components/webexpersonendpointdto.d.ts.map +1 -0
  272. package/models/components/webexpersonendpointdto.js +60 -0
  273. package/models/components/webexpersonendpointdto.js.map +1 -0
  274. package/models/components/webexroomendpointdto.d.ts +25 -0
  275. package/models/components/webexroomendpointdto.d.ts.map +1 -0
  276. package/models/components/webexroomendpointdto.js +60 -0
  277. package/models/components/webexroomendpointdto.js.map +1 -0
  278. package/models/components/workflowpreferencerequestdto.d.ts +1 -1
  279. package/models/operations/agentintegrationscontrolleraddagentintegration.d.ts +31 -0
  280. package/models/operations/agentintegrationscontrolleraddagentintegration.d.ts.map +1 -0
  281. package/models/operations/agentintegrationscontrolleraddagentintegration.js +74 -0
  282. package/models/operations/agentintegrationscontrolleraddagentintegration.js.map +1 -0
  283. package/models/operations/agentintegrationscontrollerlistagentintegrations.d.ts +78 -0
  284. package/models/operations/agentintegrationscontrollerlistagentintegrations.d.ts.map +1 -0
  285. package/models/operations/agentintegrationscontrollerlistagentintegrations.js +90 -0
  286. package/models/operations/agentintegrationscontrollerlistagentintegrations.js.map +1 -0
  287. package/models/operations/agentintegrationscontrollerremoveagentintegration.d.ts +29 -0
  288. package/models/operations/agentintegrationscontrollerremoveagentintegration.d.ts.map +1 -0
  289. package/models/operations/agentintegrationscontrollerremoveagentintegration.js +71 -0
  290. package/models/operations/agentintegrationscontrollerremoveagentintegration.js.map +1 -0
  291. package/models/operations/agentintegrationscontrollerupdateagentintegration.d.ts +33 -0
  292. package/models/operations/agentintegrationscontrollerupdateagentintegration.d.ts.map +1 -0
  293. package/models/operations/agentintegrationscontrollerupdateagentintegration.js +76 -0
  294. package/models/operations/agentintegrationscontrollerupdateagentintegration.js.map +1 -0
  295. package/models/operations/agentreplycontrollerhandleagentreplyhandler.d.ts +53 -0
  296. package/models/operations/agentreplycontrollerhandleagentreplyhandler.d.ts.map +1 -0
  297. package/models/operations/agentreplycontrollerhandleagentreplyhandler.js +83 -0
  298. package/models/operations/agentreplycontrollerhandleagentreplyhandler.js.map +1 -0
  299. package/models/operations/agentscontrollercreateagent.d.ts +31 -0
  300. package/models/operations/agentscontrollercreateagent.d.ts.map +1 -0
  301. package/models/operations/agentscontrollercreateagent.js +74 -0
  302. package/models/operations/agentscontrollercreateagent.js.map +1 -0
  303. package/models/operations/agentscontrollerdeleteagent.d.ts +29 -0
  304. package/models/operations/agentscontrollerdeleteagent.d.ts.map +1 -0
  305. package/models/operations/agentscontrollerdeleteagent.js +69 -0
  306. package/models/operations/agentscontrollerdeleteagent.js.map +1 -0
  307. package/models/operations/agentscontrollergetagent.d.ts +29 -0
  308. package/models/operations/agentscontrollergetagent.d.ts.map +1 -0
  309. package/models/operations/agentscontrollergetagent.js +71 -0
  310. package/models/operations/agentscontrollergetagent.js.map +1 -0
  311. package/models/operations/agentscontrollerlistagents.d.ts +76 -0
  312. package/models/operations/agentscontrollerlistagents.d.ts.map +1 -0
  313. package/models/operations/agentscontrollerlistagents.js +88 -0
  314. package/models/operations/agentscontrollerlistagents.js.map +1 -0
  315. package/models/operations/agentscontrollerupdateagent.d.ts +31 -0
  316. package/models/operations/agentscontrollerupdateagent.d.ts.map +1 -0
  317. package/models/operations/agentscontrollerupdateagent.js +73 -0
  318. package/models/operations/agentscontrollerupdateagent.js.map +1 -0
  319. package/models/operations/agentscontrollerupdateagentbridge.d.ts +31 -0
  320. package/models/operations/agentscontrollerupdateagentbridge.d.ts.map +1 -0
  321. package/models/operations/agentscontrollerupdateagentbridge.js +73 -0
  322. package/models/operations/agentscontrollerupdateagentbridge.js.map +1 -0
  323. package/models/operations/channelendpointscontrollercreatechannelendpoint.d.ts +4 -4
  324. package/models/operations/channelendpointscontrollercreatechannelendpoint.d.ts.map +1 -1
  325. package/models/operations/channelendpointscontrollercreatechannelendpoint.js +6 -0
  326. package/models/operations/channelendpointscontrollercreatechannelendpoint.js.map +1 -1
  327. package/models/operations/index.d.ts +11 -0
  328. package/models/operations/index.d.ts.map +1 -1
  329. package/models/operations/index.js +11 -0
  330. package/models/operations/index.js.map +1 -1
  331. package/package.json +1 -1
  332. package/sdk/agents.d.ts +80 -0
  333. package/sdk/agents.d.ts.map +1 -0
  334. package/sdk/agents.js +108 -0
  335. package/sdk/agents.js.map +1 -0
  336. package/sdk/integrations.d.ts +3 -3
  337. package/sdk/integrations.js +3 -3
  338. package/sdk/novuintegrations.d.ts +34 -0
  339. package/sdk/novuintegrations.d.ts.map +1 -0
  340. package/sdk/novuintegrations.js +52 -0
  341. package/sdk/novuintegrations.js.map +1 -0
  342. package/sdk/sdk.d.ts +3 -0
  343. package/sdk/sdk.d.ts.map +1 -1
  344. package/sdk/sdk.js +4 -0
  345. package/sdk/sdk.js.map +1 -1
  346. package/src/funcs/agentsCreate.ts +222 -0
  347. package/src/funcs/agentsDelete.ts +225 -0
  348. package/src/funcs/agentsIntegrationsCreate.ts +228 -0
  349. package/src/funcs/agentsIntegrationsDelete.ts +235 -0
  350. package/src/funcs/agentsIntegrationsList.ts +222 -0
  351. package/src/funcs/agentsIntegrationsUpdate.ts +221 -0
  352. package/src/funcs/agentsList.ts +212 -0
  353. package/src/funcs/agentsRetrieve.ts +215 -0
  354. package/src/funcs/agentsSendReply.ts +249 -0
  355. package/src/funcs/agentsUpdate.ts +223 -0
  356. package/src/funcs/agentsUpdateBridge.ts +226 -0
  357. package/src/funcs/integrationsGenerateChatOAuthUrl.ts +1 -1
  358. package/src/funcs/integrationsGenerateConnectOAuthUrl.ts +1 -1
  359. package/src/funcs/integrationsGenerateLinkUserOAuthUrl.ts +1 -1
  360. package/src/lib/config.ts +4 -4
  361. package/src/lib/http.ts +3 -1
  362. package/src/lib/security.ts +10 -5
  363. package/src/models/components/addagentintegrationrequestdto.ts +42 -0
  364. package/src/models/components/addreactionpayloaddto.ts +40 -0
  365. package/src/models/components/agentbehaviordto.ts +131 -0
  366. package/src/models/components/agentintegrationresponsedto.ts +90 -0
  367. package/src/models/components/agentintegrationresponseintegrationdto.ts +75 -0
  368. package/src/models/components/agentintegrationsummarydto.ts +51 -0
  369. package/src/models/components/agentmcpserverdto.ts +35 -0
  370. package/src/models/components/agentplanusagedto.ts +71 -0
  371. package/src/models/components/agentreplypayloaddto.ts +297 -0
  372. package/src/models/components/agentresponsedto.ts +146 -0
  373. package/src/models/components/agentskillinputdto.ts +74 -0
  374. package/src/models/components/agenttooldto.ts +49 -0
  375. package/src/models/components/authdto.ts +12 -0
  376. package/src/models/components/cardreplycontentdto.ts +45 -0
  377. package/src/models/components/chatorpushproviderenum.ts +3 -0
  378. package/src/models/components/createagentrequestdto.ts +68 -0
  379. package/src/models/components/createlineuserendpointdto.ts +147 -0
  380. package/src/models/components/createwebexpersonendpointdto.ts +149 -0
  381. package/src/models/components/createwebexroomendpointdto.ts +147 -0
  382. package/src/models/components/credentialsdto.ts +7 -0
  383. package/src/models/components/deletemessagepayloaddto.ts +34 -0
  384. package/src/models/components/editpayloaddto.ts +90 -0
  385. package/src/models/components/filerefdto.ts +48 -0
  386. package/src/models/components/generatechatoauthurlrequestdto.ts +2 -2
  387. package/src/models/components/generateconnectoauthurlrequestdto.ts +3 -3
  388. package/src/models/components/generatelinkuseroauthurlrequestdto.ts +2 -2
  389. package/src/models/components/getchannelconnectionresponsedto.ts +15 -6
  390. package/src/models/components/getchannelendpointresponsedto.ts +33 -2
  391. package/src/models/components/grouppreferencefilterdto.ts +1 -1
  392. package/src/models/components/index.ts +41 -0
  393. package/src/models/components/lineuserendpointdto.ts +54 -0
  394. package/src/models/components/listagentintegrationsresponsedto.ts +64 -0
  395. package/src/models/components/listagentsresponsedto.ts +67 -0
  396. package/src/models/components/managedruntimedto.ts +81 -0
  397. package/src/models/components/managedruntimeresponsedto.ts +70 -0
  398. package/src/models/components/markdownreplycontentdto.ts +45 -0
  399. package/src/models/components/messageresponsedto.ts +10 -7
  400. package/src/models/components/metadataclearsignaldto.ts +59 -0
  401. package/src/models/components/metadatadeletesignaldto.ts +65 -0
  402. package/src/models/components/metadatasetsignaldto.ts +100 -0
  403. package/src/models/components/planusagedto.ts +39 -0
  404. package/src/models/components/providersidenum.ts +4 -0
  405. package/src/models/components/resolvedto.ts +30 -0
  406. package/src/models/components/subscriberchanneldto.ts +3 -0
  407. package/src/models/components/subscriptionpreferencedto.ts +1 -1
  408. package/src/models/components/toolapprovalcardreplycontentdto.ts +44 -0
  409. package/src/models/components/toolapprovalrequestpayloaddto.ts +54 -0
  410. package/src/models/components/toolresultdto.ts +67 -0
  411. package/src/models/components/triggereventrequestdto.ts +30 -17
  412. package/src/models/components/triggersignaldto.ts +111 -0
  413. package/src/models/components/typingstatusdto.ts +32 -0
  414. package/src/models/components/updateagentbridgerequestdto.ts +48 -0
  415. package/src/models/components/updateagentintegrationrequestdto.ts +36 -0
  416. package/src/models/components/updateagentrequestdto.ts +63 -0
  417. package/src/models/components/updatechannelendpointrequestdto.ts +26 -4
  418. package/src/models/components/webexpersonendpointdto.ts +61 -0
  419. package/src/models/components/webexroomendpointdto.ts +61 -0
  420. package/src/models/components/workflowpreferencerequestdto.ts +1 -1
  421. package/src/models/operations/agentintegrationscontrolleraddagentintegration.ts +92 -0
  422. package/src/models/operations/agentintegrationscontrollerlistagentintegrations.ts +156 -0
  423. package/src/models/operations/agentintegrationscontrollerremoveagentintegration.ts +85 -0
  424. package/src/models/operations/agentintegrationscontrollerupdateagentintegration.ts +95 -0
  425. package/src/models/operations/agentreplycontrollerhandleagentreplyhandler.ts +139 -0
  426. package/src/models/operations/agentscontrollercreateagent.ts +84 -0
  427. package/src/models/operations/agentscontrollerdeleteagent.ts +78 -0
  428. package/src/models/operations/agentscontrollergetagent.ts +78 -0
  429. package/src/models/operations/agentscontrollerlistagents.ts +142 -0
  430. package/src/models/operations/agentscontrollerupdateagent.ts +83 -0
  431. package/src/models/operations/agentscontrollerupdateagentbridge.ts +90 -0
  432. package/src/models/operations/channelendpointscontrollercreatechannelendpoint.ts +22 -4
  433. package/src/models/operations/index.ts +11 -0
  434. package/src/sdk/agents.ts +186 -0
  435. package/src/sdk/integrations.ts +3 -3
  436. package/src/sdk/novuintegrations.ts +100 -0
  437. package/src/sdk/sdk.ts +6 -0
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Generate OAuth URL for a workspace/tenant connection
32
32
  *
33
33
  * @remarks
34
- * Generate an OAuth URL that creates a workspace or tenant-level channel connection (Slack workspace install or MS Teams admin consent).
34
+ * Generate an OAuth URL that creates a workspace or tenant-level channel connection (Slack workspace install, MS Teams admin consent, or Webex integration authorization).
35
35
  * The generated URL expires after 5 minutes.
36
36
  */
37
37
  export function integrationsGenerateConnectOAuthUrl(
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Generate OAuth URL to link a subscriber user identity
32
32
  *
33
33
  * @remarks
34
- * Generate an OAuth URL that links a specific subscriber to their chat identity (Slack user ID or MS Teams user OID).
34
+ * Generate an OAuth URL that links a specific subscriber to their chat identity (Slack user ID, MS Teams user OID, or Webex person).
35
35
  * The generated URL expires after 5 minutes.
36
36
  */
37
37
  export function integrationsGenerateLinkUserOAuthUrl(
package/src/lib/config.ts CHANGED
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
 
59
59
  export const SDK_METADATA = {
60
60
  language: "typescript",
61
- openapiDocVersion: "3.17.1",
62
- sdkVersion: "3.17.1",
63
- genVersion: "2.916.2",
64
- userAgent: "speakeasy-sdk/typescript 3.17.1 2.916.2 3.17.1 @novu/api",
61
+ openapiDocVersion: "3.18.1",
62
+ sdkVersion: "3.18.1",
63
+ genVersion: "2.918.3",
64
+ userAgent: "speakeasy-sdk/typescript 3.18.1 2.918.3 3.18.1 @novu/api",
65
65
  } as const;
package/src/lib/http.ts CHANGED
@@ -45,8 +45,10 @@ export class HTTPClient {
45
45
  private requestHooks: BeforeRequestHook[] = [];
46
46
  private requestErrorHooks: RequestErrorHook[] = [];
47
47
  private responseHooks: ResponseHook[] = [];
48
+ private options: HTTPClientOptions;
48
49
 
49
- constructor(private options: HTTPClientOptions = {}) {
50
+ constructor(options: HTTPClientOptions = {}) {
51
+ this.options = options;
50
52
  this.fetcher = options.fetcher || DEFAULT_FETCHER;
51
53
  }
52
54
 
@@ -12,17 +12,22 @@ type OAuth2PasswordFlow = {
12
12
  tokenURL: string;
13
13
  };
14
14
 
15
- export enum SecurityErrorCode {
16
- Incomplete = "incomplete",
17
- UnrecognisedSecurityType = "unrecognized_security_type",
18
- }
15
+ export const SecurityErrorCode = {
16
+ Incomplete: "incomplete",
17
+ UnrecognisedSecurityType: "unrecognized_security_type",
18
+ } as const;
19
+ export type SecurityErrorCode =
20
+ (typeof SecurityErrorCode)[keyof typeof SecurityErrorCode];
19
21
 
20
22
  export class SecurityError extends Error {
23
+ public code: SecurityErrorCode;
24
+
21
25
  constructor(
22
- public code: SecurityErrorCode,
26
+ code: SecurityErrorCode,
23
27
  message: string,
24
28
  ) {
25
29
  super(message);
30
+ this.code = code;
26
31
  this.name = "SecurityError";
27
32
  }
28
33
 
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type AddAgentIntegrationRequestDto = {
8
+ /**
9
+ * The integration identifier (same as in the integration store), not the internal document _id.
10
+ */
11
+ integrationIdentifier?: string | undefined;
12
+ /**
13
+ * Provider ID to auto-create a dedicated integration (e.g. novu-agent-email). When set, the server creates the integration if one does not already exist for this agent.
14
+ */
15
+ providerId?: string | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export type AddAgentIntegrationRequestDto$Outbound = {
20
+ integrationIdentifier?: string | undefined;
21
+ providerId?: string | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const AddAgentIntegrationRequestDto$outboundSchema: z.ZodType<
26
+ AddAgentIntegrationRequestDto$Outbound,
27
+ z.ZodTypeDef,
28
+ AddAgentIntegrationRequestDto
29
+ > = z.object({
30
+ integrationIdentifier: z.string().optional(),
31
+ providerId: z.string().optional(),
32
+ });
33
+
34
+ export function addAgentIntegrationRequestDtoToJSON(
35
+ addAgentIntegrationRequestDto: AddAgentIntegrationRequestDto,
36
+ ): string {
37
+ return JSON.stringify(
38
+ AddAgentIntegrationRequestDto$outboundSchema.parse(
39
+ addAgentIntegrationRequestDto,
40
+ ),
41
+ );
42
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type AddReactionPayloadDto = {
8
+ /**
9
+ * Platform message id to react to.
10
+ */
11
+ messageId: string;
12
+ /**
13
+ * Well-known cross-platform emoji name (e.g. `white_check_mark`, `thumbsup`).
14
+ */
15
+ emojiName: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export type AddReactionPayloadDto$Outbound = {
20
+ messageId: string;
21
+ emojiName: string;
22
+ };
23
+
24
+ /** @internal */
25
+ export const AddReactionPayloadDto$outboundSchema: z.ZodType<
26
+ AddReactionPayloadDto$Outbound,
27
+ z.ZodTypeDef,
28
+ AddReactionPayloadDto
29
+ > = z.object({
30
+ messageId: z.string(),
31
+ emojiName: z.string(),
32
+ });
33
+
34
+ export function addReactionPayloadDtoToJSON(
35
+ addReactionPayloadDto: AddReactionPayloadDto,
36
+ ): string {
37
+ return JSON.stringify(
38
+ AddReactionPayloadDto$outboundSchema.parse(addReactionPayloadDto),
39
+ );
40
+ }
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Cross-platform emoji name for resolved conversations (e.g. "check", "star"). Set to null to disable. Default: "check"
13
+ */
14
+ export type ReactionOnResolved = {};
15
+
16
+ /**
17
+ * Controls whether the agent accepts inbound messages from senders not yet linked to a subscriber, across all channels. "open" on managed agents auto-creates a lightweight subscriber so the agent can reply; on custom-code / self-hosted agents, the turn is forwarded to the bridge with a null subscriber. "restricted" rejects unknown senders with a managed denial reply (any runtime). Unset resolves as "restricted". Managed agent create defaults to "open"; self-hosted create defaults to "restricted".
18
+ */
19
+ export const SubscriberAccess = {
20
+ Open: "open",
21
+ Restricted: "restricted",
22
+ } as const;
23
+ /**
24
+ * Controls whether the agent accepts inbound messages from senders not yet linked to a subscriber, across all channels. "open" on managed agents auto-creates a lightweight subscriber so the agent can reply; on custom-code / self-hosted agents, the turn is forwarded to the bridge with a null subscriber. "restricted" rejects unknown senders with a managed denial reply (any runtime). Unset resolves as "restricted". Managed agent create defaults to "open"; self-hosted create defaults to "restricted".
25
+ */
26
+ export type SubscriberAccess = ClosedEnum<typeof SubscriberAccess>;
27
+
28
+ export type AgentBehaviorDto = {
29
+ /**
30
+ * Acknowledge incoming messages. On platforms that support a native typing indicator (e.g. Slack, WhatsApp, Microsoft Teams, Telegram), shows a "Typing…" indicator while the agent processes the message. On platforms that do not (e.g. Email), reacts with an "eyes" emoji to the first inbound message in a thread. Default: true
31
+ */
32
+ acknowledgeOnReceived?: boolean | undefined;
33
+ /**
34
+ * Cross-platform emoji name for resolved conversations (e.g. "check", "star"). Set to null to disable. Default: "check"
35
+ */
36
+ reactionOnResolved?: ReactionOnResolved | null | undefined;
37
+ /**
38
+ * Controls whether the agent accepts inbound messages from senders not yet linked to a subscriber, across all channels. "open" on managed agents auto-creates a lightweight subscriber so the agent can reply; on custom-code / self-hosted agents, the turn is forwarded to the bridge with a null subscriber. "restricted" rejects unknown senders with a managed denial reply (any runtime). Unset resolves as "restricted". Managed agent create defaults to "open"; self-hosted create defaults to "restricted".
39
+ */
40
+ subscriberAccess?: SubscriberAccess | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const ReactionOnResolved$inboundSchema: z.ZodType<
45
+ ReactionOnResolved,
46
+ z.ZodTypeDef,
47
+ unknown
48
+ > = z.object({});
49
+ /** @internal */
50
+ export type ReactionOnResolved$Outbound = {};
51
+
52
+ /** @internal */
53
+ export const ReactionOnResolved$outboundSchema: z.ZodType<
54
+ ReactionOnResolved$Outbound,
55
+ z.ZodTypeDef,
56
+ ReactionOnResolved
57
+ > = z.object({});
58
+
59
+ export function reactionOnResolvedToJSON(
60
+ reactionOnResolved: ReactionOnResolved,
61
+ ): string {
62
+ return JSON.stringify(
63
+ ReactionOnResolved$outboundSchema.parse(reactionOnResolved),
64
+ );
65
+ }
66
+ export function reactionOnResolvedFromJSON(
67
+ jsonString: string,
68
+ ): SafeParseResult<ReactionOnResolved, SDKValidationError> {
69
+ return safeParse(
70
+ jsonString,
71
+ (x) => ReactionOnResolved$inboundSchema.parse(JSON.parse(x)),
72
+ `Failed to parse 'ReactionOnResolved' from JSON`,
73
+ );
74
+ }
75
+
76
+ /** @internal */
77
+ export const SubscriberAccess$inboundSchema: z.ZodNativeEnum<
78
+ typeof SubscriberAccess
79
+ > = z.nativeEnum(SubscriberAccess);
80
+ /** @internal */
81
+ export const SubscriberAccess$outboundSchema: z.ZodNativeEnum<
82
+ typeof SubscriberAccess
83
+ > = SubscriberAccess$inboundSchema;
84
+
85
+ /** @internal */
86
+ export const AgentBehaviorDto$inboundSchema: z.ZodType<
87
+ AgentBehaviorDto,
88
+ z.ZodTypeDef,
89
+ unknown
90
+ > = z.object({
91
+ acknowledgeOnReceived: z.boolean().default(true),
92
+ reactionOnResolved: z.nullable(z.lazy(() => ReactionOnResolved$inboundSchema))
93
+ .optional(),
94
+ subscriberAccess: SubscriberAccess$inboundSchema.optional(),
95
+ });
96
+ /** @internal */
97
+ export type AgentBehaviorDto$Outbound = {
98
+ acknowledgeOnReceived: boolean;
99
+ reactionOnResolved?: ReactionOnResolved$Outbound | null | undefined;
100
+ subscriberAccess?: string | undefined;
101
+ };
102
+
103
+ /** @internal */
104
+ export const AgentBehaviorDto$outboundSchema: z.ZodType<
105
+ AgentBehaviorDto$Outbound,
106
+ z.ZodTypeDef,
107
+ AgentBehaviorDto
108
+ > = z.object({
109
+ acknowledgeOnReceived: z.boolean().default(true),
110
+ reactionOnResolved: z.nullable(
111
+ z.lazy(() => ReactionOnResolved$outboundSchema),
112
+ ).optional(),
113
+ subscriberAccess: SubscriberAccess$outboundSchema.optional(),
114
+ });
115
+
116
+ export function agentBehaviorDtoToJSON(
117
+ agentBehaviorDto: AgentBehaviorDto,
118
+ ): string {
119
+ return JSON.stringify(
120
+ AgentBehaviorDto$outboundSchema.parse(agentBehaviorDto),
121
+ );
122
+ }
123
+ export function agentBehaviorDtoFromJSON(
124
+ jsonString: string,
125
+ ): SafeParseResult<AgentBehaviorDto, SDKValidationError> {
126
+ return safeParse(
127
+ jsonString,
128
+ (x) => AgentBehaviorDto$inboundSchema.parse(JSON.parse(x)),
129
+ `Failed to parse 'AgentBehaviorDto' from JSON`,
130
+ );
131
+ }
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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
+ import {
11
+ AgentIntegrationResponseIntegrationDto,
12
+ AgentIntegrationResponseIntegrationDto$inboundSchema,
13
+ } from "./agentintegrationresponseintegrationdto.js";
14
+
15
+ /**
16
+ * Set when the agent–integration link received its first inbound webhook delivery.
17
+ */
18
+ export type ConnectedAt = {};
19
+
20
+ export type AgentIntegrationResponseDto = {
21
+ /**
22
+ * Agent–integration link document id.
23
+ */
24
+ id: string;
25
+ agentId: string;
26
+ integration: AgentIntegrationResponseIntegrationDto;
27
+ environmentId: string;
28
+ organizationId: string;
29
+ /**
30
+ * Set when the agent–integration link received its first inbound webhook delivery.
31
+ */
32
+ connectedAt?: ConnectedAt | null | undefined;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ /**
36
+ * Cloud only. `true` when this channel type (provider) falls outside the organization plan active-channel limit (by connection order). Active channels are counted per channel type, so multiple integrations of the same provider (e.g. several Slack workspaces) count as a single active channel. Over-limit channels keep their configuration but the agent will not respond on them until the plan is upgraded or older channel types are disconnected.
37
+ */
38
+ exceedsPlanLimit?: boolean | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const ConnectedAt$inboundSchema: z.ZodType<
43
+ ConnectedAt,
44
+ z.ZodTypeDef,
45
+ unknown
46
+ > = z.object({});
47
+
48
+ export function connectedAtFromJSON(
49
+ jsonString: string,
50
+ ): SafeParseResult<ConnectedAt, SDKValidationError> {
51
+ return safeParse(
52
+ jsonString,
53
+ (x) => ConnectedAt$inboundSchema.parse(JSON.parse(x)),
54
+ `Failed to parse 'ConnectedAt' from JSON`,
55
+ );
56
+ }
57
+
58
+ /** @internal */
59
+ export const AgentIntegrationResponseDto$inboundSchema: z.ZodType<
60
+ AgentIntegrationResponseDto,
61
+ z.ZodTypeDef,
62
+ unknown
63
+ > = z.object({
64
+ _id: z.string(),
65
+ _agentId: z.string(),
66
+ integration: AgentIntegrationResponseIntegrationDto$inboundSchema,
67
+ _environmentId: z.string(),
68
+ _organizationId: z.string(),
69
+ connectedAt: z.nullable(z.lazy(() => ConnectedAt$inboundSchema)).optional(),
70
+ createdAt: z.string(),
71
+ updatedAt: z.string(),
72
+ exceedsPlanLimit: z.boolean().optional(),
73
+ }).transform((v) => {
74
+ return remap$(v, {
75
+ "_id": "id",
76
+ "_agentId": "agentId",
77
+ "_environmentId": "environmentId",
78
+ "_organizationId": "organizationId",
79
+ });
80
+ });
81
+
82
+ export function agentIntegrationResponseDtoFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<AgentIntegrationResponseDto, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => AgentIntegrationResponseDto$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'AgentIntegrationResponseDto' from JSON`,
89
+ );
90
+ }
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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
+ import {
11
+ ChannelTypeEnum,
12
+ ChannelTypeEnum$inboundSchema,
13
+ } from "./channeltypeenum.js";
14
+
15
+ export type AgentIntegrationResponseIntegrationDto = {
16
+ /**
17
+ * Integration document _id.
18
+ */
19
+ id: string;
20
+ /**
21
+ * The integration identifier (matches the integration store), not the internal MongoDB _id.
22
+ */
23
+ identifier: string;
24
+ name: string;
25
+ providerId: string;
26
+ /**
27
+ * Channel type through which the message is sent
28
+ */
29
+ channel?: ChannelTypeEnum | undefined;
30
+ active: boolean;
31
+ /**
32
+ * The Novu shared inbox address for this agent. Set whenever the cloud shared-inbox feature is enabled. The dashboard uses this as the headline inbound address and to render the shared inbox row in the inbox list.
33
+ */
34
+ sharedInboundAddress?: string | undefined;
35
+ /**
36
+ * Default email From display name for this agent (NovuAgent integrations only). Falls back to the agent name when not explicitly stored on the integration credentials.
37
+ */
38
+ defaultSenderName?: string | undefined;
39
+ /**
40
+ * When true, the worker drops inbound mail addressed to this agent on the shared `agentconnect.sh` domain. Custom-domain routes still deliver. Meaningful on cloud-enabled NovuAgent integrations; on self-hosted it is set defensively at provisioning time and is effectively redundant.
41
+ */
42
+ sharedInboxDisabled?: boolean | undefined;
43
+ };
44
+
45
+ /** @internal */
46
+ export const AgentIntegrationResponseIntegrationDto$inboundSchema: z.ZodType<
47
+ AgentIntegrationResponseIntegrationDto,
48
+ z.ZodTypeDef,
49
+ unknown
50
+ > = z.object({
51
+ _id: z.string(),
52
+ identifier: z.string(),
53
+ name: z.string(),
54
+ providerId: z.string(),
55
+ channel: ChannelTypeEnum$inboundSchema.optional(),
56
+ active: z.boolean(),
57
+ sharedInboundAddress: z.string().optional(),
58
+ defaultSenderName: z.string().optional(),
59
+ sharedInboxDisabled: z.boolean().optional(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ "_id": "id",
63
+ });
64
+ });
65
+
66
+ export function agentIntegrationResponseIntegrationDtoFromJSON(
67
+ jsonString: string,
68
+ ): SafeParseResult<AgentIntegrationResponseIntegrationDto, SDKValidationError> {
69
+ return safeParse(
70
+ jsonString,
71
+ (x) =>
72
+ AgentIntegrationResponseIntegrationDto$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'AgentIntegrationResponseIntegrationDto' from JSON`,
74
+ );
75
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ ChannelTypeEnum,
11
+ ChannelTypeEnum$inboundSchema,
12
+ } from "./channeltypeenum.js";
13
+
14
+ export type AgentIntegrationSummaryDto = {
15
+ /**
16
+ * Integration document id.
17
+ */
18
+ integrationId: string;
19
+ providerId: string;
20
+ name: string;
21
+ identifier: string;
22
+ /**
23
+ * Channel type through which the message is sent
24
+ */
25
+ channel?: ChannelTypeEnum | undefined;
26
+ active: boolean;
27
+ };
28
+
29
+ /** @internal */
30
+ export const AgentIntegrationSummaryDto$inboundSchema: z.ZodType<
31
+ AgentIntegrationSummaryDto,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ integrationId: z.string(),
36
+ providerId: z.string(),
37
+ name: z.string(),
38
+ identifier: z.string(),
39
+ channel: ChannelTypeEnum$inboundSchema.optional(),
40
+ active: z.boolean(),
41
+ });
42
+
43
+ export function agentIntegrationSummaryDtoFromJSON(
44
+ jsonString: string,
45
+ ): SafeParseResult<AgentIntegrationSummaryDto, SDKValidationError> {
46
+ return safeParse(
47
+ jsonString,
48
+ (x) => AgentIntegrationSummaryDto$inboundSchema.parse(JSON.parse(x)),
49
+ `Failed to parse 'AgentIntegrationSummaryDto' from JSON`,
50
+ );
51
+ }
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type AgentMcpServerDto = {
11
+ externalId: string;
12
+ name: string;
13
+ url: string;
14
+ };
15
+
16
+ /** @internal */
17
+ export const AgentMcpServerDto$inboundSchema: z.ZodType<
18
+ AgentMcpServerDto,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ externalId: z.string(),
23
+ name: z.string(),
24
+ url: z.string(),
25
+ });
26
+
27
+ export function agentMcpServerDtoFromJSON(
28
+ jsonString: string,
29
+ ): SafeParseResult<AgentMcpServerDto, SDKValidationError> {
30
+ return safeParse(
31
+ jsonString,
32
+ (x) => AgentMcpServerDto$inboundSchema.parse(JSON.parse(x)),
33
+ `Failed to parse 'AgentMcpServerDto' from JSON`,
34
+ );
35
+ }
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Which constraint produced the limits. `plan` limits are lifted by upgrading; `system` limits (platform cap or per-organization override) require contacting the Novu team.
13
+ */
14
+ export const LimitSource = {
15
+ Plan: "plan",
16
+ System: "system",
17
+ } as const;
18
+ /**
19
+ * Which constraint produced the limits. `plan` limits are lifted by upgrading; `system` limits (platform cap or per-organization override) require contacting the Novu team.
20
+ */
21
+ export type LimitSource = ClosedEnum<typeof LimitSource>;
22
+
23
+ export type AgentPlanUsageDto = {
24
+ /**
25
+ * Current usage count for the resource in this environment.
26
+ */
27
+ used: number;
28
+ /**
29
+ * Amount included in the organization plan.
30
+ */
31
+ limit: number;
32
+ /**
33
+ * Total agents in this environment, including inactive ones.
34
+ */
35
+ totalCreated: number;
36
+ /**
37
+ * Hard cap on total agents the organization can create per environment. For plan-limited tiers this is the plan limit plus a small grace buffer; for unlimited tiers it is the platform system limit.
38
+ */
39
+ creationLimit: number;
40
+ /**
41
+ * Which constraint produced the limits. `plan` limits are lifted by upgrading; `system` limits (platform cap or per-organization override) require contacting the Novu team.
42
+ */
43
+ limitSource: LimitSource;
44
+ };
45
+
46
+ /** @internal */
47
+ export const LimitSource$inboundSchema: z.ZodNativeEnum<typeof LimitSource> = z
48
+ .nativeEnum(LimitSource);
49
+
50
+ /** @internal */
51
+ export const AgentPlanUsageDto$inboundSchema: z.ZodType<
52
+ AgentPlanUsageDto,
53
+ z.ZodTypeDef,
54
+ unknown
55
+ > = z.object({
56
+ used: z.number(),
57
+ limit: z.number(),
58
+ totalCreated: z.number(),
59
+ creationLimit: z.number(),
60
+ limitSource: LimitSource$inboundSchema,
61
+ });
62
+
63
+ export function agentPlanUsageDtoFromJSON(
64
+ jsonString: string,
65
+ ): SafeParseResult<AgentPlanUsageDto, SDKValidationError> {
66
+ return safeParse(
67
+ jsonString,
68
+ (x) => AgentPlanUsageDto$inboundSchema.parse(JSON.parse(x)),
69
+ `Failed to parse 'AgentPlanUsageDto' from JSON`,
70
+ );
71
+ }