mavenagi 1.0.8 → 1.0.10

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 (294) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +11 -6
  3. package/api/resources/actions/client/Client.d.ts +2 -1
  4. package/api/resources/actions/client/Client.js +5 -4
  5. package/api/resources/actions/types/ActionRequest.d.ts +2 -1
  6. package/api/resources/analytics/client/Client.js +3 -3
  7. package/api/resources/appSettings/client/Client.d.ts +24 -0
  8. package/api/resources/appSettings/client/Client.js +91 -1
  9. package/api/resources/commons/types/ActionBase.d.ts +3 -1
  10. package/api/resources/commons/types/ActionResponse.d.ts +2 -1
  11. package/api/resources/commons/types/{ConversationBase.d.ts → BaseConversationResponse.d.ts} +9 -1
  12. package/api/resources/commons/types/BasePaginatedRequest.d.ts +11 -0
  13. package/api/resources/commons/types/BotMessage.d.ts +1 -0
  14. package/api/resources/commons/types/BotMessageStatus.d.ts +22 -0
  15. package/api/resources/commons/types/BotMessageStatus.js +14 -0
  16. package/api/resources/commons/types/ConversationAnalysis.d.ts +8 -0
  17. package/api/resources/commons/types/ConversationPreview.d.ts +6 -0
  18. package/api/resources/commons/types/ConversationPreview.js +5 -0
  19. package/api/resources/commons/types/ConversationResponse.d.ts +4 -10
  20. package/{dist/api/resources/conversation → api/resources/commons}/types/QualityReason.d.ts +1 -2
  21. package/api/resources/{conversation → commons}/types/QualityReason.js +0 -1
  22. package/api/resources/commons/types/index.d.ts +8 -3
  23. package/api/resources/commons/types/index.js +8 -3
  24. package/api/resources/conversation/client/Client.d.ts +22 -6
  25. package/api/resources/conversation/client/Client.js +100 -18
  26. package/api/resources/conversation/types/ConversationFilter.d.ts +1 -0
  27. package/api/resources/conversation/types/ConversationRequest.d.ts +15 -1
  28. package/api/resources/conversation/types/ConversationsResponse.d.ts +8 -0
  29. package/api/resources/conversation/types/ConversationsResponse.js +5 -0
  30. package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +8 -0
  31. package/api/resources/conversation/types/ConversationsSearchRequest.js +5 -0
  32. package/api/resources/conversation/types/index.d.ts +2 -2
  33. package/api/resources/conversation/types/index.js +2 -2
  34. package/api/resources/inbox/client/Client.js +5 -5
  35. package/api/resources/index.d.ts +2 -0
  36. package/api/resources/index.js +3 -1
  37. package/api/resources/knowledge/client/Client.d.ts +4 -3
  38. package/api/resources/knowledge/client/Client.js +11 -10
  39. package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -4
  40. package/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -2
  41. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  42. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -4
  43. package/api/resources/knowledge/types/KnowledgeBaseType.js +0 -2
  44. package/api/resources/knowledge/types/index.d.ts +1 -1
  45. package/api/resources/knowledge/types/index.js +1 -1
  46. package/api/resources/realtime/client/Client.d.ts +34 -0
  47. package/api/resources/realtime/client/Client.js +87 -0
  48. package/api/resources/realtime/client/Socket.d.ts +41 -0
  49. package/api/resources/realtime/client/Socket.js +155 -0
  50. package/api/resources/realtime/client/index.d.ts +1 -0
  51. package/api/resources/realtime/client/index.js +2 -0
  52. package/api/resources/realtime/index.d.ts +2 -0
  53. package/api/resources/realtime/index.js +18 -0
  54. package/api/resources/realtime/types/AudioPublishEvent.d.ts +6 -0
  55. package/api/resources/realtime/types/AudioPublishEvent.js +5 -0
  56. package/api/resources/realtime/types/AudioSubscribeEvent.d.ts +6 -0
  57. package/api/resources/realtime/types/AudioSubscribeEvent.js +5 -0
  58. package/api/resources/realtime/types/ControlEvent.d.ts +6 -0
  59. package/api/resources/realtime/types/ControlEvent.js +5 -0
  60. package/api/resources/realtime/types/HangUpPublishEvent.d.ts +6 -0
  61. package/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
  62. package/api/resources/realtime/types/PublishEvent.d.ts +16 -0
  63. package/api/resources/realtime/types/PublishEvent.js +5 -0
  64. package/api/resources/realtime/types/SubscribeEvent.d.ts +22 -0
  65. package/api/resources/realtime/types/SubscribeEvent.js +5 -0
  66. package/api/resources/realtime/types/index.d.ts +6 -0
  67. package/api/resources/realtime/types/index.js +22 -0
  68. package/api/resources/translations/client/Client.js +1 -1
  69. package/api/resources/triggers/client/Client.js +3 -3
  70. package/api/resources/users/client/Client.js +3 -3
  71. package/core/index.d.ts +1 -0
  72. package/core/index.js +1 -0
  73. package/core/websocket/events.d.ts +36 -0
  74. package/core/websocket/events.js +27 -0
  75. package/core/websocket/index.d.ts +1 -0
  76. package/core/websocket/index.js +17 -0
  77. package/core/websocket/ws.d.ts +137 -0
  78. package/core/websocket/ws.js +452 -0
  79. package/dist/Client.d.ts +3 -0
  80. package/dist/Client.js +11 -6
  81. package/dist/api/resources/actions/client/Client.d.ts +2 -1
  82. package/dist/api/resources/actions/client/Client.js +5 -4
  83. package/dist/api/resources/actions/types/ActionRequest.d.ts +2 -1
  84. package/dist/api/resources/analytics/client/Client.js +3 -3
  85. package/dist/api/resources/appSettings/client/Client.d.ts +24 -0
  86. package/dist/api/resources/appSettings/client/Client.js +91 -1
  87. package/dist/api/resources/commons/types/ActionBase.d.ts +3 -1
  88. package/dist/api/resources/commons/types/ActionResponse.d.ts +2 -1
  89. package/dist/api/resources/commons/types/{ConversationBase.d.ts → BaseConversationResponse.d.ts} +9 -1
  90. package/dist/api/resources/commons/types/BaseConversationResponse.js +5 -0
  91. package/dist/api/resources/commons/types/BasePaginatedRequest.d.ts +11 -0
  92. package/dist/api/resources/commons/types/BasePaginatedRequest.js +5 -0
  93. package/dist/api/resources/commons/types/BotMessage.d.ts +1 -0
  94. package/dist/api/resources/commons/types/BotMessageStatus.d.ts +22 -0
  95. package/dist/api/resources/commons/types/BotMessageStatus.js +14 -0
  96. package/dist/api/resources/commons/types/ConversationAnalysis.d.ts +8 -0
  97. package/dist/api/resources/commons/types/ConversationPreview.d.ts +6 -0
  98. package/dist/api/resources/commons/types/ConversationPreview.js +5 -0
  99. package/dist/api/resources/commons/types/ConversationResponse.d.ts +4 -10
  100. package/{api/resources/conversation → dist/api/resources/commons}/types/QualityReason.d.ts +1 -2
  101. package/dist/api/resources/{conversation → commons}/types/QualityReason.js +0 -1
  102. package/dist/api/resources/commons/types/index.d.ts +8 -3
  103. package/dist/api/resources/commons/types/index.js +8 -3
  104. package/dist/api/resources/conversation/client/Client.d.ts +22 -6
  105. package/dist/api/resources/conversation/client/Client.js +100 -18
  106. package/dist/api/resources/conversation/types/ConversationFilter.d.ts +1 -0
  107. package/dist/api/resources/conversation/types/ConversationRequest.d.ts +15 -1
  108. package/dist/api/resources/conversation/types/ConversationsResponse.d.ts +8 -0
  109. package/dist/api/resources/conversation/types/ConversationsResponse.js +5 -0
  110. package/dist/api/resources/conversation/types/ConversationsSearchRequest.d.ts +8 -0
  111. package/dist/api/resources/conversation/types/ConversationsSearchRequest.js +5 -0
  112. package/dist/api/resources/conversation/types/index.d.ts +2 -2
  113. package/dist/api/resources/conversation/types/index.js +2 -2
  114. package/dist/api/resources/inbox/client/Client.js +5 -5
  115. package/dist/api/resources/index.d.ts +2 -0
  116. package/dist/api/resources/index.js +3 -1
  117. package/dist/api/resources/knowledge/client/Client.d.ts +4 -3
  118. package/dist/api/resources/knowledge/client/Client.js +11 -10
  119. package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -4
  120. package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -2
  121. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  122. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -4
  123. package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +0 -2
  124. package/dist/api/resources/knowledge/types/index.d.ts +1 -1
  125. package/dist/api/resources/knowledge/types/index.js +1 -1
  126. package/dist/api/resources/realtime/client/Client.d.ts +34 -0
  127. package/dist/api/resources/realtime/client/Client.js +87 -0
  128. package/dist/api/resources/realtime/client/Socket.d.ts +41 -0
  129. package/dist/api/resources/realtime/client/Socket.js +155 -0
  130. package/dist/api/resources/realtime/client/index.d.ts +1 -0
  131. package/dist/api/resources/realtime/client/index.js +2 -0
  132. package/dist/api/resources/realtime/index.d.ts +2 -0
  133. package/dist/api/resources/realtime/index.js +18 -0
  134. package/dist/api/resources/realtime/types/AudioPublishEvent.d.ts +6 -0
  135. package/dist/api/resources/realtime/types/AudioPublishEvent.js +5 -0
  136. package/dist/api/resources/realtime/types/AudioSubscribeEvent.d.ts +6 -0
  137. package/dist/api/resources/realtime/types/AudioSubscribeEvent.js +5 -0
  138. package/dist/api/resources/realtime/types/ControlEvent.d.ts +6 -0
  139. package/dist/api/resources/realtime/types/ControlEvent.js +5 -0
  140. package/dist/api/resources/realtime/types/HangUpPublishEvent.d.ts +6 -0
  141. package/dist/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
  142. package/dist/api/resources/realtime/types/PublishEvent.d.ts +16 -0
  143. package/dist/api/resources/realtime/types/PublishEvent.js +5 -0
  144. package/dist/api/resources/realtime/types/SubscribeEvent.d.ts +22 -0
  145. package/dist/api/resources/realtime/types/SubscribeEvent.js +5 -0
  146. package/dist/api/resources/realtime/types/index.d.ts +6 -0
  147. package/dist/api/resources/realtime/types/index.js +22 -0
  148. package/dist/api/resources/translations/client/Client.js +1 -1
  149. package/dist/api/resources/triggers/client/Client.js +3 -3
  150. package/dist/api/resources/users/client/Client.js +3 -3
  151. package/dist/core/index.d.ts +1 -0
  152. package/dist/core/index.js +1 -0
  153. package/dist/core/websocket/events.d.ts +36 -0
  154. package/dist/core/websocket/events.js +27 -0
  155. package/dist/core/websocket/index.d.ts +1 -0
  156. package/dist/core/websocket/index.js +17 -0
  157. package/dist/core/websocket/ws.d.ts +137 -0
  158. package/dist/core/websocket/ws.js +452 -0
  159. package/dist/serialization/resources/appSettings/client/index.d.ts +1 -0
  160. package/dist/serialization/resources/appSettings/client/index.js +2 -1
  161. package/dist/serialization/resources/appSettings/client/update.d.ts +13 -0
  162. package/dist/serialization/resources/appSettings/client/update.js +42 -0
  163. package/dist/serialization/resources/commons/types/ActionBase.d.ts +1 -0
  164. package/dist/serialization/resources/commons/types/ActionBase.js +1 -0
  165. package/{serialization/resources/commons/types/ConversationBase.d.ts → dist/serialization/resources/commons/types/BaseConversationResponse.d.ts} +9 -2
  166. package/dist/serialization/resources/commons/types/{ConversationBase.js → BaseConversationResponse.js} +9 -2
  167. package/dist/serialization/resources/commons/types/BasePaginatedRequest.d.ts +14 -0
  168. package/dist/serialization/resources/commons/types/BasePaginatedRequest.js +45 -0
  169. package/dist/serialization/resources/commons/types/BotMessage.d.ts +2 -0
  170. package/dist/serialization/resources/commons/types/BotMessage.js +2 -0
  171. package/dist/serialization/resources/commons/types/BotMessageStatus.d.ts +10 -0
  172. package/dist/serialization/resources/commons/types/BotMessageStatus.js +41 -0
  173. package/dist/serialization/resources/commons/types/ConversationAnalysis.d.ts +6 -0
  174. package/dist/serialization/resources/commons/types/ConversationAnalysis.js +6 -0
  175. package/dist/serialization/resources/commons/types/ConversationPreview.d.ts +12 -0
  176. package/dist/serialization/resources/commons/types/ConversationPreview.js +42 -0
  177. package/dist/serialization/resources/commons/types/ConversationResponse.d.ts +2 -9
  178. package/dist/serialization/resources/commons/types/ConversationResponse.js +2 -9
  179. package/dist/serialization/resources/{conversation → commons}/types/QualityReason.d.ts +1 -1
  180. package/dist/serialization/resources/{conversation → commons}/types/QualityReason.js +0 -1
  181. package/dist/serialization/resources/commons/types/index.d.ts +8 -3
  182. package/dist/serialization/resources/commons/types/index.js +8 -3
  183. package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -2
  184. package/dist/serialization/resources/conversation/types/ConversationFilter.js +3 -2
  185. package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +9 -2
  186. package/dist/serialization/resources/conversation/types/ConversationRequest.js +10 -5
  187. package/dist/serialization/resources/conversation/types/ConversationsResponse.d.ts +14 -0
  188. package/dist/serialization/resources/conversation/types/ConversationsResponse.js +47 -0
  189. package/dist/serialization/resources/conversation/types/ConversationsSearchRequest.d.ts +16 -0
  190. package/dist/serialization/resources/conversation/types/ConversationsSearchRequest.js +49 -0
  191. package/dist/serialization/resources/conversation/types/index.d.ts +2 -2
  192. package/dist/serialization/resources/conversation/types/index.js +2 -2
  193. package/dist/serialization/resources/index.d.ts +2 -0
  194. package/dist/serialization/resources/index.js +3 -1
  195. package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -3
  196. package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +0 -3
  197. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  198. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
  199. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  200. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
  201. package/dist/serialization/resources/knowledge/types/index.d.ts +1 -1
  202. package/dist/serialization/resources/knowledge/types/index.js +1 -1
  203. package/dist/serialization/resources/realtime/index.d.ts +1 -0
  204. package/dist/serialization/resources/realtime/index.js +17 -0
  205. package/dist/serialization/resources/realtime/types/AudioPublishEvent.d.ts +12 -0
  206. package/dist/serialization/resources/realtime/types/AudioPublishEvent.js +43 -0
  207. package/dist/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +12 -0
  208. package/dist/serialization/resources/realtime/types/AudioSubscribeEvent.js +43 -0
  209. package/dist/serialization/resources/realtime/types/ControlEvent.d.ts +12 -0
  210. package/dist/serialization/resources/realtime/types/ControlEvent.js +43 -0
  211. package/dist/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
  212. package/dist/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
  213. package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +18 -0
  214. package/dist/serialization/resources/realtime/types/PublishEvent.js +51 -0
  215. package/dist/serialization/resources/realtime/types/SubscribeEvent.d.ts +24 -0
  216. package/dist/serialization/resources/realtime/types/SubscribeEvent.js +53 -0
  217. package/dist/serialization/resources/realtime/types/index.d.ts +6 -0
  218. package/dist/serialization/resources/realtime/types/index.js +22 -0
  219. package/dist/version.d.ts +1 -1
  220. package/dist/version.js +1 -1
  221. package/package.json +3 -1
  222. package/reference.md +151 -11
  223. package/serialization/resources/appSettings/client/index.d.ts +1 -0
  224. package/serialization/resources/appSettings/client/index.js +2 -1
  225. package/serialization/resources/appSettings/client/update.d.ts +13 -0
  226. package/serialization/resources/appSettings/client/update.js +42 -0
  227. package/serialization/resources/commons/types/ActionBase.d.ts +1 -0
  228. package/serialization/resources/commons/types/ActionBase.js +1 -0
  229. package/{dist/serialization/resources/commons/types/ConversationBase.d.ts → serialization/resources/commons/types/BaseConversationResponse.d.ts} +9 -2
  230. package/serialization/resources/commons/types/{ConversationBase.js → BaseConversationResponse.js} +9 -2
  231. package/serialization/resources/commons/types/BasePaginatedRequest.d.ts +14 -0
  232. package/serialization/resources/commons/types/BasePaginatedRequest.js +45 -0
  233. package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
  234. package/serialization/resources/commons/types/BotMessage.js +2 -0
  235. package/serialization/resources/commons/types/BotMessageStatus.d.ts +10 -0
  236. package/serialization/resources/commons/types/BotMessageStatus.js +41 -0
  237. package/serialization/resources/commons/types/ConversationAnalysis.d.ts +6 -0
  238. package/serialization/resources/commons/types/ConversationAnalysis.js +6 -0
  239. package/serialization/resources/commons/types/ConversationPreview.d.ts +12 -0
  240. package/serialization/resources/commons/types/ConversationPreview.js +42 -0
  241. package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -9
  242. package/serialization/resources/commons/types/ConversationResponse.js +2 -9
  243. package/serialization/resources/{conversation → commons}/types/QualityReason.d.ts +1 -1
  244. package/serialization/resources/{conversation → commons}/types/QualityReason.js +0 -1
  245. package/serialization/resources/commons/types/index.d.ts +8 -3
  246. package/serialization/resources/commons/types/index.js +8 -3
  247. package/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -2
  248. package/serialization/resources/conversation/types/ConversationFilter.js +3 -2
  249. package/serialization/resources/conversation/types/ConversationRequest.d.ts +9 -2
  250. package/serialization/resources/conversation/types/ConversationRequest.js +10 -5
  251. package/serialization/resources/conversation/types/ConversationsResponse.d.ts +14 -0
  252. package/serialization/resources/conversation/types/ConversationsResponse.js +47 -0
  253. package/serialization/resources/conversation/types/ConversationsSearchRequest.d.ts +16 -0
  254. package/serialization/resources/conversation/types/ConversationsSearchRequest.js +49 -0
  255. package/serialization/resources/conversation/types/index.d.ts +2 -2
  256. package/serialization/resources/conversation/types/index.js +2 -2
  257. package/serialization/resources/index.d.ts +2 -0
  258. package/serialization/resources/index.js +3 -1
  259. package/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -3
  260. package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +0 -3
  261. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  262. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
  263. package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  264. package/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
  265. package/serialization/resources/knowledge/types/index.d.ts +1 -1
  266. package/serialization/resources/knowledge/types/index.js +1 -1
  267. package/serialization/resources/realtime/index.d.ts +1 -0
  268. package/serialization/resources/realtime/index.js +17 -0
  269. package/serialization/resources/realtime/types/AudioPublishEvent.d.ts +12 -0
  270. package/serialization/resources/realtime/types/AudioPublishEvent.js +43 -0
  271. package/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +12 -0
  272. package/serialization/resources/realtime/types/AudioSubscribeEvent.js +43 -0
  273. package/serialization/resources/realtime/types/ControlEvent.d.ts +12 -0
  274. package/serialization/resources/realtime/types/ControlEvent.js +43 -0
  275. package/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
  276. package/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
  277. package/serialization/resources/realtime/types/PublishEvent.d.ts +18 -0
  278. package/serialization/resources/realtime/types/PublishEvent.js +51 -0
  279. package/serialization/resources/realtime/types/SubscribeEvent.d.ts +24 -0
  280. package/serialization/resources/realtime/types/SubscribeEvent.js +53 -0
  281. package/serialization/resources/realtime/types/index.d.ts +6 -0
  282. package/serialization/resources/realtime/types/index.js +22 -0
  283. package/version.d.ts +1 -1
  284. package/version.js +1 -1
  285. /package/api/resources/commons/types/{ConversationBase.js → BaseConversationResponse.js} +0 -0
  286. /package/{dist/api/resources/commons/types/ConversationBase.js → api/resources/commons/types/BasePaginatedRequest.js} +0 -0
  287. /package/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
  288. /package/api/resources/{conversation → commons}/types/Quality.js +0 -0
  289. /package/dist/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
  290. /package/dist/api/resources/{conversation → commons}/types/Quality.js +0 -0
  291. /package/dist/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
  292. /package/dist/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
  293. /package/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
  294. /package/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
