mavenagi 1.0.11 → 1.0.15

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 (513) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +30 -20
  3. package/README.md +8 -41
  4. package/api/resources/actions/client/Client.js +3 -3
  5. package/api/resources/agents/client/Client.d.ts +86 -0
  6. package/api/resources/agents/client/Client.js +320 -0
  7. package/api/resources/agents/client/index.d.ts +1 -0
  8. package/api/resources/agents/client/index.js +2 -0
  9. package/api/resources/agents/index.d.ts +2 -0
  10. package/api/resources/agents/index.js +18 -0
  11. package/api/resources/agents/types/Agent.d.ts +14 -0
  12. package/api/resources/agents/types/Agent.js +5 -0
  13. package/api/resources/agents/types/AgentEnvironment.d.ts +9 -0
  14. package/api/resources/agents/types/AgentEnvironment.js +11 -0
  15. package/api/resources/agents/types/AgentField.d.ts +8 -0
  16. package/api/resources/agents/types/AgentField.js +10 -0
  17. package/api/resources/agents/types/AgentFilter.d.ts +8 -0
  18. package/api/resources/agents/types/AgentFilter.js +5 -0
  19. package/api/resources/agents/types/AgentsSearchRequest.d.ts +8 -0
  20. package/api/resources/agents/types/AgentsSearchRequest.js +5 -0
  21. package/api/resources/agents/types/AgentsSearchResponse.d.ts +7 -0
  22. package/api/resources/agents/types/AgentsSearchResponse.js +5 -0
  23. package/api/resources/agents/types/index.d.ts +6 -0
  24. package/api/resources/agents/types/index.js +22 -0
  25. package/api/resources/analytics/client/Client.js +3 -3
  26. package/api/resources/appSettings/client/Client.js +3 -3
  27. package/api/resources/commons/types/ActionParameter.d.ts +3 -1
  28. package/api/resources/commons/types/ActionParameterType.d.ts +14 -1
  29. package/api/resources/commons/types/ActionParameterType.js +1 -0
  30. package/api/resources/commons/types/BotObjectResponse.d.ts +12 -0
  31. package/api/resources/commons/types/BotObjectResponse.js +5 -0
  32. package/api/resources/commons/types/BotResponse.d.ts +4 -1
  33. package/api/resources/commons/types/EntityType.d.ts +2 -1
  34. package/api/resources/commons/types/EntityType.js +1 -0
  35. package/api/resources/commons/types/NumberRange.d.ts +12 -0
  36. package/api/resources/commons/types/NumberRange.js +5 -0
  37. package/api/resources/commons/types/index.d.ts +2 -0
  38. package/api/resources/commons/types/index.js +2 -0
  39. package/api/resources/conversation/client/Client.d.ts +30 -0
  40. package/api/resources/conversation/client/Client.js +109 -13
  41. package/api/resources/conversation/types/ConversationField.d.ts +2 -1
  42. package/api/resources/conversation/types/ConversationField.js +1 -0
  43. package/api/resources/conversation/types/ConversationFilter.d.ts +21 -0
  44. package/api/resources/conversation/types/FeedbackField.d.ts +2 -1
  45. package/api/resources/conversation/types/FeedbackField.js +1 -0
  46. package/api/resources/conversation/types/FeedbackFilter.d.ts +2 -0
  47. package/api/resources/conversation/types/GenerateObjectRequest.d.ts +8 -0
  48. package/api/resources/conversation/types/GenerateObjectRequest.js +5 -0
  49. package/api/resources/conversation/types/index.d.ts +1 -0
  50. package/api/resources/conversation/types/index.js +1 -0
  51. package/api/resources/events/client/Client.d.ts +53 -0
  52. package/api/resources/events/client/Client.js +157 -0
  53. package/api/resources/events/client/index.d.ts +1 -0
  54. package/api/resources/events/client/index.js +2 -0
  55. package/api/resources/events/index.d.ts +2 -0
  56. package/api/resources/events/index.js +18 -0
  57. package/api/resources/events/types/BrowserInfo.d.ts +10 -0
  58. package/api/resources/events/types/BrowserInfo.js +5 -0
  59. package/api/resources/events/types/BrowserType.d.ts +12 -0
  60. package/api/resources/events/types/BrowserType.js +14 -0
  61. package/api/resources/events/types/ContextInfo.d.ts +6 -0
  62. package/api/resources/events/types/ContextInfo.js +5 -0
  63. package/api/resources/events/types/DeviceInfo.d.ts +10 -0
  64. package/api/resources/events/types/DeviceInfo.js +5 -0
  65. package/api/resources/events/types/DeviceType.d.ts +10 -0
  66. package/api/resources/events/types/DeviceType.js +12 -0
  67. package/api/resources/events/types/EventBaseNoId.d.ts +11 -0
  68. package/api/resources/events/types/EventBaseNoId.js +5 -0
  69. package/api/resources/events/types/EventField.d.ts +7 -0
  70. package/api/resources/events/types/EventField.js +9 -0
  71. package/api/resources/events/types/EventFilter.d.ts +13 -0
  72. package/api/resources/events/types/EventFilter.js +5 -0
  73. package/api/resources/events/types/EventResponse.d.ts +13 -0
  74. package/api/resources/events/types/EventResponse.js +5 -0
  75. package/api/resources/events/types/EventType.d.ts +8 -0
  76. package/api/resources/events/types/EventType.js +10 -0
  77. package/api/resources/events/types/EventsSearchRequest.d.ts +8 -0
  78. package/api/resources/events/types/EventsSearchRequest.js +5 -0
  79. package/api/resources/events/types/EventsSearchResponse.d.ts +8 -0
  80. package/api/resources/events/types/EventsSearchResponse.js +5 -0
  81. package/api/resources/events/types/FeedbackInfo.d.ts +12 -0
  82. package/api/resources/events/types/FeedbackInfo.js +5 -0
  83. package/api/resources/events/types/GeoInfo.d.ts +11 -0
  84. package/api/resources/events/types/GeoInfo.js +5 -0
  85. package/api/resources/events/types/IpInfo.d.ts +6 -0
  86. package/api/resources/events/types/IpInfo.js +5 -0
  87. package/api/resources/events/types/LanguageInfo.d.ts +6 -0
  88. package/api/resources/events/types/LanguageInfo.js +5 -0
  89. package/api/resources/events/types/NovelSystemEventNoId.d.ts +8 -0
  90. package/api/resources/events/types/NovelSystemEventNoId.js +5 -0
  91. package/api/resources/events/types/OsInfo.d.ts +9 -0
  92. package/api/resources/events/types/OsInfo.js +5 -0
  93. package/api/resources/events/types/OsType.d.ts +12 -0
  94. package/api/resources/events/types/OsType.js +14 -0
  95. package/api/resources/events/types/PageInfo.d.ts +10 -0
  96. package/api/resources/events/types/PageInfo.js +5 -0
  97. package/api/resources/events/types/SessionInfo.d.ts +9 -0
  98. package/api/resources/events/types/SessionInfo.js +5 -0
  99. package/api/resources/events/types/SourceInfo.d.ts +12 -0
  100. package/api/resources/events/types/SourceInfo.js +5 -0
  101. package/api/resources/events/types/SourceType.d.ts +9 -0
  102. package/api/resources/events/types/SourceType.js +11 -0
  103. package/api/resources/events/types/SurveyInfo.d.ts +7 -0
  104. package/api/resources/events/types/SurveyInfo.js +5 -0
  105. package/api/resources/events/types/SystemEvent.d.ts +8 -0
  106. package/api/resources/events/types/SystemEvent.js +5 -0
  107. package/api/resources/events/types/SystemEventName.d.ts +18 -0
  108. package/api/resources/events/types/SystemEventName.js +11 -0
  109. package/api/resources/events/types/UserEvent.d.ts +16 -0
  110. package/api/resources/events/types/UserEvent.js +5 -0
  111. package/api/resources/events/types/UserEventName.d.ts +22 -0
  112. package/api/resources/events/types/UserEventName.js +12 -0
  113. package/api/resources/events/types/UserInfo.d.ts +7 -0
  114. package/api/resources/events/types/UserInfo.js +5 -0
  115. package/api/resources/events/types/index.d.ts +29 -0
  116. package/api/resources/events/types/index.js +45 -0
  117. package/api/resources/inbox/client/Client.js +5 -5
  118. package/api/resources/index.d.ts +4 -0
  119. package/api/resources/index.js +5 -1
  120. package/api/resources/knowledge/client/Client.js +7 -7
  121. package/api/resources/organizations/client/Client.js +2 -2
  122. package/api/resources/realtime/client/Client.d.ts +2 -0
  123. package/api/resources/realtime/client/Client.js +3 -0
  124. package/api/resources/realtime/types/AudioFormat.d.ts +8 -0
  125. package/api/resources/realtime/types/AudioFormat.js +10 -0
  126. package/api/resources/realtime/types/ControlEvent.d.ts +4 -1
  127. package/api/resources/realtime/types/MessageBase.d.ts +6 -0
  128. package/api/resources/realtime/types/MessageBase.js +5 -0
  129. package/api/resources/realtime/types/SubscribeEvent.d.ts +4 -1
  130. package/api/resources/realtime/types/index.d.ts +3 -1
  131. package/api/resources/realtime/types/index.js +3 -1
  132. package/api/resources/translations/client/Client.js +1 -1
  133. package/api/resources/triggers/client/Client.js +5 -5
  134. package/api/resources/users/client/Client.js +3 -3
  135. package/dist/Client.d.ts +6 -0
  136. package/dist/Client.js +30 -20
  137. package/dist/api/resources/actions/client/Client.js +3 -3
  138. package/dist/api/resources/agents/client/Client.d.ts +86 -0
  139. package/dist/api/resources/agents/client/Client.js +320 -0
  140. package/dist/api/resources/agents/client/index.d.ts +1 -0
  141. package/dist/api/resources/agents/client/index.js +2 -0
  142. package/dist/api/resources/agents/index.d.ts +2 -0
  143. package/dist/api/resources/agents/index.js +18 -0
  144. package/dist/api/resources/agents/types/Agent.d.ts +14 -0
  145. package/dist/api/resources/agents/types/Agent.js +5 -0
  146. package/dist/api/resources/agents/types/AgentEnvironment.d.ts +9 -0
  147. package/dist/api/resources/agents/types/AgentEnvironment.js +11 -0
  148. package/dist/api/resources/agents/types/AgentField.d.ts +8 -0
  149. package/dist/api/resources/agents/types/AgentField.js +10 -0
  150. package/dist/api/resources/agents/types/AgentFilter.d.ts +8 -0
  151. package/dist/api/resources/agents/types/AgentFilter.js +5 -0
  152. package/dist/api/resources/agents/types/AgentsSearchRequest.d.ts +8 -0
  153. package/dist/api/resources/agents/types/AgentsSearchRequest.js +5 -0
  154. package/dist/api/resources/agents/types/AgentsSearchResponse.d.ts +7 -0
  155. package/dist/api/resources/agents/types/AgentsSearchResponse.js +5 -0
  156. package/dist/api/resources/agents/types/index.d.ts +6 -0
  157. package/dist/api/resources/agents/types/index.js +22 -0
  158. package/dist/api/resources/analytics/client/Client.js +3 -3
  159. package/dist/api/resources/appSettings/client/Client.js +3 -3
  160. package/dist/api/resources/commons/types/ActionParameter.d.ts +3 -1
  161. package/dist/api/resources/commons/types/ActionParameterType.d.ts +14 -1
  162. package/dist/api/resources/commons/types/ActionParameterType.js +1 -0
  163. package/dist/api/resources/commons/types/BotObjectResponse.d.ts +12 -0
  164. package/dist/api/resources/commons/types/BotObjectResponse.js +5 -0
  165. package/dist/api/resources/commons/types/BotResponse.d.ts +4 -1
  166. package/dist/api/resources/commons/types/EntityType.d.ts +2 -1
  167. package/dist/api/resources/commons/types/EntityType.js +1 -0
  168. package/dist/api/resources/commons/types/NumberRange.d.ts +12 -0
  169. package/dist/api/resources/commons/types/NumberRange.js +5 -0
  170. package/dist/api/resources/commons/types/index.d.ts +2 -0
  171. package/dist/api/resources/commons/types/index.js +2 -0
  172. package/dist/api/resources/conversation/client/Client.d.ts +30 -0
  173. package/dist/api/resources/conversation/client/Client.js +109 -13
  174. package/dist/api/resources/conversation/types/ConversationField.d.ts +2 -1
  175. package/dist/api/resources/conversation/types/ConversationField.js +1 -0
  176. package/dist/api/resources/conversation/types/ConversationFilter.d.ts +21 -0
  177. package/dist/api/resources/conversation/types/FeedbackField.d.ts +2 -1
  178. package/dist/api/resources/conversation/types/FeedbackField.js +1 -0
  179. package/dist/api/resources/conversation/types/FeedbackFilter.d.ts +2 -0
  180. package/dist/api/resources/conversation/types/GenerateObjectRequest.d.ts +8 -0
  181. package/dist/api/resources/conversation/types/GenerateObjectRequest.js +5 -0
  182. package/dist/api/resources/conversation/types/index.d.ts +1 -0
  183. package/dist/api/resources/conversation/types/index.js +1 -0
  184. package/dist/api/resources/events/client/Client.d.ts +53 -0
  185. package/dist/api/resources/events/client/Client.js +157 -0
  186. package/dist/api/resources/events/client/index.d.ts +1 -0
  187. package/dist/api/resources/events/client/index.js +2 -0
  188. package/dist/api/resources/events/index.d.ts +2 -0
  189. package/dist/api/resources/events/index.js +18 -0
  190. package/dist/api/resources/events/types/BrowserInfo.d.ts +10 -0
  191. package/dist/api/resources/events/types/BrowserInfo.js +5 -0
  192. package/dist/api/resources/events/types/BrowserType.d.ts +12 -0
  193. package/dist/api/resources/events/types/BrowserType.js +14 -0
  194. package/dist/api/resources/events/types/ContextInfo.d.ts +6 -0
  195. package/dist/api/resources/events/types/ContextInfo.js +5 -0
  196. package/dist/api/resources/events/types/DeviceInfo.d.ts +10 -0
  197. package/dist/api/resources/events/types/DeviceInfo.js +5 -0
  198. package/dist/api/resources/events/types/DeviceType.d.ts +10 -0
  199. package/dist/api/resources/events/types/DeviceType.js +12 -0
  200. package/dist/api/resources/events/types/EventBaseNoId.d.ts +11 -0
  201. package/dist/api/resources/events/types/EventBaseNoId.js +5 -0
  202. package/dist/api/resources/events/types/EventField.d.ts +7 -0
  203. package/dist/api/resources/events/types/EventField.js +9 -0
  204. package/dist/api/resources/events/types/EventFilter.d.ts +13 -0
  205. package/dist/api/resources/events/types/EventFilter.js +5 -0
  206. package/dist/api/resources/events/types/EventResponse.d.ts +13 -0
  207. package/dist/api/resources/events/types/EventResponse.js +5 -0
  208. package/dist/api/resources/events/types/EventType.d.ts +8 -0
  209. package/dist/api/resources/events/types/EventType.js +10 -0
  210. package/dist/api/resources/events/types/EventsSearchRequest.d.ts +8 -0
  211. package/dist/api/resources/events/types/EventsSearchRequest.js +5 -0
  212. package/dist/api/resources/events/types/EventsSearchResponse.d.ts +8 -0
  213. package/dist/api/resources/events/types/EventsSearchResponse.js +5 -0
  214. package/dist/api/resources/events/types/FeedbackInfo.d.ts +12 -0
  215. package/dist/api/resources/events/types/FeedbackInfo.js +5 -0
  216. package/dist/api/resources/events/types/GeoInfo.d.ts +11 -0
  217. package/dist/api/resources/events/types/GeoInfo.js +5 -0
  218. package/dist/api/resources/events/types/IpInfo.d.ts +6 -0
  219. package/dist/api/resources/events/types/IpInfo.js +5 -0
  220. package/dist/api/resources/events/types/LanguageInfo.d.ts +6 -0
  221. package/dist/api/resources/events/types/LanguageInfo.js +5 -0
  222. package/dist/api/resources/events/types/NovelSystemEventNoId.d.ts +8 -0
  223. package/dist/api/resources/events/types/NovelSystemEventNoId.js +5 -0
  224. package/dist/api/resources/events/types/OsInfo.d.ts +9 -0
  225. package/dist/api/resources/events/types/OsInfo.js +5 -0
  226. package/dist/api/resources/events/types/OsType.d.ts +12 -0
  227. package/dist/api/resources/events/types/OsType.js +14 -0
  228. package/dist/api/resources/events/types/PageInfo.d.ts +10 -0
  229. package/dist/api/resources/events/types/PageInfo.js +5 -0
  230. package/dist/api/resources/events/types/SessionInfo.d.ts +9 -0
  231. package/dist/api/resources/events/types/SessionInfo.js +5 -0
  232. package/dist/api/resources/events/types/SourceInfo.d.ts +12 -0
  233. package/dist/api/resources/events/types/SourceInfo.js +5 -0
  234. package/dist/api/resources/events/types/SourceType.d.ts +9 -0
  235. package/dist/api/resources/events/types/SourceType.js +11 -0
  236. package/dist/api/resources/events/types/SurveyInfo.d.ts +7 -0
  237. package/dist/api/resources/events/types/SurveyInfo.js +5 -0
  238. package/dist/api/resources/events/types/SystemEvent.d.ts +8 -0
  239. package/dist/api/resources/events/types/SystemEvent.js +5 -0
  240. package/dist/api/resources/events/types/SystemEventName.d.ts +18 -0
  241. package/dist/api/resources/events/types/SystemEventName.js +11 -0
  242. package/dist/api/resources/events/types/UserEvent.d.ts +16 -0
  243. package/dist/api/resources/events/types/UserEvent.js +5 -0
  244. package/dist/api/resources/events/types/UserEventName.d.ts +22 -0
  245. package/dist/api/resources/events/types/UserEventName.js +12 -0
  246. package/dist/api/resources/events/types/UserInfo.d.ts +7 -0
  247. package/dist/api/resources/events/types/UserInfo.js +5 -0
  248. package/dist/api/resources/events/types/index.d.ts +29 -0
  249. package/dist/api/resources/events/types/index.js +45 -0
  250. package/dist/api/resources/inbox/client/Client.js +5 -5
  251. package/dist/api/resources/index.d.ts +4 -0
  252. package/dist/api/resources/index.js +5 -1
  253. package/dist/api/resources/knowledge/client/Client.js +7 -7
  254. package/dist/api/resources/organizations/client/Client.js +2 -2
  255. package/dist/api/resources/realtime/client/Client.d.ts +2 -0
  256. package/dist/api/resources/realtime/client/Client.js +3 -0
  257. package/dist/api/resources/realtime/types/AudioFormat.d.ts +8 -0
  258. package/dist/api/resources/realtime/types/AudioFormat.js +10 -0
  259. package/dist/api/resources/realtime/types/ControlEvent.d.ts +4 -1
  260. package/dist/api/resources/realtime/types/MessageBase.d.ts +6 -0
  261. package/dist/api/resources/realtime/types/MessageBase.js +5 -0
  262. package/dist/api/resources/realtime/types/SubscribeEvent.d.ts +4 -1
  263. package/dist/api/resources/realtime/types/index.d.ts +3 -1
  264. package/dist/api/resources/realtime/types/index.js +3 -1
  265. package/dist/api/resources/translations/client/Client.js +1 -1
  266. package/dist/api/resources/triggers/client/Client.js +5 -5
  267. package/dist/api/resources/users/client/Client.js +3 -3
  268. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  269. package/dist/serialization/resources/agents/client/index.js +37 -0
  270. package/dist/serialization/resources/agents/client/list.d.ts +11 -0
  271. package/dist/serialization/resources/agents/client/list.js +42 -0
  272. package/dist/serialization/resources/agents/index.d.ts +2 -0
  273. package/dist/serialization/resources/agents/index.js +18 -0
  274. package/dist/serialization/resources/agents/types/Agent.d.ts +17 -0
  275. package/dist/serialization/resources/agents/types/Agent.js +48 -0
  276. package/dist/serialization/resources/agents/types/AgentEnvironment.d.ts +10 -0
  277. package/dist/serialization/resources/agents/types/AgentEnvironment.js +41 -0
  278. package/dist/serialization/resources/agents/types/AgentField.d.ts +10 -0
  279. package/dist/serialization/resources/agents/types/AgentField.js +41 -0
  280. package/dist/serialization/resources/agents/types/AgentFilter.d.ts +13 -0
  281. package/dist/serialization/resources/agents/types/AgentFilter.js +44 -0
  282. package/dist/serialization/resources/agents/types/AgentsSearchRequest.d.ts +16 -0
  283. package/dist/serialization/resources/agents/types/AgentsSearchRequest.js +49 -0
  284. package/dist/serialization/resources/agents/types/AgentsSearchResponse.d.ts +14 -0
  285. package/dist/serialization/resources/agents/types/AgentsSearchResponse.js +47 -0
  286. package/dist/serialization/resources/agents/types/index.d.ts +6 -0
  287. package/dist/serialization/resources/agents/types/index.js +22 -0
  288. package/dist/serialization/resources/commons/types/ActionParameter.d.ts +1 -0
  289. package/dist/serialization/resources/commons/types/ActionParameter.js +1 -0
  290. package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
  291. package/dist/serialization/resources/commons/types/ActionParameterType.js +1 -1
  292. package/dist/serialization/resources/commons/types/BotObjectResponse.d.ts +13 -0
  293. package/dist/serialization/resources/commons/types/BotObjectResponse.js +44 -0
  294. package/dist/serialization/resources/commons/types/BotResponse.d.ts +5 -1
  295. package/dist/serialization/resources/commons/types/BotResponse.js +2 -0
  296. package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
  297. package/dist/serialization/resources/commons/types/EntityType.js +1 -0
  298. package/dist/serialization/resources/commons/types/NumberRange.d.ts +13 -0
  299. package/dist/serialization/resources/commons/types/NumberRange.js +44 -0
  300. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  301. package/dist/serialization/resources/commons/types/index.js +2 -0
  302. package/dist/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  303. package/dist/serialization/resources/conversation/types/ConversationField.js +1 -0
  304. package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -0
  305. package/dist/serialization/resources/conversation/types/ConversationFilter.js +3 -0
  306. package/dist/serialization/resources/conversation/types/FeedbackField.d.ts +1 -1
  307. package/dist/serialization/resources/conversation/types/FeedbackField.js +1 -1
  308. package/dist/serialization/resources/conversation/types/FeedbackFilter.d.ts +2 -0
  309. package/dist/serialization/resources/conversation/types/FeedbackFilter.js +2 -0
  310. package/dist/serialization/resources/conversation/types/GenerateObjectRequest.d.ts +13 -0
  311. package/dist/serialization/resources/conversation/types/GenerateObjectRequest.js +46 -0
  312. package/dist/serialization/resources/conversation/types/index.d.ts +1 -0
  313. package/dist/serialization/resources/conversation/types/index.js +1 -0
  314. package/dist/serialization/resources/events/index.d.ts +1 -0
  315. package/dist/serialization/resources/events/index.js +17 -0
  316. package/dist/serialization/resources/events/types/BrowserInfo.d.ts +16 -0
  317. package/dist/serialization/resources/events/types/BrowserInfo.js +47 -0
  318. package/dist/serialization/resources/events/types/BrowserType.d.ts +10 -0
  319. package/dist/serialization/resources/events/types/BrowserType.js +41 -0
  320. package/dist/serialization/resources/events/types/ContextInfo.d.ts +12 -0
  321. package/dist/serialization/resources/events/types/ContextInfo.js +43 -0
  322. package/dist/serialization/resources/events/types/DeviceInfo.d.ts +17 -0
  323. package/dist/serialization/resources/events/types/DeviceInfo.js +48 -0
  324. package/dist/serialization/resources/events/types/DeviceType.d.ts +10 -0
  325. package/dist/serialization/resources/events/types/DeviceType.js +41 -0
  326. package/dist/serialization/resources/events/types/EventBaseNoId.d.ts +20 -0
  327. package/dist/serialization/resources/events/types/EventBaseNoId.js +51 -0
  328. package/dist/serialization/resources/events/types/EventField.d.ts +10 -0
  329. package/dist/serialization/resources/events/types/EventField.js +41 -0
  330. package/dist/serialization/resources/events/types/EventFilter.d.ts +22 -0
  331. package/dist/serialization/resources/events/types/EventFilter.js +53 -0
  332. package/dist/serialization/resources/events/types/EventResponse.d.ts +18 -0
  333. package/dist/serialization/resources/events/types/EventResponse.js +51 -0
  334. package/dist/serialization/resources/events/types/EventType.d.ts +10 -0
  335. package/dist/serialization/resources/events/types/EventType.js +41 -0
  336. package/dist/serialization/resources/events/types/EventsSearchRequest.d.ts +16 -0
  337. package/dist/serialization/resources/events/types/EventsSearchRequest.js +49 -0
  338. package/dist/serialization/resources/events/types/EventsSearchResponse.d.ts +14 -0
  339. package/dist/serialization/resources/events/types/EventsSearchResponse.js +47 -0
  340. package/dist/serialization/resources/events/types/FeedbackInfo.d.ts +15 -0
  341. package/dist/serialization/resources/events/types/FeedbackInfo.js +46 -0
  342. package/dist/serialization/resources/events/types/GeoInfo.d.ts +17 -0
  343. package/dist/serialization/resources/events/types/GeoInfo.js +48 -0
  344. package/dist/serialization/resources/events/types/IpInfo.d.ts +12 -0
  345. package/dist/serialization/resources/events/types/IpInfo.js +43 -0
  346. package/dist/serialization/resources/events/types/LanguageInfo.d.ts +12 -0
  347. package/dist/serialization/resources/events/types/LanguageInfo.js +43 -0
  348. package/dist/serialization/resources/events/types/NovelSystemEventNoId.d.ts +14 -0
  349. package/dist/serialization/resources/events/types/NovelSystemEventNoId.js +47 -0
  350. package/dist/serialization/resources/events/types/OsInfo.d.ts +15 -0
  351. package/dist/serialization/resources/events/types/OsInfo.js +46 -0
  352. package/dist/serialization/resources/events/types/OsType.d.ts +10 -0
  353. package/dist/serialization/resources/events/types/OsType.js +48 -0
  354. package/dist/serialization/resources/events/types/PageInfo.d.ts +16 -0
  355. package/dist/serialization/resources/events/types/PageInfo.js +47 -0
  356. package/dist/serialization/resources/events/types/SessionInfo.d.ts +15 -0
  357. package/dist/serialization/resources/events/types/SessionInfo.js +46 -0
  358. package/dist/serialization/resources/events/types/SourceInfo.d.ts +23 -0
  359. package/dist/serialization/resources/events/types/SourceInfo.js +54 -0
  360. package/dist/serialization/resources/events/types/SourceType.d.ts +10 -0
  361. package/dist/serialization/resources/events/types/SourceType.js +41 -0
  362. package/dist/serialization/resources/events/types/SurveyInfo.d.ts +13 -0
  363. package/dist/serialization/resources/events/types/SurveyInfo.js +44 -0
  364. package/dist/serialization/resources/events/types/SystemEvent.d.ts +14 -0
  365. package/dist/serialization/resources/events/types/SystemEvent.js +47 -0
  366. package/dist/serialization/resources/events/types/SystemEventName.d.ts +10 -0
  367. package/dist/serialization/resources/events/types/SystemEventName.js +41 -0
  368. package/dist/serialization/resources/events/types/UserEvent.d.ts +22 -0
  369. package/dist/serialization/resources/events/types/UserEvent.js +55 -0
  370. package/dist/serialization/resources/events/types/UserEventName.d.ts +10 -0
  371. package/dist/serialization/resources/events/types/UserEventName.js +41 -0
  372. package/dist/serialization/resources/events/types/UserInfo.d.ts +13 -0
  373. package/dist/serialization/resources/events/types/UserInfo.js +44 -0
  374. package/dist/serialization/resources/events/types/index.d.ts +29 -0
  375. package/dist/serialization/resources/events/types/index.js +45 -0
  376. package/dist/serialization/resources/index.d.ts +4 -0
  377. package/dist/serialization/resources/index.js +5 -1
  378. package/dist/serialization/resources/realtime/types/AudioFormat.d.ts +10 -0
  379. package/dist/serialization/resources/realtime/types/AudioFormat.js +41 -0
  380. package/dist/serialization/resources/realtime/types/ControlEvent.d.ts +4 -1
  381. package/dist/serialization/resources/realtime/types/ControlEvent.js +7 -2
  382. package/dist/serialization/resources/realtime/types/MessageBase.d.ts +12 -0
  383. package/dist/serialization/resources/realtime/types/MessageBase.js +43 -0
  384. package/dist/serialization/resources/realtime/types/SubscribeEvent.d.ts +4 -1
  385. package/dist/serialization/resources/realtime/types/SubscribeEvent.js +1 -0
  386. package/dist/serialization/resources/realtime/types/index.d.ts +3 -1
  387. package/dist/serialization/resources/realtime/types/index.js +3 -1
  388. package/dist/version.d.ts +1 -1
  389. package/dist/version.js +1 -1
  390. package/package.json +1 -1
  391. package/reference.md +353 -0
  392. package/serialization/resources/agents/client/index.d.ts +1 -0
  393. package/serialization/resources/agents/client/index.js +37 -0
  394. package/serialization/resources/agents/client/list.d.ts +11 -0
  395. package/serialization/resources/agents/client/list.js +42 -0
  396. package/serialization/resources/agents/index.d.ts +2 -0
  397. package/serialization/resources/agents/index.js +18 -0
  398. package/serialization/resources/agents/types/Agent.d.ts +17 -0
  399. package/serialization/resources/agents/types/Agent.js +48 -0
  400. package/serialization/resources/agents/types/AgentEnvironment.d.ts +10 -0
  401. package/serialization/resources/agents/types/AgentEnvironment.js +41 -0
  402. package/serialization/resources/agents/types/AgentField.d.ts +10 -0
  403. package/serialization/resources/agents/types/AgentField.js +41 -0
  404. package/serialization/resources/agents/types/AgentFilter.d.ts +13 -0
  405. package/serialization/resources/agents/types/AgentFilter.js +44 -0
  406. package/serialization/resources/agents/types/AgentsSearchRequest.d.ts +16 -0
  407. package/serialization/resources/agents/types/AgentsSearchRequest.js +49 -0
  408. package/serialization/resources/agents/types/AgentsSearchResponse.d.ts +14 -0
  409. package/serialization/resources/agents/types/AgentsSearchResponse.js +47 -0
  410. package/serialization/resources/agents/types/index.d.ts +6 -0
  411. package/serialization/resources/agents/types/index.js +22 -0
  412. package/serialization/resources/commons/types/ActionParameter.d.ts +1 -0
  413. package/serialization/resources/commons/types/ActionParameter.js +1 -0
  414. package/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
  415. package/serialization/resources/commons/types/ActionParameterType.js +1 -1
  416. package/serialization/resources/commons/types/BotObjectResponse.d.ts +13 -0
  417. package/serialization/resources/commons/types/BotObjectResponse.js +44 -0
  418. package/serialization/resources/commons/types/BotResponse.d.ts +5 -1
  419. package/serialization/resources/commons/types/BotResponse.js +2 -0
  420. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  421. package/serialization/resources/commons/types/EntityType.js +1 -0
  422. package/serialization/resources/commons/types/NumberRange.d.ts +13 -0
  423. package/serialization/resources/commons/types/NumberRange.js +44 -0
  424. package/serialization/resources/commons/types/index.d.ts +2 -0
  425. package/serialization/resources/commons/types/index.js +2 -0
  426. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  427. package/serialization/resources/conversation/types/ConversationField.js +1 -0
  428. package/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -0
  429. package/serialization/resources/conversation/types/ConversationFilter.js +3 -0
  430. package/serialization/resources/conversation/types/FeedbackField.d.ts +1 -1
  431. package/serialization/resources/conversation/types/FeedbackField.js +1 -1
  432. package/serialization/resources/conversation/types/FeedbackFilter.d.ts +2 -0
  433. package/serialization/resources/conversation/types/FeedbackFilter.js +2 -0
  434. package/serialization/resources/conversation/types/GenerateObjectRequest.d.ts +13 -0
  435. package/serialization/resources/conversation/types/GenerateObjectRequest.js +46 -0
  436. package/serialization/resources/conversation/types/index.d.ts +1 -0
  437. package/serialization/resources/conversation/types/index.js +1 -0
  438. package/serialization/resources/events/index.d.ts +1 -0
  439. package/serialization/resources/events/index.js +17 -0
  440. package/serialization/resources/events/types/BrowserInfo.d.ts +16 -0
  441. package/serialization/resources/events/types/BrowserInfo.js +47 -0
  442. package/serialization/resources/events/types/BrowserType.d.ts +10 -0
  443. package/serialization/resources/events/types/BrowserType.js +41 -0
  444. package/serialization/resources/events/types/ContextInfo.d.ts +12 -0
  445. package/serialization/resources/events/types/ContextInfo.js +43 -0
  446. package/serialization/resources/events/types/DeviceInfo.d.ts +17 -0
  447. package/serialization/resources/events/types/DeviceInfo.js +48 -0
  448. package/serialization/resources/events/types/DeviceType.d.ts +10 -0
  449. package/serialization/resources/events/types/DeviceType.js +41 -0
  450. package/serialization/resources/events/types/EventBaseNoId.d.ts +20 -0
  451. package/serialization/resources/events/types/EventBaseNoId.js +51 -0
  452. package/serialization/resources/events/types/EventField.d.ts +10 -0
  453. package/serialization/resources/events/types/EventField.js +41 -0
  454. package/serialization/resources/events/types/EventFilter.d.ts +22 -0
  455. package/serialization/resources/events/types/EventFilter.js +53 -0
  456. package/serialization/resources/events/types/EventResponse.d.ts +18 -0
  457. package/serialization/resources/events/types/EventResponse.js +51 -0
  458. package/serialization/resources/events/types/EventType.d.ts +10 -0
  459. package/serialization/resources/events/types/EventType.js +41 -0
  460. package/serialization/resources/events/types/EventsSearchRequest.d.ts +16 -0
  461. package/serialization/resources/events/types/EventsSearchRequest.js +49 -0
  462. package/serialization/resources/events/types/EventsSearchResponse.d.ts +14 -0
  463. package/serialization/resources/events/types/EventsSearchResponse.js +47 -0
  464. package/serialization/resources/events/types/FeedbackInfo.d.ts +15 -0
  465. package/serialization/resources/events/types/FeedbackInfo.js +46 -0
  466. package/serialization/resources/events/types/GeoInfo.d.ts +17 -0
  467. package/serialization/resources/events/types/GeoInfo.js +48 -0
  468. package/serialization/resources/events/types/IpInfo.d.ts +12 -0
  469. package/serialization/resources/events/types/IpInfo.js +43 -0
  470. package/serialization/resources/events/types/LanguageInfo.d.ts +12 -0
  471. package/serialization/resources/events/types/LanguageInfo.js +43 -0
  472. package/serialization/resources/events/types/NovelSystemEventNoId.d.ts +14 -0
  473. package/serialization/resources/events/types/NovelSystemEventNoId.js +47 -0
  474. package/serialization/resources/events/types/OsInfo.d.ts +15 -0
  475. package/serialization/resources/events/types/OsInfo.js +46 -0
  476. package/serialization/resources/events/types/OsType.d.ts +10 -0
  477. package/serialization/resources/events/types/OsType.js +48 -0
  478. package/serialization/resources/events/types/PageInfo.d.ts +16 -0
  479. package/serialization/resources/events/types/PageInfo.js +47 -0
  480. package/serialization/resources/events/types/SessionInfo.d.ts +15 -0
  481. package/serialization/resources/events/types/SessionInfo.js +46 -0
  482. package/serialization/resources/events/types/SourceInfo.d.ts +23 -0
  483. package/serialization/resources/events/types/SourceInfo.js +54 -0
  484. package/serialization/resources/events/types/SourceType.d.ts +10 -0
  485. package/serialization/resources/events/types/SourceType.js +41 -0
  486. package/serialization/resources/events/types/SurveyInfo.d.ts +13 -0
  487. package/serialization/resources/events/types/SurveyInfo.js +44 -0
  488. package/serialization/resources/events/types/SystemEvent.d.ts +14 -0
  489. package/serialization/resources/events/types/SystemEvent.js +47 -0
  490. package/serialization/resources/events/types/SystemEventName.d.ts +10 -0
  491. package/serialization/resources/events/types/SystemEventName.js +41 -0
  492. package/serialization/resources/events/types/UserEvent.d.ts +22 -0
  493. package/serialization/resources/events/types/UserEvent.js +55 -0
  494. package/serialization/resources/events/types/UserEventName.d.ts +10 -0
  495. package/serialization/resources/events/types/UserEventName.js +41 -0
  496. package/serialization/resources/events/types/UserInfo.d.ts +13 -0
  497. package/serialization/resources/events/types/UserInfo.js +44 -0
  498. package/serialization/resources/events/types/index.d.ts +29 -0
  499. package/serialization/resources/events/types/index.js +45 -0
  500. package/serialization/resources/index.d.ts +4 -0
  501. package/serialization/resources/index.js +5 -1
  502. package/serialization/resources/realtime/types/AudioFormat.d.ts +10 -0
  503. package/serialization/resources/realtime/types/AudioFormat.js +41 -0
  504. package/serialization/resources/realtime/types/ControlEvent.d.ts +4 -1
  505. package/serialization/resources/realtime/types/ControlEvent.js +7 -2
  506. package/serialization/resources/realtime/types/MessageBase.d.ts +12 -0
  507. package/serialization/resources/realtime/types/MessageBase.js +43 -0
  508. package/serialization/resources/realtime/types/SubscribeEvent.d.ts +4 -1
  509. package/serialization/resources/realtime/types/SubscribeEvent.js +1 -0
  510. package/serialization/resources/realtime/types/index.d.ts +3 -1
  511. package/serialization/resources/realtime/types/index.js +3 -1
  512. package/version.d.ts +1 -1
  513. package/version.js +1 -1
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SourceType = void 0;
7
+ exports.SourceType = {
8
+ Web: "WEB",
9
+ Api: "API",
10
+ System: "SYSTEM",
11
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SurveyInfo {
5
+ surveyQuestion: string;
6
+ surveyAnswer?: string;
7
+ }
@@ -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 });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface SystemEvent extends MavenAGI.NovelSystemEventNoId {
6
+ /** The unique ID of the event */
7
+ id: MavenAGI.EntityId;
8
+ }
@@ -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 });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type SystemEventName =
5
+ /**
6
+ * An app was installed */
7
+ "APP_INSTALLED"
8
+ /**
9
+ * An app was uninstalled */
10
+ | "APP_UNINSTALLED"
11
+ /**
12
+ * An app was updated */
13
+ | "APP_UPDATED";
14
+ export declare const SystemEventName: {
15
+ readonly AppInstalled: "APP_INSTALLED";
16
+ readonly AppUninstalled: "APP_UNINSTALLED";
17
+ readonly AppUpdated: "APP_UPDATED";
18
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SystemEventName = void 0;
7
+ exports.SystemEventName = {
8
+ AppInstalled: "APP_INSTALLED",
9
+ AppUninstalled: "APP_UNINSTALLED",
10
+ AppUpdated: "APP_UPDATED",
11
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface UserEvent extends MavenAGI.EventBaseNoId {
6
+ /** The unique ID of the event */
7
+ id: MavenAGI.EntityId;
8
+ /** The name of the event */
9
+ eventName: MavenAGI.UserEventName;
10
+ /** Information about the user who triggered the event */
11
+ userInfo: MavenAGI.UserInfo;
12
+ /** Information about any feedback associated with the event */
13
+ feedbackInfo?: MavenAGI.FeedbackInfo[];
14
+ /** Information about the page on which the event occurred */
15
+ pageInfo?: MavenAGI.PageInfo;
16
+ }
@@ -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 });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type UserEventName =
5
+ /**
6
+ * A button click occurred */
7
+ "BUTTON_CLICKED"
8
+ /**
9
+ * A link was clicked */
10
+ | "LINK_CLICKED"
11
+ /**
12
+ * The chat window was opened */
13
+ | "CHAT_OPENED"
14
+ /**
15
+ * The chat window was closed */
16
+ | "CHAT_CLOSED";
17
+ export declare const UserEventName: {
18
+ readonly ButtonClicked: "BUTTON_CLICKED";
19
+ readonly LinkClicked: "LINK_CLICKED";
20
+ readonly ChatOpened: "CHAT_OPENED";
21
+ readonly ChatClosed: "CHAT_CLOSED";
22
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UserEventName = void 0;
7
+ exports.UserEventName = {
8
+ ButtonClicked: "BUTTON_CLICKED",
9
+ LinkClicked: "LINK_CLICKED",
10
+ ChatOpened: "CHAT_OPENED",
11
+ ChatClosed: "CHAT_CLOSED",
12
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface UserInfo {
6
+ id?: MavenAGI.EntityId;
7
+ }
@@ -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 });
@@ -0,0 +1,29 @@
1
+ export * from "./EventBaseNoId";
2
+ export * from "./NovelSystemEventNoId";
3
+ export * from "./UserEvent";
4
+ export * from "./SystemEvent";
5
+ export * from "./EventResponse";
6
+ export * from "./EventsSearchRequest";
7
+ export * from "./EventsSearchResponse";
8
+ export * from "./EventType";
9
+ export * from "./EventField";
10
+ export * from "./EventFilter";
11
+ export * from "./UserEventName";
12
+ export * from "./SystemEventName";
13
+ export * from "./SourceType";
14
+ export * from "./DeviceType";
15
+ export * from "./OsType";
16
+ export * from "./BrowserType";
17
+ export * from "./UserInfo";
18
+ export * from "./FeedbackInfo";
19
+ export * from "./SurveyInfo";
20
+ export * from "./PageInfo";
21
+ export * from "./ContextInfo";
22
+ export * from "./SourceInfo";
23
+ export * from "./DeviceInfo";
24
+ export * from "./OsInfo";
25
+ export * from "./BrowserInfo";
26
+ export * from "./GeoInfo";
27
+ export * from "./IpInfo";
28
+ export * from "./LanguageInfo";
29
+ export * from "./SessionInfo";
@@ -0,0 +1,45 @@
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("./EventBaseNoId"), exports);
18
+ __exportStar(require("./NovelSystemEventNoId"), exports);
19
+ __exportStar(require("./UserEvent"), exports);
20
+ __exportStar(require("./SystemEvent"), exports);
21
+ __exportStar(require("./EventResponse"), exports);
22
+ __exportStar(require("./EventsSearchRequest"), exports);
23
+ __exportStar(require("./EventsSearchResponse"), exports);
24
+ __exportStar(require("./EventType"), exports);
25
+ __exportStar(require("./EventField"), exports);
26
+ __exportStar(require("./EventFilter"), exports);
27
+ __exportStar(require("./UserEventName"), exports);
28
+ __exportStar(require("./SystemEventName"), exports);
29
+ __exportStar(require("./SourceType"), exports);
30
+ __exportStar(require("./DeviceType"), exports);
31
+ __exportStar(require("./OsType"), exports);
32
+ __exportStar(require("./BrowserType"), exports);
33
+ __exportStar(require("./UserInfo"), exports);
34
+ __exportStar(require("./FeedbackInfo"), exports);
35
+ __exportStar(require("./SurveyInfo"), exports);
36
+ __exportStar(require("./PageInfo"), exports);
37
+ __exportStar(require("./ContextInfo"), exports);
38
+ __exportStar(require("./SourceInfo"), exports);
39
+ __exportStar(require("./DeviceInfo"), exports);
40
+ __exportStar(require("./OsInfo"), exports);
41
+ __exportStar(require("./BrowserInfo"), exports);
42
+ __exportStar(require("./GeoInfo"), exports);
43
+ __exportStar(require("./IpInfo"), exports);
44
+ __exportStar(require("./LanguageInfo"), exports);
45
+ __exportStar(require("./SessionInfo"), exports);
@@ -78,7 +78,7 @@ class Inbox {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  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/inbox/search"),
80
80
  method: "POST",
81
- 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),
81
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.InboxSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -164,7 +164,7 @@ class Inbox {
164
164
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
165
165
  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/inbox/${encodeURIComponent(inboxItemId)}`),
166
166
  method: "GET",
167
- 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),
167
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  queryParameters: _queryParams,
170
170
  requestType: "json",
@@ -250,7 +250,7 @@ class Inbox {
250
250
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
251
251
  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/inbox/fix/${encodeURIComponent(inboxItemFixId)}`),
