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
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
- export type BotResponse = MavenAGI.BotResponse.Text | MavenAGI.BotResponse.ActionForm | MavenAGI.BotResponse.Chart;
5
+ export type BotResponse = MavenAGI.BotResponse.Text | MavenAGI.BotResponse.ActionForm | MavenAGI.BotResponse.Chart | MavenAGI.BotResponse.Object_;
6
6
  export declare namespace BotResponse {
7
7
  interface Text extends MavenAGI.BotTextResponse {
8
8
  type: "text";
@@ -13,4 +13,7 @@ export declare namespace BotResponse {
13
13
  interface Chart extends MavenAGI.BotChartResponse {
14
14
  type: "chart";
15
15
  }
16
+ interface Object_ extends MavenAGI.BotObjectResponse {
17
+ type: "object";
18
+ }
16
19
  }
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX";
4
+ export type EntityType = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX";
5
5
  export declare const EntityType: {
6
+ readonly Agent: "AGENT";
6
7
  readonly Conversation: "CONVERSATION";
7
8
  readonly ConversationMessage: "CONVERSATION_MESSAGE";
8
9
  readonly KnowledgeBase: "KNOWLEDGE_BASE";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.EntityType = void 0;
7
7
  exports.EntityType = {
8
+ Agent: "AGENT",
8
9
  Conversation: "CONVERSATION",
9
10
  ConversationMessage: "CONVERSATION_MESSAGE",
10
11
  KnowledgeBase: "KNOWLEDGE_BASE",
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A range of numbers that can be used to filter search results by numeric fields.
6
+ * - `greaterThanOrEqual`: The minimum value (inclusive).
7
+ * - `lessThan`: The maximum value (exclusive).
8
+ */
9
+ export interface NumberRange {
10
+ greaterThanOrEqual?: number;
11
+ lessThan?: number;
12
+ }
@@ -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 });
@@ -42,6 +42,7 @@ export * from "./BotMessage";
42
42
  export * from "./Source";
43
43
  export * from "./BotResponseMetadata";
44
44
  export * from "./BotResponse";
45
+ export * from "./BotObjectResponse";
45
46
  export * from "./BotTextResponse";
46
47
  export * from "./BotActionFormResponse";
47
48
  export * from "./ActionFormField";
@@ -76,3 +77,4 @@ export * from "./InboxItemFixBase";
76
77
  export * from "./InboxItemFixAddDocument";
77
78
  export * from "./InboxItemFixDeactivateDocument";
78
79
  export * from "./InboxItemFixDeactivateKnowledgeBase";
80
+ export * from "./NumberRange";
@@ -58,6 +58,7 @@ __exportStar(require("./BotMessage"), exports);
58
58
  __exportStar(require("./Source"), exports);
59
59
  __exportStar(require("./BotResponseMetadata"), exports);
60
60
  __exportStar(require("./BotResponse"), exports);
61
+ __exportStar(require("./BotObjectResponse"), exports);
61
62
  __exportStar(require("./BotTextResponse"), exports);
62
63
  __exportStar(require("./BotActionFormResponse"), exports);
63
64
  __exportStar(require("./ActionFormField"), exports);
@@ -92,3 +93,4 @@ __exportStar(require("./InboxItemFixBase"), exports);
92
93
  __exportStar(require("./InboxItemFixAddDocument"), exports);
93
94
  __exportStar(require("./InboxItemFixDeactivateDocument"), exports);
94
95
  __exportStar(require("./InboxItemFixDeactivateKnowledgeBase"), exports);
96
+ __exportStar(require("./NumberRange"), exports);
@@ -227,6 +227,36 @@ export declare class Conversation {
227
227
  * })
228
228
  */
229
229
  generateMavenSuggestions(conversationId: string, request: MavenAGI.GenerateMavenSuggestionsRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
230
+ /**
231
+ * Generate a structured object response based on a provided schema and user prompt.
232
+ *
233
+ * If the user question and object response already exist, they will be reused and not updated.
234
+ *
235
+ * Known Limitations:
236
+ * - Schema enforcement is best-effort and may not guarantee exact conformity.
237
+ * - This endpoint does not stream results. Use `askDataStream` (coming soon) for progressive rendering.
238
+ *
239
+ * @param {string} conversationId - The ID of a new or existing conversation to use as context for the object generation request
240
+ * @param {MavenAGI.GenerateObjectRequest} request
241
+ * @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
242
+ *
243
+ * @throws {@link MavenAGI.NotFoundError}
244
+ * @throws {@link MavenAGI.BadRequestError}
245
+ * @throws {@link MavenAGI.ServerError}
246
+ *
247
+ * @example
248
+ * await client.conversation.generateObject("conversationId", {
249
+ * conversationMessageId: {
250
+ * referenceId: "referenceId"
251
+ * },
252
+ * userId: {
253
+ * referenceId: "referenceId"
254
+ * },
255
+ * text: "text",
256
+ * schema: "schema"
257
+ * })
258
+ */
259
+ generateObject(conversationId: string, request: MavenAGI.GenerateObjectRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.BotObjectResponse>;
230
260
  /**
231
261
  * Uses an LLM flow to categorize the conversation. Experimental.
232
262
  *
@@ -108,7 +108,7 @@ class Conversation {
108
108
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
109
109
  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/conversations"),
110
110
  method: "POST",
111
- 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),
111
+ 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),
112
112
  contentType: "application/json",
113
113
  requestType: "json",
114
114
  body: serializers.ConversationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -194,7 +194,7 @@ class Conversation {
194
194
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
195
195
  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/conversations/${encodeURIComponent(conversationId)}`),
196
196
  method: "GET",
197
- 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),
197
+ 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),
198
198
  contentType: "application/json",
199
199
  queryParameters: _queryParams,
200
200
  requestType: "json",
@@ -289,7 +289,7 @@ class Conversation {
289
289
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
290
290
  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/conversations/${encodeURIComponent(conversationId)}`),
291
291
  method: "DELETE",
292
- 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),
292
+ 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),
293
293
  contentType: "application/json",
294
294
  queryParameters: _queryParams,
295
295
  requestType: "json",
@@ -383,7 +383,7 @@ class Conversation {
383
383
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
384
384
  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/conversations/${encodeURIComponent(conversationId)}/messages`),
385
385
  method: "POST",
386
- 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),
386
+ 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),
387
387
  contentType: "application/json",
388
388
  requestType: "json",
389
389
  body: serializers.conversation.appendNewMessages.Request.jsonOrThrow(request, {
@@ -491,7 +491,7 @@ class Conversation {
491
491
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
492
492
  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/conversations/${encodeURIComponent(conversationId)}/ask`),
493
493
  method: "POST",
494
- 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),
494
+ 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),
495
495
  contentType: "application/json",
496
496
  requestType: "json",
497
497
  body: serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -573,7 +573,7 @@ class Conversation {
573
573
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
574
574
  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/conversations/${encodeURIComponent(conversationId)}/ask_stream`),
575
575
  method: "POST",
576
- 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),
576
+ 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),
577
577
  contentType: "application/json",
578
578
  requestType: "json",
579
579
  body: serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -671,7 +671,7 @@ class Conversation {
671
671
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
672
672
  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/conversations/${encodeURIComponent(conversationId)}/generate_maven_suggestions`),
673
673
  method: "POST",
674
- 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),
674
+ 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),
675
675
  contentType: "application/json",
676
676
  requestType: "json",
677
677
  body: serializers.GenerateMavenSuggestionsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -732,6 +732,102 @@ class Conversation {
732
732
  }
733
733
  });
734
734
  }
735
+ /**
736
+ * Generate a structured object response based on a provided schema and user prompt.
737
+ *
738
+ * If the user question and object response already exist, they will be reused and not updated.
739
+ *
740
+ * Known Limitations:
741
+ * - Schema enforcement is best-effort and may not guarantee exact conformity.
742
+ * - This endpoint does not stream results. Use `askDataStream` (coming soon) for progressive rendering.
743
+ *
744
+ * @param {string} conversationId - The ID of a new or existing conversation to use as context for the object generation request
745
+ * @param {MavenAGI.GenerateObjectRequest} request
746
+ * @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
747
+ *
748
+ * @throws {@link MavenAGI.NotFoundError}
749
+ * @throws {@link MavenAGI.BadRequestError}
750
+ * @throws {@link MavenAGI.ServerError}
751
+ *
752
+ * @example
753
+ * await client.conversation.generateObject("conversationId", {
754
+ * conversationMessageId: {
755
+ * referenceId: "referenceId"
756
+ * },
757
+ * userId: {
758
+ * referenceId: "referenceId"
759
+ * },
760
+ * text: "text",
761
+ * schema: "schema"
762
+ * })
763
+ */
764
+ generateObject(conversationId, request, requestOptions) {
765
+ return __awaiter(this, void 0, void 0, function* () {
766
+ var _a, _b, _c;
767
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
768
+ 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/conversations/${encodeURIComponent(conversationId)}/generate_object`),
769
+ method: "POST",
770
+ 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),
771
+ contentType: "application/json",
772
+ requestType: "json",
773
+ body: serializers.GenerateObjectRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
774
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
775
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
776
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
777
+ });
778
+ if (_response.ok) {
779
+ return serializers.BotObjectResponse.parseOrThrow(_response.body, {
780
+ unrecognizedObjectKeys: "passthrough",
781
+ allowUnrecognizedUnionMembers: true,
782
+ allowUnrecognizedEnumValues: true,
783
+ breadcrumbsPrefix: ["response"],
784
+ });
785
+ }
786
+ if (_response.error.reason === "status-code") {
787
+ switch (_response.error.statusCode) {
788
+ case 404:
789
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
790
+ unrecognizedObjectKeys: "passthrough",
791
+ allowUnrecognizedUnionMembers: true,
792
+ allowUnrecognizedEnumValues: true,
793
+ breadcrumbsPrefix: ["response"],
794
+ }));
795
+ case 400:
796
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
797
+ unrecognizedObjectKeys: "passthrough",
798
+ allowUnrecognizedUnionMembers: true,
799
+ allowUnrecognizedEnumValues: true,
800
+ breadcrumbsPrefix: ["response"],
801
+ }));
802
+ case 500:
803
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
804
+ unrecognizedObjectKeys: "passthrough",
805
+ allowUnrecognizedUnionMembers: true,
806
+ allowUnrecognizedEnumValues: true,
807
+ breadcrumbsPrefix: ["response"],
808
+ }));
809
+ default:
810
+ throw new errors.MavenAGIError({
811
+ statusCode: _response.error.statusCode,
812
+ body: _response.error.body,
813
+ });
814
+ }
815
+ }
816
+ switch (_response.error.reason) {
817
+ case "non-json":
818
+ throw new errors.MavenAGIError({
819
+ statusCode: _response.error.statusCode,
820
+ body: _response.error.rawBody,
821
+ });
822
+ case "timeout":
823
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/conversations/{conversationId}/generate_object.");
824
+ case "unknown":
825
+ throw new errors.MavenAGIError({
826
+ message: _response.error.errorMessage,
827
+ });
828
+ }
829
+ });
830
+ }
735
831
  /**
736
832
  * Uses an LLM flow to categorize the conversation. Experimental.
737
833
  *
@@ -751,7 +847,7 @@ class Conversation {
751
847
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
752
848
  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/conversations/${encodeURIComponent(conversationId)}/categorize`),
753
849
  method: "POST",
754
- 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),
850
+ 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),
755
851
  contentType: "application/json",
756
852
  requestType: "json",
757
853
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -845,7 +941,7 @@ class Conversation {
845
941
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
846
942
  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/conversations/feedback"),
847
943
  method: "POST",
848
- 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),
944
+ 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),
849
945
  contentType: "application/json",
850
946
  requestType: "json",
851
947
  body: serializers.FeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -933,7 +1029,7 @@ class Conversation {
933
1029
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
934
1030
  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/conversations/${encodeURIComponent(conversationId)}/submit-form`),
935
1031
  method: "POST",
936
- 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),
1032
+ 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),
937
1033
  contentType: "application/json",
938
1034
  requestType: "json",
939
1035
  body: serializers.SubmitActionFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1018,7 +1114,7 @@ class Conversation {
1018
1114
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1019
1115
  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/conversations/${encodeURIComponent(conversationId)}/metadata`),
1020
1116
  method: "POST",
1021
- 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),
1117
+ 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),
1022
1118
  contentType: "application/json",