@@ -8,8 +8,7 @@ import * as MavenAGI from "../../../index";
8
8
  * knowledgeBaseId: {
9
9
  * referenceId: "help-center"
10
10
  * },
11
- * name: "Help center",
12
- * type: MavenAGI.KnowledgeBaseType.Api
11
+ * name: "Help center"
13
12
  * }
14
13
  */
15
14
  export interface KnowledgeBaseRequest extends MavenAGI.KnowledgeBaseProperties {
@@ -19,4 +19,6 @@ import * as MavenAGI from "../../../index";
19
19
  export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties {
20
20
  /** ID that uniquely identifies this knowledge base */
21
21
  knowledgeBaseId: MavenAGI.EntityId;
22
+ /** The type of the knowledge base. Can not be changed once created. */
23
+ type: MavenAGI.KnowledgeBaseType;
22
24
  }
@@ -2,11 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * API knowledge bases are managed by a Maven App. URL knowledge bases will start a web crawl of the provided URL. RSS knowledge bases will parse documents from the RSS returned from the provided URL.
5
+ * API knowledge bases are managed by a Maven App.
6
6
  */
7
- export type KnowledgeBaseType = "API" | "URL" | "RSS";
7
+ export type KnowledgeBaseType = "API";
8
8
  export declare const KnowledgeBaseType: {
9
9
  readonly Api: "API";
10
- readonly Url: "URL";
11
- readonly Rss: "RSS";
12
10
  };
@@ -6,6 +6,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.KnowledgeBaseType = void 0;
7
7
  exports.KnowledgeBaseType = {
8
8
  Api: "API",
9
- Url: "URL",
10
- Rss: "RSS",
11
9
  };
@@ -1,7 +1,7 @@
1
1
  export * from "./KnowledgeBaseProperties";
2
- export * from "./KnowledgeBaseType";
3
2
  export * from "./KnowledgeBaseRequest";
4
3
  export * from "./KnowledgeBaseResponse";
4
+ export * from "./KnowledgeBaseType";
5
5
  export * from "./KnowledgeBaseVersion";
6
6
  export * from "./KnowledgeBaseVersionType";
7
7
  export * from "./BaseKnowledgeDocument";
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./KnowledgeBaseProperties"), exports);
18
- __exportStar(require("./KnowledgeBaseType"), exports);
19
18
  __exportStar(require("./KnowledgeBaseRequest"), exports);
20
19
  __exportStar(require("./KnowledgeBaseResponse"), exports);
20
+ __exportStar(require("./KnowledgeBaseType"), exports);
21
21
  __exportStar(require("./KnowledgeBaseVersion"), exports);
22
22
  __exportStar(require("./KnowledgeBaseVersionType"), exports);
23
23
  __exportStar(require("./BaseKnowledgeDocument"), exports);
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import { RealtimeSocket } from "./Socket";
7
+ export declare namespace Realtime {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ appId?: core.Supplier<string | undefined>;
13
+ appSecret?: core.Supplier<string | undefined>;
14
+ /** Override the X-Organization-Id header */
15
+ organizationId: core.Supplier<string>;
16
+ /** Override the X-Agent-Id header */
17
+ agentId: core.Supplier<string>;
18
+ fetcher?: core.FetchFunction;
19
+ }
20
+ interface ConnectArgs {
21
+ convId?: string;
22
+ userId?: string;
23
+ /** Enable debug mode on the websocket. Defaults to false. */
24
+ debug?: boolean;
25
+ /** Number of reconnect attempts. Defaults to 30. */
26
+ reconnectAttempts?: number;
27
+ }
28
+ }
29
+ export declare class Realtime {
30
+ protected readonly _options: Realtime.Options;
31
+ constructor(_options: Realtime.Options);
32
+ connect(args?: Realtime.ConnectArgs): Promise<RealtimeSocket>;
33
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
34
+ }
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Realtime = void 0;
49
+ const environments = __importStar(require("../../../../environments"));
50
+ const core = __importStar(require("../../../../core"));
51
+ const qs = __importStar(require("qs"));
52
+ const Socket_1 = require("./Socket");
53
+ class Realtime {
54
+ constructor(_options) {
55
+ this._options = _options;
56
+ }
57
+ connect() {
58
+ return __awaiter(this, arguments, void 0, function* (args = {}) {
59
+ var _a, _b, _c, _d;
60
+ const queryParams = {};
61
+ if (args.convId != null) {
62
+ queryParams["convId"] = args.convId;
63
+ }
64
+ if (args.userId != null) {
65
+ queryParams["userId"] = args.userId;
66
+ }
67
+ let headers = {};
68
+ const socket = new core.ReconnectingWebSocket(`${(_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production}/v1/realtime?${qs.stringify(queryParams, { arrayFormat: "repeat" })}`, [], { debug: (_c = args.debug) !== null && _c !== void 0 ? _c : false, maxRetries: (_d = args.reconnectAttempts) !== null && _d !== void 0 ? _d : 30 }, headers);
69
+ return new Socket_1.RealtimeSocket({ socket });
70
+ });
71
+ }
72
+ _getAuthorizationHeader() {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ var _a, _b;
75
+ const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
76
+ const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
77
+ if (appId != null && appSecret != null) {
78
+ return core.BasicAuth.toAuthorizationHeader({
79
+ username: appId,
80
+ password: appSecret,
81
+ });
82
+ }
83
+ return undefined;
84
+ });
85
+ }
86
+ }
87
+ exports.Realtime = Realtime;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import * as MavenAGI from "../../../index";
6
+ export declare namespace RealtimeSocket {
7
+ interface Args {
8
+ socket: core.ReconnectingWebSocket;
9
+ }
10
+ type Response = MavenAGI.SubscribeEvent & {
11
+ receivedAt: Date;
12
+ };
13
+ type EventHandlers = {
14
+ open?: () => void;
15
+ message?: (message: Response) => void;
16
+ close?: (event: core.CloseEvent) => void;
17
+ error?: (error: Error) => void;
18
+ };
19
+ }
20
+ export declare class RealtimeSocket {
21
+ readonly socket: core.ReconnectingWebSocket;
22
+ protected readonly eventHandlers: RealtimeSocket.EventHandlers;
23
+ private handleOpen;
24
+ private handleMessage;
25
+ private handleClose;
26
+ private handleError;
27
+ constructor(args: RealtimeSocket.Args);
28
+ /** The current state of the connection; this is one of the readyState constants. */
29
+ get readyState(): number;
30
+ /**
31
+ * @param event - The event to attach to.
32
+ * @param callback - The callback to run when the event is triggered.
33
+ */
34
+ on<T extends keyof RealtimeSocket.EventHandlers>(event: T, callback: RealtimeSocket.EventHandlers[T]): void;
35
+ sendMessage(message: MavenAGI.PublishEvent): void;
36
+ connect(): RealtimeSocket;
37
+ close(): void;
38
+ tillSocketOpen(): Promise<core.ReconnectingWebSocket>;
39
+ private assertSocketIsOpen;
40
+ sendJson(payload: MavenAGI.PublishEvent): void;
41
+ }
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.RealtimeSocket = void 0;
49
+ const core = __importStar(require("../../../../core"));
50
+ const PublishEvent_1 = require("../../../../serialization/resources/realtime/types/PublishEvent");
51
+ const SubscribeEvent_1 = require("../../../../serialization/resources/realtime/types/SubscribeEvent");
52
+ class RealtimeSocket {
53
+ constructor(args) {
54
+ this.eventHandlers = {};
55
+ this.handleOpen = () => {
56
+ var _a, _b;
57
+ (_b = (_a = this.eventHandlers).open) === null || _b === void 0 ? void 0 : _b.call(_a);
58
+ };
59
+ this.handleMessage = (event) => {
60
+ var _a, _b, _c, _d;
61
+ const data = JSON.parse(event.data);
62
+ const parsedResponse = SubscribeEvent_1.SubscribeEvent.parse(data, {
63
+ unrecognizedObjectKeys: "passthrough",
64
+ allowUnrecognizedUnionMembers: true,
65
+ allowUnrecognizedEnumValues: true,
66
+ skipValidation: true,
67
+ breadcrumbsPrefix: ["response"],
68
+ });
69
+ if (parsedResponse.ok) {
70
+ (_b = (_a = this.eventHandlers).message) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, parsedResponse.value), { receivedAt: new Date() }));
71
+ }
72
+ else {
73
+ (_d = (_c = this.eventHandlers).error) === null || _d === void 0 ? void 0 : _d.call(_c, new Error(`Received unknown message type`));
74
+ }
75
+ };
76
+ this.handleClose = (event) => {
77
+ var _a, _b;
78
+ (_b = (_a = this.eventHandlers).close) === null || _b === void 0 ? void 0 : _b.call(_a, event);
79
+ };
80
+ this.handleError = (event) => {
81
+ var _a, _b, _c;
82
+ const message = (_a = event.message) !== null && _a !== void 0 ? _a : "core.ReconnectingWebSocket error";
83
+ (_c = (_b = this.eventHandlers).error) === null || _c === void 0 ? void 0 : _c.call(_b, new Error(message));
84
+ };
85
+ this.socket = args.socket;
86
+ this.socket.addEventListener("open", this.handleOpen);
87
+ this.socket.addEventListener("message", this.handleMessage);
88
+ this.socket.addEventListener("close", this.handleClose);
89
+ this.socket.addEventListener("error", this.handleError);
90
+ }
91
+ /** The current state of the connection; this is one of the readyState constants. */
92
+ get readyState() {
93
+ return this.socket.readyState;
94
+ }
95
+ /**
96
+ * @param event - The event to attach to.
97
+ * @param callback - The callback to run when the event is triggered.
98
+ */
99
+ on(event, callback) {
100
+ this.eventHandlers[event] = callback;
101
+ }
102
+ sendMessage(message) {
103
+ this.assertSocketIsOpen();
104
+ this.sendJson(message);
105
+ }
106
+ connect() {
107
+ this.socket.reconnect();
108
+ this.socket.addEventListener("open", this.handleOpen);
109
+ this.socket.addEventListener("message", this.handleMessage);
110
+ this.socket.addEventListener("close", this.handleClose);
111
+ this.socket.addEventListener("error", this.handleError);
112
+ return this;
113
+ }
114
+ close() {
115
+ this.socket.close();
116
+ this.handleClose({ code: 1000 });
117
+ this.socket.removeEventListener("open", this.handleOpen);
118
+ this.socket.removeEventListener("message", this.handleMessage);
119
+ this.socket.removeEventListener("close", this.handleClose);
120
+ this.socket.removeEventListener("error", this.handleError);
121
+ }
122
+ tillSocketOpen() {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ if (this.socket.readyState === core.ReconnectingWebSocket.OPEN) {
125
+ return this.socket;
126
+ }
127
+ return new Promise((resolve, reject) => {
128
+ this.socket.addEventListener("open", () => {
129
+ resolve(this.socket);
130
+ });
131
+ this.socket.addEventListener("error", (event) => {
132
+ reject(event);
133
+ });
134
+ });
135
+ });
136
+ }
137
+ assertSocketIsOpen() {
138
+ if (!this.socket) {
139
+ throw new Error("Socket is not connected.");
140
+ }
141
+ if (this.socket.readyState !== core.ReconnectingWebSocket.OPEN) {
142
+ throw new Error("Socket is not open.");
143
+ }
144
+ }
145
+ sendJson(payload) {
146
+ const jsonPayload = PublishEvent_1.PublishEvent.jsonOrThrow(payload, {
147
+ unrecognizedObjectKeys: "strip",
148
+ allowUnrecognizedUnionMembers: true,
149
+ allowUnrecognizedEnumValues: true,
150
+ skipValidation: true,
151
+ });
152
+ this.socket.send(JSON.stringify(jsonPayload));
153
+ }
154
+ }
155
+ exports.RealtimeSocket = RealtimeSocket;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -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("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AudioPublishEvent {
5
+ audioContent: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AudioSubscribeEvent {
5
+ audioContent: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ControlEvent {
5
+ reason?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface HangUpPublishEvent {
5
+ message?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * The input from the user to send through the WebSocket.
7
+ */
8
+ export type PublishEvent = MavenAGI.PublishEvent.Audio | MavenAGI.PublishEvent.HangUp;
9
+ export declare namespace PublishEvent {
10
+ interface Audio extends MavenAGI.AudioPublishEvent {
11
+ messageType: "audio";
12
+ }
13
+ interface HangUp extends MavenAGI.HangUpPublishEvent {
14
+ messageType: "hangUp";
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * The response from the server sent through the WebSocket.
7
+ */
8
+ export type SubscribeEvent = MavenAGI.SubscribeEvent.Audio | MavenAGI.SubscribeEvent.ControlSessionStart | MavenAGI.SubscribeEvent.ControlSessionStop | MavenAGI.SubscribeEvent.ControlAudioDone;
9
+ export declare namespace SubscribeEvent {
10
+ interface Audio extends MavenAGI.AudioSubscribeEvent {
11
+ messageType: "audio";
12
+ }
13
+ interface ControlSessionStart extends MavenAGI.ControlEvent {
14
+ messageType: "controlSessionStart";
15
+ }
16
+ interface ControlSessionStop extends MavenAGI.ControlEvent {
17
+ messageType: "controlSessionStop";
18
+ }
19
+ interface ControlAudioDone extends MavenAGI.ControlEvent {
20
+ messageType: "controlAudioDone";
21
+ }
22
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export * from "./ControlEvent";
2
+ export * from "./PublishEvent";
3
+ export * from "./HangUpPublishEvent";
4
+ export * from "./AudioPublishEvent";
5
+ export * from "./SubscribeEvent";
6
+ export * from "./AudioSubscribeEvent";
@@ -0,0 +1,22 @@
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("./ControlEvent"), exports);
18
+ __exportStar(require("./PublishEvent"), exports);
19
+ __exportStar(require("./HangUpPublishEvent"), exports);
20
+ __exportStar(require("./AudioPublishEvent"), exports);
21
+ __exportStar(require("./SubscribeEvent"), exports);
22
+ __exportStar(require("./AudioSubscribeEvent"), exports);
@@ -81,7 +81,7 @@ class Translations {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/translations/translate"),
83
83
  method: "POST",
84
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "mavenagi/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.TranslationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -84,7 +84,7 @@ class Triggers {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/triggers"),
86
86
  method: "PUT",
87
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "mavenagi/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.EventTriggerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -164,7 +164,7 @@ class Triggers {
164
164
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
165
165
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/triggers/${encodeURIComponent(triggerReferenceId)}`),
166
166
  method: "GET",
167
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "mavenagi/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -243,7 +243,7 @@ class Triggers {
243
243
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
244
244
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/triggers/${encodeURIComponent(triggerReferenceId)}`),
245
245
  method: "DELETE",
246
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "mavenagi/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
247
247
  contentType: "application/json",
248
248
  requestType: "json",
249
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -92,7 +92,7 @@ class Users {
92
92
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
93
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/users"),
94
94
  method: "PUT",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "mavenagi/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  requestType: "json",
98
98
  body: serializers.AppUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -178,7 +178,7 @@ class Users {
178
178
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
179
179
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/users/${encodeURIComponent(userId)}`),
180
180
  method: "GET",
181
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "mavenagi/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
182
182
  contentType: "application/json",
183
183
  queryParameters: _queryParams,
184
184
  requestType: "json",
@@ -269,7 +269,7 @@ class Users {
269
269
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
270
270
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/users/${encodeURIComponent(userId)}`),
271
271
  method: "DELETE",
272
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.10", "User-Agent": "mavenagi/1.0.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
273
273
  contentType: "application/json",
274
274
  queryParameters: _queryParams,
275
275
  requestType: "json",