mavenagi 1.2.60 → 1.2.61

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 (262) hide show
  1. package/BaseClient.d.ts +12 -0
  2. package/BaseClient.js +5 -3
  3. package/Client.d.ts +3 -0
  4. package/Client.js +33 -28
  5. package/api/resources/actions/client/Client.d.ts +10 -0
  6. package/api/resources/actions/client/Client.js +14 -3
  7. package/api/resources/agents/client/Client.d.ts +12 -0
  8. package/api/resources/agents/client/Client.js +16 -3
  9. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +3 -3
  10. package/api/resources/agents/types/AgentPrompting.d.ts +3 -3
  11. package/api/resources/analytics/client/Client.d.ts +14 -0
  12. package/api/resources/analytics/client/Client.js +22 -7
  13. package/api/resources/analytics/types/ConversationMedian.d.ts +4 -0
  14. package/api/resources/analytics/types/ConversationPercentile.d.ts +4 -0
  15. package/api/resources/analytics/types/RowBase.d.ts +5 -1
  16. package/api/resources/analytics/types/Series.d.ts +4 -1
  17. package/api/resources/analytics/types/TimeSeries.d.ts +5 -1
  18. package/api/resources/appDirectory/client/Client.d.ts +12 -0
  19. package/api/resources/appDirectory/client/Client.js +16 -3
  20. package/api/resources/appSettings/client/Client.d.ts +6 -0
  21. package/api/resources/appSettings/client/Client.js +8 -1
  22. package/api/resources/assets/client/Client.d.ts +4 -0
  23. package/api/resources/assets/client/Client.js +7 -2
  24. package/api/resources/charters/client/Client.d.ts +245 -0
  25. package/api/resources/charters/client/Client.js +884 -0
  26. package/api/resources/charters/client/index.d.ts +1 -0
  27. package/api/resources/charters/client/index.js +17 -0
  28. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +20 -0
  29. package/api/resources/charters/client/requests/CharterDeleteRequest.js +3 -0
  30. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +8 -0
  31. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.js +3 -0
  32. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +8 -0
  33. package/api/resources/charters/client/requests/CharterGetRequest.js +3 -0
  34. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +67 -0
  35. package/api/resources/charters/client/requests/CharterPatchRequest.js +3 -0
  36. package/api/resources/charters/client/requests/index.d.ts +4 -0
  37. package/api/resources/charters/client/requests/index.js +2 -0
  38. package/api/resources/charters/exports.d.ts +2 -0
  39. package/api/resources/charters/exports.js +21 -0
  40. package/api/resources/charters/index.d.ts +1 -0
  41. package/api/resources/charters/index.js +1 -0
  42. package/api/resources/charters/types/CharterAncestorsResponse.d.ts +8 -0
  43. package/api/resources/charters/types/CharterAncestorsResponse.js +3 -0
  44. package/api/resources/charters/types/CharterBase.d.ts +14 -0
  45. package/api/resources/charters/types/CharterBase.js +3 -0
  46. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +1 -1
  47. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +1 -1
  48. package/api/resources/charters/types/CharterChildrenGroup.d.ts +18 -0
  49. package/api/resources/charters/types/CharterChildrenGroup.js +3 -0
  50. package/api/resources/charters/types/CharterContent.d.ts +60 -0
  51. package/api/resources/charters/types/CharterContent.js +3 -0
  52. package/api/resources/charters/types/CharterKnowledgeBaseReference.d.ts +16 -0
  53. package/api/resources/charters/types/CharterKnowledgeBaseReference.js +3 -0
  54. package/api/resources/charters/types/CharterListChildrenRequest.d.ts +18 -0
  55. package/api/resources/charters/types/CharterListChildrenRequest.js +3 -0
  56. package/api/resources/charters/types/CharterListChildrenResponse.d.ts +55 -0
  57. package/api/resources/charters/types/CharterListChildrenResponse.js +3 -0
  58. package/api/resources/charters/types/CharterPatchReferences.d.ts +22 -0
  59. package/api/resources/charters/types/CharterPatchReferences.js +3 -0
  60. package/api/resources/charters/types/CharterReferences.d.ts +21 -0
  61. package/api/resources/charters/types/CharterReferences.js +3 -0
  62. package/api/resources/charters/types/CharterRequest.d.ts +36 -0
  63. package/api/resources/charters/types/CharterRequest.js +3 -0
  64. package/api/resources/charters/types/CharterResponse.d.ts +66 -0
  65. package/api/resources/charters/types/CharterResponse.js +3 -0
  66. package/api/resources/charters/types/CharterSearchField.d.ts +5 -0
  67. package/api/resources/charters/types/CharterSearchField.js +8 -0
  68. package/api/resources/charters/types/CharterSearchFilter.d.ts +15 -0
  69. package/api/resources/charters/types/CharterSearchFilter.js +3 -0
  70. package/api/resources/charters/types/CharterSearchRequest.d.ts +5 -0
  71. package/api/resources/charters/types/CharterSearchRequest.js +3 -0
  72. package/api/resources/charters/types/CharterSearchResponse.d.ts +36 -0
  73. package/api/resources/charters/types/CharterSearchResponse.js +3 -0
  74. package/api/resources/charters/types/CharterStatus.d.ts +2 -2
  75. package/api/resources/charters/types/CharterStatus.js +2 -2
  76. package/api/resources/charters/types/CharterSummary.d.ts +1 -9
  77. package/api/resources/charters/types/CharterType.d.ts +4 -4
  78. package/api/resources/charters/types/CharterType.js +4 -4
  79. package/api/resources/charters/types/index.d.ts +15 -0
  80. package/api/resources/charters/types/index.js +15 -0
  81. package/api/resources/commons/errors/BadRequestError.d.ts +1 -0
  82. package/api/resources/commons/errors/BadRequestError.js +1 -1
  83. package/api/resources/commons/errors/NotFoundError.d.ts +1 -0
  84. package/api/resources/commons/errors/NotFoundError.js +1 -1
  85. package/api/resources/commons/errors/PayloadTooLargeError.d.ts +1 -0
  86. package/api/resources/commons/errors/PayloadTooLargeError.js +1 -1
  87. package/api/resources/commons/errors/ServerError.d.ts +1 -0
  88. package/api/resources/commons/errors/ServerError.js +1 -1
  89. package/api/resources/commons/errors/TooManyRequestsError.d.ts +1 -0
  90. package/api/resources/commons/errors/TooManyRequestsError.js +1 -1
  91. package/api/resources/commons/types/AskType.d.ts +2 -2
  92. package/api/resources/commons/types/AskType.js +2 -2
  93. package/api/resources/commons/types/BotObjectResponse.d.ts +1 -1
  94. package/api/resources/commons/types/ConversationRound.d.ts +1 -1
  95. package/api/resources/commons/types/ConversationRound.js +1 -1
  96. package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +0 -4
  97. package/api/resources/commons/types/LlmPersona.d.ts +1 -1
  98. package/api/resources/commons/types/LlmPersona.js +1 -1
  99. package/api/resources/commons/types/MetadataComparisonCondition.d.ts +10 -0
  100. package/api/resources/commons/types/MetadataComparisonCondition.js +3 -0
  101. package/api/resources/commons/types/MetadataComparisonOperator.d.ts +22 -0
  102. package/api/resources/commons/types/MetadataComparisonOperator.js +25 -0
  103. package/api/resources/commons/types/MetadataCondition.d.ts +21 -0
  104. package/api/resources/commons/types/MetadataCondition.js +3 -0
  105. package/api/resources/commons/types/MetadataEntryCondition.d.ts +10 -0
  106. package/api/resources/commons/types/MetadataEntryCondition.js +3 -0
  107. package/api/resources/commons/types/MetadataFilter.d.ts +41 -0
  108. package/api/resources/commons/types/MetadataFilter.js +3 -0
  109. package/api/resources/commons/types/MetadataFilterGroup.d.ts +14 -0
  110. package/api/resources/commons/types/MetadataFilterGroup.js +3 -0
  111. package/api/resources/commons/types/SimulationContext.d.ts +2 -2
  112. package/api/resources/commons/types/SystemEventName.d.ts +3 -0
  113. package/api/resources/commons/types/SystemEventName.js +3 -0
  114. package/api/resources/commons/types/index.d.ts +6 -0
  115. package/api/resources/commons/types/index.js +6 -0
  116. package/api/resources/conversation/client/Client.d.ts +32 -0
  117. package/api/resources/conversation/client/Client.js +48 -17
  118. package/api/resources/conversation/types/AskRequest.d.ts +10 -10
  119. package/api/resources/conversation/types/ConversationFilter.d.ts +6 -1
  120. package/api/resources/customers/client/Client.d.ts +8 -0
  121. package/api/resources/customers/client/Client.js +12 -3
  122. package/api/resources/events/client/Client.d.ts +8 -0
  123. package/api/resources/events/client/Client.js +12 -3
  124. package/api/resources/inbox/client/Client.d.ts +16 -0
  125. package/api/resources/inbox/client/Client.js +22 -5
  126. package/api/resources/index.d.ts +1 -0
  127. package/api/resources/index.js +1 -0
  128. package/api/resources/integrations/client/Client.d.ts +2 -0
  129. package/api/resources/integrations/client/Client.js +4 -1
  130. package/api/resources/intelligentFields/client/Client.d.ts +28 -3
  131. package/api/resources/intelligentFields/client/Client.js +36 -8
  132. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +4 -0
  133. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +13 -4
  134. package/api/resources/intelligentFields/types/EnumOption.d.ts +3 -1
  135. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  136. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +12 -11
  137. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +4 -1
  138. package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +4 -1
  139. package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +8 -1
  140. package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +8 -1
  141. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +10 -0
  142. package/api/resources/intelligentFields/types/IntelligentFieldType.js +10 -0
  143. package/api/resources/knowledge/client/Client.d.ts +32 -0
  144. package/api/resources/knowledge/client/Client.js +47 -16
  145. package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +13 -0
  146. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -2
  147. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +33 -9
  148. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +7 -1
  149. package/api/resources/organizations/client/Client.d.ts +12 -0
  150. package/api/resources/organizations/client/Client.js +17 -4
  151. package/api/resources/segments/client/Client.d.ts +10 -0
  152. package/api/resources/segments/client/Client.js +14 -3
  153. package/api/resources/translations/client/Client.d.ts +2 -0
  154. package/api/resources/translations/client/Client.js +4 -1
  155. package/api/resources/triggers/client/Client.d.ts +10 -0
  156. package/api/resources/triggers/client/Client.js +14 -3
  157. package/api/resources/users/client/Client.d.ts +10 -0
  158. package/api/resources/users/client/Client.js +13 -2
  159. package/api/resources/voice/client/Client.d.ts +2 -0
  160. package/api/resources/voice/client/Client.js +4 -1
  161. package/api/resources/voiceConversations/client/Client.d.ts +4 -1
  162. package/api/resources/voiceConversations/client/Client.js +2 -1
  163. package/api/resources/voiceConversations/client/Socket.d.ts +11 -0
  164. package/api/resources/voiceConversations/client/Socket.js +15 -0
  165. package/core/fetcher/Fetcher.js +9 -92
  166. package/core/fetcher/getResponseBody.js +11 -0
  167. package/core/fetcher/makePassthroughRequest.js +26 -4
  168. package/core/fetcher/redactUrl.d.ts +2 -0
  169. package/core/fetcher/redactUrl.js +88 -0
  170. package/core/fetcher/signals.js +9 -1
  171. package/core/file/file.js +3 -0
  172. package/core/form-data-utils/FormDataWrapper.js +3 -0
  173. package/core/requestBody.d.ts +12 -0
  174. package/core/requestBody.js +26 -0
  175. package/core/runtime/index.d.ts +1 -1
  176. package/core/runtime/index.js +2 -1
  177. package/core/runtime/runtime.d.ts +19 -0
  178. package/core/runtime/runtime.js +74 -2
  179. package/core/schemas/builders/schema-utils/JsonError.js +2 -2
  180. package/core/schemas/builders/schema-utils/ParseError.js +2 -2
  181. package/core/stream/Stream.d.ts +45 -1
  182. package/core/stream/Stream.js +323 -84
  183. package/core/stream/index.d.ts +1 -0
  184. package/core/url/qs.js +2 -2
  185. package/core/websocket/ws.d.ts +6 -0
  186. package/core/websocket/ws.js +14 -1
  187. package/errors/MavenAGIError.d.ts +1 -0
  188. package/errors/MavenAGIError.js +5 -1
  189. package/errors/MavenAGITimeoutError.d.ts +2 -2
  190. package/errors/MavenAGITimeoutError.js +40 -6
  191. package/package.json +2 -2
  192. package/reference.md +587 -3
  193. package/serialization/resources/charters/client/index.d.ts +1 -0
  194. package/serialization/resources/charters/client/index.js +17 -0
  195. package/serialization/resources/charters/client/requests/CharterPatchRequest.d.ts +24 -0
  196. package/serialization/resources/charters/client/requests/CharterPatchRequest.js +57 -0
  197. package/serialization/resources/charters/client/requests/index.d.ts +1 -0
  198. package/serialization/resources/charters/client/requests/index.js +5 -0
  199. package/serialization/resources/charters/index.d.ts +1 -0
  200. package/serialization/resources/charters/index.js +1 -0
  201. package/serialization/resources/charters/types/CharterAncestorsResponse.d.ts +10 -0
  202. package/serialization/resources/charters/types/CharterAncestorsResponse.js +42 -0
  203. package/serialization/resources/charters/types/CharterBase.d.ts +11 -0
  204. package/serialization/resources/charters/types/CharterBase.js +43 -0
  205. package/serialization/resources/charters/types/CharterChildrenGroup.d.ts +13 -0
  206. package/serialization/resources/charters/types/CharterChildrenGroup.js +45 -0
  207. package/serialization/resources/charters/types/CharterContent.d.ts +19 -0
  208. package/serialization/resources/charters/types/CharterContent.js +54 -0
  209. package/serialization/resources/charters/types/CharterKnowledgeBaseReference.d.ts +11 -0
  210. package/serialization/resources/charters/types/CharterKnowledgeBaseReference.js +44 -0
  211. package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +11 -0
  212. package/serialization/resources/charters/types/CharterListChildrenRequest.js +45 -0
  213. package/serialization/resources/charters/types/CharterListChildrenResponse.d.ts +11 -0
  214. package/serialization/resources/charters/types/CharterListChildrenResponse.js +45 -0
  215. package/serialization/resources/charters/types/CharterPatchReferences.d.ts +12 -0
  216. package/serialization/resources/charters/types/CharterPatchReferences.js +44 -0
  217. package/serialization/resources/charters/types/CharterReferences.d.ts +12 -0
  218. package/serialization/resources/charters/types/CharterReferences.js +44 -0
  219. package/serialization/resources/charters/types/CharterRequest.d.ts +13 -0
  220. package/serialization/resources/charters/types/CharterRequest.js +47 -0
  221. package/serialization/resources/charters/types/CharterResponse.d.ts +25 -0
  222. package/serialization/resources/charters/types/CharterResponse.js +60 -0
  223. package/serialization/resources/charters/types/CharterSearchField.d.ts +7 -0
  224. package/serialization/resources/charters/types/CharterSearchField.js +39 -0
  225. package/serialization/resources/charters/types/CharterSearchFilter.d.ts +11 -0
  226. package/serialization/resources/charters/types/CharterSearchFilter.js +43 -0
  227. package/serialization/resources/charters/types/CharterSearchRequest.d.ts +13 -0
  228. package/serialization/resources/charters/types/CharterSearchRequest.js +47 -0
  229. package/serialization/resources/charters/types/CharterSearchResponse.d.ts +11 -0
  230. package/serialization/resources/charters/types/CharterSearchResponse.js +45 -0
  231. package/serialization/resources/charters/types/CharterSummary.d.ts +0 -2
  232. package/serialization/resources/charters/types/CharterSummary.js +0 -2
  233. package/serialization/resources/charters/types/index.d.ts +15 -0
  234. package/serialization/resources/charters/types/index.js +15 -0
  235. package/serialization/resources/commons/types/MetadataComparisonCondition.d.ts +11 -0
  236. package/serialization/resources/commons/types/MetadataComparisonCondition.js +43 -0
  237. package/serialization/resources/commons/types/MetadataComparisonOperator.d.ts +7 -0
  238. package/serialization/resources/commons/types/MetadataComparisonOperator.js +39 -0
  239. package/serialization/resources/commons/types/MetadataCondition.d.ts +19 -0
  240. package/serialization/resources/commons/types/MetadataCondition.js +51 -0
  241. package/serialization/resources/commons/types/MetadataEntryCondition.d.ts +11 -0
  242. package/serialization/resources/commons/types/MetadataEntryCondition.js +43 -0
  243. package/serialization/resources/commons/types/MetadataFilter.d.ts +14 -0
  244. package/serialization/resources/commons/types/MetadataFilter.js +49 -0
  245. package/serialization/resources/commons/types/MetadataFilterGroup.d.ts +11 -0
  246. package/serialization/resources/commons/types/MetadataFilterGroup.js +44 -0
  247. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  248. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  249. package/serialization/resources/commons/types/index.d.ts +6 -0
  250. package/serialization/resources/commons/types/index.js +6 -0
  251. package/serialization/resources/index.d.ts +1 -0
  252. package/serialization/resources/index.js +1 -0
  253. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -0
  254. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +1 -0
  255. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +2 -0
  256. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +2 -0
  257. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +0 -2
  258. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +0 -2
  259. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  260. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
  261. package/version.d.ts +1 -1
  262. package/version.js +1 -1