1023
1119
  requestType: "json",
1024
1120
  body: serializers.conversation.addConversationMetadata.Request.jsonOrThrow(request, {
@@ -1112,7 +1208,7 @@ class Conversation {
1112
1208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1113
1209
  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/conversations/${encodeURIComponent(conversationId)}/metadata`),
1114
1210
  method: "PUT",
1115
- 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),
1211
+ 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),
1116
1212
  contentType: "application/json",
1117
1213
  requestType: "json",
1118
1214
  body: serializers.UpdateMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1192,7 +1288,7 @@ class Conversation {
1192
1288
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1193
1289
  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/conversations/search"),
1194
1290
  method: "POST",
1195
- 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),
1291
+ 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),
1196
1292
  contentType: "application/json",
1197
1293
  requestType: "json",
1198
1294
  body: serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ConversationField = "Category" | "FirstResponseTime" | "HandleTime" | "HumanAgents" | "App" | "Sentiment" | "QualityReason" | "ResolutionStatus" | "Quality" | "Users" | "ResponseLength" | "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "Tags" | "UserMessageCount" | "Languages" | "Actions" | "IncompleteActions" | "Sources" | "CreatedAt";
4
+ export type ConversationField = "Category" | "FirstResponseTime" | "HandleTime" | "HumanAgents" | "HumanAgentsWithInserts" | "App" | "Sentiment" | "QualityReason" | "ResolutionStatus" | "Quality" | "Users" | "ResponseLength" | "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "Tags" | "UserMessageCount" | "Languages" | "Actions" | "IncompleteActions" | "Sources" | "CreatedAt";
5
5
  export declare const ConversationField: {
6
6
  readonly Category: "Category";
7
7
  readonly FirstResponseTime: "FirstResponseTime";
8
8
  readonly HandleTime: "HandleTime";
9
9
  readonly HumanAgents: "HumanAgents";
10
+ readonly HumanAgentsWithInserts: "HumanAgentsWithInserts";
10
11
  readonly App: "App";
11
12
  readonly Sentiment: "Sentiment";
12
13
  readonly QualityReason: "QualityReason";
@@ -9,6 +9,7 @@ exports.ConversationField = {
9
9
  FirstResponseTime: "FirstResponseTime",
10
10
  HandleTime: "HandleTime",
11
11
  HumanAgents: "HumanAgents",
12
+ HumanAgentsWithInserts: "HumanAgentsWithInserts",
12
13
  App: "App",
13
14
  Sentiment: "Sentiment",
14
15
  QualityReason: "QualityReason",
@@ -3,21 +3,42 @@
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
5
  export interface ConversationFilter {
6
+ /** Full-text search query for matching conversations by content. When you search with this parameter, you're performing a full-text search across all textual content in the conversations, including both the user's messages and the AI's responses. */
6
7
  search?: string;
8
+ /** Filter conversations created on or after this timestamp */
7
9
  createdAfter?: Date;
10
+ /** Filter conversations created on or before this timestamp */
8
11
  createdBefore?: Date;
12
+ /** Filter by app IDs */
9
13
  apps?: string[];
14
+ /** Filter by conversation categories */
10
15
  categories?: string[];
16
+ /** Filter by actions that were executed in the conversation */
11
17
  actions?: MavenAGI.EntityIdFilter[];
18
+ /** Filter by actions that were suggested but not completed by the AI agent */
12
19
  incompleteActions?: MavenAGI.EntityIdFilter[];
20
+ /** Filter by user feedback types received in the conversation */
13
21
  feedback?: MavenAGI.FeedbackType[];
22
+ /** Filter by human agents who participated in the conversation */
14
23
  humanAgents?: string[];
24
+ /** Filter by human agents who inserted a maven AI generated suggestion in the conversation */
25
+ humanAgentsWithInserts?: string[];
26
+ /** Filter by conversation languages */
15
27
  languages?: string[];
28
+ /** Filter by AI assessed conversation quality classification */
16
29
  quality?: MavenAGI.Quality[];
30
+ /** Filter by AI assessed quality reason classification */
17
31
  qualityReason?: MavenAGI.QualityReason[];
32
+ /** Filter by AI response length classification */
18
33
  responseLength?: MavenAGI.ResponseLength[];
34
+ /** Filter by AI assessed sentiment analysis */
19
35
  sentiment?: MavenAGI.Sentiment[];
36
+ /** Filter by tags applied to the conversation */
20
37
  tags?: string[];
38
+ /** Filter by conversation resolution status which is determined by AI based on the conversation content. */
21
39
  resolutionStatus?: MavenAGI.ResolutionStatus[];
40
+ /** Filter conversations based on whether they were resolved by Maven AI */
22
41
  resolvedByMaven?: boolean;
42
+ /** Filter by the number of messages sent by the user in the conversation */
43
+ userMessageCount?: MavenAGI.NumberRange;
23
44
  }
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type FeedbackField = "Type" | "CreatedBy" | "CreatedAt";
4
+ export type FeedbackField = "Type" | "CreatedBy" | "CreatedAt" | "App";
5
5
  export declare const FeedbackField: {
6
6
  readonly Type: "Type";
7
7
  readonly CreatedBy: "CreatedBy";
8
8
  readonly CreatedAt: "CreatedAt";
9
+ readonly App: "App";
9
10
  };
@@ -8,4 +8,5 @@ exports.FeedbackField = {
8
8
  Type: "Type",
9
9
  CreatedBy: "CreatedBy",
10
10
  CreatedAt: "CreatedAt",
11
+ App: "App",
11
12
  };
@@ -6,5 +6,7 @@ export interface FeedbackFilter {
6
6
  search?: string;
7
7
  createdAfter?: Date;
8
8
  createdBefore?: Date;
9
+ users?: string[];
10
+ apps?: string[];
9
11
  types?: MavenAGI.FeedbackType[];
10
12
  }
@@ -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 GenerateObjectRequest extends MavenAGI.AskRequest {
6
+ /** JSON schema string defining the expected object shape. */
7
+ schema: string;
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 });
@@ -5,6 +5,7 @@ export * from "./ConversationRequest";
5
5
  export * from "./ConversationMessageRequest";
6
6
  export * from "./SubmitActionFormRequest";
7
7
  export * from "./FeedbackRequest";
8
+ export * from "./GenerateObjectRequest";
8
9
  export * from "./StreamResponse";
9
10
  export * from "./AskStreamTextEvent";
10
11
  export * from "./AskStreamActionEvent";
@@ -21,6 +21,7 @@ __exportStar(require("./ConversationRequest"), exports);
21
21
  __exportStar(require("./ConversationMessageRequest"), exports);
22
22
  __exportStar(require("./SubmitActionFormRequest"), exports);
23
23
  __exportStar(require("./FeedbackRequest"), exports);
24
+ __exportStar(require("./GenerateObjectRequest"), exports);
24
25
  __exportStar(require("./StreamResponse"), exports);
25
26
  __exportStar(require("./AskStreamTextEvent"), exports);
26
27
  __exportStar(require("./AskStreamActionEvent"), exports);
@@ -0,0 +1,53 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as MavenAGI from "../../../index";
7
+ export declare namespace Events {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ appId?: core.Supplier<string | undefined>;
13
+ appSecret?: core.Supplier<string | undefined>;
14
+ /** Override the X-Organization-Id header */
15
+ organizationId: core.Supplier<string>;
16
+ /** Override the X-Agent-Id header */
17
+ agentId: core.Supplier<string>;
18
+ fetcher?: core.FetchFunction;
19
+ }
20
+ interface RequestOptions {
21
+ /** The maximum time to wait for a response in seconds. */
22
+ timeoutInSeconds?: number;
23
+ /** The number of times to retry the request. Defaults to 2. */
24
+ maxRetries?: number;
25
+ /** A hook to abort the request. */
26
+ abortSignal?: AbortSignal;
27
+ /** Override the X-Organization-Id header */
28
+ organizationId?: string;
29
+ /** Override the X-Agent-Id header */
30
+ agentId?: string;
31
+ /** Additional headers to include in the request. */
32
+ headers?: Record<string, string>;
33
+ }
34
+ }
35
+ export declare class Events {
36
+ protected readonly _options: Events.Options;
37
+ constructor(_options: Events.Options);
38
+ /**
39
+ * Search events
40
+ *
41
+ * @param {MavenAGI.EventsSearchRequest} request
42
+ * @param {Events.RequestOptions} requestOptions - Request-specific configuration.
43
+ *
44
+ * @throws {@link MavenAGI.NotFoundError}
45
+ * @throws {@link MavenAGI.BadRequestError}
46
+ * @throws {@link MavenAGI.ServerError}
47
+ *
48
+ * @example
49
+ * await client.events.search({})
50
+ */
51
+ search(request: MavenAGI.EventsSearchRequest, requestOptions?: Events.RequestOptions): Promise<MavenAGI.EventsSearchResponse>;
52
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
53
+ }