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
@@ -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";
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./SessionTokenRequest"), exports);
18
- __exportStar(require("./SessionTokenResponse"), exports);
17
+ __exportStar(require("./VoiceSessionTokenRequest"), exports);
18
+ __exportStar(require("./VoiceSessionTokenResponse"), exports);
19
+ __exportStar(require("./VoiceTokenType"), exports);
@@ -1,6 +1,6 @@
1
1
  import type { BaseClientOptions } from "../../../../BaseClient";
2
- import { WebsocketsSocket } from "./Socket";
3
- export declare namespace Websockets {
2
+ import { VoiceConversationsSocket } from "./Socket";
3
+ export declare namespace VoiceConversations {
4
4
  interface Options extends BaseClientOptions {
5
5
  }
6
6
  interface ConnectArgs {
@@ -14,9 +14,9 @@ export declare namespace Websockets {
14
14
  reconnectAttempts?: number;
15
15
  }
16
16
  }
17
- export declare class Websockets {
18
- protected readonly _options: Websockets.Options;
19
- constructor(_options: Websockets.Options);
20
- connect(args: Websockets.ConnectArgs): Promise<WebsocketsSocket>;
17
+ export declare class VoiceConversations {
18
+ protected readonly _options: VoiceConversations.Options;
19
+ constructor(_options: VoiceConversations.Options);
20
+ connect(args: VoiceConversations.ConnectArgs): Promise<VoiceConversationsSocket>;
21
21
  protected _getAuthorizationHeader(): Promise<string | undefined>;
22
22
  }
@@ -43,12 +43,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.Websockets = void 0;
46
+ exports.VoiceConversations = 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 Socket_1 = require("./Socket");
51
- class Websockets {
51
+ class VoiceConversations {
52
52
  constructor(_options) {
53
53
  this._options = _options;
54
54
  }
@@ -62,13 +62,13 @@ class Websockets {
62
62
  }
63
63
  const _headers = (0, headers_1.mergeHeaders)((0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: args.Authorization }), headers);
64
64
  const socket = new core.ReconnectingWebSocket({
65
- url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/realtime/conversations"),
65
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/voice/conversations"),
66
66
  protocols: [],
67
67
  queryParameters: _queryParams,
68
68
  headers: _headers,
69
69
  options: { debug: debug !== null && debug !== void 0 ? debug : false, maxRetries: reconnectAttempts !== null && reconnectAttempts !== void 0 ? reconnectAttempts : 30 },
70
70
  });
71
- return new Socket_1.WebsocketsSocket({ socket });
71
+ return new Socket_1.VoiceConversationsSocket({ socket });
72
72
  });
73
73
  }
74
74
  _getAuthorizationHeader() {
@@ -86,4 +86,4 @@ class Websockets {
86
86
  });
87
87
  }
88
88
  }
89
- exports.Websockets = Websockets;
89
+ exports.VoiceConversations = VoiceConversations;
@@ -1,6 +1,6 @@
1
1
  import * as core from "../../../../core";
2
2
  import type * as MavenAGI from "../../../index";
