mavenagi 1.2.20 → 1.2.22

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 (323) hide show
  1. package/Client.d.ts +6 -6
  2. package/Client.js +32 -32
  3. package/api/resources/commons/types/BaseAttachment.d.ts +1 -0
  4. package/api/resources/commons/types/InboxItemBase.d.ts +2 -0
  5. package/api/resources/conversation/client/Client.d.ts +0 -17
  6. package/api/resources/conversation/client/Client.js +0 -108
  7. package/api/resources/conversation/types/index.d.ts +0 -2
  8. package/api/resources/conversation/types/index.js +0 -2
  9. package/api/resources/inbox/client/Client.d.ts +18 -0
  10. package/api/resources/inbox/client/Client.js +98 -0
  11. package/api/resources/inbox/client/requests/InboxItemApplyTagsRequest.d.ts +12 -0
  12. package/api/resources/inbox/client/requests/index.d.ts +1 -0
  13. package/api/resources/inbox/types/InboxFilter.d.ts +2 -0
  14. package/api/resources/index.d.ts +4 -4
  15. package/api/resources/index.js +5 -5
  16. package/api/resources/segments/types/SegmentFilter.d.ts +21 -0
  17. package/api/resources/segments/types/SegmentRequest.d.ts +2 -0
  18. package/api/resources/segments/types/SegmentResponse.d.ts +3 -0
  19. package/api/resources/segments/types/SegmentsSearchRequest.d.ts +2 -0
  20. package/api/resources/segments/types/index.d.ts +1 -0
  21. package/api/resources/segments/types/index.js +1 -0
  22. package/api/resources/voice/client/Client.d.ts +38 -0
  23. package/api/resources/{auth → voice}/client/Client.js +19 -14
  24. package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +17 -0
  25. package/api/resources/voice/types/VoiceSessionTokenResponse.d.ts +11 -0
  26. package/api/resources/voice/types/VoiceTokenType.d.ts +5 -0
  27. package/api/resources/voice/types/VoiceTokenType.js +8 -0
  28. package/api/resources/voice/types/index.d.ts +3 -0
  29. package/api/resources/{auth → voice}/types/index.js +3 -2
  30. package/api/resources/{websockets → voiceConversations}/client/Client.d.ts +6 -6
  31. package/api/resources/{websockets → voiceConversations}/client/Client.js +5 -5
  32. package/api/resources/{websockets → voiceConversations}/client/Socket.d.ts +6 -6
  33. package/api/resources/{websockets → voiceConversations}/client/Socket.js +6 -6
  34. package/{dist/api/resources/websockets → api/resources/voiceConversations}/types/AgentAudioChunk.d.ts +1 -1
  35. package/{dist/api/resources/websockets → api/resources/voiceConversations}/types/Config.d.ts +2 -2
  36. package/api/resources/{websockets → voiceConversations}/types/UserAudioChunk.d.ts +1 -1
  37. package/dist/Client.d.ts +6 -6
  38. package/dist/Client.js +32 -32
  39. package/dist/api/resources/commons/types/BaseAttachment.d.ts +1 -0
  40. package/dist/api/resources/commons/types/InboxItemBase.d.ts +2 -0
  41. package/dist/api/resources/conversation/client/Client.d.ts +0 -17
  42. package/dist/api/resources/conversation/client/Client.js +0 -108
  43. package/dist/api/resources/conversation/types/index.d.ts +0 -2
  44. package/dist/api/resources/conversation/types/index.js +0 -2
  45. package/dist/api/resources/inbox/client/Client.d.ts +18 -0
  46. package/dist/api/resources/inbox/client/Client.js +98 -0
  47. package/dist/api/resources/inbox/client/requests/InboxItemApplyTagsRequest.d.ts +12 -0
  48. package/dist/api/resources/inbox/client/requests/index.d.ts +1 -0
  49. package/dist/api/resources/inbox/types/InboxFilter.d.ts +2 -0
  50. package/dist/api/resources/index.d.ts +4 -4
  51. package/dist/api/resources/index.js +5 -5
  52. package/dist/api/resources/segments/types/SegmentFilter.d.ts +21 -0
  53. package/dist/api/resources/segments/types/SegmentRequest.d.ts +2 -0
  54. package/dist/api/resources/segments/types/SegmentResponse.d.ts +3 -0
  55. package/dist/api/resources/segments/types/SegmentsSearchRequest.d.ts +2 -0
  56. package/dist/api/resources/segments/types/index.d.ts +1 -0
  57. package/dist/api/resources/segments/types/index.js +1 -0
  58. package/dist/api/resources/voice/client/Client.d.ts +38 -0
  59. package/dist/api/resources/{auth → voice}/client/Client.js +19 -14
  60. package/dist/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +17 -0
  61. package/dist/api/resources/voice/types/VoiceSessionTokenResponse.d.ts +11 -0
  62. package/dist/api/resources/voice/types/VoiceTokenType.d.ts +5 -0
  63. package/dist/api/resources/voice/types/VoiceTokenType.js +8 -0
  64. package/dist/api/resources/voice/types/index.d.ts +3 -0
  65. package/dist/api/resources/voice/types/index.js +19 -0
  66. package/dist/api/resources/{websockets → voiceConversations}/client/Client.d.ts +6 -6
  67. package/dist/api/resources/{websockets → voiceConversations}/client/Client.js +5 -5
  68. package/dist/api/resources/{websockets → voiceConversations}/client/Socket.d.ts +6 -6
  69. package/dist/api/resources/{websockets → voiceConversations}/client/Socket.js +6 -6
  70. package/{api/resources/websockets → dist/api/resources/voiceConversations}/types/AgentAudioChunk.d.ts +1 -1
  71. package/{api/resources/websockets → dist/api/resources/voiceConversations}/types/Config.d.ts +2 -2
  72. package/dist/api/resources/{websockets → voiceConversations}/types/UserAudioChunk.d.ts +1 -1
  73. package/dist/serialization/resources/commons/types/InboxItemBase.d.ts +1 -0
  74. package/dist/serialization/resources/commons/types/InboxItemBase.js +1 -0
  75. package/dist/serialization/resources/conversation/types/index.d.ts +0 -2
  76. package/dist/serialization/resources/conversation/types/index.js +0 -2
  77. package/dist/serialization/resources/inbox/client/index.d.ts +1 -0
  78. package/dist/serialization/resources/inbox/client/index.js +17 -0
  79. package/dist/serialization/resources/inbox/client/requests/InboxItemApplyTagsRequest.d.ts +10 -0
  80. package/dist/serialization/resources/{auth/types/SessionTokenRequest.js → inbox/client/requests/InboxItemApplyTagsRequest.js} +5 -4
  81. package/dist/serialization/resources/inbox/client/requests/index.d.ts +1 -0
  82. package/dist/serialization/resources/inbox/client/requests/index.js +5 -0
  83. package/dist/serialization/resources/inbox/index.d.ts +1 -0
  84. package/dist/serialization/resources/inbox/index.js +1 -0
  85. package/dist/serialization/resources/inbox/types/InboxFilter.d.ts +1 -0
  86. package/dist/serialization/resources/inbox/types/InboxFilter.js +1 -0
  87. package/dist/serialization/resources/index.d.ts +6 -5
  88. package/dist/serialization/resources/index.js +7 -6
  89. package/dist/serialization/resources/segments/types/SegmentFilter.d.ts +12 -0
  90. package/dist/serialization/resources/segments/types/SegmentFilter.js +44 -0
  91. package/dist/serialization/resources/segments/types/SegmentRequest.d.ts +2 -0
  92. package/dist/serialization/resources/segments/types/SegmentRequest.js +2 -0
  93. package/dist/serialization/resources/segments/types/SegmentResponse.d.ts +1 -0
  94. package/dist/serialization/resources/segments/types/SegmentResponse.js +1 -0
  95. package/dist/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +2 -0
  96. package/dist/serialization/resources/segments/types/SegmentsSearchRequest.js +2 -0
  97. package/dist/serialization/resources/segments/types/index.d.ts +1 -0
  98. package/dist/serialization/resources/segments/types/index.js +1 -0
  99. package/dist/serialization/resources/voice/types/VoiceSessionTokenRequest.d.ts +12 -0
  100. package/dist/serialization/resources/voice/types/VoiceSessionTokenRequest.js +44 -0
  101. package/dist/serialization/resources/voice/types/VoiceSessionTokenResponse.d.ts +13 -0
  102. package/dist/serialization/resources/voice/types/VoiceSessionTokenResponse.js +45 -0
  103. package/dist/serialization/resources/voice/types/VoiceTokenType.d.ts +7 -0
  104. package/dist/serialization/resources/voice/types/VoiceTokenType.js +39 -0
  105. package/dist/serialization/resources/voice/types/index.d.ts +3 -0
  106. package/dist/serialization/resources/voice/types/index.js +19 -0
  107. package/{serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts → dist/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts} +2 -2
  108. package/dist/serialization/resources/{websockets/client/socket/WebsocketsSocketResponse.js → voiceConversations/client/socket/VoiceConversationsSocketResponse.js} +2 -2
  109. package/dist/serialization/resources/voiceConversations/client/socket/index.d.ts +1 -0
  110. package/dist/serialization/resources/voiceConversations/client/socket/index.js +5 -0
  111. package/dist/version.d.ts +1 -1
  112. package/dist/version.js +1 -1
  113. package/package.json +1 -1
  114. package/reference.md +146 -163
  115. package/serialization/resources/commons/types/InboxItemBase.d.ts +1 -0
  116. package/serialization/resources/commons/types/InboxItemBase.js +1 -0
  117. package/serialization/resources/conversation/types/index.d.ts +0 -2
  118. package/serialization/resources/conversation/types/index.js +0 -2
  119. package/serialization/resources/inbox/client/index.d.ts +1 -0
  120. package/serialization/resources/inbox/client/index.js +17 -0
  121. package/serialization/resources/inbox/client/requests/InboxItemApplyTagsRequest.d.ts +10 -0
  122. package/{dist/serialization/resources/auth/types/SessionTokenResponse.js → serialization/resources/inbox/client/requests/InboxItemApplyTagsRequest.js} +5 -5
  123. package/serialization/resources/inbox/client/requests/index.d.ts +1 -0
  124. package/serialization/resources/inbox/client/requests/index.js +5 -0
  125. package/serialization/resources/inbox/index.d.ts +1 -0
  126. package/serialization/resources/inbox/index.js +1 -0
  127. package/serialization/resources/inbox/types/InboxFilter.d.ts +1 -0
  128. package/serialization/resources/inbox/types/InboxFilter.js +1 -0
  129. package/serialization/resources/index.d.ts +6 -5
  130. package/serialization/resources/index.js +7 -6
  131. package/serialization/resources/segments/types/SegmentFilter.d.ts +12 -0
  132. package/serialization/resources/segments/types/SegmentFilter.js +44 -0
  133. package/serialization/resources/segments/types/SegmentRequest.d.ts +2 -0
  134. package/serialization/resources/segments/types/SegmentRequest.js +2 -0
  135. package/serialization/resources/segments/types/SegmentResponse.d.ts +1 -0
  136. package/serialization/resources/segments/types/SegmentResponse.js +1 -0
  137. package/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +2 -0
  138. package/serialization/resources/segments/types/SegmentsSearchRequest.js +2 -0
  139. package/serialization/resources/segments/types/index.d.ts +1 -0
  140. package/serialization/resources/segments/types/index.js +1 -0
  141. package/serialization/resources/voice/types/VoiceSessionTokenRequest.d.ts +12 -0
  142. package/serialization/resources/voice/types/VoiceSessionTokenRequest.js +44 -0
  143. package/serialization/resources/voice/types/VoiceSessionTokenResponse.d.ts +13 -0
  144. package/serialization/resources/voice/types/VoiceSessionTokenResponse.js +45 -0
  145. package/serialization/resources/voice/types/VoiceTokenType.d.ts +7 -0
  146. package/serialization/resources/voice/types/VoiceTokenType.js +39 -0
  147. package/serialization/resources/voice/types/index.d.ts +3 -0
  148. package/serialization/resources/voice/types/index.js +19 -0
  149. package/{dist/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts → serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts} +2 -2
  150. package/serialization/resources/{websockets/client/socket/WebsocketsSocketResponse.js → voiceConversations/client/socket/VoiceConversationsSocketResponse.js} +2 -2
  151. package/serialization/resources/voiceConversations/client/socket/index.d.ts +1 -0
  152. package/serialization/resources/voiceConversations/client/socket/index.js +5 -0
  153. package/version.d.ts +1 -1
  154. package/version.js +1 -1
  155. package/api/resources/auth/client/Client.d.ts +0 -33
  156. package/api/resources/auth/types/SessionTokenRequest.d.ts +0 -3
  157. package/api/resources/auth/types/SessionTokenResponse.d.ts +0 -6
  158. package/api/resources/auth/types/index.d.ts +0 -2
  159. package/api/resources/conversation/types/AskObjectRequest.d.ts +0 -5
  160. package/api/resources/conversation/types/ObjectStreamResponse.d.ts +0 -13
  161. package/dist/api/resources/auth/client/Client.d.ts +0 -33
  162. package/dist/api/resources/auth/types/SessionTokenRequest.d.ts +0 -3
  163. package/dist/api/resources/auth/types/SessionTokenResponse.d.ts +0 -6
  164. package/dist/api/resources/auth/types/index.d.ts +0 -2
  165. package/dist/api/resources/auth/types/index.js +0 -18
  166. package/dist/api/resources/conversation/types/AskObjectRequest.d.ts +0 -5
  167. package/dist/api/resources/conversation/types/ObjectStreamResponse.d.ts +0 -13
  168. package/dist/serialization/resources/auth/types/SessionTokenRequest.d.ts +0 -9
  169. package/dist/serialization/resources/auth/types/SessionTokenResponse.d.ts +0 -10
  170. package/dist/serialization/resources/auth/types/index.d.ts +0 -2
  171. package/dist/serialization/resources/auth/types/index.js +0 -18
  172. package/dist/serialization/resources/conversation/types/AskObjectRequest.d.ts +0 -10
  173. package/dist/serialization/resources/conversation/types/AskObjectRequest.js +0 -44
  174. package/dist/serialization/resources/conversation/types/ObjectStreamResponse.d.ts +0 -19
  175. package/dist/serialization/resources/conversation/types/ObjectStreamResponse.js +0 -51
  176. package/dist/serialization/resources/websockets/client/socket/index.d.ts +0 -1
  177. package/dist/serialization/resources/websockets/client/socket/index.js +0 -5
  178. package/serialization/resources/auth/types/SessionTokenRequest.d.ts +0 -9
  179. package/serialization/resources/auth/types/SessionTokenRequest.js +0 -41
  180. package/serialization/resources/auth/types/SessionTokenResponse.d.ts +0 -10
  181. package/serialization/resources/auth/types/SessionTokenResponse.js +0 -42
  182. package/serialization/resources/auth/types/index.d.ts +0 -2
  183. package/serialization/resources/auth/types/index.js +0 -18
  184. package/serialization/resources/conversation/types/AskObjectRequest.d.ts +0 -10
  185. package/serialization/resources/conversation/types/AskObjectRequest.js +0 -44
  186. package/serialization/resources/conversation/types/ObjectStreamResponse.d.ts +0 -19
  187. package/serialization/resources/conversation/types/ObjectStreamResponse.js +0 -51
  188. package/serialization/resources/websockets/client/socket/index.d.ts +0 -1
  189. package/serialization/resources/websockets/client/socket/index.js +0 -5
  190. /package/api/resources/{auth/types/SessionTokenRequest.js → inbox/client/requests/InboxItemApplyTagsRequest.js} +0 -0
  191. /package/api/resources/{auth/types/SessionTokenResponse.js → segments/types/SegmentFilter.js} +0 -0
  192. /package/api/resources/{auth → voice}/client/index.d.ts +0 -0
  193. /package/api/resources/{auth → voice}/client/index.js +0 -0
  194. /package/api/resources/{auth → voice}/index.d.ts +0 -0
  195. /package/api/resources/{auth → voice}/index.js +0 -0
  196. /package/api/resources/{conversation/types/AskObjectRequest.js → voice/types/VoiceSessionTokenRequest.js} +0 -0
  197. /package/api/resources/{conversation/types/ObjectStreamResponse.js → voice/types/VoiceSessionTokenResponse.js} +0 -0
  198. /package/api/resources/{websockets → voiceConversations}/client/index.d.ts +0 -0
  199. /package/api/resources/{websockets → voiceConversations}/client/index.js +0 -0
  200. /package/api/resources/{websockets → voiceConversations}/index.d.ts +0 -0
  201. /package/api/resources/{websockets → voiceConversations}/index.js +0 -0
  202. /package/api/resources/{websockets → voiceConversations}/types/AgentAudioChunk.js +0 -0
  203. /package/api/resources/{websockets → voiceConversations}/types/AgentTranscript.d.ts +0 -0
  204. /package/api/resources/{websockets → voiceConversations}/types/AgentTranscript.js +0 -0
  205. /package/api/resources/{websockets → voiceConversations}/types/AudioFormat.d.ts +0 -0
  206. /package/api/resources/{websockets → voiceConversations}/types/AudioFormat.js +0 -0
  207. /package/api/resources/{websockets → voiceConversations}/types/Config.js +0 -0
  208. /package/api/resources/{websockets → voiceConversations}/types/ConversationEnded.d.ts +0 -0
  209. /package/api/resources/{websockets → voiceConversations}/types/ConversationEnded.js +0 -0
  210. /package/api/resources/{websockets → voiceConversations}/types/ConversationReady.d.ts +0 -0
  211. /package/api/resources/{websockets → voiceConversations}/types/ConversationReady.js +0 -0
  212. /package/api/resources/{websockets → voiceConversations}/types/Error_.d.ts +0 -0
  213. /package/api/resources/{websockets → voiceConversations}/types/Error_.js +0 -0
  214. /package/api/resources/{websockets → voiceConversations}/types/ServerEventBase.d.ts +0 -0
  215. /package/api/resources/{websockets → voiceConversations}/types/ServerEventBase.js +0 -0
  216. /package/api/resources/{websockets → voiceConversations}/types/UserAudioChunk.js +0 -0
  217. /package/api/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.d.ts +0 -0
  218. /package/api/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.js +0 -0
  219. /package/api/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.d.ts +0 -0
  220. /package/api/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.js +0 -0
  221. /package/api/resources/{websockets → voiceConversations}/types/UserTranscript.d.ts +0 -0
  222. /package/api/resources/{websockets → voiceConversations}/types/UserTranscript.js +0 -0
  223. /package/api/resources/{websockets → voiceConversations}/types/index.d.ts +0 -0
  224. /package/api/resources/{websockets → voiceConversations}/types/index.js +0 -0
  225. /package/dist/api/resources/{auth/types/SessionTokenRequest.js → inbox/client/requests/InboxItemApplyTagsRequest.js} +0 -0
  226. /package/dist/api/resources/{auth/types/SessionTokenResponse.js → segments/types/SegmentFilter.js} +0 -0
  227. /package/dist/api/resources/{auth → voice}/client/index.d.ts +0 -0
  228. /package/dist/api/resources/{auth → voice}/client/index.js +0 -0
  229. /package/dist/api/resources/{auth → voice}/index.d.ts +0 -0
  230. /package/dist/api/resources/{auth → voice}/index.js +0 -0
  231. /package/dist/api/resources/{conversation/types/AskObjectRequest.js → voice/types/VoiceSessionTokenRequest.js} +0 -0
  232. /package/dist/api/resources/{conversation/types/ObjectStreamResponse.js → voice/types/VoiceSessionTokenResponse.js} +0 -0
  233. /package/dist/api/resources/{websockets → voiceConversations}/client/index.d.ts +0 -0
  234. /package/dist/api/resources/{websockets → voiceConversations}/client/index.js +0 -0
  235. /package/dist/api/resources/{websockets → voiceConversations}/index.d.ts +0 -0
  236. /package/dist/api/resources/{websockets → voiceConversations}/index.js +0 -0
  237. /package/dist/api/resources/{websockets → voiceConversations}/types/AgentAudioChunk.js +0 -0
  238. /package/dist/api/resources/{websockets → voiceConversations}/types/AgentTranscript.d.ts +0 -0
  239. /package/dist/api/resources/{websockets → voiceConversations}/types/AgentTranscript.js +0 -0
  240. /package/dist/api/resources/{websockets → voiceConversations}/types/AudioFormat.d.ts +0 -0
  241. /package/dist/api/resources/{websockets → voiceConversations}/types/AudioFormat.js +0 -0
  242. /package/dist/api/resources/{websockets → voiceConversations}/types/Config.js +0 -0
  243. /package/dist/api/resources/{websockets → voiceConversations}/types/ConversationEnded.d.ts +0 -0
  244. /package/dist/api/resources/{websockets → voiceConversations}/types/ConversationEnded.js +0 -0
  245. /package/dist/api/resources/{websockets → voiceConversations}/types/ConversationReady.d.ts +0 -0
  246. /package/dist/api/resources/{websockets → voiceConversations}/types/ConversationReady.js +0 -0
  247. /package/dist/api/resources/{websockets → voiceConversations}/types/Error_.d.ts +0 -0
  248. /package/dist/api/resources/{websockets → voiceConversations}/types/Error_.js +0 -0
  249. /package/dist/api/resources/{websockets → voiceConversations}/types/ServerEventBase.d.ts +0 -0
  250. /package/dist/api/resources/{websockets → voiceConversations}/types/ServerEventBase.js +0 -0
  251. /package/dist/api/resources/{websockets → voiceConversations}/types/UserAudioChunk.js +0 -0
  252. /package/dist/api/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.d.ts +0 -0
  253. /package/dist/api/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.js +0 -0
  254. /package/dist/api/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.d.ts +0 -0
  255. /package/dist/api/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.js +0 -0
  256. /package/dist/api/resources/{websockets → voiceConversations}/types/UserTranscript.d.ts +0 -0
  257. /package/dist/api/resources/{websockets → voiceConversations}/types/UserTranscript.js +0 -0
  258. /package/dist/api/resources/{websockets → voiceConversations}/types/index.d.ts +0 -0
  259. /package/dist/api/resources/{websockets → voiceConversations}/types/index.js +0 -0
  260. /package/dist/serialization/resources/{auth → voice}/index.d.ts +0 -0
  261. /package/dist/serialization/resources/{auth → voice}/index.js +0 -0
  262. /package/dist/serialization/resources/{websockets → voiceConversations}/client/index.d.ts +0 -0
  263. /package/dist/serialization/resources/{websockets → voiceConversations}/client/index.js +0 -0
  264. /package/dist/serialization/resources/{websockets → voiceConversations}/index.d.ts +0 -0
  265. /package/dist/serialization/resources/{websockets → voiceConversations}/index.js +0 -0
  266. /package/dist/serialization/resources/{websockets → voiceConversations}/types/AgentAudioChunk.d.ts +0 -0
  267. /package/dist/serialization/resources/{websockets → voiceConversations}/types/AgentAudioChunk.js +0 -0
  268. /package/dist/serialization/resources/{websockets → voiceConversations}/types/AgentTranscript.d.ts +0 -0
  269. /package/dist/serialization/resources/{websockets → voiceConversations}/types/AgentTranscript.js +0 -0
  270. /package/dist/serialization/resources/{websockets → voiceConversations}/types/AudioFormat.d.ts +0 -0
  271. /package/dist/serialization/resources/{websockets → voiceConversations}/types/AudioFormat.js +0 -0
  272. /package/dist/serialization/resources/{websockets → voiceConversations}/types/Config.d.ts +0 -0
  273. /package/dist/serialization/resources/{websockets → voiceConversations}/types/Config.js +0 -0
  274. /package/dist/serialization/resources/{websockets → voiceConversations}/types/ConversationEnded.d.ts +0 -0
  275. /package/dist/serialization/resources/{websockets → voiceConversations}/types/ConversationEnded.js +0 -0
  276. /package/dist/serialization/resources/{websockets → voiceConversations}/types/ConversationReady.d.ts +0 -0
  277. /package/dist/serialization/resources/{websockets → voiceConversations}/types/ConversationReady.js +0 -0
  278. /package/dist/serialization/resources/{websockets → voiceConversations}/types/Error_.d.ts +0 -0
  279. /package/dist/serialization/resources/{websockets → voiceConversations}/types/Error_.js +0 -0
  280. /package/dist/serialization/resources/{websockets → voiceConversations}/types/ServerEventBase.d.ts +0 -0
  281. /package/dist/serialization/resources/{websockets → voiceConversations}/types/ServerEventBase.js +0 -0
  282. /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserAudioChunk.d.ts +0 -0
  283. /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserAudioChunk.js +0 -0
  284. /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.d.ts +0 -0
  285. /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.js +0 -0
  286. /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.d.ts +0 -0
  287. /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.js +0 -0
  288. /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserTranscript.d.ts +0 -0
  289. /package/dist/serialization/resources/{websockets → voiceConversations}/types/UserTranscript.js +0 -0
  290. /package/dist/serialization/resources/{websockets → voiceConversations}/types/index.d.ts +0 -0
  291. /package/dist/serialization/resources/{websockets → voiceConversations}/types/index.js +0 -0
  292. /package/serialization/resources/{auth → voice}/index.d.ts +0 -0
  293. /package/serialization/resources/{auth → voice}/index.js +0 -0
  294. /package/serialization/resources/{websockets → voiceConversations}/client/index.d.ts +0 -0
  295. /package/serialization/resources/{websockets → voiceConversations}/client/index.js +0 -0
  296. /package/serialization/resources/{websockets → voiceConversations}/index.d.ts +0 -0
  297. /package/serialization/resources/{websockets → voiceConversations}/index.js +0 -0
  298. /package/serialization/resources/{websockets → voiceConversations}/types/AgentAudioChunk.d.ts +0 -0
  299. /package/serialization/resources/{websockets → voiceConversations}/types/AgentAudioChunk.js +0 -0
  300. /package/serialization/resources/{websockets → voiceConversations}/types/AgentTranscript.d.ts +0 -0
  301. /package/serialization/resources/{websockets → voiceConversations}/types/AgentTranscript.js +0 -0
  302. /package/serialization/resources/{websockets → voiceConversations}/types/AudioFormat.d.ts +0 -0
  303. /package/serialization/resources/{websockets → voiceConversations}/types/AudioFormat.js +0 -0
  304. /package/serialization/resources/{websockets → voiceConversations}/types/Config.d.ts +0 -0
  305. /package/serialization/resources/{websockets → voiceConversations}/types/Config.js +0 -0
  306. /package/serialization/resources/{websockets → voiceConversations}/types/ConversationEnded.d.ts +0 -0
  307. /package/serialization/resources/{websockets → voiceConversations}/types/ConversationEnded.js +0 -0
  308. /package/serialization/resources/{websockets → voiceConversations}/types/ConversationReady.d.ts +0 -0
  309. /package/serialization/resources/{websockets → voiceConversations}/types/ConversationReady.js +0 -0
  310. /package/serialization/resources/{websockets → voiceConversations}/types/Error_.d.ts +0 -0
  311. /package/serialization/resources/{websockets → voiceConversations}/types/Error_.js +0 -0
  312. /package/serialization/resources/{websockets → voiceConversations}/types/ServerEventBase.d.ts +0 -0
  313. /package/serialization/resources/{websockets → voiceConversations}/types/ServerEventBase.js +0 -0
  314. /package/serialization/resources/{websockets → voiceConversations}/types/UserAudioChunk.d.ts +0 -0
  315. /package/serialization/resources/{websockets → voiceConversations}/types/UserAudioChunk.js +0 -0
  316. /package/serialization/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.d.ts +0 -0
  317. /package/serialization/resources/{websockets → voiceConversations}/types/UserFinishedSpeaking.js +0 -0
  318. /package/serialization/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.d.ts +0 -0
  319. /package/serialization/resources/{websockets → voiceConversations}/types/UserStartedSpeaking.js +0 -0
  320. /package/serialization/resources/{websockets → voiceConversations}/types/UserTranscript.d.ts +0 -0
  321. /package/serialization/resources/{websockets → voiceConversations}/types/UserTranscript.js +0 -0
  322. /package/serialization/resources/{websockets → voiceConversations}/types/index.d.ts +0 -0
  323. /package/serialization/resources/{websockets → voiceConversations}/types/index.js +0 -0