252
252
  method: "GET",
253
- 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),
253
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
254
254
  contentType: "application/json",
255
255
  queryParameters: _queryParams,
256
256
  requestType: "json",
@@ -333,7 +333,7 @@ class Inbox {
333
333
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
334
334
  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/inbox/fix/${encodeURIComponent(inboxItemFixId)}/apply`),
335
335
  method: "POST",
336
- 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),
336
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
337
337
  contentType: "application/json",
338
338
  requestType: "json",
339
339
  body: serializers.ApplyInboxItemFixRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -414,7 +414,7 @@ class Inbox {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  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/inbox/${encodeURIComponent(inboxItemId)}/ignore`),
416
416
  method: "POST",
417
- 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),
417
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
418
418
  contentType: "application/json",
419
419
  queryParameters: _queryParams,
420
420
  requestType: "json",
@@ -1,5 +1,7 @@
1
1
  export * as actions from "./actions";
2
2
  export * from "./actions/types";
3
+ export * as agents from "./agents";
4
+ export * from "./agents/types";
3
5
  export * as analytics from "./analytics";
4
6
  export * from "./analytics/types";
5
7
  export * as appSettings from "./appSettings";
@@ -8,6 +10,8 @@ export * as commons from "./commons";
8
10
  export * from "./commons/types";
