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
@@ -10,8 +10,6 @@ export * as appSettings from "./appSettings";
10
10
  export * from "./appSettings/types";
11
11
  export * as assets from "./assets";
12
12
  export * from "./assets/types";
13
- export * as auth from "./auth";
14
- export * from "./auth/types";
15
13
  export * as commons from "./commons";
16
14
  export * from "./commons/types";
17
15
  export * as conversation from "./conversation";
@@ -21,6 +19,7 @@ export * from "./customers/types";
21
19
  export * as developersCommons from "./developersCommons";
22
20
  export * from "./developersCommons/types";
23
21
  export * as inbox from "./inbox";
22
+ export * from "./inbox/client/requests";
24
23
  export * from "./inbox/types";
25
24
  export * as integrations from "./integrations";
26
25
  export * from "./integrations/types";
@@ -37,6 +36,8 @@ export * as triggers from "./triggers";
37
36
  export * from "./triggers/types";
38
37
  export * as users from "./users";
39
38
  export * from "./users/types";
40
- export * as websockets from "./websockets";
41
- export * from "./websockets/client/socket";
42
- export * from "./websockets/types";
39
+ export * as voice from "./voice";
40
+ export * from "./voice/types";
41
+ export * as voiceConversations from "./voiceConversations";
42
+ export * from "./voiceConversations/client/socket";
43
+ 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.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.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);
@@ -49,8 +49,6 @@ exports.appSettings = __importStar(require("./appSettings"));
49
49
  __exportStar(require("./appSettings/types"), exports);
50
50
  exports.assets = __importStar(require("./assets"));
51
51
  __exportStar(require("./assets/types"), exports);
52
- exports.auth = __importStar(require("./auth"));
53
- __exportStar(require("./auth/types"), exports);
54
52
  exports.commons = __importStar(require("./commons"));
55
53
  __exportStar(require("./commons/types"), exports);
56
54
  exports.conversation = __importStar(require("./conversation"));
@@ -60,6 +58,7 @@ __exportStar(require("./customers/types"), exports);
60
58
  exports.developersCommons = __importStar(require("./developersCommons"));
61
59
  __exportStar(require("./developersCommons/types"), exports);
62
60
  exports.inbox = __importStar(require("./inbox"));
61
+ __exportStar(require("./inbox/client/requests"), exports);
63
62
  __exportStar(require("./inbox/types"), exports);
64
63
  exports.integrations = __importStar(require("./integrations"));
65
64
  __exportStar(require("./integrations/types"), exports);
@@ -76,6 +75,8 @@ exports.triggers = __importStar(require("./triggers"));
76
75
  __exportStar(require("./triggers/types"), exports);
77
76
  exports.users = __importStar(require("./users"));
78
77
  __exportStar(require("./users/types"), exports);
79
- exports.websockets = __importStar(require("./websockets"));
80
- __exportStar(require("./websockets/client/socket"), exports);
81
- __exportStar(require("./websockets/types"), exports);
78
+ exports.voice = __importStar(require("./voice"));
79
+ __exportStar(require("./voice/types"), exports);
80
+ exports.voiceConversations = __importStar(require("./voiceConversations"));
81
+ __exportStar(require("./voiceConversations/client/socket"), exports);
82
+ __exportStar(require("./voiceConversations/types"), exports);
@@ -0,0 +1,12 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { SegmentStatus } from "./SegmentStatus";
5
+ export declare const SegmentFilter: core.serialization.ObjectSchema<serializers.SegmentFilter.Raw, MavenAGI.SegmentFilter>;
6
+ export declare namespace SegmentFilter {
7
+ interface Raw {
8
+ name?: string | null;
9
+ description?: string | null;
10
+ statuses?: SegmentStatus.Raw[] | null;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SegmentFilter = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const SegmentStatus_1 = require("./SegmentStatus");
40
+ exports.SegmentFilter = core.serialization.object({
41
+ name: core.serialization.string().optional(),
42
+ description: core.serialization.string().optional(),
43
+ statuses: core.serialization.list(SegmentStatus_1.SegmentStatus).optional(),
44
+ });
@@ -3,9 +3,11 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  import { EntityIdBase } from "../../commons/types/EntityIdBase";
5
5
  import { SegmentBase } from "./SegmentBase";
6
+ import { SegmentStatus } from "./SegmentStatus";
6
7
  export declare const SegmentRequest: core.serialization.ObjectSchema<serializers.SegmentRequest.Raw, MavenAGI.SegmentRequest>;
7
8
  export declare namespace SegmentRequest {
8
9
  interface Raw extends SegmentBase.Raw {
9
10
  segmentId: EntityIdBase.Raw;
11
+ status?: SegmentStatus.Raw | null;
10
12
  }
11
13
  }
@@ -38,8 +38,10 @@ exports.SegmentRequest = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
40
40
  const SegmentBase_1 = require("./SegmentBase");
41
+ const SegmentStatus_1 = require("./SegmentStatus");
41
42
  exports.SegmentRequest = core.serialization
42
43
  .object({
43
44
  segmentId: EntityIdBase_1.EntityIdBase,
45
+ status: SegmentStatus_1.SegmentStatus.optional(),
44
46
  })
45
47
  .extend(SegmentBase_1.SegmentBase);
@@ -12,6 +12,7 @@ export declare namespace SegmentResponse {
12
12
  updatedAt: string;
13
13
  referencedKnowledgeBaseCount?: number | null;
14
14
  referencedDocumentCount?: number | null;
15
+ referencedActionCount?: number | null;
15
16
  status: SegmentStatus.Raw;
16
17
  }
17
18
  }
@@ -46,6 +46,7 @@ exports.SegmentResponse = core.serialization
46
46
  updatedAt: core.serialization.date(),
47
47
  referencedKnowledgeBaseCount: core.serialization.number().optional(),
48
48
  referencedDocumentCount: core.serialization.number().optional(),
49
+ referencedActionCount: core.serialization.number().optional(),
49
50
  status: SegmentStatus_1.SegmentStatus,
50
51
  })
