mavenagi 1.2.0 → 1.2.3

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 (865) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +33 -28
  3. package/README.md +1 -1
  4. package/api/resources/actions/client/Client.d.ts +2 -2
  5. package/api/resources/actions/client/Client.js +5 -5
  6. package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +24 -0
  7. package/api/resources/actions/client/requests/index.d.ts +1 -0
  8. package/api/resources/actions/types/index.d.ts +0 -1
  9. package/api/resources/actions/types/index.js +0 -1
  10. package/api/resources/agentCapabilities/client/Client.d.ts +85 -0
  11. package/api/resources/agentCapabilities/client/Client.js +349 -0
  12. package/api/resources/agentCapabilities/client/index.d.ts +1 -0
  13. package/api/resources/agentCapabilities/client/index.js +2 -0
  14. package/api/resources/agentCapabilities/index.d.ts +2 -0
  15. package/api/resources/agentCapabilities/index.js +18 -0
  16. package/api/resources/agentCapabilities/types/ActionCapability.d.ts +16 -0
  17. package/api/resources/agentCapabilities/types/AgentCapability.d.ts +13 -0
  18. package/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +15 -0
  19. package/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +11 -0
  20. package/api/resources/agentCapabilities/types/AgentCapabilityField.js +13 -0
  21. package/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +14 -0
  22. package/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +8 -0
  23. package/api/resources/agentCapabilities/types/AgentCapabilityType.js +10 -0
  24. package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +8 -0
  25. package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +11 -0
  26. package/api/resources/agentCapabilities/types/TriggerCapability.d.ts +7 -0
  27. package/api/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
  28. package/api/resources/agentCapabilities/types/TriggerType.js +12 -0
  29. package/api/resources/agentCapabilities/types/index.d.ts +10 -0
  30. package/api/resources/agentCapabilities/types/index.js +26 -0
  31. package/api/resources/agents/types/Agent.d.ts +2 -0
  32. package/api/resources/agents/types/AgentPatchRequest.d.ts +2 -0
  33. package/api/resources/agents/types/PiiCategory.d.ts +2 -2
  34. package/api/resources/agents/types/PiiCategory.js +1 -1
  35. package/api/resources/analytics/client/Client.d.ts +25 -0
  36. package/api/resources/analytics/client/Client.js +103 -0
  37. package/api/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
  38. package/api/resources/analytics/types/AgentUserColumnDefinition.d.ts +8 -0
  39. package/api/resources/analytics/types/AgentUserCount.d.ts +8 -0
  40. package/api/resources/analytics/types/AgentUserMetric.d.ts +13 -0
  41. package/api/resources/analytics/types/AgentUserRow.d.ts +11 -0
  42. package/api/resources/analytics/types/AgentUserTableRequest.d.ts +30 -0
  43. package/api/resources/analytics/types/AgentUserTableResponse.d.ts +28 -0
  44. package/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +6 -0
  45. package/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +6 -0
  46. package/api/resources/analytics/types/FieldValue.d.ts +1 -1
  47. package/api/resources/analytics/types/index.d.ts +7 -0
  48. package/api/resources/analytics/types/index.js +7 -0
  49. package/api/resources/commons/types/ActionExecutionParamValue.d.ts +14 -0
  50. package/api/resources/commons/types/ActionOAuthConfiguration.d.ts +12 -0
  51. package/api/resources/commons/types/ActionParameter.d.ts +20 -1
  52. package/api/resources/commons/types/ActionParameterType.d.ts +9 -1
  53. package/api/resources/commons/types/ActionParameterType.js +2 -0
  54. package/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +1 -1
  55. package/api/resources/commons/types/BotOAuthButtonResponse.d.ts +12 -0
  56. package/api/resources/commons/types/BotResponse.d.ts +4 -1
  57. package/api/resources/commons/types/Capability.d.ts +2 -1
  58. package/api/resources/commons/types/Capability.js +1 -0
  59. package/api/resources/commons/types/EntityResult.d.ts +8 -0
  60. package/{dist/api/resources/events → api/resources/commons}/types/EventBaseNoId.d.ts +1 -1
  61. package/api/resources/{events → commons}/types/EventFilter.d.ts +2 -1
  62. package/api/resources/commons/types/EventRequest.d.ts +13 -0
  63. package/api/resources/{events/types/UserInfo.d.ts → commons/types/EventUserInfo.d.ts} +1 -1
  64. package/api/resources/commons/types/EventUserInfoBase.d.ts +7 -0
  65. package/api/resources/commons/types/NovelSystemEvent.d.ts +8 -0
  66. package/api/resources/commons/types/NovelUserEvent.d.ts +16 -0
  67. package/api/resources/commons/types/QualityReason.d.ts +2 -1
  68. package/api/resources/commons/types/QualityReason.js +1 -0
  69. package/api/resources/commons/types/ResponseConfig.d.ts +1 -0
  70. package/api/resources/commons/types/ScopedEntity.d.ts +8 -0
  71. package/api/resources/{events → commons}/types/UserEvent.d.ts +1 -1
  72. package/api/resources/{events → commons}/types/UserEventName.d.ts +5 -1
  73. package/api/resources/{events → commons}/types/UserEventName.js +1 -0
  74. package/api/resources/commons/types/index.d.ts +38 -0
  75. package/api/resources/commons/types/index.js +38 -0
  76. package/api/resources/conversation/client/Client.js +4 -1
  77. package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +4 -0
  78. package/api/resources/conversation/types/ActionFormAttachment.d.ts +8 -0
  79. package/api/resources/conversation/types/ActionFormRequestParamValue.d.ts +5 -0
  80. package/api/resources/conversation/types/ActionFormRequestParamValue.js +5 -0
  81. package/api/resources/conversation/types/AskStreamOAuthButtonEvent.d.ts +6 -0
  82. package/api/resources/conversation/types/AskStreamOAuthButtonEvent.js +5 -0
  83. package/api/resources/conversation/types/ConversationFilter.d.ts +4 -0
  84. package/api/resources/conversation/types/StreamResponse.d.ts +4 -1
  85. package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
  86. package/api/resources/conversation/types/index.d.ts +3 -0
  87. package/api/resources/conversation/types/index.js +3 -0
  88. package/api/resources/events/client/Client.d.ts +26 -0
  89. package/api/resources/events/client/Client.js +104 -0
  90. package/api/resources/events/index.d.ts +0 -1
  91. package/api/resources/events/index.js +0 -1
  92. package/api/resources/index.d.ts +5 -3
  93. package/api/resources/index.js +6 -4
  94. package/api/resources/knowledge/client/Client.d.ts +43 -38
  95. package/api/resources/knowledge/client/Client.js +150 -60
  96. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +30 -0
  97. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +5 -0
  98. package/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.d.ts +13 -0
  99. package/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.js +5 -0
  100. package/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.d.ts +15 -0
  101. package/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.js +5 -0
  102. package/api/resources/knowledge/client/requests/index.d.ts +3 -0
  103. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +2 -0
  104. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  105. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -3
  106. package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +14 -0
  107. package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.js +5 -0
  108. package/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +8 -0
  109. package/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +5 -0
  110. package/api/resources/knowledge/types/KnowledgeDeleteRequest.d.ts +18 -0
  111. package/api/resources/knowledge/types/KnowledgeDeleteRequest.js +5 -0
  112. package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +8 -0
  113. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -3
  114. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +5 -2
  115. package/api/resources/knowledge/types/index.d.ts +3 -1
  116. package/api/resources/knowledge/types/index.js +3 -1
  117. package/api/resources/organizations/client/Client.d.ts +78 -0
  118. package/api/resources/organizations/client/Client.js +376 -0
  119. package/api/resources/organizations/index.d.ts +1 -0
  120. package/api/resources/organizations/index.js +1 -0
  121. package/api/resources/organizations/types/BaseOrganization.d.ts +9 -0
  122. package/api/resources/organizations/types/BaseOrganization.js +5 -0
  123. package/api/resources/organizations/types/CreateOrganizationRequest.d.ts +6 -0
  124. package/api/resources/organizations/types/CreateOrganizationRequest.js +5 -0
  125. package/api/resources/organizations/types/Organization.d.ts +8 -0
  126. package/api/resources/organizations/types/Organization.js +5 -0
  127. package/api/resources/organizations/types/OrganizationPatchRequest.d.ts +9 -0
  128. package/api/resources/organizations/types/OrganizationPatchRequest.js +5 -0
  129. package/api/resources/organizations/types/index.d.ts +4 -0
  130. package/api/resources/organizations/types/index.js +20 -0
  131. package/api/resources/triggers/types/EventTriggerType.d.ts +2 -1
  132. package/api/resources/triggers/types/EventTriggerType.js +1 -0
  133. package/api/resources/users/types/AgentUserFilter.d.ts +5 -0
  134. package/dist/Client.d.ts +3 -0
  135. package/dist/Client.js +33 -28
  136. package/dist/api/resources/actions/client/Client.d.ts +2 -2
  137. package/dist/api/resources/actions/client/Client.js +5 -5
  138. package/dist/api/resources/actions/client/requests/ActionPatchRequest.d.ts +24 -0
  139. package/dist/api/resources/actions/client/requests/ActionPatchRequest.js +5 -0
  140. package/dist/api/resources/actions/client/requests/index.d.ts +1 -0
  141. package/dist/api/resources/actions/types/index.d.ts +0 -1
  142. package/dist/api/resources/actions/types/index.js +0 -1
  143. package/dist/api/resources/agentCapabilities/client/Client.d.ts +85 -0
  144. package/dist/api/resources/agentCapabilities/client/Client.js +349 -0
  145. package/dist/api/resources/agentCapabilities/client/index.d.ts +1 -0
  146. package/dist/api/resources/agentCapabilities/client/index.js +2 -0
  147. package/dist/api/resources/agentCapabilities/index.d.ts +2 -0
  148. package/dist/api/resources/agentCapabilities/index.js +18 -0
  149. package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +16 -0
  150. package/dist/api/resources/agentCapabilities/types/ActionCapability.js +5 -0
  151. package/dist/api/resources/agentCapabilities/types/AgentCapability.d.ts +13 -0
  152. package/dist/api/resources/agentCapabilities/types/AgentCapability.js +5 -0
  153. package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +15 -0
  154. package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.js +5 -0
  155. package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +11 -0
  156. package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.js +13 -0
  157. package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +14 -0
  158. package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.js +5 -0
  159. package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +8 -0
  160. package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.js +10 -0
  161. package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +8 -0
  162. package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +5 -0
  163. package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +11 -0
  164. package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +5 -0
  165. package/dist/api/resources/agentCapabilities/types/TriggerCapability.d.ts +7 -0
  166. package/dist/api/resources/agentCapabilities/types/TriggerCapability.js +5 -0
  167. package/dist/api/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
  168. package/dist/api/resources/agentCapabilities/types/TriggerType.js +12 -0
  169. package/dist/api/resources/agentCapabilities/types/index.d.ts +10 -0
  170. package/dist/api/resources/agentCapabilities/types/index.js +26 -0
  171. package/dist/api/resources/agents/types/Agent.d.ts +2 -0
  172. package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +2 -0
  173. package/dist/api/resources/agents/types/PiiCategory.d.ts +2 -2
  174. package/dist/api/resources/agents/types/PiiCategory.js +1 -1
  175. package/dist/api/resources/analytics/client/Client.d.ts +25 -0
  176. package/dist/api/resources/analytics/client/Client.js +103 -0
  177. package/dist/api/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
  178. package/dist/api/resources/analytics/types/AgentUserAnalyticsRequest.js +5 -0
  179. package/dist/api/resources/analytics/types/AgentUserColumnDefinition.d.ts +8 -0
  180. package/dist/api/resources/analytics/types/AgentUserColumnDefinition.js +5 -0
  181. package/dist/api/resources/analytics/types/AgentUserCount.d.ts +8 -0
  182. package/dist/api/resources/analytics/types/AgentUserCount.js +5 -0
  183. package/dist/api/resources/analytics/types/AgentUserMetric.d.ts +13 -0
  184. package/dist/api/resources/analytics/types/AgentUserMetric.js +5 -0
  185. package/dist/api/resources/analytics/types/AgentUserRow.d.ts +11 -0
  186. package/dist/api/resources/analytics/types/AgentUserRow.js +5 -0
  187. package/dist/api/resources/analytics/types/AgentUserTableRequest.d.ts +30 -0
  188. package/dist/api/resources/analytics/types/AgentUserTableRequest.js +5 -0
  189. package/dist/api/resources/analytics/types/AgentUserTableResponse.d.ts +28 -0
  190. package/dist/api/resources/analytics/types/AgentUserTableResponse.js +5 -0
  191. package/dist/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +6 -0
  192. package/dist/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +6 -0
  193. package/dist/api/resources/analytics/types/FieldValue.d.ts +1 -1
  194. package/dist/api/resources/analytics/types/index.d.ts +7 -0
  195. package/dist/api/resources/analytics/types/index.js +7 -0
  196. package/dist/api/resources/commons/types/ActionExecutionParamValue.d.ts +14 -0
  197. package/dist/api/resources/commons/types/ActionExecutionParamValue.js +5 -0
  198. package/dist/api/resources/commons/types/ActionOAuthConfiguration.d.ts +12 -0
  199. package/dist/api/resources/commons/types/ActionOAuthConfiguration.js +5 -0
  200. package/dist/api/resources/commons/types/ActionParameter.d.ts +20 -1
  201. package/dist/api/resources/commons/types/ActionParameterType.d.ts +9 -1
  202. package/dist/api/resources/commons/types/ActionParameterType.js +2 -0
  203. package/dist/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +1 -1
  204. package/dist/api/resources/commons/types/BotOAuthButtonResponse.d.ts +12 -0
  205. package/dist/api/resources/commons/types/BotOAuthButtonResponse.js +5 -0
  206. package/dist/api/resources/commons/types/BotResponse.d.ts +4 -1
  207. package/dist/api/resources/commons/types/BrowserInfo.js +5 -0
  208. package/dist/api/resources/commons/types/Capability.d.ts +2 -1
  209. package/dist/api/resources/commons/types/Capability.js +1 -0
  210. package/dist/api/resources/commons/types/ContextInfo.js +5 -0
  211. package/dist/api/resources/commons/types/DeviceInfo.js +5 -0
  212. package/dist/api/resources/commons/types/EntityResult.d.ts +8 -0
  213. package/dist/api/resources/commons/types/EntityResult.js +5 -0
  214. package/{api/resources/events → dist/api/resources/commons}/types/EventBaseNoId.d.ts +1 -1
  215. package/dist/api/resources/commons/types/EventBaseNoId.js +5 -0
  216. package/dist/api/resources/{events → commons}/types/EventFilter.d.ts +2 -1
  217. package/dist/api/resources/commons/types/EventFilter.js +5 -0
  218. package/dist/api/resources/commons/types/EventRequest.d.ts +13 -0
  219. package/dist/api/resources/commons/types/EventRequest.js +5 -0
  220. package/dist/api/resources/commons/types/EventResponse.js +5 -0
  221. package/dist/api/resources/{events/types/UserInfo.d.ts → commons/types/EventUserInfo.d.ts} +1 -1
  222. package/dist/api/resources/commons/types/EventUserInfo.js +5 -0
  223. package/dist/api/resources/commons/types/EventUserInfoBase.d.ts +7 -0
  224. package/dist/api/resources/commons/types/EventUserInfoBase.js +5 -0
  225. package/dist/api/resources/commons/types/EventsSearchRequest.js +5 -0
  226. package/dist/api/resources/commons/types/EventsSearchResponse.js +5 -0
  227. package/dist/api/resources/commons/types/FeedbackInfo.js +5 -0
  228. package/dist/api/resources/commons/types/GeoInfo.js +5 -0
  229. package/dist/api/resources/commons/types/IpInfo.js +5 -0
  230. package/dist/api/resources/commons/types/LanguageInfo.js +5 -0
  231. package/dist/api/resources/commons/types/NovelSystemEvent.d.ts +8 -0
  232. package/dist/api/resources/commons/types/NovelSystemEvent.js +5 -0
  233. package/dist/api/resources/commons/types/NovelSystemEventNoId.js +5 -0
  234. package/dist/api/resources/commons/types/NovelUserEvent.d.ts +16 -0
  235. package/dist/api/resources/commons/types/NovelUserEvent.js +5 -0
  236. package/dist/api/resources/commons/types/OsInfo.js +5 -0
  237. package/dist/api/resources/commons/types/PageInfo.js +5 -0
  238. package/dist/api/resources/commons/types/QualityReason.d.ts +2 -1
  239. package/dist/api/resources/commons/types/QualityReason.js +1 -0
  240. package/dist/api/resources/commons/types/ResponseConfig.d.ts +1 -0
  241. package/dist/api/resources/commons/types/ScopedEntity.d.ts +8 -0
  242. package/dist/api/resources/commons/types/ScopedEntity.js +5 -0
  243. package/dist/api/resources/commons/types/SessionInfo.js +5 -0
  244. package/dist/api/resources/commons/types/SourceInfo.js +5 -0
  245. package/dist/api/resources/commons/types/SurveyInfo.js +5 -0
  246. package/dist/api/resources/commons/types/SystemEvent.js +5 -0
  247. package/dist/api/resources/{events → commons}/types/UserEvent.d.ts +1 -1
  248. package/dist/api/resources/commons/types/UserEvent.js +5 -0
  249. package/dist/api/resources/{events → commons}/types/UserEventName.d.ts +5 -1
  250. package/dist/api/resources/{events → commons}/types/UserEventName.js +1 -0
  251. package/dist/api/resources/commons/types/index.d.ts +38 -0
  252. package/dist/api/resources/commons/types/index.js +38 -0
  253. package/dist/api/resources/conversation/client/Client.js +4 -1
  254. package/dist/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +4 -0
  255. package/dist/api/resources/conversation/types/ActionFormAttachment.d.ts +8 -0
  256. package/dist/api/resources/conversation/types/ActionFormAttachment.js +5 -0
  257. package/dist/api/resources/conversation/types/ActionFormRequestParamValue.d.ts +5 -0
  258. package/dist/api/resources/conversation/types/ActionFormRequestParamValue.js +5 -0
  259. package/dist/api/resources/conversation/types/AskStreamOAuthButtonEvent.d.ts +6 -0
  260. package/dist/api/resources/conversation/types/AskStreamOAuthButtonEvent.js +5 -0
  261. package/dist/api/resources/conversation/types/ConversationFilter.d.ts +4 -0
  262. package/dist/api/resources/conversation/types/StreamResponse.d.ts +4 -1
  263. package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
  264. package/dist/api/resources/conversation/types/index.d.ts +3 -0
  265. package/dist/api/resources/conversation/types/index.js +3 -0
  266. package/dist/api/resources/events/client/Client.d.ts +26 -0
  267. package/dist/api/resources/events/client/Client.js +104 -0
  268. package/dist/api/resources/events/index.d.ts +0 -1
  269. package/dist/api/resources/events/index.js +0 -1
  270. package/dist/api/resources/index.d.ts +5 -3
  271. package/dist/api/resources/index.js +6 -4
  272. package/dist/api/resources/knowledge/client/Client.d.ts +43 -38
  273. package/dist/api/resources/knowledge/client/Client.js +150 -60
  274. package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +30 -0
  275. package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +5 -0
  276. package/dist/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.d.ts +13 -0
  277. package/dist/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.js +5 -0
  278. package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.d.ts +15 -0
  279. package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.js +5 -0
  280. package/dist/api/resources/knowledge/client/requests/index.d.ts +3 -0
  281. package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +2 -0
  282. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  283. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -3
  284. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +14 -0
  285. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionRequest.js +5 -0
  286. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +8 -0
  287. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +5 -0
  288. package/dist/api/resources/knowledge/types/KnowledgeDeleteRequest.d.ts +18 -0
  289. package/dist/api/resources/knowledge/types/KnowledgeDeleteRequest.js +5 -0
  290. package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +8 -0
  291. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -3
  292. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +5 -2
  293. package/dist/api/resources/knowledge/types/index.d.ts +3 -1
  294. package/dist/api/resources/knowledge/types/index.js +3 -1
  295. package/dist/api/resources/organizations/client/Client.d.ts +78 -0
  296. package/dist/api/resources/organizations/client/Client.js +376 -0
  297. package/dist/api/resources/organizations/index.d.ts +1 -0
  298. package/dist/api/resources/organizations/index.js +1 -0
  299. package/dist/api/resources/organizations/types/BaseOrganization.d.ts +9 -0
  300. package/dist/api/resources/organizations/types/BaseOrganization.js +5 -0
  301. package/dist/api/resources/organizations/types/CreateOrganizationRequest.d.ts +6 -0
  302. package/dist/api/resources/organizations/types/CreateOrganizationRequest.js +5 -0
  303. package/dist/api/resources/organizations/types/Organization.d.ts +8 -0
  304. package/dist/api/resources/organizations/types/Organization.js +5 -0
  305. package/dist/api/resources/organizations/types/OrganizationPatchRequest.d.ts +9 -0
  306. package/dist/api/resources/organizations/types/OrganizationPatchRequest.js +5 -0
  307. package/dist/api/resources/organizations/types/index.d.ts +4 -0
  308. package/dist/api/resources/organizations/types/index.js +20 -0
  309. package/dist/api/resources/triggers/types/EventTriggerType.d.ts +2 -1
  310. package/dist/api/resources/triggers/types/EventTriggerType.js +1 -0
  311. package/dist/api/resources/users/types/AgentUserFilter.d.ts +5 -0
  312. package/dist/serialization/resources/actions/client/index.d.ts +1 -0
  313. package/dist/serialization/resources/actions/client/index.js +17 -0
  314. package/dist/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +17 -0
  315. package/dist/serialization/resources/actions/{types → client/requests}/ActionPatchRequest.js +4 -2
  316. package/dist/serialization/resources/actions/client/requests/index.d.ts +1 -0
  317. package/dist/serialization/resources/actions/client/requests/index.js +5 -0
  318. package/dist/serialization/resources/actions/index.d.ts +1 -0
  319. package/dist/serialization/resources/actions/index.js +1 -0
  320. package/dist/serialization/resources/actions/types/index.d.ts +0 -1
  321. package/dist/serialization/resources/actions/types/index.js +0 -1
  322. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +20 -0
  323. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +54 -0
  324. package/dist/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +18 -0
  325. package/dist/serialization/resources/agentCapabilities/types/AgentCapability.js +51 -0
  326. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +18 -0
  327. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +49 -0
  328. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +10 -0
  329. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +41 -0
  330. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +21 -0
  331. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +54 -0
  332. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +10 -0
  333. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +41 -0
  334. package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +15 -0
  335. package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +48 -0
  336. package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +14 -0
  337. package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +45 -0
  338. package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +14 -0
  339. package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.js +47 -0
  340. package/dist/serialization/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
  341. package/dist/serialization/resources/agentCapabilities/types/TriggerType.js +41 -0
  342. package/dist/serialization/resources/agentCapabilities/types/index.d.ts +10 -0
  343. package/dist/serialization/resources/agentCapabilities/types/index.js +26 -0
  344. package/dist/serialization/resources/agents/types/Agent.d.ts +1 -0
  345. package/dist/serialization/resources/agents/types/Agent.js +1 -0
  346. package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +1 -0
  347. package/dist/serialization/resources/agents/types/AgentPatchRequest.js +1 -0
  348. package/dist/serialization/resources/agents/types/PiiCategory.d.ts +1 -1
  349. package/dist/serialization/resources/agents/types/PiiCategory.js +1 -1
  350. package/dist/serialization/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
  351. package/dist/serialization/resources/analytics/types/AgentUserAnalyticsRequest.js +45 -0
  352. package/dist/serialization/resources/analytics/types/AgentUserColumnDefinition.d.ts +14 -0
  353. package/dist/serialization/resources/analytics/types/AgentUserColumnDefinition.js +47 -0
  354. package/dist/serialization/resources/analytics/types/AgentUserCount.d.ts +11 -0
  355. package/dist/serialization/resources/analytics/types/AgentUserCount.js +41 -0
  356. package/dist/serialization/resources/analytics/types/AgentUserMetric.d.ts +14 -0
  357. package/dist/serialization/resources/analytics/types/AgentUserMetric.js +49 -0
  358. package/dist/serialization/resources/analytics/types/AgentUserRow.d.ts +15 -0
  359. package/dist/serialization/resources/analytics/types/AgentUserRow.js +48 -0
  360. package/dist/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +16 -0
  361. package/dist/serialization/resources/analytics/types/AgentUserTableRequest.js +49 -0
  362. package/dist/serialization/resources/analytics/types/AgentUserTableResponse.d.ts +14 -0
  363. package/dist/serialization/resources/analytics/types/AgentUserTableResponse.js +47 -0
  364. package/dist/serialization/resources/analytics/types/ConversationAnalyticsRequest.d.ts +1 -0
  365. package/dist/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +1 -0
  366. package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +1 -0
  367. package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +1 -0
  368. package/dist/serialization/resources/analytics/types/FieldValue.d.ts +2 -2
  369. package/dist/serialization/resources/analytics/types/FieldValue.js +2 -2
  370. package/dist/serialization/resources/analytics/types/index.d.ts +7 -0
  371. package/dist/serialization/resources/analytics/types/index.js +7 -0
  372. package/dist/serialization/resources/commons/types/ActionExecutionParamValue.d.ts +18 -0
  373. package/dist/serialization/resources/commons/types/ActionExecutionParamValue.js +52 -0
  374. package/dist/serialization/resources/commons/types/ActionOAuthConfiguration.d.ts +18 -0
  375. package/dist/serialization/resources/commons/types/ActionOAuthConfiguration.js +49 -0
  376. package/dist/serialization/resources/commons/types/ActionParameter.d.ts +3 -0
  377. package/dist/serialization/resources/commons/types/ActionParameter.js +3 -0
  378. package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
  379. package/dist/serialization/resources/commons/types/ActionParameterType.js +1 -1
  380. package/dist/serialization/resources/commons/types/BotLogicActionExecutedDetail.d.ts +2 -1
  381. package/dist/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +2 -1
  382. package/dist/serialization/resources/commons/types/BotOAuthButtonResponse.d.ts +13 -0
  383. package/dist/serialization/resources/commons/types/BotOAuthButtonResponse.js +44 -0
  384. package/dist/serialization/resources/commons/types/BotResponse.d.ts +5 -1
  385. package/dist/serialization/resources/commons/types/BotResponse.js +2 -0
  386. package/dist/serialization/resources/commons/types/Capability.d.ts +1 -1
  387. package/dist/serialization/resources/commons/types/Capability.js +1 -1
  388. package/dist/serialization/resources/commons/types/EntityResult.d.ts +13 -0
  389. package/dist/serialization/resources/commons/types/EntityResult.js +46 -0
  390. package/dist/serialization/resources/{events → commons}/types/EventBaseNoId.d.ts +2 -2
  391. package/dist/serialization/resources/{events → commons}/types/EventBaseNoId.js +2 -2
  392. package/dist/serialization/resources/{events → commons}/types/EventFilter.d.ts +3 -2
  393. package/dist/serialization/resources/{events → commons}/types/EventFilter.js +3 -2
  394. package/dist/serialization/resources/commons/types/EventRequest.d.ts +18 -0
  395. package/dist/serialization/resources/commons/types/EventRequest.js +51 -0
  396. package/dist/serialization/resources/{events/types/UserInfo.d.ts → commons/types/EventUserInfo.d.ts} +3 -3
  397. package/{serialization/resources/events/types/UserInfo.js → dist/serialization/resources/commons/types/EventUserInfo.js} +3 -3
  398. package/dist/serialization/resources/commons/types/EventUserInfoBase.d.ts +13 -0
  399. package/dist/serialization/resources/commons/types/EventUserInfoBase.js +44 -0
  400. package/dist/serialization/resources/{events → commons}/types/EventsSearchRequest.d.ts +1 -1
  401. package/{serialization/resources/events → dist/serialization/resources/commons}/types/EventsSearchRequest.js +1 -1
  402. package/dist/serialization/resources/{events → commons}/types/EventsSearchResponse.d.ts +1 -1
  403. package/dist/serialization/resources/{events → commons}/types/EventsSearchResponse.js +1 -1
  404. package/dist/serialization/resources/commons/types/NovelSystemEvent.d.ts +14 -0
  405. package/dist/serialization/resources/commons/types/NovelSystemEvent.js +47 -0
  406. package/dist/serialization/resources/commons/types/NovelUserEvent.d.ts +22 -0
  407. package/dist/serialization/resources/commons/types/NovelUserEvent.js +55 -0
  408. package/dist/serialization/resources/commons/types/QualityReason.d.ts +1 -1
  409. package/dist/serialization/resources/commons/types/QualityReason.js +1 -0
  410. package/dist/serialization/resources/commons/types/ScopedEntity.d.ts +14 -0
  411. package/dist/serialization/resources/commons/types/ScopedEntity.js +45 -0
  412. package/dist/serialization/resources/{events → commons}/types/SystemEvent.d.ts +1 -1
  413. package/dist/serialization/resources/{events → commons}/types/SystemEvent.js +1 -1
  414. package/{serialization/resources/events → dist/serialization/resources/commons}/types/UserEvent.d.ts +3 -3
  415. package/{serialization/resources/events → dist/serialization/resources/commons}/types/UserEvent.js +3 -3
  416. package/dist/serialization/resources/{events → commons}/types/UserEventName.d.ts +1 -1
  417. package/dist/serialization/resources/{events → commons}/types/UserEventName.js +1 -1
  418. package/dist/serialization/resources/commons/types/index.d.ts +38 -0
  419. package/dist/serialization/resources/commons/types/index.js +38 -0
  420. package/dist/serialization/resources/conversation/types/ActionFormAttachment.d.ts +13 -0
  421. package/dist/serialization/resources/conversation/types/ActionFormAttachment.js +44 -0
  422. package/dist/serialization/resources/conversation/types/ActionFormRequestParamValue.d.ts +11 -0
  423. package/dist/serialization/resources/conversation/types/ActionFormRequestParamValue.js +42 -0
  424. package/dist/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.d.ts +12 -0
  425. package/dist/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.js +42 -0
  426. package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -0
  427. package/dist/serialization/resources/conversation/types/ConversationFilter.js +2 -0
  428. package/dist/serialization/resources/conversation/types/StreamResponse.d.ts +5 -1
  429. package/dist/serialization/resources/conversation/types/StreamResponse.js +2 -0
  430. package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
  431. package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +2 -1
  432. package/dist/serialization/resources/conversation/types/index.d.ts +3 -0
  433. package/dist/serialization/resources/conversation/types/index.js +3 -0
  434. package/dist/serialization/resources/index.d.ts +6 -2
  435. package/dist/serialization/resources/index.js +7 -3
  436. package/dist/serialization/resources/knowledge/client/index.d.ts +1 -0
  437. package/dist/serialization/resources/knowledge/client/index.js +17 -0
  438. package/dist/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +21 -0
  439. package/dist/serialization/resources/knowledge/{types → client/requests}/KnowledgeBasePatchRequest.js +7 -3
  440. package/dist/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
  441. package/dist/serialization/resources/knowledge/client/requests/index.js +5 -0
  442. package/dist/serialization/resources/knowledge/index.d.ts +1 -0
  443. package/dist/serialization/resources/knowledge/index.js +1 -0
  444. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +1 -0
  445. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +1 -0
  446. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -0
  447. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -0
  448. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -3
  449. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -4
  450. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +13 -0
  451. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +44 -0
  452. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +13 -0
  453. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +44 -0
  454. package/dist/serialization/resources/knowledge/types/KnowledgeDeleteRequest.d.ts +13 -0
  455. package/dist/serialization/resources/knowledge/types/KnowledgeDeleteRequest.js +44 -0
  456. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
  457. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
  458. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -4
  459. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -4
  460. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -1
  461. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -1
  462. package/dist/serialization/resources/knowledge/types/index.d.ts +3 -1
  463. package/dist/serialization/resources/knowledge/types/index.js +3 -1
  464. package/dist/serialization/resources/organizations/types/BaseOrganization.d.ts +13 -0
  465. package/dist/serialization/resources/organizations/types/BaseOrganization.js +44 -0
  466. package/dist/serialization/resources/organizations/types/CreateOrganizationRequest.d.ts +12 -0
  467. package/dist/serialization/resources/organizations/types/CreateOrganizationRequest.js +42 -0
  468. package/dist/serialization/resources/organizations/types/Organization.d.ts +14 -0
  469. package/dist/serialization/resources/organizations/types/Organization.js +47 -0
  470. package/dist/serialization/resources/organizations/types/OrganizationPatchRequest.d.ts +13 -0
  471. package/dist/serialization/resources/organizations/types/OrganizationPatchRequest.js +44 -0
  472. package/dist/serialization/resources/organizations/types/index.d.ts +4 -0
  473. package/dist/serialization/resources/organizations/types/index.js +20 -0
  474. package/dist/serialization/resources/triggers/types/EventTriggerType.d.ts +1 -1
  475. package/dist/serialization/resources/triggers/types/EventTriggerType.js +1 -1
  476. package/dist/serialization/resources/users/types/AgentUserFilter.d.ts +1 -0
  477. package/dist/serialization/resources/users/types/AgentUserFilter.js +1 -0
  478. package/dist/version.d.ts +1 -1
  479. package/dist/version.js +1 -1
  480. package/package.json +1 -1
  481. package/reference.md +732 -43
  482. package/serialization/resources/actions/client/index.d.ts +1 -0
  483. package/serialization/resources/actions/client/index.js +17 -0
  484. package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +17 -0
  485. package/serialization/resources/actions/{types → client/requests}/ActionPatchRequest.js +4 -2
  486. package/serialization/resources/actions/client/requests/index.d.ts +1 -0
  487. package/serialization/resources/actions/client/requests/index.js +5 -0
  488. package/serialization/resources/actions/index.d.ts +1 -0
  489. package/serialization/resources/actions/index.js +1 -0
  490. package/serialization/resources/actions/types/index.d.ts +0 -1
  491. package/serialization/resources/actions/types/index.js +0 -1
  492. package/serialization/resources/agentCapabilities/index.d.ts +1 -0
  493. package/serialization/resources/agentCapabilities/index.js +17 -0
  494. package/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +20 -0
  495. package/serialization/resources/agentCapabilities/types/ActionCapability.js +54 -0
  496. package/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +18 -0
  497. package/serialization/resources/agentCapabilities/types/AgentCapability.js +51 -0
  498. package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +18 -0
  499. package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +49 -0
  500. package/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +10 -0
  501. package/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +41 -0
  502. package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +21 -0
  503. package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +54 -0
  504. package/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +10 -0
  505. package/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +41 -0
  506. package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +15 -0
  507. package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +48 -0
  508. package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +14 -0
  509. package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +45 -0
  510. package/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +14 -0
  511. package/serialization/resources/agentCapabilities/types/TriggerCapability.js +47 -0
  512. package/serialization/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
  513. package/serialization/resources/agentCapabilities/types/TriggerType.js +41 -0
  514. package/serialization/resources/agentCapabilities/types/index.d.ts +10 -0
  515. package/serialization/resources/agentCapabilities/types/index.js +26 -0
  516. package/serialization/resources/agents/types/Agent.d.ts +1 -0
  517. package/serialization/resources/agents/types/Agent.js +1 -0
  518. package/serialization/resources/agents/types/AgentPatchRequest.d.ts +1 -0
  519. package/serialization/resources/agents/types/AgentPatchRequest.js +1 -0
  520. package/serialization/resources/agents/types/PiiCategory.d.ts +1 -1
  521. package/serialization/resources/agents/types/PiiCategory.js +1 -1
  522. package/serialization/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
  523. package/serialization/resources/analytics/types/AgentUserAnalyticsRequest.js +45 -0
  524. package/serialization/resources/analytics/types/AgentUserColumnDefinition.d.ts +14 -0
  525. package/serialization/resources/analytics/types/AgentUserColumnDefinition.js +47 -0
  526. package/serialization/resources/analytics/types/AgentUserCount.d.ts +11 -0
  527. package/serialization/resources/analytics/types/AgentUserCount.js +41 -0
  528. package/serialization/resources/analytics/types/AgentUserMetric.d.ts +14 -0
  529. package/serialization/resources/analytics/types/AgentUserMetric.js +49 -0
  530. package/serialization/resources/analytics/types/AgentUserRow.d.ts +15 -0
  531. package/serialization/resources/analytics/types/AgentUserRow.js +48 -0
  532. package/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +16 -0
  533. package/serialization/resources/analytics/types/AgentUserTableRequest.js +49 -0
  534. package/serialization/resources/analytics/types/AgentUserTableResponse.d.ts +14 -0
  535. package/serialization/resources/analytics/types/AgentUserTableResponse.js +47 -0
  536. package/serialization/resources/analytics/types/ConversationAnalyticsRequest.d.ts +1 -0
  537. package/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +1 -0
  538. package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +1 -0
  539. package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +1 -0
  540. package/serialization/resources/analytics/types/FieldValue.d.ts +2 -2
  541. package/serialization/resources/analytics/types/FieldValue.js +2 -2
  542. package/serialization/resources/analytics/types/index.d.ts +7 -0
  543. package/serialization/resources/analytics/types/index.js +7 -0
  544. package/serialization/resources/commons/types/ActionExecutionParamValue.d.ts +18 -0
  545. package/serialization/resources/commons/types/ActionExecutionParamValue.js +52 -0
  546. package/serialization/resources/commons/types/ActionOAuthConfiguration.d.ts +18 -0
  547. package/serialization/resources/commons/types/ActionOAuthConfiguration.js +49 -0
  548. package/serialization/resources/commons/types/ActionParameter.d.ts +3 -0
  549. package/serialization/resources/commons/types/ActionParameter.js +3 -0
  550. package/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
  551. package/serialization/resources/commons/types/ActionParameterType.js +1 -1
  552. package/serialization/resources/commons/types/BotLogicActionExecutedDetail.d.ts +2 -1
  553. package/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +2 -1
  554. package/serialization/resources/commons/types/BotOAuthButtonResponse.d.ts +13 -0
  555. package/serialization/resources/commons/types/BotOAuthButtonResponse.js +44 -0
  556. package/serialization/resources/commons/types/BotResponse.d.ts +5 -1
  557. package/serialization/resources/commons/types/BotResponse.js +2 -0
  558. package/serialization/resources/commons/types/Capability.d.ts +1 -1
  559. package/serialization/resources/commons/types/Capability.js +1 -1
  560. package/serialization/resources/commons/types/EntityResult.d.ts +13 -0
  561. package/serialization/resources/commons/types/EntityResult.js +46 -0
  562. package/serialization/resources/{events → commons}/types/EventBaseNoId.d.ts +2 -2
  563. package/serialization/resources/{events → commons}/types/EventBaseNoId.js +2 -2
  564. package/serialization/resources/{events → commons}/types/EventFilter.d.ts +3 -2
  565. package/serialization/resources/{events → commons}/types/EventFilter.js +3 -2
  566. package/serialization/resources/commons/types/EventRequest.d.ts +18 -0
  567. package/serialization/resources/commons/types/EventRequest.js +51 -0
  568. package/serialization/resources/{events/types/UserInfo.d.ts → commons/types/EventUserInfo.d.ts} +3 -3
  569. package/{dist/serialization/resources/events/types/UserInfo.js → serialization/resources/commons/types/EventUserInfo.js} +3 -3
  570. package/serialization/resources/commons/types/EventUserInfoBase.d.ts +13 -0
  571. package/serialization/resources/commons/types/EventUserInfoBase.js +44 -0
  572. package/serialization/resources/{events → commons}/types/EventsSearchRequest.d.ts +1 -1
  573. package/{dist/serialization/resources/events → serialization/resources/commons}/types/EventsSearchRequest.js +1 -1
  574. package/serialization/resources/{events → commons}/types/EventsSearchResponse.d.ts +1 -1
  575. package/serialization/resources/{events → commons}/types/EventsSearchResponse.js +1 -1
  576. package/serialization/resources/commons/types/NovelSystemEvent.d.ts +14 -0
  577. package/serialization/resources/commons/types/NovelSystemEvent.js +47 -0
  578. package/serialization/resources/commons/types/NovelUserEvent.d.ts +22 -0
  579. package/serialization/resources/commons/types/NovelUserEvent.js +55 -0
  580. package/serialization/resources/commons/types/QualityReason.d.ts +1 -1
  581. package/serialization/resources/commons/types/QualityReason.js +1 -0
  582. package/serialization/resources/commons/types/ScopedEntity.d.ts +14 -0
  583. package/serialization/resources/commons/types/ScopedEntity.js +45 -0
  584. package/serialization/resources/{events → commons}/types/SystemEvent.d.ts +1 -1
  585. package/serialization/resources/{events → commons}/types/SystemEvent.js +1 -1
  586. package/{dist/serialization/resources/events → serialization/resources/commons}/types/UserEvent.d.ts +3 -3
  587. package/{dist/serialization/resources/events → serialization/resources/commons}/types/UserEvent.js +3 -3
  588. package/serialization/resources/{events → commons}/types/UserEventName.d.ts +1 -1
  589. package/serialization/resources/{events → commons}/types/UserEventName.js +1 -1
  590. package/serialization/resources/commons/types/index.d.ts +38 -0
  591. package/serialization/resources/commons/types/index.js +38 -0
  592. package/serialization/resources/conversation/types/ActionFormAttachment.d.ts +13 -0
  593. package/serialization/resources/conversation/types/ActionFormAttachment.js +44 -0
  594. package/serialization/resources/conversation/types/ActionFormRequestParamValue.d.ts +11 -0
  595. package/serialization/resources/conversation/types/ActionFormRequestParamValue.js +42 -0
  596. package/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.d.ts +12 -0
  597. package/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.js +42 -0
  598. package/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -0
  599. package/serialization/resources/conversation/types/ConversationFilter.js +2 -0
  600. package/serialization/resources/conversation/types/StreamResponse.d.ts +5 -1
  601. package/serialization/resources/conversation/types/StreamResponse.js +2 -0
  602. package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
  603. package/serialization/resources/conversation/types/SubmitActionFormRequest.js +2 -1
  604. package/serialization/resources/conversation/types/index.d.ts +3 -0
  605. package/serialization/resources/conversation/types/index.js +3 -0
  606. package/serialization/resources/index.d.ts +6 -2
  607. package/serialization/resources/index.js +7 -3
  608. package/serialization/resources/knowledge/client/index.d.ts +1 -0
  609. package/serialization/resources/knowledge/client/index.js +17 -0
  610. package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +21 -0
  611. package/serialization/resources/knowledge/{types → client/requests}/KnowledgeBasePatchRequest.js +7 -3
  612. package/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
  613. package/serialization/resources/knowledge/client/requests/index.js +5 -0
  614. package/serialization/resources/knowledge/index.d.ts +1 -0
  615. package/serialization/resources/knowledge/index.js +1 -0
  616. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +1 -0
  617. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +1 -0
  618. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -0
  619. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -0
  620. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -3
  621. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -4
  622. package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +13 -0
  623. package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +44 -0
  624. package/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +13 -0
  625. package/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +44 -0
  626. package/serialization/resources/knowledge/types/KnowledgeDeleteRequest.d.ts +13 -0
  627. package/serialization/resources/knowledge/types/KnowledgeDeleteRequest.js +44 -0
  628. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
  629. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
  630. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -4
  631. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -4
  632. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -1
  633. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -1
  634. package/serialization/resources/knowledge/types/index.d.ts +3 -1
  635. package/serialization/resources/knowledge/types/index.js +3 -1
  636. package/serialization/resources/organizations/index.d.ts +1 -0
  637. package/serialization/resources/organizations/index.js +17 -0
  638. package/serialization/resources/organizations/types/BaseOrganization.d.ts +13 -0
  639. package/serialization/resources/organizations/types/BaseOrganization.js +44 -0
  640. package/serialization/resources/organizations/types/CreateOrganizationRequest.d.ts +12 -0
  641. package/serialization/resources/organizations/types/CreateOrganizationRequest.js +42 -0
  642. package/serialization/resources/organizations/types/Organization.d.ts +14 -0
  643. package/serialization/resources/organizations/types/Organization.js +47 -0
  644. package/serialization/resources/organizations/types/OrganizationPatchRequest.d.ts +13 -0
  645. package/serialization/resources/organizations/types/OrganizationPatchRequest.js +44 -0
  646. package/serialization/resources/organizations/types/index.d.ts +4 -0
  647. package/serialization/resources/organizations/types/index.js +20 -0
  648. package/serialization/resources/triggers/types/EventTriggerType.d.ts +1 -1
  649. package/serialization/resources/triggers/types/EventTriggerType.js +1 -1
  650. package/serialization/resources/users/types/AgentUserFilter.d.ts +1 -0
  651. package/serialization/resources/users/types/AgentUserFilter.js +1 -0
  652. package/version.d.ts +1 -1
  653. package/version.js +1 -1
  654. package/api/resources/actions/types/ActionPatchRequest.d.ts +0 -12
  655. package/api/resources/events/types/index.d.ts +0 -29
  656. package/api/resources/events/types/index.js +0 -45
  657. package/api/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +0 -16
  658. package/dist/api/resources/actions/types/ActionPatchRequest.d.ts +0 -12
  659. package/dist/api/resources/events/types/index.d.ts +0 -29
  660. package/dist/api/resources/events/types/index.js +0 -45
  661. package/dist/api/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +0 -16
  662. package/dist/serialization/resources/actions/types/ActionPatchRequest.d.ts +0 -15
  663. package/dist/serialization/resources/events/types/index.d.ts +0 -29
  664. package/dist/serialization/resources/events/types/index.js +0 -45
  665. package/dist/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +0 -18
  666. package/serialization/resources/actions/types/ActionPatchRequest.d.ts +0 -15
  667. package/serialization/resources/events/types/index.d.ts +0 -29
  668. package/serialization/resources/events/types/index.js +0 -45
  669. package/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +0 -18
  670. /package/api/resources/actions/{types → client/requests}/ActionPatchRequest.js +0 -0
  671. /package/api/resources/{events/types/BrowserInfo.js → agentCapabilities/types/ActionCapability.js} +0 -0
  672. /package/api/resources/{events/types/ContextInfo.js → agentCapabilities/types/AgentCapability.js} +0 -0
  673. /package/api/resources/{events/types/DeviceInfo.js → agentCapabilities/types/AgentCapabilityBase.js} +0 -0
  674. /package/api/resources/{events/types/EventBaseNoId.js → agentCapabilities/types/AgentCapabilityListRequest.js} +0 -0
  675. /package/api/resources/{events/types/EventFilter.js → agentCapabilities/types/ListAgentCapabilitiesResponse.js} +0 -0
  676. /package/api/resources/{events/types/EventResponse.js → agentCapabilities/types/PatchAgentCapabilityRequest.js} +0 -0
  677. /package/api/resources/{events/types/EventsSearchRequest.js → agentCapabilities/types/TriggerCapability.js} +0 -0
  678. /package/api/resources/{events/types/EventsSearchResponse.js → analytics/types/AgentUserAnalyticsRequest.js} +0 -0
  679. /package/api/resources/{events/types/FeedbackInfo.js → analytics/types/AgentUserColumnDefinition.js} +0 -0
  680. /package/api/resources/{events/types/GeoInfo.js → analytics/types/AgentUserCount.js} +0 -0
  681. /package/api/resources/{events/types/IpInfo.js → analytics/types/AgentUserMetric.js} +0 -0
  682. /package/api/resources/{events/types/LanguageInfo.js → analytics/types/AgentUserRow.js} +0 -0
  683. /package/api/resources/{events/types/NovelSystemEventNoId.js → analytics/types/AgentUserTableRequest.js} +0 -0
  684. /package/api/resources/{events/types/OsInfo.js → analytics/types/AgentUserTableResponse.js} +0 -0
  685. /package/api/resources/{events/types/PageInfo.js → commons/types/ActionExecutionParamValue.js} +0 -0
  686. /package/api/resources/{events/types/SessionInfo.js → commons/types/ActionOAuthConfiguration.js} +0 -0
  687. /package/api/resources/{events/types/SourceInfo.js → commons/types/BotOAuthButtonResponse.js} +0 -0
  688. /package/api/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
  689. /package/{dist/api/resources/events → api/resources/commons}/types/BrowserInfo.js +0 -0
  690. /package/api/resources/{events → commons}/types/BrowserType.d.ts +0 -0
  691. /package/api/resources/{events → commons}/types/BrowserType.js +0 -0
  692. /package/api/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
  693. /package/{dist/api/resources/events → api/resources/commons}/types/ContextInfo.js +0 -0
  694. /package/api/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
  695. /package/{dist/api/resources/events → api/resources/commons}/types/DeviceInfo.js +0 -0
  696. /package/api/resources/{events → commons}/types/DeviceType.d.ts +0 -0
  697. /package/api/resources/{events → commons}/types/DeviceType.js +0 -0
  698. /package/api/resources/{events/types/SurveyInfo.js → commons/types/EntityResult.js} +0 -0
  699. /package/{dist/api/resources/events → api/resources/commons}/types/EventBaseNoId.js +0 -0
  700. /package/api/resources/{events → commons}/types/EventField.d.ts +0 -0
  701. /package/api/resources/{events → commons}/types/EventField.js +0 -0
  702. /package/{dist/api/resources/events → api/resources/commons}/types/EventFilter.js +0 -0
  703. /package/api/resources/{events/types/SystemEvent.js → commons/types/EventRequest.js} +0 -0
  704. /package/api/resources/{events → commons}/types/EventResponse.d.ts +0 -0
  705. /package/{dist/api/resources/events → api/resources/commons}/types/EventResponse.js +0 -0
  706. /package/api/resources/{events → commons}/types/EventType.d.ts +0 -0
  707. /package/api/resources/{events → commons}/types/EventType.js +0 -0
  708. /package/api/resources/{events/types/UserEvent.js → commons/types/EventUserInfo.js} +0 -0
  709. /package/api/resources/{events/types/UserInfo.js → commons/types/EventUserInfoBase.js} +0 -0
  710. /package/api/resources/{events → commons}/types/EventsSearchRequest.d.ts +0 -0
  711. /package/{dist/api/resources/events → api/resources/commons}/types/EventsSearchRequest.js +0 -0
  712. /package/api/resources/{events → commons}/types/EventsSearchResponse.d.ts +0 -0
  713. /package/{dist/api/resources/events → api/resources/commons}/types/EventsSearchResponse.js +0 -0
  714. /package/api/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
  715. /package/{dist/api/resources/events → api/resources/commons}/types/FeedbackInfo.js +0 -0
  716. /package/api/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
  717. /package/{dist/api/resources/events → api/resources/commons}/types/GeoInfo.js +0 -0
  718. /package/api/resources/{events → commons}/types/IpInfo.d.ts +0 -0
  719. /package/{dist/api/resources/events → api/resources/commons}/types/IpInfo.js +0 -0
  720. /package/api/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
  721. /package/{dist/api/resources/events → api/resources/commons}/types/LanguageInfo.js +0 -0
  722. /package/api/resources/{knowledge/types/KnowledgeBasePatchRequest.js → commons/types/NovelSystemEvent.js} +0 -0
  723. /package/api/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
  724. /package/{dist/api/resources/events → api/resources/commons}/types/NovelSystemEventNoId.js +0 -0
  725. /package/{dist/api/resources/actions/types/ActionPatchRequest.js → api/resources/commons/types/NovelUserEvent.js} +0 -0
  726. /package/api/resources/{events → commons}/types/OsInfo.d.ts +0 -0
  727. /package/{dist/api/resources/events → api/resources/commons}/types/OsInfo.js +0 -0
  728. /package/api/resources/{events → commons}/types/OsType.d.ts +0 -0
  729. /package/api/resources/{events → commons}/types/OsType.js +0 -0
  730. /package/api/resources/{events → commons}/types/PageInfo.d.ts +0 -0
  731. /package/{dist/api/resources/events → api/resources/commons}/types/PageInfo.js +0 -0
  732. /package/{dist/api/resources/events/types/SessionInfo.js → api/resources/commons/types/ScopedEntity.js} +0 -0
  733. /package/api/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
  734. /package/{dist/api/resources/events/types/SourceInfo.js → api/resources/commons/types/SessionInfo.js} +0 -0
  735. /package/api/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
  736. /package/{dist/api/resources/events/types/SurveyInfo.js → api/resources/commons/types/SourceInfo.js} +0 -0
  737. /package/api/resources/{events → commons}/types/SourceType.d.ts +0 -0
  738. /package/api/resources/{events → commons}/types/SourceType.js +0 -0
  739. /package/api/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
  740. /package/{dist/api/resources/events/types/SystemEvent.js → api/resources/commons/types/SurveyInfo.js} +0 -0
  741. /package/api/resources/{events → commons}/types/SystemEvent.d.ts +0 -0
  742. /package/{dist/api/resources/events/types/UserEvent.js → api/resources/commons/types/SystemEvent.js} +0 -0
  743. /package/api/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
  744. /package/api/resources/{events → commons}/types/SystemEventName.js +0 -0
  745. /package/{dist/api/resources/events/types/UserInfo.js → api/resources/commons/types/UserEvent.js} +0 -0
  746. /package/{dist/api/resources/knowledge/types/KnowledgeBasePatchRequest.js → api/resources/conversation/types/ActionFormAttachment.js} +0 -0
  747. /package/dist/api/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
  748. /package/dist/api/resources/{events → commons}/types/BrowserType.d.ts +0 -0
  749. /package/dist/api/resources/{events → commons}/types/BrowserType.js +0 -0
  750. /package/dist/api/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
  751. /package/dist/api/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
  752. /package/dist/api/resources/{events → commons}/types/DeviceType.d.ts +0 -0
  753. /package/dist/api/resources/{events → commons}/types/DeviceType.js +0 -0
  754. /package/dist/api/resources/{events → commons}/types/EventField.d.ts +0 -0
  755. /package/dist/api/resources/{events → commons}/types/EventField.js +0 -0
  756. /package/dist/api/resources/{events → commons}/types/EventResponse.d.ts +0 -0
  757. /package/dist/api/resources/{events → commons}/types/EventType.d.ts +0 -0
  758. /package/dist/api/resources/{events → commons}/types/EventType.js +0 -0
  759. /package/dist/api/resources/{events → commons}/types/EventsSearchRequest.d.ts +0 -0
  760. /package/dist/api/resources/{events → commons}/types/EventsSearchResponse.d.ts +0 -0
  761. /package/dist/api/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
  762. /package/dist/api/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
  763. /package/dist/api/resources/{events → commons}/types/IpInfo.d.ts +0 -0
  764. /package/dist/api/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
  765. /package/dist/api/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
  766. /package/dist/api/resources/{events → commons}/types/OsInfo.d.ts +0 -0
  767. /package/dist/api/resources/{events → commons}/types/OsType.d.ts +0 -0
  768. /package/dist/api/resources/{events → commons}/types/OsType.js +0 -0
  769. /package/dist/api/resources/{events → commons}/types/PageInfo.d.ts +0 -0
  770. /package/dist/api/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
  771. /package/dist/api/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
  772. /package/dist/api/resources/{events → commons}/types/SourceType.d.ts +0 -0
  773. /package/dist/api/resources/{events → commons}/types/SourceType.js +0 -0
  774. /package/dist/api/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
  775. /package/dist/api/resources/{events → commons}/types/SystemEvent.d.ts +0 -0
  776. /package/dist/api/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
  777. /package/dist/api/resources/{events → commons}/types/SystemEventName.js +0 -0
  778. /package/dist/serialization/resources/{events → agentCapabilities}/index.d.ts +0 -0
  779. /package/dist/serialization/resources/{events → agentCapabilities}/index.js +0 -0
  780. /package/dist/serialization/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
  781. /package/dist/serialization/resources/{events → commons}/types/BrowserInfo.js +0 -0
  782. /package/dist/serialization/resources/{events → commons}/types/BrowserType.d.ts +0 -0
  783. /package/dist/serialization/resources/{events → commons}/types/BrowserType.js +0 -0
  784. /package/dist/serialization/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
  785. /package/dist/serialization/resources/{events → commons}/types/ContextInfo.js +0 -0
  786. /package/dist/serialization/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
  787. /package/dist/serialization/resources/{events → commons}/types/DeviceInfo.js +0 -0
  788. /package/dist/serialization/resources/{events → commons}/types/DeviceType.d.ts +0 -0
  789. /package/dist/serialization/resources/{events → commons}/types/DeviceType.js +0 -0
  790. /package/dist/serialization/resources/{events → commons}/types/EventField.d.ts +0 -0
  791. /package/dist/serialization/resources/{events → commons}/types/EventField.js +0 -0
  792. /package/dist/serialization/resources/{events → commons}/types/EventResponse.d.ts +0 -0
  793. /package/dist/serialization/resources/{events → commons}/types/EventResponse.js +0 -0
  794. /package/dist/serialization/resources/{events → commons}/types/EventType.d.ts +0 -0
  795. /package/dist/serialization/resources/{events → commons}/types/EventType.js +0 -0
  796. /package/dist/serialization/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
  797. /package/dist/serialization/resources/{events → commons}/types/FeedbackInfo.js +0 -0
  798. /package/dist/serialization/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
  799. /package/dist/serialization/resources/{events → commons}/types/GeoInfo.js +0 -0
  800. /package/dist/serialization/resources/{events → commons}/types/IpInfo.d.ts +0 -0
  801. /package/dist/serialization/resources/{events → commons}/types/IpInfo.js +0 -0
  802. /package/dist/serialization/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
  803. /package/dist/serialization/resources/{events → commons}/types/LanguageInfo.js +0 -0
  804. /package/dist/serialization/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
  805. /package/dist/serialization/resources/{events → commons}/types/NovelSystemEventNoId.js +0 -0
  806. /package/dist/serialization/resources/{events → commons}/types/OsInfo.d.ts +0 -0
  807. /package/dist/serialization/resources/{events → commons}/types/OsInfo.js +0 -0
  808. /package/dist/serialization/resources/{events → commons}/types/OsType.d.ts +0 -0
  809. /package/dist/serialization/resources/{events → commons}/types/OsType.js +0 -0
  810. /package/dist/serialization/resources/{events → commons}/types/PageInfo.d.ts +0 -0
  811. /package/dist/serialization/resources/{events → commons}/types/PageInfo.js +0 -0
  812. /package/dist/serialization/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
  813. /package/dist/serialization/resources/{events → commons}/types/SessionInfo.js +0 -0
  814. /package/dist/serialization/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
  815. /package/dist/serialization/resources/{events → commons}/types/SourceInfo.js +0 -0
  816. /package/dist/serialization/resources/{events → commons}/types/SourceType.d.ts +0 -0
  817. /package/dist/serialization/resources/{events → commons}/types/SourceType.js +0 -0
  818. /package/dist/serialization/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
  819. /package/dist/serialization/resources/{events → commons}/types/SurveyInfo.js +0 -0
  820. /package/dist/serialization/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
  821. /package/dist/serialization/resources/{events → commons}/types/SystemEventName.js +0 -0
  822. /package/{serialization/resources/events → dist/serialization/resources/organizations}/index.d.ts +0 -0
  823. /package/{serialization/resources/events → dist/serialization/resources/organizations}/index.js +0 -0
  824. /package/serialization/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
  825. /package/serialization/resources/{events → commons}/types/BrowserInfo.js +0 -0
  826. /package/serialization/resources/{events → commons}/types/BrowserType.d.ts +0 -0
  827. /package/serialization/resources/{events → commons}/types/BrowserType.js +0 -0
  828. /package/serialization/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
  829. /package/serialization/resources/{events → commons}/types/ContextInfo.js +0 -0
  830. /package/serialization/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
  831. /package/serialization/resources/{events → commons}/types/DeviceInfo.js +0 -0
  832. /package/serialization/resources/{events → commons}/types/DeviceType.d.ts +0 -0
  833. /package/serialization/resources/{events → commons}/types/DeviceType.js +0 -0
  834. /package/serialization/resources/{events → commons}/types/EventField.d.ts +0 -0
  835. /package/serialization/resources/{events → commons}/types/EventField.js +0 -0
  836. /package/serialization/resources/{events → commons}/types/EventResponse.d.ts +0 -0
  837. /package/serialization/resources/{events → commons}/types/EventResponse.js +0 -0
  838. /package/serialization/resources/{events → commons}/types/EventType.d.ts +0 -0
  839. /package/serialization/resources/{events → commons}/types/EventType.js +0 -0
  840. /package/serialization/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
  841. /package/serialization/resources/{events → commons}/types/FeedbackInfo.js +0 -0
  842. /package/serialization/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
  843. /package/serialization/resources/{events → commons}/types/GeoInfo.js +0 -0
  844. /package/serialization/resources/{events → commons}/types/IpInfo.d.ts +0 -0
  845. /package/serialization/resources/{events → commons}/types/IpInfo.js +0 -0
  846. /package/serialization/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
  847. /package/serialization/resources/{events → commons}/types/LanguageInfo.js +0 -0
  848. /package/serialization/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
  849. /package/serialization/resources/{events → commons}/types/NovelSystemEventNoId.js +0 -0
  850. /package/serialization/resources/{events → commons}/types/OsInfo.d.ts +0 -0
  851. /package/serialization/resources/{events → commons}/types/OsInfo.js +0 -0
  852. /package/serialization/resources/{events → commons}/types/OsType.d.ts +0 -0
  853. /package/serialization/resources/{events → commons}/types/OsType.js +0 -0
  854. /package/serialization/resources/{events → commons}/types/PageInfo.d.ts +0 -0
  855. /package/serialization/resources/{events → commons}/types/PageInfo.js +0 -0
  856. /package/serialization/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
  857. /package/serialization/resources/{events → commons}/types/SessionInfo.js +0 -0
  858. /package/serialization/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
  859. /package/serialization/resources/{events → commons}/types/SourceInfo.js +0 -0
  860. /package/serialization/resources/{events → commons}/types/SourceType.d.ts +0 -0
  861. /package/serialization/resources/{events → commons}/types/SourceType.js +0 -0
  862. /package/serialization/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
  863. /package/serialization/resources/{events → commons}/types/SurveyInfo.js +0 -0
  864. /package/serialization/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
  865. /package/serialization/resources/{events → commons}/types/SystemEventName.js +0 -0