9
11
  export * as conversation from "./conversation";
10
12
  export * from "./conversation/types";
13
+ export * as events from "./events";
14
+ export * from "./events/types";
11
15
  export * as inbox from "./inbox";
12
16
  export * from "./inbox/types";
13
17
  export * as knowledge from "./knowledge";
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.users = exports.organizations = exports.triggers = exports.translations = exports.realtime = exports.knowledge = exports.inbox = exports.conversation = exports.commons = exports.appSettings = exports.analytics = exports.actions = void 0;
39
+ exports.users = exports.organizations = exports.triggers = exports.translations = exports.realtime = exports.knowledge = exports.inbox = exports.events = exports.conversation = exports.commons = exports.appSettings = exports.analytics = exports.agents = exports.actions = void 0;
40
40
  exports.actions = __importStar(require("./actions"));
41
41
  __exportStar(require("./actions/types"), exports);
42
+ exports.agents = __importStar(require("./agents"));
43
+ __exportStar(require("./agents/types"), exports);
42
44
  exports.analytics = __importStar(require("./analytics"));
43
45
  __exportStar(require("./analytics/types"), exports);
44
46
  exports.appSettings = __importStar(require("./appSettings"));
@@ -47,6 +49,8 @@ exports.commons = __importStar(require("./commons"));
47
49
  __exportStar(require("./commons/types"), exports);