51
52
  .extend(SegmentBase_1.SegmentBase);
@@ -3,9 +3,11 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  import { BasePaginatedRequest } from "../../commons/types/BasePaginatedRequest";
5
5
  import { SegmentField } from "./SegmentField";
6
+ import { SegmentFilter } from "./SegmentFilter";
6
7
  export declare const SegmentsSearchRequest: core.serialization.ObjectSchema<serializers.SegmentsSearchRequest.Raw, MavenAGI.SegmentsSearchRequest>;
7
8
  export declare namespace SegmentsSearchRequest {
8
9
  interface Raw extends BasePaginatedRequest.Raw {
9
10
  sort?: SegmentField.Raw | null;
11
+ filter?: SegmentFilter.Raw | null;
10
12
  }
11
13
  }
@@ -38,8 +38,10 @@ exports.SegmentsSearchRequest = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const BasePaginatedRequest_1 = require("../../commons/types/BasePaginatedRequest");
40
40
  const SegmentField_1 = require("./SegmentField");
41
+ const SegmentFilter_1 = require("./SegmentFilter");
41
42
  exports.SegmentsSearchRequest = core.serialization
42
43
  .object({
43
44
  sort: SegmentField_1.SegmentField.optional(),
45
+ filter: SegmentFilter_1.SegmentFilter.optional(),
44
46
  })
45
47
  .extend(BasePaginatedRequest_1.BasePaginatedRequest);