@@ -150,6 +150,12 @@ __exportStar(require("./LanguageInfo"), exports);
150
150
  __exportStar(require("./LlmInclusionStatus"), exports);
151
151
  __exportStar(require("./LlmPersona"), exports);
152
152
  __exportStar(require("./MessageStatus"), exports);
153
+ __exportStar(require("./MetadataComparisonCondition"), exports);
154
+ __exportStar(require("./MetadataComparisonOperator"), exports);
155
+ __exportStar(require("./MetadataCondition"), exports);
156
+ __exportStar(require("./MetadataEntryCondition"), exports);
157
+ __exportStar(require("./MetadataFilter"), exports);
158
+ __exportStar(require("./MetadataFilterGroup"), exports);
153
159
  __exportStar(require("./MetadataPrecondition"), exports);
154
160
  __exportStar(require("./MultilineSettingsSchemaEntry"), exports);
155
161
  __exportStar(require("./NovelSystemEvent"), exports);
@@ -28,6 +28,8 @@ export declare class ConversationClient {
28
28
  * @throws {@link MavenAGI.PayloadTooLargeError}
29
29
  * @throws {@link MavenAGI.TooManyRequestsError}
30
30
  * @throws {@link MavenAGI.ServerError}
31
+ * @throws {@link errors.MavenAGIError}
32
+ * @throws {@link errors.MavenAGITimeoutError}
31
33
  *
32
34
  * @example
33
35
  * await client.conversation.initialize({
@@ -72,6 +74,8 @@ export declare class ConversationClient {
72
74
  * @throws {@link MavenAGI.PayloadTooLargeError}
73
75
  * @throws {@link MavenAGI.TooManyRequestsError}
74
76
  * @throws {@link MavenAGI.ServerError}
77
+ * @throws {@link errors.MavenAGIError}
78
+ * @throws {@link errors.MavenAGITimeoutError}
75
79
  *
76
80
  * @example
77
81
  * await client.conversation.patch("conversation-0", {
@@ -92,6 +96,8 @@ export declare class ConversationClient {
92
96
  * @throws {@link MavenAGI.PayloadTooLargeError}
93
97
  * @throws {@link MavenAGI.TooManyRequestsError}
94
98
  * @throws {@link MavenAGI.ServerError}
99
+ * @throws {@link errors.MavenAGIError}
100
+ * @throws {@link errors.MavenAGITimeoutError}
95
101
  *
96
102
  * @example
97
103
  * await client.conversation.get("conversationId")
@@ -119,6 +125,8 @@ export declare class ConversationClient {
119
125
  * @throws {@link MavenAGI.PayloadTooLargeError}
120
126
  * @throws {@link MavenAGI.TooManyRequestsError}
121
127
  * @throws {@link MavenAGI.ServerError}
128
+ * @throws {@link errors.MavenAGIError}
129
+ * @throws {@link errors.MavenAGITimeoutError}
122
130
  *
123
131
  * @example
124
132
  * await client.conversation.delete("conversation-0", {
@@ -139,6 +147,8 @@ export declare class ConversationClient {
139
147
  * @throws {@link MavenAGI.PayloadTooLargeError}
140
148
  * @throws {@link MavenAGI.TooManyRequestsError}
141
149
  * @throws {@link MavenAGI.ServerError}
150
+ * @throws {@link errors.MavenAGIError}
151
+ * @throws {@link errors.MavenAGITimeoutError}
142
152
  *
143
153
  * @example
144
154
  * await client.conversation.appendNewMessages("conversationId", [{
@@ -183,6 +193,8 @@ export declare class ConversationClient {
183
193
  * @throws {@link MavenAGI.PayloadTooLargeError}
184
194
  * @throws {@link MavenAGI.TooManyRequestsError}
185
195
  * @throws {@link MavenAGI.ServerError}
196
+ * @throws {@link errors.MavenAGIError}
197
+ * @throws {@link errors.MavenAGITimeoutError}
186
198
  *
187
199
  * @example
188
200
  * await client.conversation.ask("conversation-0", {
@@ -236,6 +248,8 @@ export declare class ConversationClient {
236
248
  * @throws {@link MavenAGI.PayloadTooLargeError}
237
249
  * @throws {@link MavenAGI.TooManyRequestsError}
238
250
  * @throws {@link MavenAGI.ServerError}
251
+ * @throws {@link errors.MavenAGIError}
252
+ * @throws {@link errors.MavenAGITimeoutError}
239
253
  *
240
254
  * @example
241
255
  * await client.conversation.categorize("conversationId")
@@ -259,6 +273,8 @@ export declare class ConversationClient {
259
273
  * @throws {@link MavenAGI.PayloadTooLargeError}
260
274
  * @throws {@link MavenAGI.TooManyRequestsError}
261
275
  * @throws {@link MavenAGI.ServerError}
276
+ * @throws {@link errors.MavenAGIError}
277
+ * @throws {@link errors.MavenAGITimeoutError}
262
278
  *
263
279
  * @example
264
280
  * await client.conversation.createFeedback({
@@ -296,6 +312,8 @@ export declare class ConversationClient {
296
312
  * @throws {@link MavenAGI.PayloadTooLargeError}
297
313
  * @throws {@link MavenAGI.TooManyRequestsError}
298
314
  * @throws {@link MavenAGI.ServerError}
315
+ * @throws {@link errors.MavenAGIError}
316
+ * @throws {@link errors.MavenAGITimeoutError}
299
317
  *
300
318
  * @example
301
319
  * await client.conversation.submitActionForm("conversationId", {
@@ -325,6 +343,8 @@ export declare class ConversationClient {
325
343
  * @throws {@link MavenAGI.PayloadTooLargeError}
326
344
  * @throws {@link MavenAGI.TooManyRequestsError}
327
345
  * @throws {@link MavenAGI.ServerError}
346
+ * @throws {@link errors.MavenAGIError}
347
+ * @throws {@link errors.MavenAGITimeoutError}
328
348
  *
329
349
  * @example
330
350
  * await client.conversation.addConversationMetadata("conversationId", {
@@ -351,6 +371,8 @@ export declare class ConversationClient {
351
371
  * @throws {@link MavenAGI.PayloadTooLargeError}
352
372
  * @throws {@link MavenAGI.TooManyRequestsError}
353
373
  * @throws {@link MavenAGI.ServerError}
374
+ * @throws {@link errors.MavenAGIError}
375
+ * @throws {@link errors.MavenAGITimeoutError}
354
376
  *
355
377
  * @example
356
378
  * await client.conversation.updateConversationMetadata("conversation-0", {
@@ -373,6 +395,8 @@ export declare class ConversationClient {
373
395
  * @throws {@link MavenAGI.PayloadTooLargeError}
374
396
  * @throws {@link MavenAGI.TooManyRequestsError}
375
397
  * @throws {@link MavenAGI.ServerError}
398
+ * @throws {@link errors.MavenAGIError}
399
+ * @throws {@link errors.MavenAGITimeoutError}
376
400
  *
377
401
  * @example
378
402
  * await client.conversation.search({})
@@ -400,6 +424,8 @@ export declare class ConversationClient {
400
424
  * @throws {@link MavenAGI.PayloadTooLargeError}
401
425
  * @throws {@link MavenAGI.TooManyRequestsError}
402
426
  * @throws {@link MavenAGI.ServerError}
427
+ * @throws {@link errors.MavenAGIError}
428
+ * @throws {@link errors.MavenAGITimeoutError}
403
429
  *
404
430
  * @example
405
431
  * await client.conversation.searchCursor({})
@@ -419,6 +445,8 @@ export declare class ConversationClient {
419
445
  * @throws {@link MavenAGI.PayloadTooLargeError}
420
446
  * @throws {@link MavenAGI.TooManyRequestsError}
421
447
  * @throws {@link MavenAGI.ServerError}
448
+ * @throws {@link errors.MavenAGIError}
449
+ * @throws {@link errors.MavenAGITimeoutError}
422
450
  */
423
451
  export(request: MavenAGI.ConversationsSearchRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
424
452
  private __export;
@@ -440,6 +468,8 @@ export declare class ConversationClient {
440
468
  * @throws {@link MavenAGI.PayloadTooLargeError}
441
469
  * @throws {@link MavenAGI.TooManyRequestsError}
442
470
  * @throws {@link MavenAGI.ServerError}
471
+ * @throws {@link errors.MavenAGIError}
472
+ * @throws {@link errors.MavenAGITimeoutError}
443
473
  */
444
474
  importSimulations(file: core.file.Uploadable, request: MavenAGI.SimulationImportRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<void>;
445
475
  private __importSimulations;
@@ -461,6 +491,8 @@ export declare class ConversationClient {
461
491
  * @throws {@link MavenAGI.PayloadTooLargeError}
462
492
  * @throws {@link MavenAGI.TooManyRequestsError}
463
493
  * @throws {@link MavenAGI.ServerError}
494
+ * @throws {@link errors.MavenAGIError}
495
+ * @throws {@link errors.MavenAGITimeoutError}
464
496
  *
465
497
  * @example
466
498
  * await client.conversation.deliverMessage({
@@ -48,6 +48,7 @@ const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
50
  const json_1 = require("../../../../core/json");
51
+ const requestBody_1 = require("../../../../core/requestBody");
51
52
  const environments = __importStar(require("../../../../environments"));
52
53
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
53
54
  const errors = __importStar(require("../../../../errors/index"));
@@ -75,6 +76,8 @@ class ConversationClient {
75
76
  * @throws {@link MavenAGI.PayloadTooLargeError}
76
77
  * @throws {@link MavenAGI.TooManyRequestsError}
77
78
  * @throws {@link MavenAGI.ServerError}
79
+ * @throws {@link errors.MavenAGIError}
80
+ * @throws {@link errors.MavenAGITimeoutError}
78
81
  *
79
82
  * @example
80
83
  * await client.conversation.initialize({
@@ -120,7 +123,7 @@ class ConversationClient {
120
123
  contentType: "application/json",
121
124
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
122
125
  requestType: "json",
123
- body: serializers.ConversationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
126
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
124
127
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
125
128
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
126
129
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -201,6 +204,8 @@ class ConversationClient {
201
204
  * @throws {@link MavenAGI.PayloadTooLargeError}
202
205
  * @throws {@link MavenAGI.TooManyRequestsError}
203
206
  * @throws {@link MavenAGI.ServerError}
207
+ * @throws {@link errors.MavenAGIError}
208
+ * @throws {@link errors.MavenAGITimeoutError}
204
209
  *
205
210
  * @example
206
211
  * await client.conversation.patch("conversation-0", {
@@ -225,7 +230,7 @@ class ConversationClient {
225
230
  contentType: "application/json",
226
231
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
227
232
  requestType: "json",
228
- body: serializers.ConversationPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
233
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
229
234
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
230
235
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
231
236
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -303,6 +308,8 @@ class ConversationClient {
303
308
  * @throws {@link MavenAGI.PayloadTooLargeError}
304
309
  * @throws {@link MavenAGI.TooManyRequestsError}
305
310
  * @throws {@link MavenAGI.ServerError}
311
+ * @throws {@link errors.MavenAGIError}
312
+ * @throws {@link errors.MavenAGITimeoutError}
306
313
  *
307
314
  * @example
308
315
  * await client.conversation.get("conversationId")
@@ -418,6 +425,8 @@ class ConversationClient {
418
425
  * @throws {@link MavenAGI.PayloadTooLargeError}
419
426
  * @throws {@link MavenAGI.TooManyRequestsError}
420
427
  * @throws {@link MavenAGI.ServerError}
428
+ * @throws {@link errors.MavenAGIError}
429
+ * @throws {@link errors.MavenAGITimeoutError}
421
430
  *
422
431
  * @example
423
432
  * await client.conversation.delete("conversation-0", {
@@ -518,6 +527,8 @@ class ConversationClient {
518
527
  * @throws {@link MavenAGI.PayloadTooLargeError}
519
528
  * @throws {@link MavenAGI.TooManyRequestsError}
520
529
  * @throws {@link MavenAGI.ServerError}
530
+ * @throws {@link errors.MavenAGIError}
531
+ * @throws {@link errors.MavenAGITimeoutError}
521
532
  *
522
533
  * @example
523
534
  * await client.conversation.appendNewMessages("conversationId", [{
@@ -558,9 +569,9 @@ class ConversationClient {
558
569
  contentType: "application/json",
559
570
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
560
571
  requestType: "json",
561
- body: serializers.conversation.appendNewMessages.Request.jsonOrThrow(request, {
572
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.conversation.appendNewMessages.Request.jsonOrThrow(request, {
562
573
  unrecognizedObjectKeys: "strip",
563
- }),
574
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
564
575
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
565
576
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
566
577
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -646,6 +657,8 @@ class ConversationClient {
646
657
  * @throws {@link MavenAGI.PayloadTooLargeError}
647
658
  * @throws {@link MavenAGI.TooManyRequestsError}
648
659
  * @throws {@link MavenAGI.ServerError}
660
+ * @throws {@link errors.MavenAGIError}
661
+ * @throws {@link errors.MavenAGITimeoutError}
649
662
  *
650
663
  * @example
651
664
  * await client.conversation.ask("conversation-0", {
@@ -685,7 +698,7 @@ class ConversationClient {
685
698
  contentType: "application/json",
686
699
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
687
700
  requestType: "json",
688
- body: serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
701
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
689
702
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
690
703
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
691
704
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -784,7 +797,7 @@ class ConversationClient {
784
797
  contentType: "application/json",
785
798
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
786
799
  requestType: "json",
787
- body: serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
800
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
788
801
  responseType: "sse",
789
802
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
790
803
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
@@ -873,6 +886,8 @@ class ConversationClient {
873
886
  * @throws {@link MavenAGI.PayloadTooLargeError}
874
887
  * @throws {@link MavenAGI.TooManyRequestsError}
875
888
  * @throws {@link MavenAGI.ServerError}
889
+ * @throws {@link errors.MavenAGIError}
890
+ * @throws {@link errors.MavenAGITimeoutError}
876
891
  *
877
892
  * @example
878
893
  * await client.conversation.categorize("conversationId")
@@ -975,6 +990,8 @@ class ConversationClient {
975
990
  * @throws {@link MavenAGI.PayloadTooLargeError}
976
991
  * @throws {@link MavenAGI.TooManyRequestsError}
977
992
  * @throws {@link MavenAGI.ServerError}
993
+ * @throws {@link errors.MavenAGIError}
994
+ * @throws {@link errors.MavenAGITimeoutError}
978
995
  *
979
996
  * @example
980
997
  * await client.conversation.createFeedback({
@@ -1012,7 +1029,7 @@ class ConversationClient {
1012
1029
  contentType: "application/json",
1013
1030
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1014
1031
  requestType: "json",
1015
- body: serializers.FeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1032
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.FeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1016
1033
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
1017
1034
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
1018
1035
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1094,6 +1111,8 @@ class ConversationClient {
1094
1111
  * @throws {@link MavenAGI.PayloadTooLargeError}
1095
1112
  * @throws {@link MavenAGI.TooManyRequestsError}
1096
1113
  * @throws {@link MavenAGI.ServerError}
1114
+ * @throws {@link errors.MavenAGIError}
1115
+ * @throws {@link errors.MavenAGITimeoutError}
1097
1116
  *
1098
1117
  * @example
1099
1118
  * await client.conversation.submitActionForm("conversationId", {
@@ -1123,7 +1142,7 @@ class ConversationClient {
1123
1142
  contentType: "application/json",
1124
1143
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1125
1144
  requestType: "json",
1126
- body: serializers.SubmitActionFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1145
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.SubmitActionFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1127
1146
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
1128
1147
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
1129
1148
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1205,6 +1224,8 @@ class ConversationClient {
1205
1224
  * @throws {@link MavenAGI.PayloadTooLargeError}
1206
1225
  * @throws {@link MavenAGI.TooManyRequestsError}
1207
1226
  * @throws {@link MavenAGI.ServerError}
1227
+ * @throws {@link errors.MavenAGIError}
1228
+ * @throws {@link errors.MavenAGITimeoutError}
1208
1229
  *
1209
1230
  * @example
1210
1231
  * await client.conversation.addConversationMetadata("conversationId", {
@@ -1229,9 +1250,9 @@ class ConversationClient {
1229
1250
  contentType: "application/json",
1230
1251
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1231
1252
  requestType: "json",
1232
- body: serializers.conversation.addConversationMetadata.Request.jsonOrThrow(request, {
1253
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.conversation.addConversationMetadata.Request.jsonOrThrow(request, {
1233
1254
  unrecognizedObjectKeys: "strip",
1234
- }),
1255
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1235
1256
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
1236
1257
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
1237
1258
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1315,6 +1336,8 @@ class ConversationClient {
1315
1336
  * @throws {@link MavenAGI.PayloadTooLargeError}
1316
1337
  * @throws {@link MavenAGI.TooManyRequestsError}
1317
1338
  * @throws {@link MavenAGI.ServerError}
1339
+ * @throws {@link errors.MavenAGIError}
1340
+ * @throws {@link errors.MavenAGITimeoutError}
1318
1341
  *
1319
1342
  * @example
1320
1343
  * await client.conversation.updateConversationMetadata("conversation-0", {
@@ -1342,7 +1365,7 @@ class ConversationClient {
1342
1365
  contentType: "application/json",
1343
1366
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1344
1367
  requestType: "json",
1345
- body: serializers.UpdateMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1368
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.UpdateMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1346
1369
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
1347
1370
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
1348
1371
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1419,6 +1442,8 @@ class ConversationClient {
1419
1442
  * @throws {@link MavenAGI.PayloadTooLargeError}
1420
1443
  * @throws {@link MavenAGI.TooManyRequestsError}
1421
1444
  * @throws {@link MavenAGI.ServerError}
1445
+ * @throws {@link errors.MavenAGIError}
1446
+ * @throws {@link errors.MavenAGITimeoutError}
1422
1447
  *
1423
1448
  * @example
1424
1449
  * await client.conversation.search({})
@@ -1441,7 +1466,7 @@ class ConversationClient {
1441
1466
  contentType: "application/json",
1442
1467
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1443
1468
  requestType: "json",
1444
- body: serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1469
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1445
1470
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
1446
1471
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
1447
1472
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1528,6 +1553,8 @@ class ConversationClient {
1528
1553
  * @throws {@link MavenAGI.PayloadTooLargeError}
1529
1554
  * @throws {@link MavenAGI.TooManyRequestsError}
1530
1555
  * @throws {@link MavenAGI.ServerError}
1556
+ * @throws {@link errors.MavenAGIError}
1557
+ * @throws {@link errors.MavenAGITimeoutError}
1531
1558
  *
1532
1559
  * @example
1533
1560
  * await client.conversation.searchCursor({})
@@ -1550,9 +1577,7 @@ class ConversationClient {
1550
1577
  contentType: "application/json",
1551
1578
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1552
1579
  requestType: "json",
1553
- body: serializers.ConversationsCursorSearchRequest.jsonOrThrow(request, {
1554
- unrecognizedObjectKeys: "strip",
1555
- }),
1580
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationsCursorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1556
1581
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
1557
1582
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
1558
1583
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1631,6 +1656,8 @@ class ConversationClient {
1631
1656
  * @throws {@link MavenAGI.PayloadTooLargeError}
1632
1657
  * @throws {@link MavenAGI.TooManyRequestsError}
1633
1658
  * @throws {@link MavenAGI.ServerError}
1659
+ * @throws {@link errors.MavenAGIError}
1660
+ * @throws {@link errors.MavenAGITimeoutError}
1634
1661
  */
1635
1662
  export(request, requestOptions) {
1636
1663
  return core.HttpResponsePromise.fromPromise(this.__export(request, requestOptions));
@@ -1650,7 +1677,7 @@ class ConversationClient {
1650
1677
  contentType: "application/json",
1651
1678
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1652
1679
  requestType: "json",
1653
- body: serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1680
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1654
1681
  responseType: "binary-response",
1655
1682
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
1656
1683
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
@@ -1727,6 +1754,8 @@ class ConversationClient {
1727
1754
  * @throws {@link MavenAGI.PayloadTooLargeError}
1728
1755
  * @throws {@link MavenAGI.TooManyRequestsError}
1729
1756
  * @throws {@link MavenAGI.ServerError}
1757
+ * @throws {@link errors.MavenAGIError}
1758
+ * @throws {@link errors.MavenAGITimeoutError}
1730
1759
  */
1731
1760
  importSimulations(file, request, requestOptions) {
1732
1761
  return core.HttpResponsePromise.fromPromise(this.__importSimulations(file, request, requestOptions));
@@ -1825,6 +1854,8 @@ class ConversationClient {
1825
1854
  * @throws {@link MavenAGI.PayloadTooLargeError}
1826
1855
  * @throws {@link MavenAGI.TooManyRequestsError}
1827
1856
  * @throws {@link MavenAGI.ServerError}
1857
+ * @throws {@link errors.MavenAGIError}
1858
+ * @throws {@link errors.MavenAGITimeoutError}
1828
1859
  *
1829
1860
  * @example
1830
1861
  * await client.conversation.deliverMessage({
@@ -1864,7 +1895,7 @@ class ConversationClient {
1864
1895
  contentType: "application/json",
1865
1896
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1866
1897
  requestType: "json",
1867
- body: serializers.DeliverMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1898
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.DeliverMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1868
1899
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
1869
1900
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
1870
1901
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -81,7 +81,7 @@ export interface AskRequest {
81
81
  /** Externally supplied ID to uniquely identify the user that created this message */
82
82
  userId: MavenAGI.EntityIdBase;
83
83
  /**
84
- * What prompts this assistant turn. Omit (or send USER_MESSAGE) for a normal user
84
+ * What prompts this assistant response. Omit (or send USER_MESSAGE) for a normal user
85
85
  * question — this is the backwards-compatible default. Use WELCOME for an agent-authored
86
86
  * opener, or PROACTIVE for a message the user did not prompt.
87
87
  */
@@ -90,7 +90,7 @@ export interface AskRequest {
90
90
  * For USER_MESSAGE (the default) this is the user's message, in the user's own words, and
91
91
  * is required. For WELCOME and PROACTIVE it is optional and, when provided, steers the
92
92
  * agent's response (a directive to the agent, not the user's own words). (Changed from
93
- * required to optional to support the non-user turn types — existing USER_MESSAGE callers
93
+ * required to optional to support the non-user ask types — existing USER_MESSAGE callers
94
94
  * are unaffected.)
95
95
  */
96
96
  text?: string;
@@ -99,26 +99,26 @@ export interface AskRequest {
99
99
  * `BotObjectResponse` matching a schema you supply.
100
100
  *
101
101
  * Set per ask and independent of `type`, so one conversation can mix prose and structured
102
- * turns. Only the answer's form changes: knowledge, actions, charters and segments apply
102
+ * rounds. Only the answer's form changes: knowledge, actions, charters and segments apply
103
103
  * the same way either way.
104
104
  *
105
- * A structured answer accompanies the prose one rather than replacing it — the same turn
105
+ * A structured answer accompanies the prose one rather than replacing it — the same round
106
106
  * produces both, so the conversation stays readable. On `ask_stream` the prose still streams
107
107
  * on `text` events as it always has, and the object arrives whole on a single `object` event
108
108
  * near the end.
109
109
  *
110
- * Every answering turn carries an object, including one where the agent asks a clarifying
110
+ * Every answering round carries an object, including one where the agent asks a clarifying
111
111
  * question rather than answering. Shape the schema so it can say "not enough information"
112
112
  * — a populated object is not on its own evidence of a confident answer.
113
113
  *
114
- * Two exceptions. A turn that asks the user to *act* produces an action form from the
115
- * action rather than from an answer, so it carries no object; the turn that answers after
114
+ * Two exceptions. A round that asks the user to *act* produces an action form from the
115
+ * action rather than from an answer, so it carries no object; the round that answers after
116
116
  * the form is submitted does carry one. Leave the `FORMS` capability off if you need an
117
- * object on every turn.
117
+ * object on every round.
118
118
  *
119
- * A turn answered verbatim by a `STRICT_RETURN` charter also carries no object. That
119
+ * A round answered verbatim by a `STRICT_RETURN` charter also carries no object. That
120
120
  * charter's manual is returned exactly as written without consulting the agent, so there is
121
- * nothing to shape into the requested schema — the turn returns the manual as `text` alone.
121
+ * nothing to shape into the requested schema — the round returns the manual as `text` alone.
122
122
  */
123
123
  textFormat?: MavenAGI.TextFormat;
124
124
  /**
@@ -86,7 +86,12 @@ export interface ConversationFilter {
86
86
  userMessageCount?: MavenAGI.NumberRange;
87
87
  /** Filter by whether any message in the conversation has an attachment */
88
88
  hasAttachment?: boolean;
89
- /** Filter by the segments that any message on a conversation matched. */
89
+ /**
90
+ * Filter by the segments that any message on a conversation matched.
91
+ *
92
+ * Superseded by `matchedCharterIds`. Segments are being phased out in favour of
93
+ * charter preconditions.
94
+ */
90
95
  matchedSegmentIds?: MavenAGI.EntityIdFilter[];
91
96
  /**
92
97
  * Filter by the charters that any bot-response message on a conversation matched.
@@ -19,6 +19,8 @@ export declare class CustomersClient {
19
19
  * @throws {@link MavenAGI.PayloadTooLargeError}
20
20
  * @throws {@link MavenAGI.TooManyRequestsError}
21
21
  * @throws {@link MavenAGI.ServerError}
22
+ * @throws {@link errors.MavenAGIError}
23
+ * @throws {@link errors.MavenAGITimeoutError}
22
24
  *
23
25
  * @example
24
26
  * await client.customers.search({})
@@ -36,6 +38,8 @@ export declare class CustomersClient {
36
38
  * @throws {@link MavenAGI.PayloadTooLargeError}
37
39
  * @throws {@link MavenAGI.TooManyRequestsError}
38
40
  * @throws {@link MavenAGI.ServerError}
41
+ * @throws {@link errors.MavenAGIError}
42
+ * @throws {@link errors.MavenAGITimeoutError}
39
43
  *
40
44
  * @example
41
45
  * await client.customers.createOrUpdate({
@@ -59,6 +63,8 @@ export declare class CustomersClient {
59
63
  * @throws {@link MavenAGI.PayloadTooLargeError}
60
64
  * @throws {@link MavenAGI.TooManyRequestsError}
61
65
  * @throws {@link MavenAGI.ServerError}
66
+ * @throws {@link errors.MavenAGIError}
67
+ * @throws {@link errors.MavenAGITimeoutError}
62
68
  *
63
69
  * @example
64
70
  * await client.customers.get("acme")
@@ -80,6 +86,8 @@ export declare class CustomersClient {
80
86
  * @throws {@link MavenAGI.PayloadTooLargeError}
81
87
  * @throws {@link MavenAGI.TooManyRequestsError}
82
88
  * @throws {@link MavenAGI.ServerError}
89
+ * @throws {@link errors.MavenAGIError}
90
+ * @throws {@link errors.MavenAGITimeoutError}
83
91
  *
84
92
  * @example
85
93
  * await client.customers.patch("customerReferenceId", {})
@@ -47,6 +47,7 @@ exports.CustomersClient = void 0;
47
47
  const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
+ const requestBody_1 = require("../../../../core/requestBody");
50
51
  const environments = __importStar(require("../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../errors/index"));
@@ -65,6 +66,8 @@ class CustomersClient {
65
66
  * @throws {@link MavenAGI.PayloadTooLargeError}
66
67
  * @throws {@link MavenAGI.TooManyRequestsError}
67
68
  * @throws {@link MavenAGI.ServerError}
69
+ * @throws {@link errors.MavenAGIError}
70
+ * @throws {@link errors.MavenAGITimeoutError}
68
71
  *
69
72
  * @example
70
73
  * await client.customers.search({})
@@ -87,7 +90,7 @@ class CustomersClient {
87
90
  contentType: "application/json",
88
91
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
89
92
  requestType: "json",
90
- body: serializers.CustomersSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
93
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CustomersSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
91
94
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
92
95
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
93
96
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -164,6 +167,8 @@ class CustomersClient {
164
167
  * @throws {@link MavenAGI.PayloadTooLargeError}
165
168
  * @throws {@link MavenAGI.TooManyRequestsError}
166
169
  * @throws {@link MavenAGI.ServerError}
170
+ * @throws {@link errors.MavenAGIError}
171
+ * @throws {@link errors.MavenAGITimeoutError}
167
172
  *
168
173
  * @example
169
174
  * await client.customers.createOrUpdate({
@@ -191,7 +196,7 @@ class CustomersClient {
191
196
  contentType: "application/json",
192
197
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
193
198
  requestType: "json",
194
- body: serializers.CustomerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
199
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CustomerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
195
200
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
196
201
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
197
202
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -269,6 +274,8 @@ class CustomersClient {
269
274
  * @throws {@link MavenAGI.PayloadTooLargeError}
270
275
  * @throws {@link MavenAGI.TooManyRequestsError}
271
276
  * @throws {@link MavenAGI.ServerError}
277
+ * @throws {@link errors.MavenAGIError}
278
+ * @throws {@link errors.MavenAGITimeoutError}
272
279
  *
273
280
  * @example
274
281
  * await client.customers.get("acme")
@@ -377,6 +384,8 @@ class CustomersClient {
377
384
  * @throws {@link MavenAGI.PayloadTooLargeError}
378
385
  * @throws {@link MavenAGI.TooManyRequestsError}
379
386
  * @throws {@link MavenAGI.ServerError}
387
+ * @throws {@link errors.MavenAGIError}
388
+ * @throws {@link errors.MavenAGITimeoutError}
380
389
  *
381
390
  * @example
382
391
  * await client.customers.patch("customerReferenceId", {})
@@ -399,7 +408,7 @@ class CustomersClient {
399
408
  contentType: "application/merge-patch+json",
400
409
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
401
410
  requestType: "json",
402
- body: serializers.CustomerPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
411
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CustomerPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
403
412
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
404
413
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
405
414
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -21,6 +21,8 @@ export declare class EventsClient {
21
21
  * @throws {@link MavenAGI.PayloadTooLargeError}
22
22
  * @throws {@link MavenAGI.TooManyRequestsError}
23
23
  * @throws {@link MavenAGI.ServerError}
24
+ * @throws {@link errors.MavenAGIError}
25
+ * @throws {@link errors.MavenAGITimeoutError}
24
26
  *
25
27
  * @example
26
28
  * await client.events.create({
@@ -49,6 +51,8 @@ export declare class EventsClient {
49
51
  * @throws {@link MavenAGI.PayloadTooLargeError}
50
52
  * @throws {@link MavenAGI.TooManyRequestsError}
51
53
  * @throws {@link MavenAGI.ServerError}
54
+ * @throws {@link errors.MavenAGIError}
55
+ * @throws {@link errors.MavenAGITimeoutError}
52
56
  *
53
57
  * @example
54
58
  * await client.events.search({})
@@ -67,6 +71,8 @@ export declare class EventsClient {
67
71
  * @throws {@link MavenAGI.PayloadTooLargeError}
68
72
  * @throws {@link MavenAGI.TooManyRequestsError}
69
73
  * @throws {@link MavenAGI.ServerError}
74
+ * @throws {@link errors.MavenAGIError}
75
+ * @throws {@link errors.MavenAGITimeoutError}
70
76
  *
71
77
  * @example
72
78
  * await client.events.get("eventId", {
@@ -85,6 +91,8 @@ export declare class EventsClient {
85
91
  * @throws {@link MavenAGI.PayloadTooLargeError}
86
92
  * @throws {@link MavenAGI.TooManyRequestsError}
87
93
  * @throws {@link MavenAGI.ServerError}
94
+ * @throws {@link errors.MavenAGIError}
95
+ * @throws {@link errors.MavenAGITimeoutError}
88
96
  */
89
97
  export(request: MavenAGI.EventsSearchRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
90
98
  private __export;