mavenagi 1.2.10 → 1.2.11

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 (296) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +32 -22
  3. package/api/resources/auth/client/Client.d.ts +33 -0
  4. package/api/resources/auth/client/Client.js +171 -0
  5. package/api/resources/auth/client/index.d.ts +1 -0
  6. package/api/resources/auth/client/index.js +2 -0
  7. package/api/resources/auth/index.d.ts +2 -0
  8. package/api/resources/auth/index.js +18 -0
  9. package/api/resources/auth/types/SessionTokenRequest.d.ts +3 -0
  10. package/api/resources/auth/types/SessionTokenRequest.js +3 -0
  11. package/api/resources/auth/types/SessionTokenResponse.d.ts +6 -0
  12. package/api/resources/auth/types/SessionTokenResponse.js +3 -0
  13. package/api/resources/auth/types/index.d.ts +2 -0
  14. package/api/resources/auth/types/index.js +18 -0
  15. package/api/resources/commons/types/ActionBase.d.ts +1 -11
  16. package/api/resources/commons/types/ActionParameterType.d.ts +3 -0
  17. package/api/resources/commons/types/ActionParameterType.js +3 -0
  18. package/api/resources/commons/types/ActionProperties.d.ts +13 -0
  19. package/api/resources/commons/types/ActionProperties.js +3 -0
  20. package/api/resources/commons/types/ActionUser.d.ts +46 -0
  21. package/api/resources/commons/types/ActionUser.js +3 -0
  22. package/api/resources/commons/types/EntityType.d.ts +1 -0
  23. package/api/resources/commons/types/EntityType.js +1 -0
  24. package/api/resources/commons/types/EventField.d.ts +1 -0
  25. package/api/resources/commons/types/EventField.js +1 -0
  26. package/api/resources/commons/types/UserEvent.d.ts +2 -0
  27. package/api/resources/commons/types/index.d.ts +3 -0
  28. package/api/resources/commons/types/index.js +3 -0
  29. package/api/resources/index.d.ts +4 -0
  30. package/api/resources/index.js +5 -1
  31. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -1
  32. package/api/resources/triggers/types/index.d.ts +0 -1
  33. package/api/resources/triggers/types/index.js +0 -1
  34. package/api/resources/websockets/client/Client.d.ts +22 -0
  35. package/api/resources/websockets/client/Client.js +89 -0
  36. package/api/resources/websockets/client/Socket.d.ts +48 -0
  37. package/api/resources/websockets/client/Socket.js +172 -0
  38. package/api/resources/websockets/client/index.d.ts +1 -0
  39. package/api/resources/websockets/client/index.js +2 -0
  40. package/api/resources/websockets/index.d.ts +2 -0
  41. package/api/resources/websockets/index.js +18 -0
  42. package/api/resources/websockets/types/AgentAudioChunk.d.ts +9 -0
  43. package/api/resources/websockets/types/AgentAudioChunk.js +3 -0
  44. package/api/resources/websockets/types/AgentTranscript.d.ts +9 -0
  45. package/api/resources/websockets/types/AgentTranscript.js +3 -0
  46. package/api/resources/websockets/types/AudioFormat.d.ts +7 -0
  47. package/api/resources/websockets/types/AudioFormat.js +10 -0
  48. package/api/resources/websockets/types/Config.d.ts +15 -0
  49. package/api/resources/websockets/types/Config.js +3 -0
  50. package/api/resources/websockets/types/ConversationEnded.d.ts +7 -0
  51. package/api/resources/websockets/types/ConversationEnded.js +3 -0
  52. package/api/resources/websockets/types/ConversationReady.d.ts +6 -0
  53. package/api/resources/websockets/types/ConversationReady.js +3 -0
  54. package/api/resources/websockets/types/Error_.d.ts +9 -0
  55. package/api/resources/websockets/types/Error_.js +3 -0
  56. package/api/resources/websockets/types/ServerEventBase.d.ts +6 -0
  57. package/api/resources/websockets/types/ServerEventBase.js +3 -0
  58. package/api/resources/websockets/types/UserAudioChunk.d.ts +8 -0
  59. package/api/resources/websockets/types/UserAudioChunk.js +3 -0
  60. package/api/resources/websockets/types/UserFinishedSpeaking.d.ts +7 -0
  61. package/api/resources/websockets/types/UserFinishedSpeaking.js +3 -0
  62. package/api/resources/websockets/types/UserStartedSpeaking.d.ts +7 -0
  63. package/api/resources/websockets/types/UserStartedSpeaking.js +3 -0
  64. package/api/resources/websockets/types/UserTranscript.d.ts +9 -0
  65. package/api/resources/websockets/types/UserTranscript.js +3 -0
  66. package/api/resources/websockets/types/index.d.ts +12 -0
  67. package/api/resources/websockets/types/index.js +28 -0
  68. package/core/index.d.ts +1 -0
  69. package/core/index.js +1 -0
  70. package/core/websocket/events.d.ts +36 -0
  71. package/core/websocket/events.js +27 -0
  72. package/core/websocket/index.d.ts +1 -0
  73. package/core/websocket/index.js +17 -0
  74. package/core/websocket/ws.d.ts +147 -0
  75. package/core/websocket/ws.js +444 -0
  76. package/dist/Client.d.ts +6 -0
  77. package/dist/Client.js +32 -22
  78. package/dist/api/resources/auth/client/Client.d.ts +33 -0
  79. package/dist/api/resources/auth/client/Client.js +171 -0
  80. package/dist/api/resources/auth/client/index.d.ts +1 -0
  81. package/dist/api/resources/auth/client/index.js +2 -0
  82. package/dist/api/resources/auth/index.d.ts +2 -0
  83. package/dist/api/resources/auth/index.js +18 -0
  84. package/dist/api/resources/auth/types/SessionTokenRequest.d.ts +3 -0
  85. package/dist/api/resources/auth/types/SessionTokenRequest.js +3 -0
  86. package/dist/api/resources/auth/types/SessionTokenResponse.d.ts +6 -0
  87. package/dist/api/resources/auth/types/SessionTokenResponse.js +3 -0
  88. package/dist/api/resources/auth/types/index.d.ts +2 -0
  89. package/dist/api/resources/auth/types/index.js +18 -0
  90. package/dist/api/resources/commons/types/ActionBase.d.ts +1 -11
  91. package/dist/api/resources/commons/types/ActionParameterType.d.ts +3 -0
  92. package/dist/api/resources/commons/types/ActionParameterType.js +3 -0
  93. package/dist/api/resources/commons/types/ActionProperties.d.ts +13 -0
  94. package/dist/api/resources/commons/types/ActionProperties.js +3 -0
  95. package/dist/api/resources/commons/types/ActionUser.d.ts +46 -0
  96. package/dist/api/resources/commons/types/ActionUser.js +3 -0
  97. package/dist/api/resources/commons/types/EntityType.d.ts +1 -0
  98. package/dist/api/resources/commons/types/EntityType.js +1 -0
  99. package/dist/api/resources/commons/types/EventField.d.ts +1 -0
  100. package/dist/api/resources/commons/types/EventField.js +1 -0
  101. package/dist/api/resources/commons/types/UserEvent.d.ts +2 -0
  102. package/dist/api/resources/commons/types/index.d.ts +3 -0
  103. package/dist/api/resources/commons/types/index.js +3 -0
  104. package/dist/api/resources/index.d.ts +4 -0
  105. package/dist/api/resources/index.js +5 -1
  106. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -1
  107. package/dist/api/resources/triggers/types/index.d.ts +0 -1
  108. package/dist/api/resources/triggers/types/index.js +0 -1
  109. package/dist/api/resources/websockets/client/Client.d.ts +22 -0
  110. package/dist/api/resources/websockets/client/Client.js +89 -0
  111. package/dist/api/resources/websockets/client/Socket.d.ts +48 -0
  112. package/dist/api/resources/websockets/client/Socket.js +172 -0
  113. package/dist/api/resources/websockets/client/index.d.ts +1 -0
  114. package/dist/api/resources/websockets/client/index.js +2 -0
  115. package/dist/api/resources/websockets/index.d.ts +2 -0
  116. package/dist/api/resources/websockets/index.js +18 -0
  117. package/dist/api/resources/websockets/types/AgentAudioChunk.d.ts +9 -0
  118. package/dist/api/resources/websockets/types/AgentAudioChunk.js +3 -0
  119. package/dist/api/resources/websockets/types/AgentTranscript.d.ts +9 -0
  120. package/dist/api/resources/websockets/types/AgentTranscript.js +3 -0
  121. package/dist/api/resources/websockets/types/AudioFormat.d.ts +7 -0
  122. package/dist/api/resources/websockets/types/AudioFormat.js +10 -0
  123. package/dist/api/resources/websockets/types/Config.d.ts +15 -0
  124. package/dist/api/resources/websockets/types/Config.js +3 -0
  125. package/dist/api/resources/websockets/types/ConversationEnded.d.ts +7 -0
  126. package/dist/api/resources/websockets/types/ConversationEnded.js +3 -0
  127. package/dist/api/resources/websockets/types/ConversationReady.d.ts +6 -0
  128. package/dist/api/resources/websockets/types/ConversationReady.js +3 -0
  129. package/dist/api/resources/websockets/types/Error_.d.ts +9 -0
  130. package/dist/api/resources/websockets/types/Error_.js +3 -0
  131. package/dist/api/resources/websockets/types/ServerEventBase.d.ts +6 -0
  132. package/dist/api/resources/websockets/types/ServerEventBase.js +3 -0
  133. package/dist/api/resources/websockets/types/UserAudioChunk.d.ts +8 -0
  134. package/dist/api/resources/websockets/types/UserAudioChunk.js +3 -0
  135. package/dist/api/resources/websockets/types/UserFinishedSpeaking.d.ts +7 -0
  136. package/dist/api/resources/websockets/types/UserFinishedSpeaking.js +3 -0
  137. package/dist/api/resources/websockets/types/UserStartedSpeaking.d.ts +7 -0
  138. package/dist/api/resources/websockets/types/UserStartedSpeaking.js +3 -0
  139. package/dist/api/resources/websockets/types/UserTranscript.d.ts +9 -0
  140. package/dist/api/resources/websockets/types/UserTranscript.js +3 -0
  141. package/dist/api/resources/websockets/types/index.d.ts +12 -0
  142. package/dist/api/resources/websockets/types/index.js +28 -0
  143. package/dist/core/index.d.ts +1 -0
  144. package/dist/core/index.js +1 -0
  145. package/dist/core/websocket/events.d.ts +36 -0
  146. package/dist/core/websocket/events.js +27 -0
  147. package/dist/core/websocket/index.d.ts +1 -0
  148. package/dist/core/websocket/index.js +17 -0
  149. package/dist/core/websocket/ws.d.ts +147 -0
  150. package/dist/core/websocket/ws.js +444 -0
  151. package/dist/serialization/resources/auth/index.d.ts +1 -0
  152. package/dist/serialization/resources/auth/index.js +17 -0
  153. package/dist/serialization/resources/auth/types/SessionTokenRequest.d.ts +9 -0
  154. package/dist/serialization/resources/auth/types/SessionTokenRequest.js +41 -0
  155. package/dist/serialization/resources/auth/types/SessionTokenResponse.d.ts +10 -0
  156. package/dist/serialization/resources/auth/types/SessionTokenResponse.js +42 -0
  157. package/dist/serialization/resources/auth/types/index.d.ts +2 -0
  158. package/dist/serialization/resources/auth/types/index.js +18 -0
  159. package/dist/serialization/resources/commons/types/ActionBase.d.ts +3 -8
  160. package/dist/serialization/resources/commons/types/ActionBase.js +5 -9
  161. package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
  162. package/dist/serialization/resources/commons/types/ActionParameterType.js +1 -0
  163. package/dist/serialization/resources/commons/types/ActionProperties.d.ts +14 -0
  164. package/dist/serialization/resources/commons/types/ActionProperties.js +47 -0
  165. package/dist/serialization/resources/commons/types/ActionUser.d.ts +17 -0
  166. package/dist/serialization/resources/commons/types/ActionUser.js +49 -0
  167. package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
  168. package/dist/serialization/resources/commons/types/EntityType.js +1 -0
  169. package/dist/serialization/resources/commons/types/EventField.d.ts +1 -1
  170. package/dist/serialization/resources/commons/types/EventField.js +1 -0
  171. package/dist/serialization/resources/commons/types/UserEvent.d.ts +1 -0
  172. package/dist/serialization/resources/commons/types/UserEvent.js +1 -0
  173. package/dist/serialization/resources/commons/types/index.d.ts +3 -0
  174. package/dist/serialization/resources/commons/types/index.js +3 -0
  175. package/dist/serialization/resources/index.d.ts +5 -0
  176. package/dist/serialization/resources/index.js +6 -1
  177. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -1
  178. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -1
  179. package/dist/serialization/resources/triggers/types/EventTriggerBase.d.ts +1 -1
  180. package/dist/serialization/resources/triggers/types/EventTriggerBase.js +1 -1
  181. package/dist/serialization/resources/triggers/types/index.d.ts +0 -1
  182. package/dist/serialization/resources/triggers/types/index.js +0 -1
  183. package/dist/serialization/resources/websockets/client/index.d.ts +1 -0
  184. package/dist/serialization/resources/websockets/client/index.js +17 -0
  185. package/dist/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts +15 -0
  186. package/dist/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js +56 -0
  187. package/dist/serialization/resources/websockets/client/socket/index.d.ts +1 -0
  188. package/dist/serialization/resources/websockets/client/socket/index.js +5 -0
  189. package/dist/serialization/resources/websockets/index.d.ts +2 -0
  190. package/dist/serialization/resources/websockets/index.js +18 -0
  191. package/dist/serialization/resources/websockets/types/AgentAudioChunk.d.ts +11 -0
  192. package/dist/serialization/resources/websockets/types/AgentAudioChunk.js +45 -0
  193. package/dist/serialization/resources/websockets/types/AgentTranscript.d.ts +11 -0
  194. package/dist/serialization/resources/websockets/types/AgentTranscript.js +45 -0
  195. package/dist/serialization/resources/websockets/types/AudioFormat.d.ts +7 -0
  196. package/dist/serialization/resources/websockets/types/AudioFormat.js +39 -0
  197. package/dist/serialization/resources/websockets/types/Config.d.ts +14 -0
  198. package/dist/serialization/resources/websockets/types/Config.js +46 -0
  199. package/dist/serialization/resources/websockets/types/ConversationEnded.d.ts +10 -0
  200. package/dist/serialization/resources/websockets/types/ConversationEnded.js +44 -0
  201. package/dist/serialization/resources/websockets/types/ConversationReady.d.ts +9 -0
  202. package/dist/serialization/resources/websockets/types/ConversationReady.js +41 -0
  203. package/dist/serialization/resources/websockets/types/Error_.d.ts +12 -0
  204. package/dist/serialization/resources/websockets/types/Error_.js +46 -0
  205. package/dist/serialization/resources/websockets/types/ServerEventBase.d.ts +9 -0
  206. package/dist/serialization/resources/websockets/types/ServerEventBase.js +41 -0
  207. package/dist/serialization/resources/websockets/types/UserAudioChunk.d.ts +10 -0
  208. package/dist/serialization/resources/websockets/types/UserAudioChunk.js +42 -0
  209. package/dist/serialization/resources/websockets/types/UserFinishedSpeaking.d.ts +10 -0
  210. package/dist/serialization/resources/websockets/types/UserFinishedSpeaking.js +44 -0
  211. package/dist/serialization/resources/websockets/types/UserStartedSpeaking.d.ts +10 -0
  212. package/dist/serialization/resources/websockets/types/UserStartedSpeaking.js +44 -0
  213. package/dist/serialization/resources/websockets/types/UserTranscript.d.ts +11 -0
  214. package/dist/serialization/resources/websockets/types/UserTranscript.js +45 -0
  215. package/dist/serialization/resources/websockets/types/index.d.ts +12 -0
  216. package/dist/serialization/resources/websockets/types/index.js +28 -0
  217. package/dist/version.d.ts +1 -1
  218. package/dist/version.js +1 -1
  219. package/package.json +5 -1
  220. package/reference.md +73 -5
  221. package/serialization/resources/auth/index.d.ts +1 -0
  222. package/serialization/resources/auth/index.js +17 -0
  223. package/serialization/resources/auth/types/SessionTokenRequest.d.ts +9 -0
  224. package/serialization/resources/auth/types/SessionTokenRequest.js +41 -0
  225. package/serialization/resources/auth/types/SessionTokenResponse.d.ts +10 -0
  226. package/serialization/resources/auth/types/SessionTokenResponse.js +42 -0
  227. package/serialization/resources/auth/types/index.d.ts +2 -0
  228. package/serialization/resources/auth/types/index.js +18 -0
  229. package/serialization/resources/commons/types/ActionBase.d.ts +3 -8
  230. package/serialization/resources/commons/types/ActionBase.js +5 -9
  231. package/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
  232. package/serialization/resources/commons/types/ActionParameterType.js +1 -0
  233. package/serialization/resources/commons/types/ActionProperties.d.ts +14 -0
  234. package/serialization/resources/commons/types/ActionProperties.js +47 -0
  235. package/serialization/resources/commons/types/ActionUser.d.ts +17 -0
  236. package/serialization/resources/commons/types/ActionUser.js +49 -0
  237. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  238. package/serialization/resources/commons/types/EntityType.js +1 -0
  239. package/serialization/resources/commons/types/EventField.d.ts +1 -1
  240. package/serialization/resources/commons/types/EventField.js +1 -0
  241. package/serialization/resources/commons/types/UserEvent.d.ts +1 -0
  242. package/serialization/resources/commons/types/UserEvent.js +1 -0
  243. package/serialization/resources/commons/types/index.d.ts +3 -0
  244. package/serialization/resources/commons/types/index.js +3 -0
  245. package/serialization/resources/index.d.ts +5 -0
  246. package/serialization/resources/index.js +6 -1
  247. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -1
  248. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -1
  249. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +1 -1
  250. package/serialization/resources/triggers/types/EventTriggerBase.js +1 -1
  251. package/serialization/resources/triggers/types/index.d.ts +0 -1
  252. package/serialization/resources/triggers/types/index.js +0 -1
  253. package/serialization/resources/websockets/client/index.d.ts +1 -0
  254. package/serialization/resources/websockets/client/index.js +17 -0
  255. package/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts +15 -0
  256. package/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js +56 -0
  257. package/serialization/resources/websockets/client/socket/index.d.ts +1 -0
  258. package/serialization/resources/websockets/client/socket/index.js +5 -0
  259. package/serialization/resources/websockets/index.d.ts +2 -0
  260. package/serialization/resources/websockets/index.js +18 -0
  261. package/serialization/resources/websockets/types/AgentAudioChunk.d.ts +11 -0
  262. package/serialization/resources/websockets/types/AgentAudioChunk.js +45 -0
  263. package/serialization/resources/websockets/types/AgentTranscript.d.ts +11 -0
  264. package/serialization/resources/websockets/types/AgentTranscript.js +45 -0
  265. package/serialization/resources/websockets/types/AudioFormat.d.ts +7 -0
  266. package/serialization/resources/websockets/types/AudioFormat.js +39 -0
  267. package/serialization/resources/websockets/types/Config.d.ts +14 -0
  268. package/serialization/resources/websockets/types/Config.js +46 -0
  269. package/serialization/resources/websockets/types/ConversationEnded.d.ts +10 -0
  270. package/serialization/resources/websockets/types/ConversationEnded.js +44 -0
  271. package/serialization/resources/websockets/types/ConversationReady.d.ts +9 -0
  272. package/serialization/resources/websockets/types/ConversationReady.js +41 -0
  273. package/serialization/resources/websockets/types/Error_.d.ts +12 -0
  274. package/serialization/resources/websockets/types/Error_.js +46 -0
  275. package/serialization/resources/websockets/types/ServerEventBase.d.ts +9 -0
  276. package/serialization/resources/websockets/types/ServerEventBase.js +41 -0
  277. package/serialization/resources/websockets/types/UserAudioChunk.d.ts +10 -0
  278. package/serialization/resources/websockets/types/UserAudioChunk.js +42 -0
  279. package/serialization/resources/websockets/types/UserFinishedSpeaking.d.ts +10 -0
  280. package/serialization/resources/websockets/types/UserFinishedSpeaking.js +44 -0
  281. package/serialization/resources/websockets/types/UserStartedSpeaking.d.ts +10 -0
  282. package/serialization/resources/websockets/types/UserStartedSpeaking.js +44 -0
  283. package/serialization/resources/websockets/types/UserTranscript.d.ts +11 -0
  284. package/serialization/resources/websockets/types/UserTranscript.js +45 -0
  285. package/serialization/resources/websockets/types/index.d.ts +12 -0
  286. package/serialization/resources/websockets/types/index.js +28 -0
  287. package/version.d.ts +1 -1
  288. package/version.js +1 -1
  289. /package/api/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
  290. /package/api/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
  291. /package/dist/api/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
  292. /package/dist/api/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
  293. /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
  294. /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
  295. /package/serialization/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
  296. /package/serialization/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