@@ -829,114 +829,6 @@ class Conversation {
829
829
  }
830
830
  });
831
831
  }
832
- /**
833
- * Generate a structured object response based on a provided schema and user prompt with a streaming response.
834
- * The response will be sent as a stream of events containing text, start, and end events.
835
- * The text portions of stream responses should be concatenated to form the full response text.
836
- *
837
- * If the user question and object response already exist, they will be reused and not updated.
838
- *
839
- * Concurrency Behavior:
840
- * - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
841
- * - The second caller will receive a truncated or partial response depending on where the first stream is in its processing. The first caller's stream will remain unaffected and continue delivering the full response.
842
- *
843
- * Known Limitations:
844
- * - Schema enforcement is best-effort and may not guarantee exact conformity.
845
- * - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
846
- */
847
- askObjectStream(conversationId, request, requestOptions) {
848
- return core.HttpResponsePromise.fromPromise(this.__askObjectStream(conversationId, request, requestOptions));
849
- }
850
- __askObjectStream(conversationId, request, requestOptions) {
851
- return __awaiter(this, void 0, void 0, function* () {
852
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
853
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
854
- Authorization: yield this._getAuthorizationHeader(),
855
- "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
856
- "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
857
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
858
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
859
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}/ask_object_stream`),
860
- method: "POST",
861
- headers: _headers,
862
- contentType: "application/json",
863
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
864
- requestType: "json",
865
- body: serializers.AskObjectRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
866
- responseType: "sse",
867
- timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
868
- maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
869
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
870
- });
871
- if (_response.ok) {
872
- return {
873
- data: new core.Stream({
874
- stream: _response.body,
875
- parse: (data) => __awaiter(this, void 0, void 0, function* () {
876
- return serializers.ObjectStreamResponse.parseOrThrow(data, {
877
- unrecognizedObjectKeys: "passthrough",
878
- allowUnrecognizedUnionMembers: true,
879
- allowUnrecognizedEnumValues: true,
880
- breadcrumbsPrefix: ["response"],
881
- });
882
- }),
883
- signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
884
- eventShape: {
885
- type: "sse",
886
- streamTerminator: "[DONE]",
887
- },
888
- }),
889
- rawResponse: _response.rawResponse,
890
- };
891
- }
892
- if (_response.error.reason === "status-code") {
893
- switch (_response.error.statusCode) {
894
- case 404:
895
- throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
896
- unrecognizedObjectKeys: "passthrough",
897
- allowUnrecognizedUnionMembers: true,
898
- allowUnrecognizedEnumValues: true,
899
- breadcrumbsPrefix: ["response"],
900
- }), _response.rawResponse);
901
- case 400:
902
- throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
903
- unrecognizedObjectKeys: "passthrough",
904
- allowUnrecognizedUnionMembers: true,
905
- allowUnrecognizedEnumValues: true,
906
- breadcrumbsPrefix: ["response"],
907
- }), _response.rawResponse);
908
- case 500:
909
- throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
910
- unrecognizedObjectKeys: "passthrough",
911
- allowUnrecognizedUnionMembers: true,
912
- allowUnrecognizedEnumValues: true,
913
- breadcrumbsPrefix: ["response"],
914
- }), _response.rawResponse);
915
- default:
916
- throw new errors.MavenAGIError({
917
- statusCode: _response.error.statusCode,
918
- body: _response.error.body,
919
- rawResponse: _response.rawResponse,
920
- });
921
- }
922
- }
923
- switch (_response.error.reason) {
924
- case "non-json":
925
- throw new errors.MavenAGIError({
926
- statusCode: _response.error.statusCode,
927
- body: _response.error.rawBody,
928
- rawResponse: _response.rawResponse,
929
- });
930
- case "timeout":
931
- throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/conversations/{conversationId}/ask_object_stream.");
932
- case "unknown":
933
- throw new errors.MavenAGIError({
934
- message: _response.error.errorMessage,
935
- rawResponse: _response.rawResponse,
936
- });
937
- }
938
- });
939
- }
940
832
  /**
941
833
  * Uses an LLM flow to categorize the conversation. Experimental.
942
834
  *
@@ -1,6 +1,5 @@
1
1
  export * from "./ActionFormAttachment";
2
2
  export * from "./ActionFormRequestParamValue";
3
- export * from "./AskObjectRequest";
4
3
  export * from "./AskRequest";
5
4
  export * from "./AskStreamActionEvent";
6
5
  export * from "./AskStreamChartEvent";
@@ -27,7 +26,6 @@ export * from "./FeedbackField";
27
26
  export * from "./FeedbackFilter";
28
27
  export * from "./FeedbackRequest";
29
28
  export * from "./NumericConversationField";
30
- export * from "./ObjectStreamResponse";
31
29
  export * from "./ResolutionStatus";
32
30
  export * from "./SimulationFilter";
33
31
  export * from "./StreamResponse";
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ActionFormAttachment"), exports);
18
18
  __exportStar(require("./ActionFormRequestParamValue"), exports);
19
- __exportStar(require("./AskObjectRequest"), exports);
20
19
  __exportStar(require("./AskRequest"), exports);
21
20
  __exportStar(require("./AskStreamActionEvent"), exports);
22
21
  __exportStar(require("./AskStreamChartEvent"), exports);
@@ -43,7 +42,6 @@ __exportStar(require("./FeedbackField"), exports);
43
42
  __exportStar(require("./FeedbackFilter"), exports);
44
43
  __exportStar(require("./FeedbackRequest"), exports);
45
44
  __exportStar(require("./NumericConversationField"), exports);
46
- __exportStar(require("./ObjectStreamResponse"), exports);
47
45
  __exportStar(require("./ResolutionStatus"), exports);
48
46
  __exportStar(require("./SimulationFilter"), exports);
49
47
  __exportStar(require("./StreamResponse"), exports);
@@ -25,6 +25,24 @@ export declare class Inbox {
25
25
  */
26
26
  search(request: MavenAGI.InboxSearchRequest, requestOptions?: Inbox.RequestOptions): core.HttpResponsePromise<MavenAGI.InboxSearchResponse>;
27
27
  private __search;
28
+ /**
29
+ * Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
30
+ *
31
+ * @param {string} inboxItemId - The ID of the inbox item to add tags to.
32
+ * @param {MavenAGI.InboxItemApplyTagsRequest} request
33
+ * @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link MavenAGI.NotFoundError}
36
+ * @throws {@link MavenAGI.BadRequestError}
37
+ * @throws {@link MavenAGI.ServerError}
38
+ *
39
+ * @example
40
+ * await client.inbox.applyTags("custom-item-1", {
41
+ * tags: new Set(["tag1", "tag2"])
42
+ * })
43
+ */
44
+ applyTags(inboxItemId: string, request: MavenAGI.InboxItemApplyTagsRequest, requestOptions?: Inbox.RequestOptions): core.HttpResponsePromise<MavenAGI.InboxItem>;
45
+ private __applyTags;
28
46
  /**
29
47
  * Retrieve details of a specific inbox item by its ID.
30
48
  *
@@ -149,6 +149,104 @@ class Inbox {
149
149
  }
150
150
  });
151
151
  }
152
+ /**
153
+ * Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
154
+ *
155
+ * @param {string} inboxItemId - The ID of the inbox item to add tags to.
156
+ * @param {MavenAGI.InboxItemApplyTagsRequest} request
157
+ * @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
158
+ *
159
+ * @throws {@link MavenAGI.NotFoundError}
160
+ * @throws {@link MavenAGI.BadRequestError}
161
+ * @throws {@link MavenAGI.ServerError}
162
+ *
163
+ * @example
164
+ * await client.inbox.applyTags("custom-item-1", {
165
+ * tags: new Set(["tag1", "tag2"])
166
+ * })
167
+ */
168
+ applyTags(inboxItemId, request, requestOptions) {
169
+ return core.HttpResponsePromise.fromPromise(this.__applyTags(inboxItemId, request, requestOptions));
170
+ }
171
+ __applyTags(inboxItemId, request, requestOptions) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
174
+ const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
175
+ Authorization: yield this._getAuthorizationHeader(),
176
+ "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
177
+ "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
178
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
179
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
180
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId)}/tags`),
181
+ method: "PATCH",
182
+ headers: _headers,
183
+ contentType: "application/json",
184
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
185
+ requestType: "json",
186
+ body: serializers.InboxItemApplyTagsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
187
+ timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
188
+ maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
189
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
190
+ });
191
+ if (_response.ok) {
192
+ return {
193
+ data: serializers.InboxItem.parseOrThrow(_response.body, {
194
+ unrecognizedObjectKeys: "passthrough",
195
+ allowUnrecognizedUnionMembers: true,
196
+ allowUnrecognizedEnumValues: true,
197
+ breadcrumbsPrefix: ["response"],
198
+ }),
199
+ rawResponse: _response.rawResponse,
200
+ };
201
+ }
202
+ if (_response.error.reason === "status-code") {
203
+ switch (_response.error.statusCode) {
204
+ case 404:
205
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
206
+ unrecognizedObjectKeys: "passthrough",
207
+ allowUnrecognizedUnionMembers: true,
208
+ allowUnrecognizedEnumValues: true,
209
+ breadcrumbsPrefix: ["response"],
210
+ }), _response.rawResponse);
211
+ case 400:
212
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
213
+ unrecognizedObjectKeys: "passthrough",
214
+ allowUnrecognizedUnionMembers: true,
215
+ allowUnrecognizedEnumValues: true,
216
+ breadcrumbsPrefix: ["response"],
217
+ }), _response.rawResponse);
218
+ case 500:
219
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
220
+ unrecognizedObjectKeys: "passthrough",
221
+ allowUnrecognizedUnionMembers: true,
222
+ allowUnrecognizedEnumValues: true,
223
+ breadcrumbsPrefix: ["response"],
224
+ }), _response.rawResponse);
225
+ default:
226
+ throw new errors.MavenAGIError({
227
+ statusCode: _response.error.statusCode,
228
+ body: _response.error.body,
229
+ rawResponse: _response.rawResponse,
230
+ });
231
+ }
232
+ }
233
+ switch (_response.error.reason) {
234
+ case "non-json":
235
+ throw new errors.MavenAGIError({
236
+ statusCode: _response.error.statusCode,
237
+ body: _response.error.rawBody,
238
+ rawResponse: _response.rawResponse,
239
+ });
240
+ case "timeout":
241
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/inbox/{inboxItemId}/tags.");
242
+ case "unknown":
243
+ throw new errors.MavenAGIError({
244
+ message: _response.error.errorMessage,
245
+ rawResponse: _response.rawResponse,
246
+ });
247
+ }
248
+ });
249
+ }
152
250
  /**
153
251
  * Retrieve details of a specific inbox item by its ID.
154
252
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * tags: new Set(["tag1", "tag2"])
5
+ * }
6
+ */
7
+ export interface InboxItemApplyTagsRequest {
8
+ /** The App ID of a custom inbox item to patch tags for. For server-managed inbox items such as Missing Knowledge and Duplicate Documents, the appId field is not required and will be ignored. */
9
+ appId?: string;
10
+ /** A set of tags associated with the inbox item that are used for filtering. */
11
+ tags: Set<string>;
12
+ }
@@ -1,3 +1,4 @@
1
+ export type { InboxItemApplyTagsRequest } from "./InboxItemApplyTagsRequest";
1
2
  export type { InboxItemFixRequest } from "./InboxItemFixRequest";