3
- export declare namespace WebsocketsSocket {
3
+ export declare namespace VoiceConversationsSocket {
4
4
  interface Args {
5
5
  socket: core.ReconnectingWebSocket;
6
6
  }
@@ -12,14 +12,14 @@ export declare namespace WebsocketsSocket {
12
12
  error?: (error: Error) => void;
13
13
  };
14
14
  }
15
- export declare class WebsocketsSocket {
15
+ export declare class VoiceConversationsSocket {
16
16
  readonly socket: core.ReconnectingWebSocket;
17
- protected readonly eventHandlers: WebsocketsSocket.EventHandlers;
17
+ protected readonly eventHandlers: VoiceConversationsSocket.EventHandlers;
18
18
  private handleOpen;
19
19
  private handleMessage;
20
20
  private handleClose;
21
21
  private handleError;
22
- constructor(args: WebsocketsSocket.Args);
22
+ constructor(args: VoiceConversationsSocket.Args);
23
23
  /** The current state of the connection; this is one of the readyState constants. */
24
24
  get readyState(): number;
25
25
  /**
@@ -32,11 +32,11 @@ export declare class WebsocketsSocket {
32
32
  * });
33
33
  * ```
34
34
  */
35
- on<T extends keyof WebsocketsSocket.EventHandlers>(event: T, callback: WebsocketsSocket.EventHandlers[T]): void;
35
+ on<T extends keyof VoiceConversationsSocket.EventHandlers>(event: T, callback: VoiceConversationsSocket.EventHandlers[T]): void;
36
36
  sendConfig(message: MavenAGI.Config): void;
37
37
  sendUserAudioChunk(message: MavenAGI.UserAudioChunk): void;
38
38
  /** Connect to the websocket and register event handlers. */
39
- connect(): WebsocketsSocket;
39
+ connect(): VoiceConversationsSocket;
40
40
  /** Close the websocket and unregister event handlers. */
41
41
  close(): void;
42
42
  /** Returns a promise that resolves when the websocket is open. */
@@ -43,13 +43,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.WebsocketsSocket = void 0;
46
+ exports.VoiceConversationsSocket = void 0;
47
47
  const core = __importStar(require("../../../../core"));
48
48
  const json_1 = require("../../../../core/json");
49
49
  const serializers = __importStar(require("../../../../serialization/index"));
50
- const Config_1 = require("../../../../serialization/resources/websockets/types/Config");
51
- const UserAudioChunk_1 = require("../../../../serialization/resources/websockets/types/UserAudioChunk");
52
- class WebsocketsSocket {
50
+ const Config_1 = require("../../../../serialization/resources/voiceConversations/types/Config");
51
+ const UserAudioChunk_1 = require("../../../../serialization/resources/voiceConversations/types/UserAudioChunk");
52
+ class VoiceConversationsSocket {
53
53
  constructor(args) {
54
54
  this.eventHandlers = {};
55
55
  this.handleOpen = () => {
@@ -59,7 +59,7 @@ class WebsocketsSocket {
59
59
  this.handleMessage = (event) => {
60
60
  var _a, _b, _c, _d;
61
61
  const data = (0, json_1.fromJson)(event.data);
62
- const parsedResponse = serializers.WebsocketsSocketResponse.parse(data, {
62
+ const parsedResponse = serializers.VoiceConversationsSocketResponse.parse(data, {
63
63
  unrecognizedObjectKeys: "passthrough",
64
64
  allowUnrecognizedUnionMembers: true,
65
65
  allowUnrecognizedEnumValues: true,
@@ -169,4 +169,4 @@ class WebsocketsSocket {
169
169
  this.socket.send(payload);
170
170
  }
171
171
  }
172
- exports.WebsocketsSocket = WebsocketsSocket;
172
+ exports.VoiceConversationsSocket = VoiceConversationsSocket;
@@ -1,6 +1,6 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  /**
3
- * Audio chunk to send into the conversation.
3
+ * Audio chunk from the agent.
4
4
  */
5
5
  export interface AgentAudioChunk extends MavenAGI.ServerEventBase {
6
6
  type: "agent_audio_chunk";
@@ -4,9 +4,9 @@ import type * as MavenAGI from "../../../index";
4
4
  */
5
5
  export interface Config {
6
6
  type: "config";
7
- /** The user text to send into the conversation. */
7
+ /** The input audio format from the client. */
8
8
  inputFormat: MavenAGI.AudioFormat;
9
- /** The user text to send into the conversation. */
9
+ /** The output audio format to send to the client. */
10
10
  outputFormat: MavenAGI.AudioFormat;
11
11
  /** The conversation ID which was created prior to starting this conversation. */
12
12
  conversationId: string;
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export interface UserAudioChunk {
5
5
  type: "user_audio_chunk";
6
- /** Base64-encoded AI audio data */
6
+ /** Base64-encoded audio data */
7
7
  data: string;
8
8
  }
package/dist/Client.d.ts CHANGED
@@ -3,7 +3,6 @@ import { Agents } from "./api/resources/agents/client/Client";
3
3
  import { Analytics } from "./api/resources/analytics/client/Client";
4
4
  import { AppSettings } from "./api/resources/appSettings/client/Client";
5
5
  import { Assets } from "./api/resources/assets/client/Client";
6
- import { Auth } from "./api/resources/auth/client/Client";
7
6
  import { Conversation } from "./api/resources/conversation/client/Client";
8
7
  import { Customers } from "./api/resources/customers/client/Client";
9
8
  import { Events } from "./api/resources/events/client/Client";
@@ -15,7 +14,8 @@ import { Segments } from "./api/resources/segments/client/Client";
15
14
  import { Translations } from "./api/resources/translations/client/Client";
16
15
  import { Triggers } from "./api/resources/triggers/client/Client";
17
16
  import { Users } from "./api/resources/users/client/Client";
18
- import { Websockets } from "./api/resources/websockets/client/Client";
17
+ import { Voice } from "./api/resources/voice/client/Client";
18
+ import { VoiceConversations } from "./api/resources/voiceConversations/client/Client";
19
19
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
20
20
  export declare namespace MavenAGIClient {
21
21
  interface Options extends BaseClientOptions {
@@ -30,7 +30,6 @@ export declare class MavenAGIClient {
30
30
  protected _analytics: Analytics | undefined;
31
31
  protected _appSettings: AppSettings | undefined;
32
32
  protected _assets: Assets | undefined;
33
- protected _auth: Auth | undefined;
34
33
  protected _conversation: Conversation | undefined;
35
34
  protected _customers: Customers | undefined;
36
35
  protected _events: Events | undefined;
@@ -42,14 +41,14 @@ export declare class MavenAGIClient {
42
41
  protected _translations: Translations | undefined;
43
42
  protected _triggers: Triggers | undefined;
44
43
  protected _users: Users | undefined;
45
- protected _websockets: Websockets | undefined;
44
+ protected _voiceConversations: VoiceConversations | undefined;
45
+ protected _voice: Voice | undefined;
46
46
  constructor(_options: MavenAGIClient.Options);
47
47
  get actions(): Actions;
48
48
  get agents(): Agents;
49
49
  get analytics(): Analytics;
50
50
  get appSettings(): AppSettings;
51
51
  get assets(): Assets;
52
- get auth(): Auth;
53
52
  get conversation(): Conversation;
54
53
  get customers(): Customers;
55
54
  get events(): Events;
@@ -61,5 +60,6 @@ export declare class MavenAGIClient {
61
60
  get translations(): Translations;
62
61
  get triggers(): Triggers;
63
62
  get users(): Users;
64
- get websockets(): Websockets;
63
+ get voiceConversations(): VoiceConversations;
64
+ get voice(): Voice;
65
65
  }
package/dist/Client.js CHANGED
@@ -40,19 +40,19 @@ const Client_2 = require("./api/resources/agents/client/Client");
40
40
  const Client_3 = require("./api/resources/analytics/client/Client");
41
41
  const Client_4 = require("./api/resources/appSettings/client/Client");
42
42
  const Client_5 = require("./api/resources/assets/client/Client");
43
- const Client_6 = require("./api/resources/auth/client/Client");
44
- const Client_7 = require("./api/resources/conversation/client/Client");
45
- const Client_8 = require("./api/resources/customers/client/Client");
46
- const Client_9 = require("./api/resources/events/client/Client");
47
- const Client_10 = require("./api/resources/inbox/client/Client");
48
- const Client_11 = require("./api/resources/integrations/client/Client");
49
- const Client_12 = require("./api/resources/knowledge/client/Client");
50
- const Client_13 = require("./api/resources/organizations/client/Client");
51
- const Client_14 = require("./api/resources/segments/client/Client");
52
- const Client_15 = require("./api/resources/translations/client/Client");
53
- const Client_16 = require("./api/resources/triggers/client/Client");
54
- const Client_17 = require("./api/resources/users/client/Client");
55
- const Client_18 = require("./api/resources/websockets/client/Client");
43
+ const Client_6 = require("./api/resources/conversation/client/Client");
44
+ const Client_7 = require("./api/resources/customers/client/Client");
45
+ const Client_8 = require("./api/resources/events/client/Client");
46
+ const Client_9 = require("./api/resources/inbox/client/Client");
47
+ const Client_10 = require("./api/resources/integrations/client/Client");
48
+ const Client_11 = require("./api/resources/knowledge/client/Client");
49
+ const Client_12 = require("./api/resources/organizations/client/Client");
50
+ const Client_13 = require("./api/resources/segments/client/Client");
51
+ const Client_14 = require("./api/resources/translations/client/Client");
52
+ const Client_15 = require("./api/resources/triggers/client/Client");
53
+ const Client_16 = require("./api/resources/users/client/Client");
54
+ const Client_17 = require("./api/resources/voice/client/Client");
55
+ const Client_18 = require("./api/resources/voiceConversations/client/Client");
56
56
  const core = __importStar(require("./core"));
57
57
  const headers_1 = require("./core/headers");
58
58
  class MavenAGIClient {
@@ -62,8 +62,8 @@ class MavenAGIClient {
62
62
  "X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "mavenagi",
65
- "X-Fern-SDK-Version": "1.2.20",
66
- "User-Agent": "mavenagi/1.2.20",
65
+ "X-Fern-SDK-Version": "1.2.22",
66
+ "User-Agent": "mavenagi/1.2.22",
67
67
  "X-Fern-Runtime": core.RUNTIME.type,
68
68
  "X-Fern-Runtime-Version": core.RUNTIME.version,
69
69
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -88,57 +88,57 @@ class MavenAGIClient {
88
88
  var _a;
89
89
  return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_5.Assets(this._options)));
90
90
  }
91
- get auth() {
92
- var _a;
93
- return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_6.Auth(this._options)));
94
- }
95
91
  get conversation() {
96
92
  var _a;
97
- return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_7.Conversation(this._options)));
93
+ return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_6.Conversation(this._options)));
98
94
  }
99
95
  get customers() {
100
96
  var _a;
101
- return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_8.Customers(this._options)));
97
+ return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_7.Customers(this._options)));
102
98
  }
103
99
  get events() {
104
100
  var _a;
105
- return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_9.Events(this._options)));
101
+ return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_8.Events(this._options)));
106
102
  }
107
103
  get inbox() {
108
104
  var _a;
109
- return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_10.Inbox(this._options)));
105
+ return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_9.Inbox(this._options)));
110
106
  }