@@ -359,13 +359,13 @@ class Knowledge {
359
359
  * @throws {@link MavenAGI.ServerError}
360
360
  *
361
361
  * @example
362
- * await client.knowledge.patchKnowledgeBase("knowledgeBaseReferenceId", {})
362
+ * await client.knowledge.patchKnowledgeBase("knowledgeBaseReferenceId")
363
363
  */
364
- patchKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions) {
364
+ patchKnowledgeBase(knowledgeBaseReferenceId, request = {}, requestOptions) {
365
365
  return core.HttpResponsePromise.fromPromise(this.__patchKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions));
366
366
  }
367
- __patchKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions) {
368
- return __awaiter(this, void 0, void 0, function* () {
367
+ __patchKnowledgeBase(knowledgeBaseReferenceId_1) {
368
+ return __awaiter(this, arguments, void 0, function* (knowledgeBaseReferenceId, request = {}, requestOptions) {
369
369
  var _a, _b, _c, _d;
370
370
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
371
371
  url: core.url.join((_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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}`),
@@ -375,7 +375,7 @@ class Knowledge {
375
375
  "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
376
376
  "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
377
377
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
378
- contentType: "application/json",
378
+ contentType: "application/merge-patch+json",
379
379
  requestType: "json",
380
380
  body: serializers.KnowledgeBasePatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
381
381
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -447,7 +447,7 @@ class Knowledge {
447
447
  * If an existing version is in progress, then that version will be finalized in an error state.
448
448
  *
449
449
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a version for. All other entity ID fields are inferred from the request.
450
- * @param {MavenAGI.KnowledgeBaseVersion} request
450
+ * @param {MavenAGI.KnowledgeBaseVersionRequest} request
451
451
  * @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
452
452
  *
453
453
  * @throws {@link MavenAGI.NotFoundError}
@@ -456,15 +456,7 @@ class Knowledge {
456
456
  *
457
457
  * @example
458
458
  * await client.knowledge.createKnowledgeBaseVersion("help-center", {
459
- * versionId: {
460
- * type: "KNOWLEDGE_BASE_VERSION",
461
- * referenceId: "versionId",
462
- * appId: "maven",
463
- * organizationId: "acme",
464
- * agentId: "support"
465
- * },
466
- * type: "FULL",
467
- * status: "IN_PROGRESS"
459
+ * type: "FULL"
468
460
  * })
469
461
  */
470
462
  createKnowledgeBaseVersion(knowledgeBaseReferenceId, request, requestOptions) {
@@ -483,7 +475,7 @@ class Knowledge {
483
475
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
484
476
  contentType: "application/json",
485
477
  requestType: "json",
486
- body: serializers.KnowledgeBaseVersion.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
478
+ body: serializers.KnowledgeBaseVersionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
487
479
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
488
480
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
489
481
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -650,6 +642,103 @@ class Knowledge {
650
642
  }
651
643
  });
652
644
  }
645
+ /**
646
+ * List all active versions for a knowledge base. Returns the most recent versions first.
647
+ *
648
+ * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to list versions for. All other entity ID fields are inferred from the request.
649
+ * @param {MavenAGI.KnowledgeBaseVersionsListRequest} request
650
+ * @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
651
+ *
652
+ * @throws {@link MavenAGI.NotFoundError}
653
+ * @throws {@link MavenAGI.BadRequestError}
654
+ * @throws {@link MavenAGI.ServerError}
655
+ *
656
+ * @example
657
+ * await client.knowledge.listKnowledgeBaseVersions("knowledgeBaseReferenceId")
658
+ */
659
+ listKnowledgeBaseVersions(knowledgeBaseReferenceId, request = {}, requestOptions) {
660
+ return core.HttpResponsePromise.fromPromise(this.__listKnowledgeBaseVersions(knowledgeBaseReferenceId, request, requestOptions));
661
+ }
662
+ __listKnowledgeBaseVersions(knowledgeBaseReferenceId_1) {
663
+ return __awaiter(this, arguments, void 0, function* (knowledgeBaseReferenceId, request = {}, requestOptions) {
664
+ var _a, _b, _c, _d;
665
+ const { appId } = request;
666
+ const _queryParams = {};
667
+ if (appId != null) {
668
+ _queryParams["appId"] = appId;
669
+ }
670
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
671
+ url: core.url.join((_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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/versions`),
672
+ method: "GET",
673
+ headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
674
+ Authorization: yield this._getAuthorizationHeader(),
675
+ "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
676
+ "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
677
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
678
+ queryParameters: _queryParams,
679
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
680
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
681
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
682
+ });
683
+ if (_response.ok) {
684
+ return {
685
+ data: serializers.KnowledgeBaseVersionsListResponse.parseOrThrow(_response.body, {
686
+ unrecognizedObjectKeys: "passthrough",
687
+ allowUnrecognizedUnionMembers: true,
688
+ allowUnrecognizedEnumValues: true,
689
+ breadcrumbsPrefix: ["response"],
690
+ }),
691
+ rawResponse: _response.rawResponse,
692
+ };
693
+ }
694
+ if (_response.error.reason === "status-code") {
695
+ switch (_response.error.statusCode) {
696
+ case 404:
697
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
698
+ unrecognizedObjectKeys: "passthrough",
699
+ allowUnrecognizedUnionMembers: true,
700
+ allowUnrecognizedEnumValues: true,
701
+ breadcrumbsPrefix: ["response"],
702
+ }), _response.rawResponse);
703
+ case 400:
704
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
705
+ unrecognizedObjectKeys: "passthrough",
706
+ allowUnrecognizedUnionMembers: true,
707
+ allowUnrecognizedEnumValues: true,
708
+ breadcrumbsPrefix: ["response"],
709
+ }), _response.rawResponse);
710
+ case 500:
711
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
712
+ unrecognizedObjectKeys: "passthrough",
713
+ allowUnrecognizedUnionMembers: true,
714
+ allowUnrecognizedEnumValues: true,
715
+ breadcrumbsPrefix: ["response"],
716
+ }), _response.rawResponse);
717
+ default:
718
+ throw new errors.MavenAGIError({
719
+ statusCode: _response.error.statusCode,
720
+ body: _response.error.body,
721
+ rawResponse: _response.rawResponse,
722
+ });
723
+ }
724
+ }
725
+ switch (_response.error.reason) {
726
+ case "non-json":
727
+ throw new errors.MavenAGIError({
728
+ statusCode: _response.error.statusCode,
729
+ body: _response.error.rawBody,
730
+ rawResponse: _response.rawResponse,
731
+ });
732
+ case "timeout":
733
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/knowledge/{knowledgeBaseReferenceId}/versions.");
734
+ case "unknown":
735
+ throw new errors.MavenAGIError({
736
+ message: _response.error.errorMessage,
737
+ rawResponse: _response.rawResponse,
738
+ });
739
+ }
740
+ });
741
+ }
653
742
  /**
654
743
  * Search knowledge documents
655
744
  *
@@ -744,10 +833,11 @@ class Knowledge {
744
833
  });
745
834
  }
746
835
  /**
747
- * Create knowledge document. Requires an existing knowledge base with an in progress version. Will throw an exception if the latest version is not in progress.
836
+ * Create or update a knowledge document. Requires an existing knowledge base with an in progress version.
837
+ * Will throw an exception if the latest version is not in progress.
748
838
  *
749
839
  * <Tip>
750
- * This API maintains document version history. If for the same reference ID neither the `title` nor `text` fields
840
+ * This API maintains document version history. If for the same reference ID none of the `title`, `text`, `sourceUrl`, `metadata` fields
751
841
  * have changed, a new document version will not be created. The existing version will be reused.
752
842
  * </Tip>
753
843
  *
@@ -858,10 +948,12 @@ class Knowledge {
858
948
  });
859
949
  }
860
950
  /**
861
- * Not yet implemented. Update knowledge document. Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the latest version is not in progress.
951
+ * Delete knowledge document from a specific version.
952
+ * Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the version is not in progress.
862
953
  *
863
- * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base that contains the document to update. All other entity ID fields are inferred from the request.
864
- * @param {MavenAGI.KnowledgeDocumentRequest} request
954
+ * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base that contains the document to delete. All other entity ID fields are inferred from the request
955
+ * @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to delete. All other entity ID fields are inferred from the request.
956
+ * @param {MavenAGI.KnowledgeDeleteRequest} request
865
957
  * @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
866
958
  *
867
959
  * @throws {@link MavenAGI.NotFoundError}
@@ -869,32 +961,23 @@ class Knowledge {
869
961
  * @throws {@link MavenAGI.ServerError}
870
962
  *
871
963
  * @example
872
- * await client.knowledge.updateKnowledgeDocument("help-center", {
873
- * knowledgeDocumentId: {
874
- * referenceId: "getting-started"
875
- * },
964
+ * await client.knowledge.deleteKnowledgeDocument("help-center", "getting-started", {
876
965
  * versionId: {
877
966
  * type: "KNOWLEDGE_BASE_VERSION",
878
- * referenceId: "versionId",
879
- * appId: "maven"
880
- * },
881
- * contentType: "MARKDOWN",
882
- * content: "## Getting started\\nThis is a getting started guide for the help center.",
883
- * title: "Getting started",
884
- * metadata: {
885
- * "category": "getting-started"
967
+ * appId: "maven",
968
+ * referenceId: "versionId"
886
969
  * }
887
970
  * })
888
971
  */