@@ -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.UserTranscript = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ServerEventBase_1 = require("./ServerEventBase");
40
+ exports.UserTranscript = core.serialization
41
+ .object({
42
+ type: core.serialization.stringLiteral("user_transcript"),
43
+ text: core.serialization.string(),
44
+ })
45
+ .extend(ServerEventBase_1.ServerEventBase);
@@ -0,0 +1,12 @@
1
+ export * from "./AgentAudioChunk";
2
+ export * from "./AgentTranscript";
3
+ export * from "./AudioFormat";
4
+ export * from "./Config";
5
+ export * from "./ConversationEnded";
6
+ export * from "./ConversationReady";
7
+ export * from "./Error_";
8
+ export * from "./ServerEventBase";
9
+ export * from "./UserAudioChunk";
10
+ export * from "./UserFinishedSpeaking";
11
+ export * from "./UserStartedSpeaking";
12
+ export * from "./UserTranscript";
@@ -0,0 +1,28 @@
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("./AgentAudioChunk"), exports);
18
+ __exportStar(require("./AgentTranscript"), exports);
19
+ __exportStar(require("./AudioFormat"), exports);
20
+ __exportStar(require("./Config"), exports);
21
+ __exportStar(require("./ConversationEnded"), exports);
22
+ __exportStar(require("./ConversationReady"), exports);
23
+ __exportStar(require("./Error_"), exports);
24
+ __exportStar(require("./ServerEventBase"), exports);
25
+ __exportStar(require("./UserAudioChunk"), exports);
26
+ __exportStar(require("./UserFinishedSpeaking"), exports);
27
+ __exportStar(require("./UserStartedSpeaking"), exports);
28
+ __exportStar(require("./UserTranscript"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.10";
1
+ export declare const SDK_VERSION = "1.2.11";
package/dist/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.10";
4
+ exports.SDK_VERSION = "1.2.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "private": false,
5
5
  "repository": "github:mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
@@ -17,9 +17,13 @@
17
17
  "test": "vitest",
18
18
  "test:unit": "vitest --project unit"
19
19
  },
20
+ "dependencies": {
21
+ "ws": "^8.16.0"
22
+ },
20
23
  "devDependencies": {
21
24
  "webpack": "^5.97.1",
22
25
  "ts-loader": "^9.5.1",
26
+ "@types/ws": "^8.5.10",
23
27
  "vitest": "^3.2.4",
24
28
  "@types/node": "^18.19.70",
25
29
  "typescript": "~5.7.2",
package/reference.md CHANGED
@@ -1413,7 +1413,7 @@ await client.appSettings.search({
1413
1413
  </dl>
1414
1414
  </details>
1415
1415
 
1416
- <details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">get</a>() -> Record<string, unknown></code></summary>
1416
+ <details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">get</a>() -> Record&lt;string, unknown&gt;</code></summary>
1417
1417
  <dl>
1418
1418
  <dd>
1419
1419
 
@@ -1468,7 +1468,7 @@ await client.appSettings.get();
1468
1468
  </dl>
1469
1469
  </details>
1470
1470
 
1471
- <details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">update</a>({ ...params }) -> Record<string, unknown></code></summary>
1471
+ <details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">update</a>({ ...params }) -> Record&lt;string, unknown&gt;</code></summary>
1472
1472
  <dl>
1473
1473
  <dd>
1474
1474
 
@@ -1676,6 +1676,74 @@ await client.assets.commitUpload("assetReferenceId", {});
1676
1676
  </dl>
1677
1677
 
1678
1678
 
1679
+ </dd>
1680
+ </dl>
1681
+ </details>
1682
+
1683
+ ## Auth
1684
+ <details><summary><code>client.auth.<a href="/src/api/resources/auth/client/Client.ts">sessionToken</a>({ ...params }) -> MavenAGI.SessionTokenResponse</code></summary>
1685
+ <dl>
1686
+ <dd>
1687
+
1688
+ #### 📝 Description
1689
+
1690
+ <dl>
1691
+ <dd>
1692
+
1693
+ <dl>
1694
+ <dd>
1695
+
1696
+ Creates a short-lived session token that can be used to authenticate
1697
+ WebSocket connections. Session tokens are useful for client-side applications where
1698
+ you don’t want to expose your API key.
1699
+ </dd>
1700
+ </dl>
1701
+ </dd>
1702
+ </dl>
1703
+
1704
+ #### 🔌 Usage
1705
+
1706
+ <dl>
1707
+ <dd>
1708
+
1709
+ <dl>
1710
+ <dd>
1711
+
1712
+ ```typescript
1713
+ await client.auth.sessionToken({
1714
+ ttlSeconds: 3600
1715
+ });
1716
+
1717
+ ```
1718
+ </dd>
1719
+ </dl>
1720
+ </dd>
1721
+ </dl>
1722
+
1723
+ #### ⚙️ Parameters
1724
+
1725
+ <dl>
1726
+ <dd>
1727
+
1728
+ <dl>
1729
+ <dd>
1730
+
1731
+ **request:** `MavenAGI.SessionTokenRequest`
1732
+
1733
+ </dd>
1734
+ </dl>
1735
+
1736
+ <dl>
1737
+ <dd>
1738
+
1739
+ **requestOptions:** `Auth.RequestOptions`
1740
+
1741
+ </dd>
1742
+ </dl>
1743
+ </dd>
1744
+ </dl>
1745
+
1746
+
1679
1747
  </dd>
1680
1748
  </dl>
1681
1749
  </details>
@@ -2188,7 +2256,7 @@ await client.conversation.ask("conversation-0", {
2188
2256
  </dl>
2189
2257
  </details>
2190
2258
 
2191
- <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">askStream</a>(conversationId, { ...params }) -> core.Stream<MavenAGI.StreamResponse></code></summary>
2259
+ <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">askStream</a>(conversationId, { ...params }) -> core.Stream&lt;MavenAGI.StreamResponse&gt;</code></summary>
2192
2260
  <dl>
2193
2261
  <dd>
2194
2262
 
@@ -2291,7 +2359,7 @@ for await (const item of response) {
2291
2359
  </dl>
2292
2360
  </details>
2293
2361
 
2294
- <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">askObjectStream</a>(conversationId, { ...params }) -> core.Stream<MavenAGI.ObjectStreamResponse></code></summary>
2362
+ <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">askObjectStream</a>(conversationId, { ...params }) -> core.Stream&lt;MavenAGI.ObjectStreamResponse&gt;</code></summary>
2295
2363
  <dl>
2296
2364
  <dd>
2297
2365
 
@@ -2609,7 +2677,7 @@ await client.conversation.submitActionForm("conversationId", {
2609
2677
  </dl>
2610
2678
  </details>
2611
2679
 
2612
- <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">addConversationMetadata</a>(conversationId, { ...params }) -> Record<string, string></code></summary>
2680
+ <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">addConversationMetadata</a>(conversationId, { ...params }) -> Record&lt;string, string&gt;</code></summary>
2613
2681
  <dl>
2614
2682
  <dd>
2615
2683
 
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
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("./types"), exports);
@@ -0,0 +1,9 @@
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 SessionTokenRequest: core.serialization.ObjectSchema<serializers.SessionTokenRequest.Raw, MavenAGI.SessionTokenRequest>;
5
+ export declare namespace SessionTokenRequest {
6
+ interface Raw {
7
+ ttlSeconds: number;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
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.SessionTokenRequest = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.SessionTokenRequest = core.serialization.object({
40
+ ttlSeconds: core.serialization.number(),
41
+ });
@@ -0,0 +1,10 @@
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 SessionTokenResponse: core.serialization.ObjectSchema<serializers.SessionTokenResponse.Raw, MavenAGI.SessionTokenResponse>;
5
+ export declare namespace SessionTokenResponse {
6
+ interface Raw {
7
+ sessionToken: string;
8
+ expiresAt: string;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
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.SessionTokenResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.SessionTokenResponse = core.serialization.object({
40
+ sessionToken: core.serialization.string(),
41
+ expiresAt: core.serialization.date(),
42
+ });
@@ -0,0 +1,2 @@
1
+ export * from "./SessionTokenRequest";
2
+ export * from "./SessionTokenResponse";
@@ -0,0 +1,18 @@
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,16 +1,11 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
- import * as serializers from "../../../index";
4
- import { ActionParameter } from "./ActionParameter";
3
+ import type * as serializers from "../../../index";
4
+ import { ActionProperties } from "./ActionProperties";
5
5
  export declare const ActionBase: core.serialization.ObjectSchema<serializers.ActionBase.Raw, MavenAGI.ActionBase>;
6
6
  export declare namespace ActionBase {
7
- interface Raw {
7
+ interface Raw extends ActionProperties.Raw {
8
8
  name: string;
9
9
  description: string;
10
- userInteractionRequired: boolean;
11
- buttonName?: string | null;
12
- precondition?: serializers.Precondition.Raw | null;
13
- userFormParameters: ActionParameter.Raw[];
14
- language?: string | null;
15
10
  }
16
11
  }
@@ -36,14 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ActionBase = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- const serializers = __importStar(require("../../../index"));
40
- const ActionParameter_1 = require("./ActionParameter");
41
- exports.ActionBase = core.serialization.object({
39
+ const ActionProperties_1 = require("./ActionProperties");
40
+ exports.ActionBase = core.serialization
41
+ .object({
42
42
  name: core.serialization.string(),
43
43
  description: core.serialization.string(),
44
- userInteractionRequired: core.serialization.boolean(),
45
- buttonName: core.serialization.string().optional(),
46
- precondition: core.serialization.lazy(() => serializers.Precondition).optional(),
47
- userFormParameters: core.serialization.list(ActionParameter_1.ActionParameter),
48
- language: core.serialization.string().optional(),
49
- });
44
+ })
45
+ .extend(ActionProperties_1.ActionProperties);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const ActionParameterType: core.serialization.Schema<serializers.ActionParameterType.Raw, MavenAGI.ActionParameterType>;
5
5
  export declare namespace ActionParameterType {
6
- type Raw = "STRING" | "MULTILINE" | "BOOLEAN" | "NUMBER" | "DATETIME" | "DATE" | "TIME" | "EMAIL" | "SCHEMA" | "FILE" | "OAUTH";
6
+ type Raw = "STRING" | "MULTILINE" | "BOOLEAN" | "NUMBER" | "DATETIME" | "DATE" | "TIME" | "EMAIL" | "PHONE" | "SCHEMA" | "FILE" | "OAUTH";
7
7
  }
@@ -45,6 +45,7 @@ exports.ActionParameterType = core.serialization.enum_([
45
45
  "DATE",
46
46
  "TIME",
47
47
  "EMAIL",
48
+ "PHONE",
48
49
  "SCHEMA",
49
50
  "FILE",
50
51
  "OAUTH",
@@ -0,0 +1,14 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import * as serializers from "../../../index";
4
+ import { ActionParameter } from "./ActionParameter";
5
+ export declare const ActionProperties: core.serialization.ObjectSchema<serializers.ActionProperties.Raw, MavenAGI.ActionProperties>;
6
+ export declare namespace ActionProperties {
7
+ interface Raw {
8
+ userInteractionRequired: boolean;
9
+ buttonName?: string | null;
10
+ precondition?: serializers.Precondition.Raw | null;
11
+ userFormParameters: ActionParameter.Raw[];
12
+ language?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,47 @@
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.ActionProperties = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const serializers = __importStar(require("../../../index"));
40
+ const ActionParameter_1 = require("./ActionParameter");
41
+ exports.ActionProperties = core.serialization.object({
42
+ userInteractionRequired: core.serialization.boolean(),
43
+ buttonName: core.serialization.string().optional(),
44
+ precondition: core.serialization.lazy(() => serializers.Precondition).optional(),
45
+ userFormParameters: core.serialization.list(ActionParameter_1.ActionParameter),
46
+ language: core.serialization.string().optional(),
47
+ });
@@ -0,0 +1,17 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { AppUserIdentifier } from "./AppUserIdentifier";
5
+ import { EntityIdBase } from "./EntityIdBase";
6
+ import { UserDataWithReference } from "./UserDataWithReference";
7
+ export declare const ActionUser: core.serialization.ObjectSchema<serializers.ActionUser.Raw, MavenAGI.ActionUser>;
8
+ export declare namespace ActionUser {
9
+ interface Raw {
10
+ userId?: EntityIdBase.Raw | null;
11
+ agentUserId?: string | null;
12
+ userIdentifiers: AppUserIdentifier.Raw[];
13
+ allUserData: Record<string, Record<string, string>>;
14
+ defaultUserData: Record<string, string>;
15
+ agentUserData: Record<string, UserDataWithReference.Raw[]>;
16
+ }
17
+ }
@@ -0,0 +1,49 @@
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.ActionUser = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const AppUserIdentifier_1 = require("./AppUserIdentifier");
40
+ const EntityIdBase_1 = require("./EntityIdBase");
41
+ const UserDataWithReference_1 = require("./UserDataWithReference");
42
+ exports.ActionUser = core.serialization.object({
43
+ userId: EntityIdBase_1.EntityIdBase.optional(),
44
+ agentUserId: core.serialization.string().optional(),
45
+ userIdentifiers: core.serialization.list(AppUserIdentifier_1.AppUserIdentifier),
46
+ allUserData: core.serialization.record(core.serialization.string(), core.serialization.record(core.serialization.string(), core.serialization.string())),
47
+ defaultUserData: core.serialization.record(core.serialization.string(), core.serialization.string()),
48
+ agentUserData: core.serialization.record(core.serialization.string(), core.serialization.list(UserDataWithReference_1.UserDataWithReference)),
49
+ });
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
5
5
  export declare namespace EntityType {
6
- type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER";
6
+ type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD";
7
7
  }
@@ -53,4 +53,5 @@ exports.EntityType = core.serialization.enum_([
53
53
  "INBOX_ITEM_FIX",
54
54
  "SEGMENT",
55
55
  "CUSTOMER",
56
+ "INTELLIGENT_FIELD",
56
57
  ]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const EventField: core.serialization.Schema<serializers.EventField.Raw, MavenAGI.EventField>;
5
5
  export declare namespace EventField {
6
- type Raw = "CREATED_AT" | "EVENT_NAME" | "EVENT_TYPE" | "APP" | "SESSION_ID" | "SOURCE_TYPE" | "SOURCE_LANGUAGE_CODE" | "SOURCE_DEVICE_TYPE" | "SOURCE_DEVICE_NAME" | "SOURCE_BROWSER_TYPE" | "SOURCE_BROWSER_NAME" | "SOURCE_GEO_CITY" | "SOURCE_GEO_STATE" | "SOURCE_GEO_COUNTRY" | "USER_REFERENCE_ID" | "AGENT_USER_ID";
6
+ type Raw = "CREATED_AT" | "EVENT_NAME" | "EVENT_TYPE" | "APP" | "SESSION_ID" | "SOURCE_TYPE" | "SOURCE_LANGUAGE_CODE" | "SOURCE_DEVICE_TYPE" | "SOURCE_DEVICE_NAME" | "SOURCE_BROWSER_TYPE" | "SOURCE_BROWSER_NAME" | "SOURCE_GEO_CITY" | "SOURCE_GEO_STATE" | "SOURCE_GEO_COUNTRY" | "USER_REFERENCE_ID" | "AGENT_USER_ID" | "TIMESTAMP";
7
7
  }
@@ -53,4 +53,5 @@ exports.EventField = core.serialization.enum_([
53
53
  "SOURCE_GEO_COUNTRY",
54
54
  "USER_REFERENCE_ID",
55
55
  "AGENT_USER_ID",
56
+ "TIMESTAMP",
56
57
  ]);
@@ -11,6 +11,7 @@ export declare const UserEvent: core.serialization.ObjectSchema<serializers.User
11
11
  export declare namespace UserEvent {
12
12
  interface Raw extends EventBaseNoId.Raw {
13
13
  id: EntityId.Raw;
14
+ createdAt?: string | null;
14
15
  eventName: UserEventName.Raw;
15
16
  userInfo: EventUserInfo.Raw;
16
17
  feedbackInfo?: FeedbackInfo.Raw[] | null;
@@ -45,6 +45,7 @@ const UserEventName_1 = require("./UserEventName");
45
45
  exports.UserEvent = core.serialization
46
46
  .object({
47
47
  id: EntityId_1.EntityId,
48
+ createdAt: core.serialization.date().optional(),
48
49
  eventName: UserEventName_1.UserEventName,
49
50
  userInfo: EventUserInfo_1.EventUserInfo,
50
51
  feedbackInfo: core.serialization.list(FeedbackInfo_1.FeedbackInfo).optional(),