mavenagi 1.2.63 → 1.2.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/actions/client/Client.js +3 -3
  3. package/api/resources/agents/client/Client.js +5 -5
  4. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +23 -3
  5. package/api/resources/agents/types/Agent.d.ts +9 -1
  6. package/api/resources/agents/types/AgentPrompting.d.ts +14 -2
  7. package/api/resources/appDirectory/client/Client.js +5 -5
  8. package/api/resources/assets/client/Client.js +1 -1
  9. package/api/resources/capabilities/client/Client.d.ts +68 -0
  10. package/api/resources/capabilities/client/Client.js +243 -3
  11. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +4 -1
  12. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +36 -0
  13. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +3 -0
  14. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +4 -1
  15. package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.d.ts +14 -0
  16. package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.js +3 -0
  17. package/api/resources/capabilities/client/requests/index.d.ts +2 -0
  18. package/api/resources/capabilities/types/ActionSimulationInput.d.ts +5 -0
  19. package/api/resources/capabilities/types/ActionSimulationInput.js +3 -0
  20. package/api/resources/capabilities/types/CapabilityExecution.d.ts +14 -0
  21. package/api/resources/capabilities/types/CapabilityExecution.js +3 -0
  22. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +32 -0
  23. package/api/resources/capabilities/types/CapabilityExecutionBase.js +3 -0
  24. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +36 -0
  25. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +39 -0
  26. package/api/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +17 -0
  27. package/api/resources/capabilities/types/CapabilityExecutionRetryability.js +20 -0
  28. package/api/resources/capabilities/types/CapabilityExecutionStatus.d.ts +10 -0
  29. package/api/resources/capabilities/types/CapabilityExecutionStatus.js +13 -0
  30. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +62 -0
  31. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +3 -0
  32. package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  33. package/api/resources/capabilities/types/CapabilitySimulationInput.js +3 -0
  34. package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +10 -0
  35. package/api/resources/capabilities/types/CapabilitySimulationResult.js +3 -0
  36. package/api/resources/capabilities/types/ConversationContextSimulationInput.d.ts +14 -0
  37. package/api/resources/capabilities/types/ConversationContextSimulationInput.js +3 -0
  38. package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +7 -0
  39. package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +3 -0
  40. package/api/resources/capabilities/types/SimulatedUser.d.ts +9 -0
  41. package/api/resources/capabilities/types/SimulatedUser.js +3 -0
  42. package/api/resources/capabilities/types/SimulatedUserData.d.ts +6 -0
  43. package/api/resources/capabilities/types/SimulatedUserData.js +3 -0
  44. package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +19 -0
  45. package/api/resources/capabilities/types/TriggerCapabilityExecution.js +3 -0
  46. package/api/resources/capabilities/types/index.d.ts +14 -0
  47. package/api/resources/capabilities/types/index.js +14 -0
  48. package/api/resources/charters/client/Client.js +7 -5
  49. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +6 -6
  50. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +12 -0
  51. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +9 -1
  52. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +5 -6
  53. package/api/resources/charters/types/CharterBase.d.ts +9 -4
  54. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +2 -0
  55. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +2 -0
  56. package/api/resources/charters/types/CharterContent.d.ts +2 -0
  57. package/api/resources/charters/types/CharterListChildrenRequest.d.ts +10 -0
  58. package/api/resources/charters/types/CharterPatchReferences.d.ts +2 -0
  59. package/api/resources/charters/types/CharterReferences.d.ts +2 -0
  60. package/api/resources/charters/types/CharterResponse.d.ts +5 -1
  61. package/api/resources/charters/types/CharterSearchFilter.d.ts +9 -1
  62. package/api/resources/charters/types/CharterStatus.d.ts +4 -0
  63. package/api/resources/charters/types/CharterStatus.js +4 -0
  64. package/api/resources/charters/types/CharterSummary.d.ts +5 -1
  65. package/api/resources/charters/types/index.d.ts +0 -1
  66. package/api/resources/charters/types/index.js +0 -1
  67. package/api/resources/commons/types/ActionExecutionStatus.d.ts +6 -0
  68. package/api/resources/commons/types/ActionExecutionStatus.js +9 -0
  69. package/api/resources/commons/types/ActionProperties.d.ts +1 -1
  70. package/api/resources/commons/types/AdditionalDataKey.d.ts +3 -0
  71. package/api/resources/commons/types/AdditionalDataKey.js +3 -0
  72. package/api/resources/commons/types/AppUserRequest.d.ts +11 -0
  73. package/api/resources/commons/types/BotLogicCharterDetail.d.ts +3 -1
  74. package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +3 -0
  75. package/api/resources/commons/types/BotMessage.d.ts +5 -0
  76. package/api/resources/commons/types/BotMessageStatusReason.d.ts +13 -0
  77. package/api/resources/commons/types/BotMessageStatusReason.js +16 -0
  78. package/api/resources/commons/types/Capability.d.ts +4 -0
  79. package/api/resources/commons/types/Capability.js +4 -0
  80. package/api/resources/commons/types/CapabilityStatus.d.ts +2 -2
  81. package/api/resources/commons/types/CapabilityStatus.js +2 -2
  82. package/api/resources/commons/types/ConversationAnalysis.d.ts +2 -2
  83. package/api/resources/commons/types/ConversationMetadataValueSource.d.ts +7 -0
  84. package/api/resources/commons/types/ConversationMetadataValueSource.js +3 -0
  85. package/api/resources/commons/types/ConversationSummary.d.ts +5 -3
  86. package/api/resources/commons/types/ConversationValueSource.d.ts +10 -0
  87. package/api/resources/commons/types/ConversationValueSource.js +3 -0
  88. package/api/resources/commons/types/EntityType.d.ts +5 -0
  89. package/api/resources/commons/types/EntityType.js +5 -0
  90. package/api/resources/commons/types/ErrorReason.d.ts +6 -0
  91. package/api/resources/commons/types/ErrorReason.js +6 -0
  92. package/api/resources/commons/types/EventFilter.d.ts +1 -0
  93. package/api/resources/commons/types/ExecuteActionResponse.d.ts +14 -0
  94. package/api/resources/commons/types/ExecuteActionResponse.js +3 -0
  95. package/api/resources/commons/types/ExecutionMode.d.ts +10 -0
  96. package/api/resources/commons/types/ExecutionMode.js +13 -0
  97. package/api/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  98. package/api/resources/commons/types/FunctionVersionBinding.js +3 -0
  99. package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  100. package/api/resources/commons/types/InboxItemStatus.d.ts +1 -1
  101. package/api/resources/commons/types/InboxItemStatus.js +1 -1
  102. package/api/resources/commons/types/LlmInclusionStatus.d.ts +3 -0
  103. package/api/resources/commons/types/LlmInclusionStatus.js +3 -0
  104. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +15 -0
  105. package/api/resources/commons/types/MetadataConversationValueFilter.js +3 -0
  106. package/api/resources/commons/types/MetadataFilter.d.ts +33 -6
  107. package/api/resources/commons/types/Quality.d.ts +2 -0
  108. package/api/resources/commons/types/Quality.js +2 -0
  109. package/api/resources/commons/types/QualityReason.d.ts +4 -0
  110. package/api/resources/commons/types/QualityReason.js +4 -0
  111. package/api/resources/commons/types/RelationshipType.d.ts +2 -2
  112. package/api/resources/commons/types/RelationshipType.js +2 -2
  113. package/api/resources/commons/types/ResolutionStatus.d.ts +2 -0
  114. package/api/resources/commons/types/ResolutionStatus.js +2 -0
  115. package/api/resources/commons/types/ResponseConfig.d.ts +2 -0
  116. package/api/resources/commons/types/SimulationActionBehavior.d.ts +18 -0
  117. package/api/resources/commons/types/SimulationActionBehavior.js +3 -0
  118. package/api/resources/commons/types/SimulationActionCallApp.d.ts +1 -0
  119. package/api/resources/commons/types/SimulationActionCallApp.js +3 -0
  120. package/api/resources/commons/types/SimulationActionMock.d.ts +6 -0
  121. package/api/resources/commons/types/SimulationActionMock.js +3 -0
  122. package/api/resources/commons/types/SimulationContext.d.ts +19 -0
  123. package/api/resources/commons/types/SystemEventName.d.ts +5 -2
  124. package/api/resources/commons/types/SystemEventName.js +5 -2
  125. package/api/resources/commons/types/UserEvent.d.ts +1 -1
  126. package/api/resources/commons/types/UserEventName.d.ts +1 -1
  127. package/api/resources/commons/types/UserEventName.js +1 -1
  128. package/api/resources/commons/types/index.d.ts +12 -0
  129. package/api/resources/commons/types/index.js +12 -0
  130. package/api/resources/conversation/client/Client.d.ts +17 -9
  131. package/api/resources/conversation/client/Client.js +27 -19
  132. package/api/resources/conversation/client/requests/ConversationDeleteRequest.d.ts +1 -1
  133. package/api/resources/conversation/types/BillableFilterField.d.ts +3 -3
  134. package/api/resources/conversation/types/BillableFilterField.js +3 -3
  135. package/api/resources/conversation/types/ConversationField.d.ts +8 -0
  136. package/api/resources/conversation/types/ConversationField.js +8 -0
  137. package/api/resources/conversation/types/ConversationFilter.d.ts +7 -1
  138. package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
  139. package/api/resources/customers/client/Client.js +2 -2
  140. package/api/resources/customers/types/CustomerFilter.d.ts +16 -1
  141. package/api/resources/customers/types/CustomerResponse.d.ts +2 -2
  142. package/api/resources/events/client/Client.js +1 -1
  143. package/api/resources/inbox/client/Client.js +6 -6
  144. package/api/resources/integrations/client/Client.js +1 -1
  145. package/api/resources/intelligentFields/client/Client.d.ts +4 -3
  146. package/api/resources/intelligentFields/client/Client.js +7 -6
  147. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +9 -1
  148. package/api/resources/intelligentFields/types/EnumOption.d.ts +1 -1
  149. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  150. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +5 -1
  151. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +1 -1
  152. package/api/resources/intelligentFields/types/IntelligentFieldType.js +1 -1
  153. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +5 -4
  154. package/api/resources/knowledge/client/Client.js +13 -13
  155. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  156. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
  157. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -1
  158. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  159. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  160. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  161. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +4 -0
  162. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +4 -0
  163. package/api/resources/organizations/client/Client.js +4 -4
  164. package/api/resources/segments/client/Client.d.ts +1 -1
  165. package/api/resources/segments/client/Client.js +4 -4
  166. package/api/resources/segments/types/SegmentStatus.d.ts +4 -0
  167. package/api/resources/segments/types/SegmentStatus.js +4 -0
  168. package/api/resources/triggers/client/Client.js +3 -3
  169. package/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
  170. package/api/resources/users/client/Client.d.ts +42 -1
  171. package/api/resources/users/client/Client.js +116 -4
  172. package/api/resources/users/types/AgentUser.d.ts +3 -0
  173. package/api/resources/users/types/AgentUserFilter.d.ts +4 -0
  174. package/api/resources/voiceConversations/client/Client.d.ts +1 -1
  175. package/api/resources/voiceConversations/client/Socket.d.ts +2 -2
  176. package/api/resources/voiceConversations/client/Socket.js +16 -17
  177. package/core/fetcher/Fetcher.js +33 -3
  178. package/core/fetcher/getErrorResponseBody.js +20 -7
  179. package/core/fetcher/getResponseBody.d.ts +16 -0
  180. package/core/fetcher/getResponseBody.js +27 -22
  181. package/core/fetcher/makePassthroughRequest.js +20 -4
  182. package/core/fetcher/makeRequest.d.ts +6 -1
  183. package/core/fetcher/makeRequest.js +38 -5
  184. package/core/fetcher/requestWithRetries.d.ts +1 -1
  185. package/core/fetcher/requestWithRetries.js +23 -2
  186. package/core/fetcher/signals.d.ts +1 -0
  187. package/core/fetcher/signals.js +3 -2
  188. package/core/stream/Stream.d.ts +3 -0
  189. package/core/stream/Stream.js +5 -0
  190. package/core/url/encodePathParam.d.ts +3 -1
  191. package/core/url/encodePathParam.js +8 -2
  192. package/core/websocket/ws.d.ts +16 -2
  193. package/core/websocket/ws.js +110 -20
  194. package/errors/MavenAGIError.js +16 -2
  195. package/package.json +1 -1
  196. package/reference.md +273 -13
  197. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +2 -0
  198. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +2 -0
  199. package/serialization/resources/agents/types/Agent.d.ts +2 -0
  200. package/serialization/resources/agents/types/Agent.js +2 -0
  201. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +16 -0
  202. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +50 -0
  203. package/serialization/resources/capabilities/client/requests/index.d.ts +1 -0
  204. package/serialization/resources/capabilities/client/requests/index.js +3 -1
  205. package/serialization/resources/capabilities/types/ActionSimulationInput.d.ts +10 -0
  206. package/serialization/resources/capabilities/types/ActionSimulationInput.js +44 -0
  207. package/serialization/resources/capabilities/types/CapabilityExecution.d.ts +15 -0
  208. package/serialization/resources/capabilities/types/CapabilityExecution.js +49 -0
  209. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +20 -0
  210. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +52 -0
  211. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +7 -0
  212. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +50 -0
  213. package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +7 -0
  214. package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.js +39 -0
  215. package/serialization/resources/capabilities/types/CapabilityExecutionStatus.d.ts +7 -0
  216. package/serialization/resources/capabilities/types/CapabilityExecutionStatus.js +39 -0
  217. package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +11 -0
  218. package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +45 -0
  219. package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  220. package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +47 -0
  221. package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +11 -0
  222. package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +47 -0
  223. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.d.ts +12 -0
  224. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.js +46 -0
  225. package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +9 -0
  226. package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +40 -0
  227. package/serialization/resources/capabilities/types/SimulatedUser.d.ts +10 -0
  228. package/serialization/resources/capabilities/types/SimulatedUser.js +44 -0
  229. package/serialization/resources/capabilities/types/SimulatedUserData.d.ts +10 -0
  230. package/serialization/resources/capabilities/types/SimulatedUserData.js +42 -0
  231. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +15 -0
  232. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +49 -0
  233. package/serialization/resources/capabilities/types/index.d.ts +14 -0
  234. package/serialization/resources/capabilities/types/index.js +14 -0
  235. package/serialization/resources/charters/types/CharterContent.d.ts +1 -1
  236. package/serialization/resources/charters/types/CharterContent.js +1 -1
  237. package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +2 -0
  238. package/serialization/resources/charters/types/CharterListChildrenRequest.js +2 -0
  239. package/serialization/resources/charters/types/CharterResponse.d.ts +1 -1
  240. package/serialization/resources/charters/types/CharterResponse.js +1 -1
  241. package/serialization/resources/charters/types/CharterSummary.d.ts +1 -1
  242. package/serialization/resources/charters/types/CharterSummary.js +1 -1
  243. package/serialization/resources/charters/types/index.d.ts +0 -1
  244. package/serialization/resources/charters/types/index.js +0 -1
  245. package/serialization/resources/commons/types/ActionExecutionStatus.d.ts +7 -0
  246. package/serialization/resources/commons/types/ActionExecutionStatus.js +39 -0
  247. package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
  248. package/serialization/resources/commons/types/AdditionalDataKey.js +1 -0
  249. package/serialization/resources/commons/types/AppUserRequest.d.ts +2 -0
  250. package/serialization/resources/commons/types/AppUserRequest.js +2 -0
  251. package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
  252. package/serialization/resources/commons/types/BotLogicCharterDetail.js +2 -0
  253. package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
  254. package/serialization/resources/commons/types/BotMessage.js +2 -0
  255. package/serialization/resources/commons/types/BotMessageStatusReason.d.ts +7 -0
  256. package/serialization/resources/commons/types/BotMessageStatusReason.js +43 -0
  257. package/serialization/resources/commons/types/ConversationMetadataValueSource.d.ts +9 -0
  258. package/serialization/resources/commons/types/ConversationMetadataValueSource.js +41 -0
  259. package/serialization/resources/commons/types/ConversationValueSource.d.ts +11 -0
  260. package/serialization/resources/commons/types/ConversationValueSource.js +47 -0
  261. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  262. package/serialization/resources/commons/types/EntityType.js +5 -0
  263. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  264. package/serialization/resources/commons/types/ErrorReason.js +2 -0
  265. package/serialization/resources/commons/types/ExecuteActionResponse.d.ts +13 -0
  266. package/serialization/resources/commons/types/ExecuteActionResponse.js +45 -0
  267. package/serialization/resources/commons/types/ExecutionMode.d.ts +7 -0
  268. package/serialization/resources/commons/types/ExecutionMode.js +39 -0
  269. package/serialization/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  270. package/serialization/resources/commons/types/FunctionVersionBinding.js +43 -0
  271. package/serialization/resources/commons/types/MetadataConversationValueFilter.d.ts +11 -0
  272. package/serialization/resources/commons/types/MetadataConversationValueFilter.js +43 -0
  273. package/serialization/resources/commons/types/MetadataFilter.d.ts +5 -1
  274. package/serialization/resources/commons/types/MetadataFilter.js +2 -0
  275. package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +15 -0
  276. package/serialization/resources/commons/types/SimulationActionBehavior.js +49 -0
  277. package/serialization/resources/commons/types/SimulationActionCallApp.d.ts +7 -0
  278. package/serialization/resources/commons/types/SimulationActionCallApp.js +39 -0
  279. package/serialization/resources/commons/types/SimulationActionMock.d.ts +12 -0
  280. package/serialization/resources/commons/types/SimulationActionMock.js +44 -0
  281. package/serialization/resources/commons/types/SimulationContext.d.ts +4 -0
  282. package/serialization/resources/commons/types/SimulationContext.js +4 -0
  283. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  284. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  285. package/serialization/resources/commons/types/index.d.ts +12 -0
  286. package/serialization/resources/commons/types/index.js +12 -0
  287. package/serialization/resources/users/types/AgentUser.d.ts +2 -0
  288. package/serialization/resources/users/types/AgentUser.js +2 -0
  289. package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
  290. package/serialization/resources/users/types/AgentUserFilter.js +2 -0
  291. package/version.d.ts +1 -1
  292. package/version.js +1 -1
  293. /package/api/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  294. /package/api/resources/{charters → commons}/types/CharterType.js +0 -0
  295. /package/serialization/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  296. /package/serialization/resources/{charters → commons}/types/CharterType.js +0 -0
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.BotMessageStatusReason = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.BotMessageStatusReason = core.serialization.forwardCompatibleEnum_([
40
+ "CONTENT_SAFETY_ISSUE",
41
+ "FAILED_TO_RETRIEVE_KNOWLEDGE",
42
+ "FAILED_TO_RETRIEVE_ACTIONS",
43
+ ]);
@@ -0,0 +1,9 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const ConversationMetadataValueSource: core.serialization.ObjectSchema<serializers.ConversationMetadataValueSource.Raw, MavenAGI.ConversationMetadataValueSource>;
5
+ export declare namespace ConversationMetadataValueSource {
6
+ interface Raw {
7
+ key: string;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ConversationMetadataValueSource = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.ConversationMetadataValueSource = core.serialization.object({
40
+ key: core.serialization.string(),
41
+ });
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { ConversationMetadataValueSource } from "./ConversationMetadataValueSource";
5
+ export declare const ConversationValueSource: core.serialization.Schema<serializers.ConversationValueSource.Raw, MavenAGI.ConversationValueSource>;
6
+ export declare namespace ConversationValueSource {
7
+ type Raw = ConversationValueSource.ConversationMetadata;
8
+ interface ConversationMetadata extends ConversationMetadataValueSource.Raw {
9
+ type: "conversationMetadata";
10
+ }
11
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ConversationValueSource = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ConversationMetadataValueSource_1 = require("./ConversationMetadataValueSource");
40
+ exports.ConversationValueSource = core.serialization
41
+ .union("type", {
42
+ conversationMetadata: ConversationMetadataValueSource_1.ConversationMetadataValueSource,
43
+ })
44
+ .transform({
45
+ transform: (value) => value,
46
+ untransform: (value) => value,
47
+ });
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
5
5
  export declare namespace EntityType {
6
- type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "AGENT_USER" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD" | "CHARTER" | "CONVERSATION_KICKOFF" | "AGENT_VARIANT" | "ASSET" | "TRAFFIC_CONFIG";
6
+ type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "AGENT_USER" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD" | "CHARTER" | "CONVERSATION_KICKOFF" | "AGENT_VARIANT" | "ASSET" | "TRAFFIC_CONFIG" | "SCENARIO" | "SCENARIO_SUITE" | "SCENARIO_RUN" | "FUNCTION" | "FUNCTION_VERSION";
7
7
  }
@@ -60,4 +60,9 @@ exports.EntityType = core.serialization.forwardCompatibleEnum_([
60
60
  "AGENT_VARIANT",
61
61
  "ASSET",
62
62
  "TRAFFIC_CONFIG",
63
+ "SCENARIO",
64
+ "SCENARIO_SUITE",
65
+ "SCENARIO_RUN",
66
+ "FUNCTION",
67
+ "FUNCTION_VERSION",
63
68
  ]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const ErrorReason: core.serialization.Schema<serializers.ErrorReason.Raw, MavenAGI.ErrorReason>;
5
5
  export declare namespace ErrorReason {
6
- type Raw = "VARIANT_LIVE" | "VARIANT_NOT_ACTIVE" | "STALE_TRAFFIC_REVISION" | "STALE_WORKING_SET" | "NOTHING_TO_COMMIT" | "VARIANT_ALREADY_EXISTS" | "CANNOT_ARCHIVE_LIVE_VARIANT" | "VARIANT_HAS_STAGED_EDITS" | "VARIANT_REQUIRED" | "INTELLIGENT_FIELD_TYPE_CHANGED";
6
+ type Raw = "VARIANT_LIVE" | "VARIANT_NOT_ACTIVE" | "STALE_TRAFFIC_REVISION" | "STALE_WORKING_SET" | "NOTHING_TO_COMMIT" | "VARIANT_ALREADY_EXISTS" | "VARIANT_LIMIT_REACHED" | "CANNOT_ARCHIVE_LIVE_VARIANT" | "VARIANT_HAS_STAGED_EDITS" | "VARIANT_REQUIRED" | "INTELLIGENT_FIELD_TYPE_CHANGED" | "WORKING_SET_HAS_UNVERSIONED_EDITS";
7
7
  }
@@ -43,8 +43,10 @@ exports.ErrorReason = core.serialization.forwardCompatibleEnum_([
43
43
  "STALE_WORKING_SET",
44
44
  "NOTHING_TO_COMMIT",
45
45
  "VARIANT_ALREADY_EXISTS",
46
+ "VARIANT_LIMIT_REACHED",
46
47
  "CANNOT_ARCHIVE_LIVE_VARIANT",
47
48
  "VARIANT_HAS_STAGED_EDITS",
48
49
  "VARIANT_REQUIRED",
49
50
  "INTELLIGENT_FIELD_TYPE_CHANGED",
51
+ "WORKING_SET_HAS_UNVERSIONED_EDITS",
50
52
  ]);
@@ -0,0 +1,13 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { ActionExecutionStatus } from "./ActionExecutionStatus";
5
+ export declare const ExecuteActionResponse: core.serialization.ObjectSchema<serializers.ExecuteActionResponse.Raw, MavenAGI.ExecuteActionResponse>;
6
+ export declare namespace ExecuteActionResponse {
7
+ interface Raw {
8
+ response: string;
9
+ data?: Record<string, unknown> | null;
10
+ status?: ActionExecutionStatus.Raw | null;
11
+ errorMessage?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ExecuteActionResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ActionExecutionStatus_1 = require("./ActionExecutionStatus");
40
+ exports.ExecuteActionResponse = core.serialization.object({
41
+ response: core.serialization.string(),
42
+ data: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
43
+ status: ActionExecutionStatus_1.ActionExecutionStatus.optional(),
44
+ errorMessage: core.serialization.string().optional(),
45
+ });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const ExecutionMode: core.serialization.Schema<serializers.ExecutionMode.Raw, MavenAGI.ExecutionMode>;
5
+ export declare namespace ExecutionMode {
6
+ type Raw = "LIVE" | "SIMULATION";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ExecutionMode = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.ExecutionMode = core.serialization.forwardCompatibleEnum_(["LIVE", "SIMULATION"]);
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
5
+ export declare const FunctionVersionBinding: core.serialization.ObjectSchema<serializers.FunctionVersionBinding.Raw, MavenAGI.FunctionVersionBinding>;
6
+ export declare namespace FunctionVersionBinding {
7
+ interface Raw {
8
+ functionId: EntityIdWithoutAgent.Raw;
9
+ versionId: EntityIdWithoutAgent.Raw;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.FunctionVersionBinding = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
40
+ exports.FunctionVersionBinding = core.serialization.object({
41
+ functionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent,
42
+ versionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent,
43
+ });
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { ConversationValueSource } from "./ConversationValueSource";
5
+ export declare const MetadataConversationValueFilter: core.serialization.ObjectSchema<serializers.MetadataConversationValueFilter.Raw, MavenAGI.MetadataConversationValueFilter>;
6
+ export declare namespace MetadataConversationValueFilter {
7
+ interface Raw {
8
+ key: string;
9
+ source: ConversationValueSource.Raw;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.MetadataConversationValueFilter = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ConversationValueSource_1 = require("./ConversationValueSource");
40
+ exports.MetadataConversationValueFilter = core.serialization.object({
41
+ key: core.serialization.string(),
42
+ source: ConversationValueSource_1.ConversationValueSource,
43
+ });
@@ -1,13 +1,17 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import * as serializers from "../../../index";
4
+ import { MetadataConversationValueFilter } from "./MetadataConversationValueFilter";
4
5
  import { MetadataEntryCondition } from "./MetadataEntryCondition";
5
6
  export declare const MetadataFilter: core.serialization.Schema<serializers.MetadataFilter.Raw, MavenAGI.MetadataFilter>;
6
7
  export declare namespace MetadataFilter {
7
- type Raw = MetadataFilter.Entry | MetadataFilter.Group;
8
+ type Raw = MetadataFilter.Entry | MetadataFilter.ConversationValue | MetadataFilter.Group;
8
9
  interface Entry extends MetadataEntryCondition.Raw {
9
10
  metadataFilterType: "entry";
10
11
  }
12
+ interface ConversationValue extends MetadataConversationValueFilter.Raw {
13
+ metadataFilterType: "conversationValue";
14
+ }
11
15
  interface Group extends serializers.MetadataFilterGroup.Raw {
12
16
  metadataFilterType: "group";
13
17
  }
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.MetadataFilter = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const serializers = __importStar(require("../../../index"));
40
+ const MetadataConversationValueFilter_1 = require("./MetadataConversationValueFilter");
40
41
  const MetadataEntryCondition_1 = require("./MetadataEntryCondition");
41
42
  exports.MetadataFilter = core.serialization
42
43
  .union("metadataFilterType", {
43
44
  entry: MetadataEntryCondition_1.MetadataEntryCondition,
45
+ conversationValue: MetadataConversationValueFilter_1.MetadataConversationValueFilter,
44
46
  group: core.serialization.lazyObject(() => serializers.MetadataFilterGroup),
45
47
  })
46
48
  .transform({
@@ -0,0 +1,15 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { ExecuteActionResponse } from "./ExecuteActionResponse";
5
+ import { SimulationActionCallApp } from "./SimulationActionCallApp";
6
+ export declare const SimulationActionBehavior: core.serialization.Schema<serializers.SimulationActionBehavior.Raw, MavenAGI.SimulationActionBehavior>;
7
+ export declare namespace SimulationActionBehavior {
8
+ type Raw = SimulationActionBehavior.FixedResponse | SimulationActionBehavior.CallApp;
9
+ interface FixedResponse extends ExecuteActionResponse.Raw {
10
+ type: "fixedResponse";
11
+ }
12
+ interface CallApp extends SimulationActionCallApp.Raw {
13
+ type: "callApp";
14
+ }
15
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SimulationActionBehavior = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ExecuteActionResponse_1 = require("./ExecuteActionResponse");
40
+ const SimulationActionCallApp_1 = require("./SimulationActionCallApp");
41
+ exports.SimulationActionBehavior = core.serialization
42
+ .union("type", {
43
+ fixedResponse: ExecuteActionResponse_1.ExecuteActionResponse,
44
+ callApp: SimulationActionCallApp_1.SimulationActionCallApp,
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const SimulationActionCallApp: core.serialization.ObjectSchema<serializers.SimulationActionCallApp.Raw, MavenAGI.SimulationActionCallApp>;
5
+ export declare namespace SimulationActionCallApp {
6
+ type Raw = {};
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SimulationActionCallApp = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.SimulationActionCallApp = core.serialization.object({});
@@ -0,0 +1,12 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
5
+ import { SimulationActionBehavior } from "./SimulationActionBehavior";
6
+ export declare const SimulationActionMock: core.serialization.ObjectSchema<serializers.SimulationActionMock.Raw, MavenAGI.SimulationActionMock>;
7
+ export declare namespace SimulationActionMock {
8
+ interface Raw {
9
+ actionId: EntityIdWithoutAgent.Raw;
10
+ behavior: SimulationActionBehavior.Raw;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SimulationActionMock = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
40
+ const SimulationActionBehavior_1 = require("./SimulationActionBehavior");
41
+ exports.SimulationActionMock = core.serialization.object({
42
+ actionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent,
43
+ behavior: SimulationActionBehavior_1.SimulationActionBehavior,
44
+ });
@@ -4,6 +4,8 @@ import type * as serializers from "../../../index";
4
4
  import { EntityId } from "./EntityId";
5
5
  import { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
6
6
  import { LlmPersona } from "./LlmPersona";
7
+ import { SimulationActionBehavior } from "./SimulationActionBehavior";
8
+ import { SimulationActionMock } from "./SimulationActionMock";
7
9
  export declare const SimulationContext: core.serialization.ObjectSchema<serializers.SimulationContext.Raw, MavenAGI.SimulationContext>;
8
10
  export declare namespace SimulationContext {
9
11
  interface Raw {
@@ -11,5 +13,7 @@ export declare namespace SimulationContext {
11
13
  persona?: LlmPersona.Raw | null;
12
14
  availableKnowledgeBases?: EntityId.Raw[] | null;
13
15
  variantId?: EntityIdWithoutAgent.Raw | null;
16
+ actionMocks?: SimulationActionMock.Raw[] | null;
17
+ defaultActionBehavior?: SimulationActionBehavior.Raw | null;
14
18
  }
15
19
  }