111
107
  get integrations() {
112
108
  var _a;
113
- return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_11.Integrations(this._options)));
109
+ return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_10.Integrations(this._options)));
114
110
  }
115
111
  get knowledge() {
116
112
  var _a;
117
- return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_12.Knowledge(this._options)));
113
+ return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_11.Knowledge(this._options)));
118
114
  }
119
115
  get organizations() {
120
116
  var _a;
121
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_13.Organizations(this._options)));
117
+ return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_12.Organizations(this._options)));
122
118
  }
123
119
  get segments() {
124
120
  var _a;
125
- return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_14.Segments(this._options)));
121
+ return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_13.Segments(this._options)));
126
122
  }
127
123
  get translations() {
128
124
  var _a;
129
- return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_15.Translations(this._options)));
125
+ return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_14.Translations(this._options)));
130
126
  }
131
127
  get triggers() {
132
128
  var _a;
133
- return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_16.Triggers(this._options)));
129
+ return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_15.Triggers(this._options)));
134
130
  }
135
131
  get users() {
136
132
  var _a;
137
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.Users(this._options)));
133
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_16.Users(this._options)));
134
+ }
135
+ get voiceConversations() {
136
+ var _a;
137
+ return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_18.VoiceConversations(this._options)));
138
138
  }
139
- get websockets() {
139
+ get voice() {
140
140
  var _a;
141
- return ((_a = this._websockets) !== null && _a !== void 0 ? _a : (this._websockets = new Client_18.Websockets(this._options)));
141
+ return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_17.Voice(this._options)));
142
142
  }