889
- updateKnowledgeDocument(knowledgeBaseReferenceId, request, requestOptions) {
890
- return core.HttpResponsePromise.fromPromise(this.__updateKnowledgeDocument(knowledgeBaseReferenceId, request, requestOptions));
972
+ deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request, requestOptions) {
973
+ return core.HttpResponsePromise.fromPromise(this.__deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request, requestOptions));
891
974
  }
892
- __updateKnowledgeDocument(knowledgeBaseReferenceId, request, requestOptions) {
975
+ __deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request, requestOptions) {
893
976
  return __awaiter(this, void 0, void 0, function* () {
894
977
  var _a, _b, _c, _d;
895
978
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
896
- url: core.url.join((_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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/document`),
897
- method: "PUT",
979
+ url: core.url.join((_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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/${encodeURIComponent(knowledgeDocumentReferenceId)}/document`),
980
+ method: "DELETE",
898
981
  headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
899
982
  Authorization: yield this._getAuthorizationHeader(),
900
983
  "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
@@ -902,21 +985,13 @@ class Knowledge {
902
985
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
903
986
  contentType: "application/json",
904
987
  requestType: "json",
905
- body: serializers.KnowledgeDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
988
+ body: serializers.KnowledgeDeleteRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
906
989
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
907
990
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
908
991
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
909
992
  });
910
993
  if (_response.ok) {
911
- return {
912
- data: serializers.KnowledgeDocumentResponse.parseOrThrow(_response.body, {
913
- unrecognizedObjectKeys: "passthrough",
914
- allowUnrecognizedUnionMembers: true,
915
- allowUnrecognizedEnumValues: true,
916
- breadcrumbsPrefix: ["response"],
917
- }),
918
- rawResponse: _response.rawResponse,
919
- };
994
+ return { data: undefined, rawResponse: _response.rawResponse };
920
995
  }
921
996
  if (_response.error.reason === "status-code") {
922
997
  switch (_response.error.statusCode) {
@@ -957,7 +1032,7 @@ class Knowledge {
957
1032
  rawResponse: _response.rawResponse,
958
1033
  });
959
1034
  case "timeout":
960
- throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PUT /v1/knowledge/{knowledgeBaseReferenceId}/document.");
1035
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling DELETE /v1/knowledge/{knowledgeBaseReferenceId}/{knowledgeDocumentReferenceId}/document.");
961
1036
  case "unknown":
962
1037
  throw new errors.MavenAGIError({
963
1038
  message: _response.error.errorMessage,
@@ -967,10 +1042,11 @@ class Knowledge {
967
1042
  });
968
1043
  }
969
1044
  /**
970
- * Not yet implemented. Delete knowledge document. Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the latest version is not in progress.
1045
+ * Get a knowledge document by its supplied version and document IDs. Response includes document content in markdown format.
971
1046
  *
972
- * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base that contains the document to delete. All other entity ID fields are inferred from the request
973
- * @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to delete. All other entity ID fields are inferred from the request.
1047
+ * @param {string} knowledgeBaseVersionReferenceId - The reference ID of the knowledge base version that contains the document. All other entity ID fields are inferred from the request.
1048
+ * @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to get. All other entity ID fields are inferred from the request.
1049
+ * @param {MavenAGI.KnowledgeDocumentGetRequest} request
974
1050
  * @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
975
1051
  *
976
1052
  * @throws {@link MavenAGI.NotFoundError}
@@ -978,28 +1054,42 @@ class Knowledge {
978
1054
  * @throws {@link MavenAGI.ServerError}
979
1055
  *
980
1056
  * @example
981
- * await client.knowledge.deleteKnowledgeDocument("help-center", "getting-started")
1057
+ * await client.knowledge.getKnowledgeDocument("knowledgeBaseVersionReferenceId", "knowledgeDocumentReferenceId", {
1058
+ * knowledgeBaseVersionAppId: "knowledgeBaseVersionAppId"
1059
+ * })
982
1060
  */
983
- deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, requestOptions) {
984
- return core.HttpResponsePromise.fromPromise(this.__deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, requestOptions));
1061
+ getKnowledgeDocument(knowledgeBaseVersionReferenceId, knowledgeDocumentReferenceId, request, requestOptions) {
1062
+ return core.HttpResponsePromise.fromPromise(this.__getKnowledgeDocument(knowledgeBaseVersionReferenceId, knowledgeDocumentReferenceId, request, requestOptions));
985
1063
  }
986
- __deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, requestOptions) {
1064
+ __getKnowledgeDocument(knowledgeBaseVersionReferenceId, knowledgeDocumentReferenceId, request, requestOptions) {
987
1065
  return __awaiter(this, void 0, void 0, function* () {
988
1066
  var _a, _b, _c, _d;
1067
+ const { knowledgeBaseVersionAppId } = request;
1068
+ const _queryParams = {};
1069
+ _queryParams["knowledgeBaseVersionAppId"] = knowledgeBaseVersionAppId;
989
1070
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
990
- url: core.url.join((_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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/${encodeURIComponent(knowledgeDocumentReferenceId)}/document`),
991
- method: "DELETE",
1071
+ url: core.url.join((_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/knowledge/versions/${encodeURIComponent(knowledgeBaseVersionReferenceId)}/documents/${encodeURIComponent(knowledgeDocumentReferenceId)}`),
1072
+ method: "GET",
992
1073
  headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
993
1074
  Authorization: yield this._getAuthorizationHeader(),
994
1075
  "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
995
1076
  "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
996
1077
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1078
+ queryParameters: _queryParams,
997
1079
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
998
1080
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
999
1081
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1000
1082
  });
1001
1083
  if (_response.ok) {
1002
- return { data: undefined, rawResponse: _response.rawResponse };
1084
+ return {
1085
+ data: serializers.KnowledgeDocumentResponse.parseOrThrow(_response.body, {
1086
+ unrecognizedObjectKeys: "passthrough",
1087
+ allowUnrecognizedUnionMembers: true,
1088
+ allowUnrecognizedEnumValues: true,
1089
+ breadcrumbsPrefix: ["response"],
1090
+ }),
1091
+ rawResponse: _response.rawResponse,
1092
+ };
1003
1093
  }
1004
1094
  if (_response.error.reason === "status-code") {
1005
1095
  switch (_response.error.statusCode) {
@@ -1040,7 +1130,7 @@ class Knowledge {
1040
1130
  rawResponse: _response.rawResponse,
1041
1131
  });
1042
1132
  case "timeout":
1043
- throw new errors.MavenAGITimeoutError("Timeout exceeded when calling DELETE /v1/knowledge/{knowledgeBaseReferenceId}/{knowledgeDocumentReferenceId}/document.");
1133
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/knowledge/versions/{knowledgeBaseVersionReferenceId}/documents/{knowledgeDocumentReferenceId}.");
1044
1134
  case "unknown":
1045
1135
  throw new errors.MavenAGIError({
1046
1136
  message: _response.error.errorMessage,
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface KnowledgeBasePatchRequest {
10
+ /** The App ID of the knowledge base to patch. If not provided the ID of the calling app will be used. */
11
+ appId?: string;
12
+ /** The name of the knowledge base. */
13
+ name?: string;
14
+ /** The tags of the knowledge base. */
15
+ tags?: Set<string>;
16
+ /** Determines whether documents in the knowledge base are sent to the LLM as part of a conversation. Note that at this time knowledge bases can not be set to `ALWAYS`. */
17
+ llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
18
+ /** The preconditions that must be met for a knowledge base to be relevant to a conversation. Can be used to restrict knowledge bases to certain types of users. A null value will remove the precondition from the knowledge base, it will be available on all conversations. */
19
+ precondition?: MavenAGI.Precondition | null;
20
+ /**
21
+ * The ID of the segment that must be matched for the knowledge base to be relevant to a conversation.
22
+ * A null value will remove the segment from the knowledge base, it will be available on all conversations.
23
+ *
24
+ * Segments are replacing inline preconditions - a knowledge base may not have both an inline precondition and a segment.
25
+ * Inline precondition support will be removed in a future release.
26
+ */
27
+ segmentId?: MavenAGI.EntityId | null;
28
+ /** How often the knowledge base should be refreshed. */
29
+ refreshFrequency?: MavenAGI.KnowledgeBaseRefreshFrequency;
30
+ }
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface KnowledgeBaseVersionsListRequest {
9
+ /**
10
+ * The App ID of the knowledge base. If not provided the ID of the calling app will be used.
11
+ */
12
+ appId?: string;
13
+ }
@@ -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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * knowledgeBaseVersionAppId: "knowledgeBaseVersionAppId"
8
+ * }
9
+ */
10
+ export interface KnowledgeDocumentGetRequest {
11
+ /**
12
+ * The App ID of the knowledge base version.
13
+ */
14
+ knowledgeBaseVersionAppId: string;
15
+ }
@@ -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 });
@@ -1 +1,4 @@
1
1
  export { type KnowledgeBaseGetRequest } from "./KnowledgeBaseGetRequest";
2
+ export { type KnowledgeBasePatchRequest } from "./KnowledgeBasePatchRequest";
3
+ export { type KnowledgeBaseVersionsListRequest } from "./KnowledgeBaseVersionsListRequest";
4
+ export { type KnowledgeDocumentGetRequest } from "./KnowledgeDocumentGetRequest";
@@ -23,4 +23,6 @@ export interface KnowledgeBaseFilter {
23
23
  createdAfter?: Date;
24
24
  /** Filter knowledge bases created on or before this timestamp */
25
25
  createdBefore?: Date;
26
+ /** Filter by app IDs */
27
+ appIds?: string[];
26
28
  }
@@ -24,6 +24,8 @@ import * as MavenAGI from "../../../index";
24
24
  export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties {
25
25
  /** ID that uniquely identifies this knowledge base */
26
26
  knowledgeBaseId: MavenAGI.EntityId;
27
+ /** ID of the knowledge base version that is currently active. Documents can be fetched using this version ID. */
28
+ activeVersionId?: MavenAGI.EntityId;
27
29
  /** The type of the knowledge base. Can not be changed once created. */
28
30
  type: MavenAGI.KnowledgeBaseType;
29
31
  /** Metadata for the knowledge base. */
@@ -16,11 +16,9 @@ import * as MavenAGI from "../../../index";
16
16
  * status: MavenAGI.KnowledgeBaseVersionStatus.InProgress
17
17
  * }
18
18
  */
19
- export interface KnowledgeBaseVersion {
19
+ export interface KnowledgeBaseVersion extends MavenAGI.KnowledgeBaseVersionRequest {
20
20
  /** The unique ID of the knowledge base version. */
21
21
  versionId: MavenAGI.EntityId;
22
- /** Indicates whether the completed version constitutes a full or partial refresh of the knowledge base. Deleting and updating documents is only supported for partial refreshes. */
23
- type: MavenAGI.KnowledgeBaseVersionType;
24
22
  /** The status of the knowledge base version */
25
23
  status: MavenAGI.KnowledgeBaseVersionStatus;
26
24
  /** A user-facing error message that provides more details about a version failure. */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * type: MavenAGI.KnowledgeBaseVersionType.Full
9
+ * }
10
+ */
11
+ export interface KnowledgeBaseVersionRequest {
12
+ /** Indicates whether the completed version constitutes a full or partial refresh of the knowledge base. Deleting and updating documents is only supported for partial refreshes. */
13
+ type: MavenAGI.KnowledgeBaseVersionType;
14
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface KnowledgeBaseVersionsListResponse {
6
+ /** The active knowledge base versions for the knowledge base. Includes all versions within the last 90 days or the last 10, whichever is greater. */
7
+ knowledgeBaseVersions: MavenAGI.KnowledgeBaseVersion[];
8
+ }
@@ -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,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * versionId: {
9
+ * type: MavenAGI.EntityType.KnowledgeBaseVersion,
10
+ * appId: "maven",
11
+ * referenceId: "versionId"
12
+ * }
13
+ * }
14
+ */
15
+ export interface KnowledgeDeleteRequest {
16
+ /** ID that uniquely identifies which knowledge base version to delete the document from. */
17
+ versionId: MavenAGI.EntityIdWithoutAgent;
18
+ }
@@ -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 });
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as MavenAGI from "../../../index";
4
5
  export interface KnowledgeDocumentFilter {
5
6
  /**
6
7
  * Full-text search query for matching knowledge documents by content.
@@ -23,4 +24,11 @@ export interface KnowledgeDocumentFilter {
23
24
  createdAfter?: Date;
24
25
  /** Filter knowledge documents created on or before this timestamp */
25
26
  createdBefore?: Date;
27
+ /** Filter by app IDs */
28
+ appIds?: string[];
29
+ /**
30
+ * Filter documents within the specified knowledge base version.
31
+ * If not provided all active knowledge base versions within the agent will be searched.
32
+ */
33
+ knowledgeBaseVersionId?: MavenAGI.EntityIdWithoutAgent;
26
34
  }
@@ -12,6 +12,13 @@ import * as MavenAGI from "../../../index";
12
12
  * agentId: "support",
13
13
  * type: MavenAGI.EntityType.KnowledgeDocument
14
14
  * },
15
+ * knowledgeBaseVersionId: {
16
+ * referenceId: "versionId",
17
+ * appId: "maven",
18
+ * organizationId: "acme",
19
+ * agentId: "support",
20
+ * type: MavenAGI.EntityType.KnowledgeBaseVersion
21
+ * },
15
22
  * content: "## Getting started This is a getting started guide for the help center.",
16
23
  * title: "Getting started",
17
24
  * metadata: {
@@ -19,9 +26,7 @@ import * as MavenAGI from "../../../index";
19
26
  * }
20
27
  * }
21
28
  */
22
- export interface KnowledgeDocumentResponse extends MavenAGI.BaseKnowledgeDocument {
23
- /** ID that uniquely identifies this knowledge document within its knowledge base */
24
- knowledgeDocumentId: MavenAGI.EntityId;
29
+ export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSearchResponse {
25
30
  /** The content of the document in markdown format. Not shown directly to users. */
26
31
  content: string;
27
32
  /** Metadata for the knowledge document. */
@@ -5,6 +5,9 @@ import * as MavenAGI from "../../../index";
5
5
  export interface KnowledgeDocumentSearchResponse extends MavenAGI.BaseKnowledgeDocument {
6
6
  /** ID that uniquely identifies this knowledge document within its knowledge base */
7
7
  knowledgeDocumentId: MavenAGI.EntityId;
8
- /** Metadata for the knowledge document. */
9
- metadata: Record<string, string>;
8
+ /**
9
+ * ID that uniquely identifies the knowledge base version that contains this document.
10
+ * This may be missing on legacy documents.
11
+ */
12
+ knowledgeBaseVersionId?: MavenAGI.EntityId;
10
13
  }
@@ -3,7 +3,7 @@ export * from "./KnowledgeBaseRequest";
3
3
  export * from "./KnowledgeBaseResponse";
4
4
  export * from "./KnowledgeBaseType";
5
5
  export * from "./KnowledgeBaseRefreshFrequency";
6
- export * from "./KnowledgeBasePatchRequest";
6
+ export * from "./KnowledgeBaseVersionRequest";
7
7
  export * from "./KnowledgeBaseVersion";
8
8
  export * from "./KnowledgeBaseVersionType";
9
9
  export * from "./KnowledgeBaseVersionStatus";
@@ -11,6 +11,7 @@ export * from "./KnowledgeBaseVersionFinalizeStatus";
11
11
  export * from "./FinalizeKnowledgeBaseVersionRequest";
12
12
  export * from "./BaseKnowledgeDocument";
13
13
  export * from "./KnowledgeDocumentContentType";
14
+ export * from "./KnowledgeDeleteRequest";
14
15
  export * from "./KnowledgeDocumentRequest";
15
16
  export * from "./KnowledgeDocumentResponse";
16
17
  export * from "./KnowledgeBaseField";
@@ -22,3 +23,4 @@ export * from "./KnowledgeBasesResponse";
22
23
  export * from "./KnowledgeDocumentSearchRequest";
23
24
  export * from "./KnowledgeDocumentSearchResponse";
24
25
  export * from "./KnowledgeDocumentsResponse";
26
+ export * from "./KnowledgeBaseVersionsListResponse";
@@ -19,7 +19,7 @@ __exportStar(require("./KnowledgeBaseRequest"), exports);
19
19
  __exportStar(require("./KnowledgeBaseResponse"), exports);
20
20
  __exportStar(require("./KnowledgeBaseType"), exports);
21
21
  __exportStar(require("./KnowledgeBaseRefreshFrequency"), exports);
22
- __exportStar(require("./KnowledgeBasePatchRequest"), exports);
22
+ __exportStar(require("./KnowledgeBaseVersionRequest"), exports);
23
23
  __exportStar(require("./KnowledgeBaseVersion"), exports);
24
24
  __exportStar(require("./KnowledgeBaseVersionType"), exports);
25
25
  __exportStar(require("./KnowledgeBaseVersionStatus"), exports);
@@ -27,6 +27,7 @@ __exportStar(require("./KnowledgeBaseVersionFinalizeStatus"), exports);
27
27
  __exportStar(require("./FinalizeKnowledgeBaseVersionRequest"), exports);
28
28
  __exportStar(require("./BaseKnowledgeDocument"), exports);
29
29
  __exportStar(require("./KnowledgeDocumentContentType"), exports);
30
+ __exportStar(require("./KnowledgeDeleteRequest"), exports);
30
31
  __exportStar(require("./KnowledgeDocumentRequest"), exports);
31
32
  __exportStar(require("./KnowledgeDocumentResponse"), exports);
32
33
  __exportStar(require("./KnowledgeBaseField"), exports);
@@ -38,3 +39,4 @@ __exportStar(require("./KnowledgeBasesResponse"), exports);
38
39
  __exportStar(require("./KnowledgeDocumentSearchRequest"), exports);
39
40
  __exportStar(require("./KnowledgeDocumentSearchResponse"), exports);
40
41
  __exportStar(require("./KnowledgeDocumentsResponse"), exports);
42
+ __exportStar(require("./KnowledgeBaseVersionsListResponse"), exports);