2
3
  export type { InboxItemIgnoreRequest } from "./InboxItemIgnoreRequest";
3
4
  export type { InboxItemRequest } from "./InboxItemRequest";
@@ -4,6 +4,8 @@ export interface InboxFilter {
4
4
  statuses?: MavenAGI.InboxItemStatus[];
5
5
  /** List of inbox item types to filter by. */
6
6
  type?: MavenAGI.InboxItemType[];
7
+ /** Filter for items that have at least one of these tags. */
8
+ tags?: Set<string>;
7
9
  /** Filter for items created after this timestamp. */
8
10
  createdAfter?: Date;
9
11
  /** Filter for items created before this timestamp. */
@@ -11,8 +11,6 @@ export * from "./appSettings/client/requests";
11
11
  export * from "./appSettings/types";
12
12
  export * as assets from "./assets";
13
13
  export * from "./assets/types";
14
- export * as auth from "./auth";
15
- export * from "./auth/types";
16
14
  export * as commons from "./commons";
17
15
  export * from "./commons/errors";
18
16
  export * from "./commons/types";
@@ -47,5 +45,7 @@ export * from "./triggers/types";
47
45
  export * as users from "./users";
48
46
  export * from "./users/client/requests";
49
47
  export * from "./users/types";
50
- export * as websockets from "./websockets";
51
- export * from "./websockets/types";
48
+ export * as voice from "./voice";
49
+ export * from "./voice/types";
50
+ export * as voiceConversations from "./voiceConversations";
51
+ export * from "./voiceConversations/types";
@@ -36,7 +36,7 @@ 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.websockets = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.integrations = exports.inbox = exports.events = exports.developersCommons = exports.customers = exports.conversation = exports.commons = exports.auth = exports.assets = exports.appSettings = exports.analytics = exports.agents = exports.actions = void 0;
39
+ exports.voiceConversations = exports.voice = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.integrations = exports.inbox = exports.events = exports.developersCommons = exports.customers = exports.conversation = exports.commons = exports.assets = exports.appSettings = exports.analytics = exports.agents = exports.actions = void 0;
40
40
  exports.actions = __importStar(require("./actions"));
41
41
  __exportStar(require("./actions/client/requests"), exports);
42
42
  __exportStar(require("./actions/types"), exports);
@@ -50,8 +50,6 @@ __exportStar(require("./appSettings/client/requests"), exports);
50
50
  __exportStar(require("./appSettings/types"), exports);
51
51
  exports.assets = __importStar(require("./assets"));
52
52
  __exportStar(require("./assets/types"), exports);
53
- exports.auth = __importStar(require("./auth"));
54
- __exportStar(require("./auth/types"), exports);
55
53
  exports.commons = __importStar(require("./commons"));
56
54
  __exportStar(require("./commons/errors"), exports);
57
55
  __exportStar(require("./commons/types"), exports);
@@ -86,5 +84,7 @@ __exportStar(require("./triggers/types"), exports);
86
84
  exports.users = __importStar(require("./users"));
87
85
  __exportStar(require("./users/client/requests"), exports);
88
86
  __exportStar(require("./users/types"), exports);
89
- exports.websockets = __importStar(require("./websockets"));
90
- __exportStar(require("./websockets/types"), exports);
87
+ exports.voice = __importStar(require("./voice"));
88
+ __exportStar(require("./voice/types"), exports);
89
+ exports.voiceConversations = __importStar(require("./voiceConversations"));
90
+ __exportStar(require("./voiceConversations/types"), exports);
@@ -0,0 +1,21 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Filter criteria for searching segments.
4
+ */
5
+ export interface SegmentFilter {
6
+ /**
7
+ * Filter segments by name. Case-insensitive substring match.
8
+ * Empty string returns all results.
9
+ */
10
+ name?: string;
11
+ /**
12
+ * Filter segments by description. Case-insensitive substring match.
13
+ * Empty string returns all results.
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Filter segments by status. Returns segments matching any of the provided statuses.
18
+ * Empty list returns all non-deleted results.
19
+ */
20
+ statuses?: MavenAGI.SegmentStatus[];
21
+ }
@@ -22,4 +22,6 @@ import type * as MavenAGI from "../../../index";
22
22
  export interface SegmentRequest extends MavenAGI.SegmentBase {
23
23
  /** ID that uniquely identifies this segment */
24
24
  segmentId: MavenAGI.EntityIdBase;
25
+ /** Desired status for the segment. If omitted, defaults to ACTIVE. In the future this will become required, so specify ACTIVE or INACTIVE if possible. */
26
+ status?: MavenAGI.SegmentStatus;
25
27
  }
@@ -14,6 +14,7 @@ import type * as MavenAGI from "../../../index";
14
14
  * updatedAt: new Date("2025-01-15T12:30:00.000Z"),
15
15
  * referencedKnowledgeBaseCount: 5,
16
16
  * referencedDocumentCount: 34,
17
+ * referencedActionCount: 3,
17
18
  * status: MavenAGI.SegmentStatus.Active,
18
19
  * precondition: {
19
20
  * preconditionType: "group",
@@ -39,6 +40,8 @@ export interface SegmentResponse extends MavenAGI.SegmentBase {
39
40
  referencedKnowledgeBaseCount?: number;
40
41
  /** The number of active documents that reference this segment. */
41
42
  referencedDocumentCount?: number;
43
+ /** The number of active actions that reference this segment. */
44
+ referencedActionCount?: number;
42
45
  /**
43
46
  * The status of the segment.
44
47
  *
@@ -2,4 +2,6 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface SegmentsSearchRequest extends MavenAGI.BasePaginatedRequest {
3
3
  /** The field to sort by, defaults to created timestamp */
4
4
  sort?: MavenAGI.SegmentField;
5
+ /** The filter to apply to the segments. */
6
+ filter?: MavenAGI.SegmentFilter;
5
7
  }
@@ -1,5 +1,6 @@
1
1
  export * from "./SegmentBase";
2
2
  export * from "./SegmentField";
3
+ export * from "./SegmentFilter";
3
4
  export * from "./SegmentPatchRequest";
4
5
  export * from "./SegmentRequest";
5
6
  export * from "./SegmentResponse";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SegmentBase"), exports);
18
18
  __exportStar(require("./SegmentField"), exports);
19
+ __exportStar(require("./SegmentFilter"), exports);
19
20
  __exportStar(require("./SegmentPatchRequest"), exports);
20
21
  __exportStar(require("./SegmentRequest"), exports);
21
22
  __exportStar(require("./SegmentResponse"), exports);
@@ -0,0 +1,38 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import * as core from "../../../../core";
3
+ import * as MavenAGI from "../../../index";
4
+ export declare namespace Voice {
5
+ interface Options extends BaseClientOptions {
6
+ }
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class Voice {
11
+ protected readonly _options: Voice.Options;
12
+ constructor(_options: Voice.Options);
13
+ /**
14
+ * Creates a short-lived session token for authenticating voice connections.
15
+ *
16
+ * Supports two token types:
17
+ * - **webrtc**: A Twilio-compatible access token for browser-based WebRTC calls
18
+ * - **websocket**: An RS256 JWT for direct WebSocket connections to /v1/voice/conversations
19
+ *
20
+ * Session tokens are required before establishing any voice connection.
21
+ *
22
+ * @param {MavenAGI.VoiceSessionTokenRequest} request
23
+ * @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
24
+ *
25
+ * @throws {@link MavenAGI.NotFoundError}
26
+ * @throws {@link MavenAGI.BadRequestError}
27
+ * @throws {@link MavenAGI.ServerError}
28
+ *
29
+ * @example
30
+ * await client.voice.sessionToken({
31
+ * appUserId: "appUserId",
32
+ * type: "webrtc"
33
+ * })
34
+ */
35
+ sessionToken(request: MavenAGI.VoiceSessionTokenRequest, requestOptions?: Voice.RequestOptions): core.HttpResponsePromise<MavenAGI.VoiceSessionTokenResponse>;
36
+ private __sessionToken;
37
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
38
+ }
@@ -43,32 +43,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.Auth = void 0;
46
+ exports.Voice = void 0;
47
47
  const core = __importStar(require("../../../../core"));
48
48
  const headers_1 = require("../../../../core/headers");
49
49
  const environments = __importStar(require("../../../../environments"));
50
50
  const errors = __importStar(require("../../../../errors/index"));
51
51
  const serializers = __importStar(require("../../../../serialization/index"));
52
52
  const MavenAGI = __importStar(require("../../../index"));
53
- class Auth {
53
+ class Voice {
54
54
  constructor(_options) {
55
55
  this._options = _options;
56
56
  }
57
57
  /**
58
- * Creates a short-lived session token that can be used to authenticate
59
- * WebSocket connections. Session tokens are useful for client-side applications where
60
- * you don’t want to expose your API key.
58
+ * Creates a short-lived session token for authenticating voice connections.
61
59
  *
62
- * @param {MavenAGI.SessionTokenRequest} request
63
- * @param {Auth.RequestOptions} requestOptions - Request-specific configuration.
60
+ * Supports two token types:
61
+ * - **webrtc**: A Twilio-compatible access token for browser-based WebRTC calls
62
+ * - **websocket**: An RS256 JWT for direct WebSocket connections to /v1/voice/conversations
63
+ *
64
+ * Session tokens are required before establishing any voice connection.
65
+ *
66
+ * @param {MavenAGI.VoiceSessionTokenRequest} request
67
+ * @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
64
68
  *
65
69
  * @throws {@link MavenAGI.NotFoundError}
66
70
  * @throws {@link MavenAGI.BadRequestError}
67
71
  * @throws {@link MavenAGI.ServerError}
68
72
  *
69
73
  * @example
70
- * await client.auth.sessionToken({
71
- * ttlSeconds: 3600
74
+ * await client.voice.sessionToken({
75
+ * appUserId: "appUserId",
76
+ * type: "webrtc"
72
77
  * })
73
78
  */
74
79
  sessionToken(request, requestOptions) {
@@ -83,20 +88,20 @@ class Auth {
83
88
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
84
89
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
85
90
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
86
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/auth/session-token"),
91
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/voice/session-token"),
87
92
  method: "POST",
88
93
  headers: _headers,
89
94
  contentType: "application/json",
90
95
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
91
96
  requestType: "json",
92
- body: serializers.SessionTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
97
+ body: serializers.VoiceSessionTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
93
98
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
94
99
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
95
100
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
96
101
  });
97
102
  if (_response.ok) {
98
103
  return {
99
- data: serializers.SessionTokenResponse.parseOrThrow(_response.body, {
104
+ data: serializers.VoiceSessionTokenResponse.parseOrThrow(_response.body, {
100
105
  unrecognizedObjectKeys: "passthrough",
101
106
  allowUnrecognizedUnionMembers: true,
102
107
  allowUnrecognizedEnumValues: true,
@@ -144,7 +149,7 @@ class Auth {
144
149
  rawResponse: _response.rawResponse,
145
150
  });
146
151
  case "timeout":
147
- throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/auth/session-token.");
152
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/voice/session-token.");
148
153
  case "unknown":
149
154
  throw new errors.MavenAGIError({
150
155
  message: _response.error.errorMessage,
@@ -168,4 +173,4 @@ class Auth {
168
173
  });
169
174
  }
170
175
  }
171
- exports.Auth = Auth;
176
+ exports.Voice = Voice;
@@ -0,0 +1,17 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface VoiceSessionTokenRequest {
3
+ /** The end user identity for the voice session. */
4
+ appUserId: string;
5
+ /**
6
+ * The type of session token to generate.
7
+ * Use "webrtc" for browser-based calls via Twilio, or "websocket" for direct WebSocket connections.
8
+ */
9
+ type: MavenAGI.VoiceTokenType;
10
+ /**
11
+ * Arbitrary key-value metadata to associate with this session (e.g., conversationId, topic).
12
+ * For WebRTC tokens, this data is stored server-side and referenced by a secure ID
13
+ * encoded in the token identity, ensuring it cannot be tampered with by the client.
14
+ * For WebSocket tokens, clients can also pass data directly in the Config message.
15
+ */
16
+ customData?: Record<string, string>;
17
+ }
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface VoiceSessionTokenResponse {
3
+ /** Opaque JWT session token. Pass this in the Authorization header when connecting. */
4
+ token: string;
5
+ /** The identity string associated with this token (echoes appUserId). */
6
+ identity: string;
7
+ /** The type of token that was generated. */
8
+ type: MavenAGI.VoiceTokenType;
9
+ /** Time in seconds until the token expires. */
10
+ expiresIn: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ export declare const VoiceTokenType: {
2
+ readonly Webrtc: "webrtc";
3
+ readonly Websocket: "websocket";
4
+ };
5
+ export type VoiceTokenType = (typeof VoiceTokenType)[keyof typeof VoiceTokenType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceTokenType = void 0;
5
+ exports.VoiceTokenType = {
6
+ Webrtc: "webrtc",
7
+ Websocket: "websocket",
8
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./VoiceSessionTokenRequest";
2
+ export * from "./VoiceSessionTokenResponse";
3
+ export * from "./VoiceTokenType";
@@ -0,0 +1,19 @@
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("./VoiceSessionTokenRequest"), exports);
18
+ __exportStar(require("./VoiceSessionTokenResponse"), exports);
19
+ __exportStar(require("./VoiceTokenType"), exports);