@@ -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,12 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { VoiceTokenType } from "./VoiceTokenType";
5
+ export declare const VoiceSessionTokenRequest: core.serialization.ObjectSchema<serializers.VoiceSessionTokenRequest.Raw, MavenAGI.VoiceSessionTokenRequest>;
6
+ export declare namespace VoiceSessionTokenRequest {
7
+ interface Raw {
8
+ appUserId: string;
9
+ type: VoiceTokenType.Raw;
10
+ customData?: Record<string, string> | null;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.VoiceSessionTokenRequest = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const VoiceTokenType_1 = require("./VoiceTokenType");
40
+ exports.VoiceSessionTokenRequest = core.serialization.object({
41
+ appUserId: core.serialization.string(),
42
+ type: VoiceTokenType_1.VoiceTokenType,
43
+ customData: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
44
+ });
@@ -0,0 +1,13 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { VoiceTokenType } from "./VoiceTokenType";
5
+ export declare const VoiceSessionTokenResponse: core.serialization.ObjectSchema<serializers.VoiceSessionTokenResponse.Raw, MavenAGI.VoiceSessionTokenResponse>;
6
+ export declare namespace VoiceSessionTokenResponse {
7
+ interface Raw {
8
+ token: string;
9
+ identity: string;
10
+ type: VoiceTokenType.Raw;
11
+ expiresIn: number;
12
+ }
13
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.VoiceSessionTokenResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const VoiceTokenType_1 = require("./VoiceTokenType");
40
+ exports.VoiceSessionTokenResponse = core.serialization.object({
41
+ token: core.serialization.string(),
42
+ identity: core.serialization.string(),
43
+ type: VoiceTokenType_1.VoiceTokenType,
44
+ expiresIn: core.serialization.number(),
45
+ });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const VoiceTokenType: core.serialization.Schema<serializers.VoiceTokenType.Raw, MavenAGI.VoiceTokenType>;
5
+ export declare namespace VoiceTokenType {
6
+ type Raw = "webrtc" | "websocket";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.VoiceTokenType = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.VoiceTokenType = core.serialization.enum_(["webrtc", "websocket"]);
@@ -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);
@@ -9,7 +9,7 @@ import { Error_ } from "../../types/Error_";
9
9
  import { UserFinishedSpeaking } from "../../types/UserFinishedSpeaking";
10
10
  import { UserStartedSpeaking } from "../../types/UserStartedSpeaking";
11
11
  import { UserTranscript } from "../../types/UserTranscript";
12
- export declare const WebsocketsSocketResponse: core.serialization.Schema<serializers.WebsocketsSocketResponse.Raw, MavenAGI.ConversationReady | MavenAGI.AgentAudioChunk | MavenAGI.UserTranscript | MavenAGI.AgentTranscript | MavenAGI.ConversationEnded | MavenAGI.UserStartedSpeaking | MavenAGI.UserFinishedSpeaking | MavenAGI.Error_>;
13
- export declare namespace WebsocketsSocketResponse {
12
+ export declare const VoiceConversationsSocketResponse: core.serialization.Schema<serializers.VoiceConversationsSocketResponse.Raw, MavenAGI.ConversationReady | MavenAGI.AgentAudioChunk | MavenAGI.UserTranscript | MavenAGI.AgentTranscript | MavenAGI.ConversationEnded | MavenAGI.UserStartedSpeaking | MavenAGI.UserFinishedSpeaking | MavenAGI.Error_>;
13
+ export declare namespace VoiceConversationsSocketResponse {
14
14
  type Raw = ConversationReady.Raw | AgentAudioChunk.Raw | UserTranscript.Raw | AgentTranscript.Raw | ConversationEnded.Raw | UserStartedSpeaking.Raw | UserFinishedSpeaking.Raw | Error_.Raw;
15
15
  }
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.WebsocketsSocketResponse = void 0;
37
+ exports.VoiceConversationsSocketResponse = void 0;
38
38
  const core = __importStar(require("../../../../../core"));
39
39
  const AgentAudioChunk_1 = require("../../types/AgentAudioChunk");
40
40
  const AgentTranscript_1 = require("../../types/AgentTranscript");
@@ -44,7 +44,7 @@ const Error_1 = require("../../types/Error_");
44
44
  const UserFinishedSpeaking_1 = require("../../types/UserFinishedSpeaking");
45
45
  const UserStartedSpeaking_1 = require("../../types/UserStartedSpeaking");
46
46
  const UserTranscript_1 = require("../../types/UserTranscript");
47
- exports.WebsocketsSocketResponse = core.serialization.undiscriminatedUnion([
47
+ exports.VoiceConversationsSocketResponse = core.serialization.undiscriminatedUnion([
48
48
  ConversationReady_1.ConversationReady,
49
49
  AgentAudioChunk_1.AgentAudioChunk,
50
50
  UserTranscript_1.UserTranscript,
@@ -0,0 +1 @@
1
+ export { VoiceConversationsSocketResponse } from "./VoiceConversationsSocketResponse";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceConversationsSocketResponse = void 0;
4
+ var VoiceConversationsSocketResponse_1 = require("./VoiceConversationsSocketResponse");
5
+ Object.defineProperty(exports, "VoiceConversationsSocketResponse", { enumerable: true, get: function () { return VoiceConversationsSocketResponse_1.VoiceConversationsSocketResponse; } });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.20";
1
+ export declare const SDK_VERSION = "1.2.22";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.20";
4
+ exports.SDK_VERSION = "1.2.22";
@@ -1,33 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
- import * as core from "../../../../core";
3
- import * as MavenAGI from "../../../index";
4
- export declare namespace Auth {
5
- interface Options extends BaseClientOptions {
6
- }
7
- interface RequestOptions extends BaseRequestOptions {
8
- }
9
- }
10
- export declare class Auth {
11
- protected readonly _options: Auth.Options;
12
- constructor(_options: Auth.Options);
13
- /**
14
- * Creates a short-lived session token that can be used to authenticate
15
- * WebSocket connections. Session tokens are useful for client-side applications where
16
- * you don’t want to expose your API key.
17
- *
18
- * @param {MavenAGI.SessionTokenRequest} request
19
- * @param {Auth.RequestOptions} requestOptions - Request-specific configuration.
20
- *
21
- * @throws {@link MavenAGI.NotFoundError}
22
- * @throws {@link MavenAGI.BadRequestError}
23
- * @throws {@link MavenAGI.ServerError}
24
- *
25
- * @example
26
- * await client.auth.sessionToken({
27
- * ttlSeconds: 3600
28
- * })
29
- */
30
- sessionToken(request: MavenAGI.SessionTokenRequest, requestOptions?: Auth.RequestOptions): core.HttpResponsePromise<MavenAGI.SessionTokenResponse>;
31
- private __sessionToken;
32
- protected _getAuthorizationHeader(): Promise<string | undefined>;
33
- }
@@ -1,3 +0,0 @@
1
- export interface SessionTokenRequest {
2
- ttlSeconds: number;
3
- }
@@ -1,6 +0,0 @@
1
- export interface SessionTokenResponse {
2
- /** The session token to use for authentication. */
3
- sessionToken: string;
4
- /** When the session token expires. */
5
- expiresAt: Date;
6
- }
@@ -1,2 +0,0 @@
1
- export * from "./SessionTokenRequest";
2
- export * from "./SessionTokenResponse";
@@ -1,5 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export interface AskObjectRequest extends MavenAGI.AskRequest {
3
- /** JSON schema string defining the expected object shape. */
4
- schema: string;
5
- }
@@ -1,13 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export type ObjectStreamResponse = MavenAGI.ObjectStreamResponse.Text | MavenAGI.ObjectStreamResponse.Start | MavenAGI.ObjectStreamResponse.End;
3
- export declare namespace ObjectStreamResponse {
4
- interface Text extends MavenAGI.AskStreamTextEvent {
5
- eventType: "text";
6
- }
7
- interface Start extends MavenAGI.AskStreamStartEvent {
8
- eventType: "start";
9
- }
10
- interface End extends MavenAGI.AskStreamEndEvent {
11
- eventType: "end";
12
- }
13
- }
@@ -1,33 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
- import * as core from "../../../../core";
3
- import * as MavenAGI from "../../../index";
4
- export declare namespace Auth {
5
- interface Options extends BaseClientOptions {
6
- }
7
- interface RequestOptions extends BaseRequestOptions {
8
- }
9
- }
10
- export declare class Auth {
11
- protected readonly _options: Auth.Options;
12
- constructor(_options: Auth.Options);
13
- /**
14
- * Creates a short-lived session token that can be used to authenticate
15
- * WebSocket connections. Session tokens are useful for client-side applications where
16
- * you don’t want to expose your API key.
17
- *
18
- * @param {MavenAGI.SessionTokenRequest} request
19
- * @param {Auth.RequestOptions} requestOptions - Request-specific configuration.
20
- *
21
- * @throws {@link MavenAGI.NotFoundError}
22
- * @throws {@link MavenAGI.BadRequestError}
23
- * @throws {@link MavenAGI.ServerError}
24
- *
25
- * @example
26
- * await client.auth.sessionToken({
27
- * ttlSeconds: 3600
28
- * })
29
- */
30
- sessionToken(request: MavenAGI.SessionTokenRequest, requestOptions?: Auth.RequestOptions): core.HttpResponsePromise<MavenAGI.SessionTokenResponse>;
31
- private __sessionToken;
32
- protected _getAuthorizationHeader(): Promise<string | undefined>;
33
- }
@@ -1,3 +0,0 @@
1
- export interface SessionTokenRequest {
2
- ttlSeconds: number;
3
- }
@@ -1,6 +0,0 @@
1
- export interface SessionTokenResponse {
2
- /** The session token to use for authentication. */
3
- sessionToken: string;
4
- /** When the session token expires. */
5
- expiresAt: Date;
6
- }
@@ -1,2 +0,0 @@
1
- export * from "./SessionTokenRequest";
2
- export * from "./SessionTokenResponse";
@@ -1,18 +0,0 @@
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("./SessionTokenRequest"), exports);
18
- __exportStar(require("./SessionTokenResponse"), exports);
@@ -1,5 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export interface AskObjectRequest extends MavenAGI.AskRequest {
3
- /** JSON schema string defining the expected object shape. */
4
- schema: string;
5
- }
@@ -1,13 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export type ObjectStreamResponse = MavenAGI.ObjectStreamResponse.Text | MavenAGI.ObjectStreamResponse.Start | MavenAGI.ObjectStreamResponse.End;
3
- export declare namespace ObjectStreamResponse {
4
- interface Text extends MavenAGI.AskStreamTextEvent {
5
- eventType: "text";
6
- }
7
- interface Start extends MavenAGI.AskStreamStartEvent {
8
- eventType: "start";
9
- }
10
- interface End extends MavenAGI.AskStreamEndEvent {
11
- eventType: "end";
12
- }
13
- }