mavenagi 1.0.9 → 1.0.11

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 (379) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +13 -8
  3. package/README.md +1 -1
  4. package/api/resources/actions/client/Client.js +3 -3
  5. package/api/resources/analytics/client/Client.js +3 -3
  6. package/api/resources/appSettings/client/Client.d.ts +45 -0
  7. package/api/resources/appSettings/client/Client.js +180 -1
  8. package/api/resources/appSettings/client/index.d.ts +1 -1
  9. package/api/resources/appSettings/client/index.js +15 -0
  10. package/api/resources/appSettings/client/requests/SearchAppSettingsRequest.d.ts +15 -0
  11. package/api/resources/appSettings/client/requests/index.d.ts +1 -0
  12. package/api/resources/appSettings/client/requests/index.js +2 -0
  13. package/api/resources/appSettings/index.d.ts +1 -0
  14. package/api/resources/appSettings/index.js +1 -0
  15. package/api/resources/appSettings/types/AppSettings.d.ts +11 -0
  16. package/api/resources/appSettings/types/SearchAppSettingsResponse.d.ts +7 -0
  17. package/api/resources/appSettings/types/index.d.ts +2 -0
  18. package/api/resources/appSettings/types/index.js +18 -0
  19. package/api/resources/commons/types/ActionFormField.d.ts +3 -3
  20. package/api/resources/commons/types/AppPrecondition.d.ts +8 -0
  21. package/api/resources/commons/types/BotActionFormResponse.d.ts +7 -1
  22. package/api/resources/commons/types/ConversationAnalysis.d.ts +8 -0
  23. package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
  24. package/api/resources/commons/types/ConversationResponse.d.ts +8 -1
  25. package/api/resources/commons/types/ConversationSummary.d.ts +27 -0
  26. package/api/resources/commons/types/EntityType.d.ts +2 -1
  27. package/api/resources/commons/types/EntityType.js +1 -0
  28. package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +2 -0
  29. package/{dist/api/resources/conversation → api/resources/commons}/types/QualityReason.d.ts +1 -2
  30. package/api/resources/{conversation → commons}/types/QualityReason.js +0 -1
  31. package/api/resources/commons/types/UserMessage.d.ts +2 -0
  32. package/api/resources/commons/types/index.d.ts +3 -3
  33. package/api/resources/commons/types/index.js +3 -3
  34. package/api/resources/conversation/client/Client.d.ts +10 -2
  35. package/api/resources/conversation/client/Client.js +23 -15
  36. package/api/resources/conversation/types/AskRequest.d.ts +4 -1
  37. package/api/resources/conversation/types/index.d.ts +0 -2
  38. package/api/resources/conversation/types/index.js +0 -2
  39. package/api/resources/inbox/client/Client.js +5 -5
  40. package/api/resources/index.d.ts +5 -1
  41. package/api/resources/index.js +6 -2
  42. package/api/resources/knowledge/client/Client.d.ts +45 -6
  43. package/api/resources/knowledge/client/Client.js +61 -14
  44. package/api/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.d.ts +23 -0
  45. package/api/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.js +5 -0
  46. package/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +2 -0
  47. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +9 -1
  48. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
  49. package/api/resources/knowledge/types/KnowledgeBaseType.js +9 -0
  50. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +15 -1
  51. package/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +11 -0
  52. package/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +10 -0
  53. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +12 -0
  54. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +11 -0
  55. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +13 -1
  56. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +6 -1
  57. package/api/resources/knowledge/types/index.d.ts +4 -0
  58. package/api/resources/knowledge/types/index.js +4 -0
  59. package/api/resources/organizations/client/Client.d.ts +147 -0
  60. package/api/resources/organizations/client/Client.js +317 -0
  61. package/api/resources/organizations/client/index.d.ts +1 -0
  62. package/api/resources/organizations/client/index.js +2 -0
  63. package/api/resources/organizations/index.d.ts +1 -0
  64. package/api/resources/organizations/index.js +17 -0
  65. package/api/resources/realtime/types/HangUpPublishEvent.d.ts +6 -0
  66. package/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
  67. package/api/resources/realtime/types/PublishEvent.d.ts +4 -1
  68. package/api/resources/realtime/types/index.d.ts +1 -0
  69. package/api/resources/realtime/types/index.js +1 -0
  70. package/api/resources/translations/client/Client.js +1 -1
  71. package/api/resources/triggers/client/Client.d.ts +29 -0
  72. package/api/resources/triggers/client/Client.js +170 -3
  73. package/api/resources/triggers/client/index.d.ts +1 -1
  74. package/api/resources/triggers/client/index.js +15 -0
  75. package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +17 -0
  76. package/api/resources/triggers/client/requests/PartialUpdateRequest.js +5 -0
  77. package/api/resources/triggers/client/requests/index.d.ts +1 -0
  78. package/api/resources/triggers/client/requests/index.js +2 -0
  79. package/api/resources/triggers/types/EventTriggerBase.js +5 -0
  80. package/{dist/api/resources/commons → api/resources/triggers}/types/EventTriggerResponse.d.ts +4 -1
  81. package/api/resources/triggers/types/EventTriggerResponse.js +5 -0
  82. package/api/resources/triggers/types/EventTriggersSearchRequest.d.ts +8 -0
  83. package/api/resources/triggers/types/EventTriggersSearchRequest.js +5 -0
  84. package/api/resources/triggers/types/EventTriggersSearchResponse.d.ts +7 -0
  85. package/api/resources/triggers/types/EventTriggersSearchResponse.js +5 -0
  86. package/api/resources/triggers/types/TriggerField.d.ts +8 -0
  87. package/api/resources/triggers/types/TriggerField.js +10 -0
  88. package/api/resources/triggers/types/TriggerPartialUpdate.d.ts +7 -0
  89. package/api/resources/triggers/types/TriggerPartialUpdate.js +5 -0
  90. package/api/resources/triggers/types/index.d.ts +7 -0
  91. package/api/resources/triggers/types/index.js +7 -0
  92. package/api/resources/users/client/Client.js +3 -3
  93. package/dist/Client.d.ts +3 -0
  94. package/dist/Client.js +13 -8
  95. package/dist/api/resources/actions/client/Client.js +3 -3
  96. package/dist/api/resources/analytics/client/Client.js +3 -3
  97. package/dist/api/resources/appSettings/client/Client.d.ts +45 -0
  98. package/dist/api/resources/appSettings/client/Client.js +180 -1
  99. package/dist/api/resources/appSettings/client/index.d.ts +1 -1
  100. package/dist/api/resources/appSettings/client/index.js +15 -0
  101. package/dist/api/resources/appSettings/client/requests/SearchAppSettingsRequest.d.ts +15 -0
  102. package/dist/api/resources/appSettings/client/requests/SearchAppSettingsRequest.js +5 -0
  103. package/dist/api/resources/appSettings/client/requests/index.d.ts +1 -0
  104. package/dist/api/resources/appSettings/client/requests/index.js +2 -0
  105. package/dist/api/resources/appSettings/index.d.ts +1 -0
  106. package/dist/api/resources/appSettings/index.js +1 -0
  107. package/dist/api/resources/appSettings/types/AppSettings.d.ts +11 -0
  108. package/dist/api/resources/appSettings/types/AppSettings.js +5 -0
  109. package/dist/api/resources/appSettings/types/SearchAppSettingsResponse.d.ts +7 -0
  110. package/dist/api/resources/appSettings/types/SearchAppSettingsResponse.js +5 -0
  111. package/dist/api/resources/appSettings/types/index.d.ts +2 -0
  112. package/dist/api/resources/appSettings/types/index.js +18 -0
  113. package/dist/api/resources/commons/types/ActionFormField.d.ts +3 -3
  114. package/dist/api/resources/commons/types/AppPrecondition.d.ts +8 -0
  115. package/dist/api/resources/commons/types/AppPrecondition.js +5 -0
  116. package/dist/api/resources/commons/types/BotActionFormResponse.d.ts +7 -1
  117. package/dist/api/resources/commons/types/ConversationAnalysis.d.ts +8 -0
  118. package/dist/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
  119. package/dist/api/resources/commons/types/ConversationResponse.d.ts +8 -1
  120. package/dist/api/resources/commons/types/ConversationSummary.d.ts +27 -0
  121. package/dist/api/resources/commons/types/EntityType.d.ts +2 -1
  122. package/dist/api/resources/commons/types/EntityType.js +1 -0
  123. package/dist/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +2 -0
  124. package/{api/resources/conversation → dist/api/resources/commons}/types/QualityReason.d.ts +1 -2
  125. package/dist/api/resources/{conversation → commons}/types/QualityReason.js +0 -1
  126. package/dist/api/resources/commons/types/UserMessage.d.ts +2 -0
  127. package/dist/api/resources/commons/types/index.d.ts +3 -3
  128. package/dist/api/resources/commons/types/index.js +3 -3
  129. package/dist/api/resources/conversation/client/Client.d.ts +10 -2
  130. package/dist/api/resources/conversation/client/Client.js +23 -15
  131. package/dist/api/resources/conversation/types/AskRequest.d.ts +4 -1
  132. package/dist/api/resources/conversation/types/index.d.ts +0 -2
  133. package/dist/api/resources/conversation/types/index.js +0 -2
  134. package/dist/api/resources/inbox/client/Client.js +5 -5
  135. package/dist/api/resources/index.d.ts +5 -1
  136. package/dist/api/resources/index.js +6 -2
  137. package/dist/api/resources/knowledge/client/Client.d.ts +45 -6
  138. package/dist/api/resources/knowledge/client/Client.js +61 -14
  139. package/dist/api/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.d.ts +23 -0
  140. package/dist/api/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.js +5 -0
  141. package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +2 -0
  142. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +9 -1
  143. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
  144. package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +9 -0
  145. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +15 -1
  146. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +11 -0
  147. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +10 -0
  148. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +12 -0
  149. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +11 -0
  150. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +13 -1
  151. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +6 -1
  152. package/dist/api/resources/knowledge/types/index.d.ts +4 -0
  153. package/dist/api/resources/knowledge/types/index.js +4 -0
  154. package/dist/api/resources/organizations/client/Client.d.ts +147 -0
  155. package/dist/api/resources/organizations/client/Client.js +317 -0
  156. package/dist/api/resources/organizations/client/index.d.ts +1 -0
  157. package/dist/api/resources/organizations/client/index.js +2 -0
  158. package/dist/api/resources/organizations/index.d.ts +1 -0
  159. package/dist/api/resources/organizations/index.js +17 -0
  160. package/dist/api/resources/realtime/types/HangUpPublishEvent.d.ts +6 -0
  161. package/dist/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
  162. package/dist/api/resources/realtime/types/PublishEvent.d.ts +4 -1
  163. package/dist/api/resources/realtime/types/index.d.ts +1 -0
  164. package/dist/api/resources/realtime/types/index.js +1 -0
  165. package/dist/api/resources/translations/client/Client.js +1 -1
  166. package/dist/api/resources/triggers/client/Client.d.ts +29 -0
  167. package/dist/api/resources/triggers/client/Client.js +170 -3
  168. package/dist/api/resources/triggers/client/index.d.ts +1 -1
  169. package/dist/api/resources/triggers/client/index.js +15 -0
  170. package/dist/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +17 -0
  171. package/dist/api/resources/triggers/client/requests/PartialUpdateRequest.js +5 -0
  172. package/dist/api/resources/triggers/client/requests/index.d.ts +1 -0
  173. package/dist/api/resources/triggers/client/requests/index.js +2 -0
  174. package/dist/api/resources/triggers/types/EventTriggerBase.js +5 -0
  175. package/{api/resources/commons → dist/api/resources/triggers}/types/EventTriggerResponse.d.ts +4 -1
  176. package/dist/api/resources/triggers/types/EventTriggerResponse.js +5 -0
  177. package/dist/api/resources/triggers/types/EventTriggersSearchRequest.d.ts +8 -0
  178. package/dist/api/resources/triggers/types/EventTriggersSearchRequest.js +5 -0
  179. package/dist/api/resources/triggers/types/EventTriggersSearchResponse.d.ts +7 -0
  180. package/dist/api/resources/triggers/types/EventTriggersSearchResponse.js +5 -0
  181. package/dist/api/resources/triggers/types/TriggerField.d.ts +8 -0
  182. package/dist/api/resources/triggers/types/TriggerField.js +10 -0
  183. package/dist/api/resources/triggers/types/TriggerPartialUpdate.d.ts +7 -0
  184. package/dist/api/resources/triggers/types/TriggerPartialUpdate.js +5 -0
  185. package/dist/api/resources/triggers/types/index.d.ts +7 -0
  186. package/dist/api/resources/triggers/types/index.js +7 -0
  187. package/dist/api/resources/users/client/Client.js +3 -3
  188. package/dist/serialization/resources/appSettings/client/index.d.ts +1 -0
  189. package/dist/serialization/resources/appSettings/client/index.js +2 -1
  190. package/dist/serialization/resources/appSettings/client/update.d.ts +13 -0
  191. package/dist/serialization/resources/appSettings/client/update.js +42 -0
  192. package/dist/serialization/resources/appSettings/index.d.ts +1 -0
  193. package/dist/serialization/resources/appSettings/index.js +1 -0
  194. package/dist/serialization/resources/appSettings/types/AppSettings.d.ts +14 -0
  195. package/dist/serialization/resources/appSettings/types/AppSettings.js +45 -0
  196. package/dist/serialization/resources/appSettings/types/SearchAppSettingsResponse.d.ts +13 -0
  197. package/dist/serialization/resources/appSettings/types/SearchAppSettingsResponse.js +44 -0
  198. package/dist/serialization/resources/appSettings/types/index.d.ts +2 -0
  199. package/dist/serialization/resources/appSettings/types/index.js +18 -0
  200. package/dist/serialization/resources/commons/types/AppPrecondition.d.ts +13 -0
  201. package/dist/serialization/resources/commons/types/AppPrecondition.js +46 -0
  202. package/dist/serialization/resources/commons/types/BotActionFormResponse.d.ts +2 -0
  203. package/dist/serialization/resources/commons/types/BotActionFormResponse.js +2 -0
  204. package/dist/serialization/resources/commons/types/ConversationAnalysis.d.ts +6 -0
  205. package/dist/serialization/resources/commons/types/ConversationAnalysis.js +6 -0
  206. package/dist/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
  207. package/dist/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
  208. package/dist/serialization/resources/commons/types/ConversationSummary.d.ts +9 -0
  209. package/dist/serialization/resources/commons/types/ConversationSummary.js +9 -0
  210. package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
  211. package/dist/serialization/resources/commons/types/EntityType.js +1 -0
  212. package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -0
  213. package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +1 -0
  214. package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/QualityReason.d.ts +1 -1
  215. package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/QualityReason.js +0 -1
  216. package/dist/serialization/resources/commons/types/UserMessage.d.ts +1 -0
  217. package/dist/serialization/resources/commons/types/UserMessage.js +1 -0
  218. package/dist/serialization/resources/commons/types/index.d.ts +3 -3
  219. package/dist/serialization/resources/commons/types/index.js +3 -3
  220. package/dist/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
  221. package/dist/serialization/resources/conversation/types/AskRequest.js +1 -0
  222. package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -2
  223. package/dist/serialization/resources/conversation/types/ConversationFilter.js +2 -2
  224. package/dist/serialization/resources/conversation/types/index.d.ts +0 -2
  225. package/dist/serialization/resources/conversation/types/index.js +0 -2
  226. package/dist/serialization/resources/index.d.ts +2 -1
  227. package/dist/serialization/resources/index.js +3 -2
  228. package/dist/serialization/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.d.ts +16 -0
  229. package/dist/serialization/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.js +47 -0
  230. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -0
  231. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +1 -0
  232. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -0
  233. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +3 -0
  234. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
  235. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +41 -0
  236. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +5 -0
  237. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -0
  238. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +10 -0
  239. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +41 -0
  240. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +10 -0
  241. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.js +41 -0
  242. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +3 -0
  243. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +3 -0
  244. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -0
  245. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +1 -0
  246. package/dist/serialization/resources/knowledge/types/index.d.ts +4 -0
  247. package/dist/serialization/resources/knowledge/types/index.js +4 -0
  248. package/dist/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
  249. package/dist/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
  250. package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +5 -1
  251. package/dist/serialization/resources/realtime/types/PublishEvent.js +2 -0
  252. package/dist/serialization/resources/realtime/types/index.d.ts +1 -0
  253. package/dist/serialization/resources/realtime/types/index.js +1 -0
  254. package/dist/serialization/resources/triggers/types/EventTriggerRequest.d.ts +1 -1
  255. package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +1 -1
  256. package/dist/serialization/resources/{commons → triggers}/types/EventTriggerResponse.d.ts +2 -1
  257. package/{serialization/resources/commons → dist/serialization/resources/triggers}/types/EventTriggerResponse.js +2 -1
  258. package/dist/serialization/resources/triggers/types/EventTriggersSearchRequest.d.ts +14 -0
  259. package/dist/serialization/resources/triggers/types/EventTriggersSearchRequest.js +47 -0
  260. package/dist/serialization/resources/triggers/types/EventTriggersSearchResponse.d.ts +14 -0
  261. package/dist/serialization/resources/triggers/types/EventTriggersSearchResponse.js +47 -0
  262. package/dist/serialization/resources/triggers/types/TriggerField.d.ts +10 -0
  263. package/dist/serialization/resources/triggers/types/TriggerField.js +41 -0
  264. package/dist/serialization/resources/triggers/types/TriggerPartialUpdate.d.ts +12 -0
  265. package/dist/serialization/resources/triggers/types/TriggerPartialUpdate.js +43 -0
  266. package/dist/serialization/resources/triggers/types/index.d.ts +7 -0
  267. package/dist/serialization/resources/triggers/types/index.js +7 -0
  268. package/dist/version.d.ts +1 -1
  269. package/dist/version.js +1 -1
  270. package/package.json +1 -1
  271. package/reference.md +504 -7
  272. package/serialization/resources/appSettings/client/index.d.ts +1 -0
  273. package/serialization/resources/appSettings/client/index.js +2 -1
  274. package/serialization/resources/appSettings/client/update.d.ts +13 -0
  275. package/serialization/resources/appSettings/client/update.js +42 -0
  276. package/serialization/resources/appSettings/index.d.ts +1 -0
  277. package/serialization/resources/appSettings/index.js +1 -0
  278. package/serialization/resources/appSettings/types/AppSettings.d.ts +14 -0
  279. package/serialization/resources/appSettings/types/AppSettings.js +45 -0
  280. package/serialization/resources/appSettings/types/SearchAppSettingsResponse.d.ts +13 -0
  281. package/serialization/resources/appSettings/types/SearchAppSettingsResponse.js +44 -0
  282. package/serialization/resources/appSettings/types/index.d.ts +2 -0
  283. package/serialization/resources/appSettings/types/index.js +18 -0
  284. package/serialization/resources/commons/types/AppPrecondition.d.ts +13 -0
  285. package/serialization/resources/commons/types/AppPrecondition.js +46 -0
  286. package/serialization/resources/commons/types/BotActionFormResponse.d.ts +2 -0
  287. package/serialization/resources/commons/types/BotActionFormResponse.js +2 -0
  288. package/serialization/resources/commons/types/ConversationAnalysis.d.ts +6 -0
  289. package/serialization/resources/commons/types/ConversationAnalysis.js +6 -0
  290. package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
  291. package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
  292. package/serialization/resources/commons/types/ConversationSummary.d.ts +9 -0
  293. package/serialization/resources/commons/types/ConversationSummary.js +9 -0
  294. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  295. package/serialization/resources/commons/types/EntityType.js +1 -0
  296. package/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -0
  297. package/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +1 -0
  298. package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/QualityReason.d.ts +1 -1
  299. package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/QualityReason.js +0 -1
  300. package/serialization/resources/commons/types/UserMessage.d.ts +1 -0
  301. package/serialization/resources/commons/types/UserMessage.js +1 -0
  302. package/serialization/resources/commons/types/index.d.ts +3 -3
  303. package/serialization/resources/commons/types/index.js +3 -3
  304. package/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
  305. package/serialization/resources/conversation/types/AskRequest.js +1 -0
  306. package/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -2
  307. package/serialization/resources/conversation/types/ConversationFilter.js +2 -2
  308. package/serialization/resources/conversation/types/index.d.ts +0 -2
  309. package/serialization/resources/conversation/types/index.js +0 -2
  310. package/serialization/resources/index.d.ts +2 -1
  311. package/serialization/resources/index.js +3 -2
  312. package/serialization/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.d.ts +16 -0
  313. package/serialization/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.js +47 -0
  314. package/serialization/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -0
  315. package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +1 -0
  316. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -0
  317. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +3 -0
  318. package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
  319. package/serialization/resources/knowledge/types/KnowledgeBaseType.js +41 -0
  320. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +5 -0
  321. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -0
  322. package/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +10 -0
  323. package/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +41 -0
  324. package/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +10 -0
  325. package/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.js +41 -0
  326. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +3 -0
  327. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +3 -0
  328. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -0
  329. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +1 -0
  330. package/serialization/resources/knowledge/types/index.d.ts +4 -0
  331. package/serialization/resources/knowledge/types/index.js +4 -0
  332. package/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
  333. package/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
  334. package/serialization/resources/realtime/types/PublishEvent.d.ts +5 -1
  335. package/serialization/resources/realtime/types/PublishEvent.js +2 -0
  336. package/serialization/resources/realtime/types/index.d.ts +1 -0
  337. package/serialization/resources/realtime/types/index.js +1 -0
  338. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +1 -1
  339. package/serialization/resources/triggers/types/EventTriggerRequest.js +1 -1
  340. package/serialization/resources/{commons → triggers}/types/EventTriggerResponse.d.ts +2 -1
  341. package/{dist/serialization/resources/commons → serialization/resources/triggers}/types/EventTriggerResponse.js +2 -1
  342. package/serialization/resources/triggers/types/EventTriggersSearchRequest.d.ts +14 -0
  343. package/serialization/resources/triggers/types/EventTriggersSearchRequest.js +47 -0
  344. package/serialization/resources/triggers/types/EventTriggersSearchResponse.d.ts +14 -0
  345. package/serialization/resources/triggers/types/EventTriggersSearchResponse.js +47 -0
  346. package/serialization/resources/triggers/types/TriggerField.d.ts +10 -0
  347. package/serialization/resources/triggers/types/TriggerField.js +41 -0
  348. package/serialization/resources/triggers/types/TriggerPartialUpdate.d.ts +12 -0
  349. package/serialization/resources/triggers/types/TriggerPartialUpdate.js +43 -0
  350. package/serialization/resources/triggers/types/index.d.ts +7 -0
  351. package/serialization/resources/triggers/types/index.js +7 -0
  352. package/version.d.ts +1 -1
  353. package/version.js +1 -1
  354. /package/api/resources/{commons/types/EventTriggerBase.js → appSettings/client/requests/SearchAppSettingsRequest.js} +0 -0
  355. /package/api/resources/{commons/types/EventTriggerResponse.js → appSettings/types/AppSettings.js} +0 -0
  356. /package/{dist/api/resources/commons/types/EventTriggerBase.js → api/resources/appSettings/types/SearchAppSettingsResponse.js} +0 -0
  357. /package/{dist/api/resources/commons/types/EventTriggerResponse.js → api/resources/commons/types/AppPrecondition.js} +0 -0
  358. /package/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
  359. /package/api/resources/{conversation → commons}/types/Quality.js +0 -0
  360. /package/api/resources/{commons → triggers}/types/EventTriggerBase.d.ts +0 -0
  361. /package/api/resources/{commons → triggers}/types/EventTriggerType.d.ts +0 -0
  362. /package/api/resources/{commons → triggers}/types/EventTriggerType.js +0 -0
  363. /package/dist/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
  364. /package/dist/api/resources/{conversation → commons}/types/Quality.js +0 -0
  365. /package/dist/api/resources/{commons → triggers}/types/EventTriggerBase.d.ts +0 -0
  366. /package/dist/api/resources/{commons → triggers}/types/EventTriggerType.d.ts +0 -0
  367. /package/dist/api/resources/{commons → triggers}/types/EventTriggerType.js +0 -0
  368. /package/dist/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
  369. /package/dist/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
  370. /package/dist/serialization/resources/{commons → triggers}/types/EventTriggerBase.d.ts +0 -0
  371. /package/dist/serialization/resources/{commons → triggers}/types/EventTriggerBase.js +0 -0
  372. /package/dist/serialization/resources/{commons → triggers}/types/EventTriggerType.d.ts +0 -0
  373. /package/dist/serialization/resources/{commons → triggers}/types/EventTriggerType.js +0 -0
  374. /package/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
  375. /package/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
  376. /package/serialization/resources/{commons → triggers}/types/EventTriggerBase.d.ts +0 -0
  377. /package/serialization/resources/{commons → triggers}/types/EventTriggerBase.js +0 -0
  378. /package/serialization/resources/{commons → triggers}/types/EventTriggerType.d.ts +0 -0
  379. /package/serialization/resources/{commons → triggers}/types/EventTriggerType.js +0 -0