48
50
  exports.conversation = __importStar(require("./conversation"));
49
51
  __exportStar(require("./conversation/types"), exports);
52
+ exports.events = __importStar(require("./events"));
53
+ __exportStar(require("./events/types"), exports);
50
54
  exports.inbox = __importStar(require("./inbox"));
51
55
  __exportStar(require("./inbox/types"), exports);
52
56
  exports.knowledge = __importStar(require("./knowledge"));
@@ -83,7 +83,7 @@ class Knowledge {
83
83
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
84
84
  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/knowledge"),
85
85
  method: "PUT",
86
- 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),
86
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.KnowledgeBaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -163,7 +163,7 @@ class Knowledge {
163
163
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
164
164
  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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}`),
165
165
  method: "GET",
166
- 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),
166
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -255,7 +255,7 @@ class Knowledge {
255
255
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
256
256
  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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/version`),
257
257
  method: "POST",
258
- 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),
258
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
259
259
  contentType: "application/json",
260
260
  requestType: "json",
261
261
  body: serializers.KnowledgeBaseVersion.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -343,7 +343,7 @@ class Knowledge {
343
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
344
344
  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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/version/finalize`),
345
345
  method: "POST",
346
- 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),
346
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
347
347
  contentType: "application/json",
348
348
  requestType: "json",
349
349
  body: serializers.FinalizeKnowledgeBaseVersionRequest.jsonOrThrow(request, {
@@ -446,7 +446,7 @@ class Knowledge {
446
446
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
447
447
  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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/document`),