143
143
  }
144
144
  exports.MavenAGIClient = MavenAGIClient;
@@ -15,6 +15,7 @@ export interface BaseAttachment {
15
15
  * - application/msword
16
16
  * - application/vnd.ms-excel
17
17
  * - application/vnd.ms-powerpoint
18
+ * - application/x-subrip
18
19
  * - audio/aac
19
20
  * - audio/mpeg
20
21
  * - audio/mp4
@@ -10,4 +10,6 @@ export interface InboxItemBase {
10
10
  status: MavenAGI.InboxItemStatus;
11
11
  /** Severity of the inbox item. */
12
12
  severity: MavenAGI.InboxItemSeverity;
13
+ /** A set of tags associated with the inbox item that are used for filtering. */
14
+ tags?: Set<string>;
13
15
  }
@@ -211,23 +211,6 @@ export declare class Conversation {
211
211
  */
212
212
  askStream(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<core.Stream<MavenAGI.StreamResponse>>;
213
213
  private __askStream;
214
- /**
215
- * Generate a structured object response based on a provided schema and user prompt with a streaming response.
216
- * The response will be sent as a stream of events containing text, start, and end events.
217
- * The text portions of stream responses should be concatenated to form the full response text.
218
- *
219
- * If the user question and object response already exist, they will be reused and not updated.
220
- *
221
- * Concurrency Behavior:
222
- * - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
223
- * - 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.
224
- *
225
- * Known Limitations:
226
- * - Schema enforcement is best-effort and may not guarantee exact conformity.
227
- * - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
228
- */
229
- askObjectStream(conversationId: string, request: MavenAGI.AskObjectRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<core.Stream<MavenAGI.ObjectStreamResponse>>;
230
- private __askObjectStream;
231
214
  /**
232
215
  * Uses an LLM flow to categorize the conversation. Experimental.
233
216
  *