@@ -0,0 +1,317 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Organizations = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const MavenAGI = __importStar(require("../../../index"));
55
+ const serializers = __importStar(require("../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
+ const errors = __importStar(require("../../../../errors/index"));
58
+ class Organizations {
59
+ constructor(_options) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Retrieves structured conversation data across all organizations, formatted as a table,
64
+ * allowing users to group, filter, and define specific metrics to display as columns.
65
+ *
66
+ * <Tip>
67
+ * This endpoint requires additional permissions. Contact support to request access.
68
+ * </Tip>
69
+ *
70
+ * @param {MavenAGI.ConversationTableRequest} request
71
+ * @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
72
+ *
73
+ * @throws {@link MavenAGI.NotFoundError}
74
+ * @throws {@link MavenAGI.BadRequestError}
75
+ * @throws {@link MavenAGI.ServerError}
76
+ *
77
+ * @example
78
+ * await client.organizations.getConversationTable({
79
+ * conversationFilter: {
80
+ * languages: ["en", "es"]
81
+ * },
82
+ * timeGrouping: "DAY",
83
+ * fieldGroupings: [{
84
+ * field: "Category"
85
+ * }],
86
+ * columnDefinitions: [{
87
+ * header: "count",
88
+ * metric: {
89
+ * type: "count"
90
+ * }
91
+ * }, {
92
+ * header: "avg_first_response_time",
93
+ * metric: {
94
+ * type: "average",
95
+ * targetField: "FirstResponseTime"
96
+ * }
97
+ * }, {
98
+ * header: "percentile_handle_time",
99
+ * metric: {
100
+ * type: "percentile",
101
+ * targetField: "HandleTime",
102
+ * percentile: 25
103
+ * }
104
+ * }]
105
+ * })
106
+ */
107
+ getConversationTable(request, requestOptions) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ var _a, _b, _c;
110
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
111
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/organizations/tables/conversations"),
112
+ method: "POST",
113
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
114
+ contentType: "application/json",
115
+ requestType: "json",
116
+ body: serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
117
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
118
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
119
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
120
+ });
121
+ if (_response.ok) {
122
+ return serializers.ConversationTableResponse.parseOrThrow(_response.body, {
123
+ unrecognizedObjectKeys: "passthrough",
124
+ allowUnrecognizedUnionMembers: true,
125
+ allowUnrecognizedEnumValues: true,
126
+ breadcrumbsPrefix: ["response"],
127
+ });
128
+ }
129
+ if (_response.error.reason === "status-code") {
130
+ switch (_response.error.statusCode) {
131
+ case 404:
132
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
133
+ unrecognizedObjectKeys: "passthrough",
134
+ allowUnrecognizedUnionMembers: true,
135
+ allowUnrecognizedEnumValues: true,
136
+ breadcrumbsPrefix: ["response"],
137
+ }));
138
+ case 400:
139
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
140
+ unrecognizedObjectKeys: "passthrough",
141
+ allowUnrecognizedUnionMembers: true,
142
+ allowUnrecognizedEnumValues: true,
143
+ breadcrumbsPrefix: ["response"],
144
+ }));
145
+ case 500:
146
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
147
+ unrecognizedObjectKeys: "passthrough",
148
+ allowUnrecognizedUnionMembers: true,
149
+ allowUnrecognizedEnumValues: true,
150
+ breadcrumbsPrefix: ["response"],
151
+ }));
152
+ default:
153
+ throw new errors.MavenAGIError({
154
+ statusCode: _response.error.statusCode,
155
+ body: _response.error.body,
156
+ });
157
+ }
158
+ }
159
+ switch (_response.error.reason) {
160
+ case "non-json":
161
+ throw new errors.MavenAGIError({
162
+ statusCode: _response.error.statusCode,
163
+ body: _response.error.rawBody,
164
+ });
165
+ case "timeout":
166
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/organizations/tables/conversations.");
167
+ case "unknown":
168
+ throw new errors.MavenAGIError({
169
+ message: _response.error.errorMessage,
170
+ });
171
+ }
172
+ });
173
+ }
174
+ /**
175
+ * Fetches conversation data across all organizations, visualized in a chart format.
176
+ * Supported chart types include pie chart, date histogram, and stacked bar charts.
177
+ *
178
+ * <Tip>
179
+ * This endpoint requires additional permissions. Contact support to request access.
180
+ * </Tip>
181
+ *
182
+ * @param {MavenAGI.ConversationChartRequest} request
183
+ * @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
184
+ *
185
+ * @throws {@link MavenAGI.NotFoundError}
186
+ * @throws {@link MavenAGI.BadRequestError}
187
+ * @throws {@link MavenAGI.ServerError}
188
+ *
189
+ * @example
190
+ * await client.organizations.getConversationChart({
191
+ * type: "pieChart",
192
+ * conversationFilter: {
193
+ * languages: ["en", "es"]
194
+ * },
195
+ * groupBy: {
196
+ * field: "Category"
197
+ * },
198
+ * metric: {
199
+ * type: "count"
200
+ * }
201
+ * })
202
+ *
203
+ * @example
204
+ * await client.organizations.getConversationChart({
205
+ * type: "dateHistogram",
206
+ * conversationFilter: {
207
+ * languages: ["en", "es"]
208
+ * },
209
+ * timeInterval: "DAY",
210
+ * groupBy: {
211
+ * field: "Category"
212
+ * },
213
+ * metric: {
214
+ * type: "count"
215
+ * }
216
+ * })
217
+ *
218
+ * @example
219
+ * await client.organizations.getConversationChart({
220
+ * type: "barChart",
221
+ * conversationFilter: {
222
+ * languages: ["en", "es"]
223
+ * },
224
+ * barDefinition: {
225
+ * field: "Category"
226
+ * },
227
+ * metric: {
228
+ * type: "count"
229
+ * },
230
+ * verticalGrouping: {
231
+ * field: "ResolutionStatus"
232
+ * }
233
+ * })
234
+ */
235
+ getConversationChart(request, requestOptions) {
236
+ return __awaiter(this, void 0, void 0, function* () {
237
+ var _a, _b, _c;
238
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
239
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/organizations/charts/conversations"),
240
+ method: "POST",
241
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
+ contentType: "application/json",
243
+ requestType: "json",
244
+ body: serializers.ConversationChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
245
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
246
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
247
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
248
+ });
249
+ if (_response.ok) {
250
+ return serializers.ChartResponse.parseOrThrow(_response.body, {
251
+ unrecognizedObjectKeys: "passthrough",
252
+ allowUnrecognizedUnionMembers: true,
253
+ allowUnrecognizedEnumValues: true,
254
+ breadcrumbsPrefix: ["response"],
255
+ });
256
+ }
257
+ if (_response.error.reason === "status-code") {
258
+ switch (_response.error.statusCode) {
259
+ case 404:
260
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
261
+ unrecognizedObjectKeys: "passthrough",
262
+ allowUnrecognizedUnionMembers: true,
263
+ allowUnrecognizedEnumValues: true,
264
+ breadcrumbsPrefix: ["response"],
265
+ }));
266
+ case 400:
267
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
268
+ unrecognizedObjectKeys: "passthrough",
269
+ allowUnrecognizedUnionMembers: true,
270
+ allowUnrecognizedEnumValues: true,
271
+ breadcrumbsPrefix: ["response"],
272
+ }));
273
+ case 500:
274
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
275
+ unrecognizedObjectKeys: "passthrough",
276
+ allowUnrecognizedUnionMembers: true,
277
+ allowUnrecognizedEnumValues: true,
278
+ breadcrumbsPrefix: ["response"],
279
+ }));
280
+ default:
281
+ throw new errors.MavenAGIError({
282
+ statusCode: _response.error.statusCode,
283
+ body: _response.error.body,
284
+ });
285
+ }
286
+ }
287
+ switch (_response.error.reason) {
288
+ case "non-json":
289
+ throw new errors.MavenAGIError({
290
+ statusCode: _response.error.statusCode,
291
+ body: _response.error.rawBody,
292
+ });
293
+ case "timeout":
294
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/organizations/charts/conversations.");
295
+ case "unknown":
296
+ throw new errors.MavenAGIError({
297
+ message: _response.error.errorMessage,
298
+ });
299
+ }
300
+ });
301
+ }
302
+ _getAuthorizationHeader() {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ var _a, _b;
305
+ const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
306
+ const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
307
+ if (appId != null && appSecret != null) {
308
+ return core.BasicAuth.toAuthorizationHeader({
309
+ username: appId,
310
+ password: appSecret,
311
+ });
312
+ }
313
+ return undefined;
314
+ });
315
+ }
316
+ }
317
+ exports.Organizations = Organizations;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface HangUpPublishEvent {
5
+ message?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,9 +5,12 @@ import * as MavenAGI from "../../../index";
5
5
  /**
6
6
  * The input from the user to send through the WebSocket.
7
7
  */
8
- export type PublishEvent = MavenAGI.PublishEvent.Audio;
8
+ export type PublishEvent = MavenAGI.PublishEvent.Audio | MavenAGI.PublishEvent.HangUp;
9
9
  export declare namespace PublishEvent {
10
10
  interface Audio extends MavenAGI.AudioPublishEvent {
11
11
  messageType: "audio";
12
12
  }
13
+ interface HangUp extends MavenAGI.HangUpPublishEvent {
14
+ messageType: "hangUp";
15
+ }
13
16
  }
@@ -1,5 +1,6 @@
1
1
  export * from "./ControlEvent";
2
2
  export * from "./PublishEvent";
3
+ export * from "./HangUpPublishEvent";
3
4
  export * from "./AudioPublishEvent";
4
5
  export * from "./SubscribeEvent";
5
6
  export * from "./AudioSubscribeEvent";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ControlEvent"), exports);
18
18
  __exportStar(require("./PublishEvent"), exports);
19
+ __exportStar(require("./HangUpPublishEvent"), exports);
19
20
  __exportStar(require("./AudioPublishEvent"), exports);
20
21
  __exportStar(require("./SubscribeEvent"), exports);
21
22
  __exportStar(require("./AudioSubscribeEvent"), exports);
@@ -81,7 +81,7 @@ class Translations {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/translations/translate"),
83
83
  method: "POST",
84
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.TranslationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -35,6 +35,18 @@ export declare namespace Triggers {
35
35
  export declare class Triggers {
36
36
  protected readonly _options: Triggers.Options;
37
37
  constructor(_options: Triggers.Options);
38
+ /**
39
+ * @param {MavenAGI.EventTriggersSearchRequest} request
40
+ * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link MavenAGI.NotFoundError}
43
+ * @throws {@link MavenAGI.BadRequestError}
44
+ * @throws {@link MavenAGI.ServerError}
45
+ *
46
+ * @example
47
+ * await client.triggers.search({})
48
+ */
49
+ search(request: MavenAGI.EventTriggersSearchRequest, requestOptions?: Triggers.RequestOptions): Promise<MavenAGI.EventTriggersSearchResponse>;
38
50
  /**
39
51
  * Update an event trigger or create it if it doesn't exist.
40
52
  *
@@ -83,5 +95,22 @@ export declare class Triggers {
83
95
  * await client.triggers.delete("store-in-snowflake")
84
96
  */
85
97
  delete(triggerReferenceId: string, requestOptions?: Triggers.RequestOptions): Promise<void>;
98
+ /**
99
+ * Updates an event trigger. Only the enabled field is editable.
100
+ *
101
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
102
+ * @param {MavenAGI.PartialUpdateRequest} request
103
+ * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
104
+ *
105
+ * @throws {@link MavenAGI.NotFoundError}
106
+ * @throws {@link MavenAGI.BadRequestError}
107
+ * @throws {@link MavenAGI.ServerError}
108
+ *
109
+ * @example
110
+ * await client.triggers.partialUpdate("triggerReferenceId", {
111
+ * body: {}
112
+ * })
113
+ */
114
+ partialUpdate(triggerReferenceId: string, request: MavenAGI.PartialUpdateRequest, requestOptions?: Triggers.RequestOptions): Promise<MavenAGI.EventTriggerResponse>;
86
115
  protected _getAuthorizationHeader(): Promise<string | undefined>;
87
116
  }