448
448
  method: "POST",
449
- 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),
449
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
450
450
  contentType: "application/json",
451
451
  requestType: "json",
452
452
  body: serializers.KnowledgeDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -542,7 +542,7 @@ class Knowledge {
542
542
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
543
543
  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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/document`),
544
544
  method: "PUT",
545
- 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),
545
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
546
546
  contentType: "application/json",
547
547
  requestType: "json",
548
548
  body: serializers.KnowledgeDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -623,7 +623,7 @@ class Knowledge {
623
623
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
624
624
  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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/${encodeURIComponent(knowledgeDocumentReferenceId)}/document`),
625
625
  method: "DELETE",
626
- 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),
626
+ 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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
627
627
  contentType: "application/json",
628
628
  requestType: "json",
629
629
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -110,7 +110,7 @@ class Organizations {
110
110
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
111
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
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),
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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
114
114
  contentType: "application/json",
115
115
  requestType: "json",
116
116
  body: serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -238,7 +238,7 @@ class Organizations {
238
238
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
239
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
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),
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.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
242
  contentType: "application/json",
243
243
  requestType: "json",
244
244
  body: serializers.ConversationChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
+ import * as MavenAGI from "../../../index";
6
7
  import { RealtimeSocket } from "./Socket";
7
8
  export declare namespace Realtime {
8
9
  interface Options {
@@ -20,6 +21,7 @@ export declare namespace Realtime {
20
21
  interface ConnectArgs {
21
22
  convId?: string;
22
23
  userId?: string;
24
+ audioFormat?: MavenAGI.AudioFormat | undefined;
23
25
  /** Enable debug mode on the websocket. Defaults to false. */
24
26
  debug?: boolean;
25
27
  /** Number of reconnect attempts. Defaults to 30. */
@@ -64,6 +64,9 @@ class Realtime {
64
64
  if (args.userId != null) {
65
65
  queryParams["userId"] = args.userId;
66
66
  }
67
+ if (args.audioFormat != null) {
68
+ queryParams["audioFormat"] = args.audioFormat;
69
+ }
67
70
  let headers = {};
68
71
  const socket = new core.ReconnectingWebSocket(`${(_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production}/v1/realtime?${qs.stringify(queryParams, { arrayFormat: "repeat" })}`, [], { debug: (_c = args.debug) !== null && _c !== void 0 ? _c : false, maxRetries: (_d = args.reconnectAttempts) !== null && _d !== void 0 ? _d : 30 }, headers);
69
72
  return new Socket_1.RealtimeSocket({ socket });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AudioFormat = "PCM16" | "G711_ULAW";
5
+ export declare const AudioFormat: {
6
+ readonly Pcm16: "PCM16";
7
+ readonly G711Ulaw: "G711_ULAW";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AudioFormat = void 0;
7
+ exports.AudioFormat = {
8
+ Pcm16: "PCM16",
9
+ G711Ulaw: "G711_ULAW",
10
+ };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface ControlEvent {
4
+ import * as MavenAGI from "../../../index";
5
+ export interface ControlEvent extends MavenAGI.MessageBase {
5
6
  reason?: string;
7
+ /** not used. */
8
+ unused?: MavenAGI.AudioFormat;
6
9
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface MessageBase {
5
+ seqId?: number;
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,7 +5,7 @@ import * as MavenAGI from "../../../index";
5
5
  /**
6
6
  * The response from the server sent through the WebSocket.
7
7
  */
8
- export type SubscribeEvent = MavenAGI.SubscribeEvent.Audio | MavenAGI.SubscribeEvent.ControlSessionStart | MavenAGI.SubscribeEvent.ControlSessionStop | MavenAGI.SubscribeEvent.ControlAudioDone;
8
+ export type SubscribeEvent = MavenAGI.SubscribeEvent.Audio | MavenAGI.SubscribeEvent.ControlSessionStart | MavenAGI.SubscribeEvent.ControlSessionStop | MavenAGI.SubscribeEvent.ControlAudioDone | MavenAGI.SubscribeEvent.ControlSessionUpdated;
9
9
  export declare namespace SubscribeEvent {
10
10
  interface Audio extends MavenAGI.AudioSubscribeEvent {
11
11
  messageType: "audio";
@@ -19,4 +19,7 @@ export declare namespace SubscribeEvent {
19
19
  interface ControlAudioDone extends MavenAGI.ControlEvent {
20
20
  messageType: "controlAudioDone";
21
21
  }
22
+ interface ControlSessionUpdated extends MavenAGI.ControlEvent {
23
+ messageType: "controlSessionUpdated";
24
+ }
22
25
  }
@@ -1,5 +1,7 @@
1
- export * from "./ControlEvent";
1
+ export * from "./AudioFormat";
2
+ export * from "./MessageBase";
2
3
  export * from "./PublishEvent";
4
+ export * from "./ControlEvent";
3
5
  export * from "./HangUpPublishEvent";
4
6
  export * from "./AudioPublishEvent";
5
7
  export * from "./SubscribeEvent";
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ControlEvent"), exports);
17
+ __exportStar(require("./AudioFormat"), exports);
18
+ __exportStar(require("./MessageBase"), exports);
18
19
  __exportStar(require("./PublishEvent"), exports);
20
+ __exportStar(require("./ControlEvent"), exports);
19
21
  __exportStar(require("./HangUpPublishEvent"), exports);
20
22
  __exportStar(require("./AudioPublishEvent"), exports);
21
23
  __exportStar(require("./SubscribeEvent"), 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.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),
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.15", "User-Agent": "mavenagi/1.0.15", "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" }),