mavenagi 1.2.59 → 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 (286) 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/actions/client/requests/ActionPatchRequest.d.ts +2 -3
  8. package/api/resources/agents/client/Client.d.ts +12 -0
  9. package/api/resources/agents/client/Client.js +16 -3
  10. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +7 -3
  11. package/api/resources/agents/types/AgentPrompting.d.ts +7 -3
  12. package/api/resources/analytics/client/Client.d.ts +21 -1
  13. package/api/resources/analytics/client/Client.js +29 -8
  14. package/api/resources/analytics/types/ConversationMedian.d.ts +4 -0
  15. package/api/resources/analytics/types/ConversationPercentile.d.ts +4 -0
  16. package/api/resources/analytics/types/RowBase.d.ts +5 -1
  17. package/api/resources/analytics/types/Series.d.ts +4 -1
  18. package/api/resources/analytics/types/TimeSeries.d.ts +5 -1
  19. package/api/resources/appDirectory/client/Client.d.ts +12 -0
  20. package/api/resources/appDirectory/client/Client.js +16 -3
  21. package/api/resources/appSettings/client/Client.d.ts +6 -0
  22. package/api/resources/appSettings/client/Client.js +8 -1
  23. package/api/resources/assets/client/Client.d.ts +4 -0
  24. package/api/resources/assets/client/Client.js +7 -2
  25. package/api/resources/charters/client/Client.d.ts +245 -0
  26. package/api/resources/charters/client/Client.js +884 -0
  27. package/api/resources/charters/client/index.d.ts +1 -0
  28. package/api/resources/charters/client/index.js +17 -0
  29. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +20 -0
  30. package/api/resources/charters/client/requests/CharterDeleteRequest.js +3 -0
  31. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +8 -0
  32. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.js +3 -0
  33. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +8 -0
  34. package/api/resources/charters/client/requests/CharterGetRequest.js +3 -0
  35. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +67 -0
  36. package/api/resources/charters/client/requests/CharterPatchRequest.js +3 -0
  37. package/api/resources/charters/client/requests/index.d.ts +4 -0
  38. package/api/resources/charters/client/requests/index.js +2 -0
  39. package/api/resources/charters/exports.d.ts +2 -0
  40. package/api/resources/charters/exports.js +21 -0
  41. package/api/resources/charters/index.d.ts +1 -0
  42. package/api/resources/charters/index.js +1 -0
  43. package/api/resources/charters/types/CharterAncestorsResponse.d.ts +8 -0
  44. package/api/resources/charters/types/CharterAncestorsResponse.js +3 -0
  45. package/api/resources/charters/types/CharterBase.d.ts +14 -0
  46. package/api/resources/charters/types/CharterBase.js +3 -0
  47. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +1 -1
  48. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +1 -1
  49. package/api/resources/charters/types/CharterChildrenGroup.d.ts +18 -0
  50. package/api/resources/charters/types/CharterChildrenGroup.js +3 -0
  51. package/api/resources/charters/types/CharterContent.d.ts +60 -0
  52. package/api/resources/charters/types/CharterContent.js +3 -0
  53. package/api/resources/charters/types/CharterKnowledgeBaseReference.d.ts +16 -0
  54. package/api/resources/charters/types/CharterKnowledgeBaseReference.js +3 -0
  55. package/api/resources/charters/types/CharterListChildrenRequest.d.ts +18 -0
  56. package/api/resources/charters/types/CharterListChildrenRequest.js +3 -0
  57. package/api/resources/charters/types/CharterListChildrenResponse.d.ts +55 -0
  58. package/api/resources/charters/types/CharterListChildrenResponse.js +3 -0
  59. package/api/resources/charters/types/CharterPatchReferences.d.ts +22 -0
  60. package/api/resources/charters/types/CharterPatchReferences.js +3 -0
  61. package/api/resources/charters/types/CharterReferences.d.ts +21 -0
  62. package/api/resources/charters/types/CharterReferences.js +3 -0
  63. package/api/resources/charters/types/CharterRequest.d.ts +36 -0
  64. package/api/resources/charters/types/CharterRequest.js +3 -0
  65. package/api/resources/charters/types/CharterResponse.d.ts +66 -0
  66. package/api/resources/charters/types/CharterResponse.js +3 -0
  67. package/api/resources/charters/types/CharterSearchField.d.ts +5 -0
  68. package/api/resources/charters/types/CharterSearchField.js +8 -0
  69. package/api/resources/charters/types/CharterSearchFilter.d.ts +15 -0
  70. package/api/resources/charters/types/CharterSearchFilter.js +3 -0
  71. package/api/resources/charters/types/CharterSearchRequest.d.ts +5 -0
  72. package/api/resources/charters/types/CharterSearchRequest.js +3 -0
  73. package/api/resources/charters/types/CharterSearchResponse.d.ts +36 -0
  74. package/api/resources/charters/types/CharterSearchResponse.js +3 -0
  75. package/api/resources/charters/types/CharterStatus.d.ts +2 -2
  76. package/api/resources/charters/types/CharterStatus.js +2 -2
  77. package/api/resources/charters/types/CharterSummary.d.ts +2 -5
  78. package/api/resources/charters/types/CharterType.d.ts +4 -4
  79. package/api/resources/charters/types/CharterType.js +4 -4
  80. package/api/resources/charters/types/index.d.ts +15 -0
  81. package/api/resources/charters/types/index.js +15 -0
  82. package/api/resources/commons/errors/BadRequestError.d.ts +1 -0
  83. package/api/resources/commons/errors/BadRequestError.js +1 -1
  84. package/api/resources/commons/errors/NotFoundError.d.ts +1 -0
  85. package/api/resources/commons/errors/NotFoundError.js +1 -1
  86. package/api/resources/commons/errors/PayloadTooLargeError.d.ts +1 -0
  87. package/api/resources/commons/errors/PayloadTooLargeError.js +1 -1
  88. package/api/resources/commons/errors/ServerError.d.ts +1 -0
  89. package/api/resources/commons/errors/ServerError.js +1 -1
  90. package/api/resources/commons/errors/TooManyRequestsError.d.ts +1 -0
  91. package/api/resources/commons/errors/TooManyRequestsError.js +1 -1
  92. package/api/resources/commons/types/ActionProperties.d.ts +5 -1
  93. package/api/resources/commons/types/ActionResponse.d.ts +3 -3
  94. package/api/resources/commons/types/AskType.d.ts +2 -2
  95. package/api/resources/commons/types/AskType.js +2 -2
  96. package/api/resources/commons/types/BotObjectResponse.d.ts +1 -1
  97. package/api/resources/commons/types/ConversationRound.d.ts +1 -1
  98. package/api/resources/commons/types/ConversationRound.js +1 -1
  99. package/api/resources/commons/types/EventFilter.d.ts +5 -0
  100. package/api/resources/commons/types/EventTriggerType.d.ts +2 -0
  101. package/api/resources/commons/types/EventTriggerType.js +2 -0
  102. package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +0 -4
  103. package/api/resources/commons/types/KnowledgeContextByEntities.d.ts +11 -0
  104. package/api/resources/commons/types/KnowledgeContextByEntityTypes.d.ts +3 -0
  105. package/api/resources/commons/types/KnowledgeContextFilter.d.ts +6 -1
  106. package/api/resources/commons/types/LlmPersona.d.ts +1 -0
  107. package/api/resources/commons/types/LlmPersona.js +1 -0
  108. package/api/resources/commons/types/MetadataComparisonCondition.d.ts +10 -0
  109. package/api/resources/commons/types/MetadataComparisonCondition.js +3 -0
  110. package/api/resources/commons/types/MetadataComparisonOperator.d.ts +22 -0
  111. package/api/resources/commons/types/MetadataComparisonOperator.js +25 -0
  112. package/api/resources/commons/types/MetadataCondition.d.ts +21 -0
  113. package/api/resources/commons/types/MetadataCondition.js +3 -0
  114. package/api/resources/commons/types/MetadataEntryCondition.d.ts +10 -0
  115. package/api/resources/commons/types/MetadataEntryCondition.js +3 -0
  116. package/api/resources/commons/types/MetadataFilter.d.ts +41 -0
  117. package/api/resources/commons/types/MetadataFilter.js +3 -0
  118. package/api/resources/commons/types/MetadataFilterGroup.d.ts +14 -0
  119. package/api/resources/commons/types/MetadataFilterGroup.js +3 -0
  120. package/api/resources/commons/types/NovelUserEvent.d.ts +4 -1
  121. package/api/resources/commons/types/ResponseConfig.d.ts +9 -3
  122. package/api/resources/commons/types/SimulationContext.d.ts +3 -3
  123. package/api/resources/commons/types/SystemEventName.d.ts +27 -0
  124. package/api/resources/commons/types/SystemEventName.js +27 -0
  125. package/api/resources/commons/types/UserEvent.d.ts +4 -1
  126. package/api/resources/commons/types/UserEventName.d.ts +84 -0
  127. package/api/resources/commons/types/UserEventName.js +84 -0
  128. package/api/resources/commons/types/UserMessage.d.ts +7 -0
  129. package/api/resources/commons/types/index.d.ts +6 -0
  130. package/api/resources/commons/types/index.js +6 -0
  131. package/api/resources/conversation/client/Client.d.ts +35 -1
  132. package/api/resources/conversation/client/Client.js +51 -18
  133. package/api/resources/conversation/types/AskRequest.d.ts +10 -10
  134. package/api/resources/conversation/types/ConversationFilter.d.ts +10 -4
  135. package/api/resources/customers/client/Client.d.ts +8 -0
  136. package/api/resources/customers/client/Client.js +12 -3
  137. package/api/resources/events/client/Client.d.ts +8 -0
  138. package/api/resources/events/client/Client.js +12 -3
  139. package/api/resources/inbox/client/Client.d.ts +16 -0
  140. package/api/resources/inbox/client/Client.js +22 -5
  141. package/api/resources/index.d.ts +1 -0
  142. package/api/resources/index.js +1 -0
  143. package/api/resources/integrations/client/Client.d.ts +2 -0
  144. package/api/resources/integrations/client/Client.js +4 -1
  145. package/api/resources/intelligentFields/client/Client.d.ts +28 -3
  146. package/api/resources/intelligentFields/client/Client.js +36 -8
  147. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +4 -0
  148. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +13 -4
  149. package/api/resources/intelligentFields/types/EnumOption.d.ts +3 -1
  150. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  151. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +12 -11
  152. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +4 -1
  153. package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +4 -1
  154. package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +8 -1
  155. package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +8 -1
  156. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +10 -0
  157. package/api/resources/intelligentFields/types/IntelligentFieldType.js +10 -0
  158. package/api/resources/knowledge/client/Client.d.ts +32 -0
  159. package/api/resources/knowledge/client/Client.js +47 -16
  160. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +18 -10
  161. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +6 -1
  162. package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +5 -1
  163. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +10 -6
  164. package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +13 -0
  165. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +16 -1
  166. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +33 -9
  167. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +7 -1
  168. package/api/resources/organizations/client/Client.d.ts +12 -0
  169. package/api/resources/organizations/client/Client.js +17 -4
  170. package/api/resources/segments/client/Client.d.ts +20 -0
  171. package/api/resources/segments/client/Client.js +24 -3
  172. package/api/resources/translations/client/Client.d.ts +2 -0
  173. package/api/resources/translations/client/Client.js +4 -1
  174. package/api/resources/triggers/client/Client.d.ts +10 -0
  175. package/api/resources/triggers/client/Client.js +14 -3
  176. package/api/resources/triggers/types/EventTriggerBase.d.ts +3 -1
  177. package/api/resources/users/client/Client.d.ts +10 -0
  178. package/api/resources/users/client/Client.js +13 -2
  179. package/api/resources/voice/client/Client.d.ts +2 -0
  180. package/api/resources/voice/client/Client.js +4 -1
  181. package/api/resources/voiceConversations/client/Client.d.ts +4 -1
  182. package/api/resources/voiceConversations/client/Client.js +2 -1
  183. package/api/resources/voiceConversations/client/Socket.d.ts +11 -0
  184. package/api/resources/voiceConversations/client/Socket.js +15 -0
  185. package/core/fetcher/Fetcher.js +9 -92
  186. package/core/fetcher/getResponseBody.js +11 -0
  187. package/core/fetcher/makePassthroughRequest.js +26 -4
  188. package/core/fetcher/redactUrl.d.ts +2 -0
  189. package/core/fetcher/redactUrl.js +88 -0
  190. package/core/fetcher/signals.js +9 -1
  191. package/core/file/file.js +3 -0
  192. package/core/form-data-utils/FormDataWrapper.js +3 -0
  193. package/core/requestBody.d.ts +12 -0
  194. package/core/requestBody.js +26 -0
  195. package/core/runtime/index.d.ts +1 -1
  196. package/core/runtime/index.js +2 -1
  197. package/core/runtime/runtime.d.ts +19 -0
  198. package/core/runtime/runtime.js +74 -2
  199. package/core/schemas/builders/schema-utils/JsonError.js +2 -2
  200. package/core/schemas/builders/schema-utils/ParseError.js +2 -2
  201. package/core/stream/Stream.d.ts +45 -1
  202. package/core/stream/Stream.js +323 -84
  203. package/core/stream/index.d.ts +1 -0
  204. package/core/url/qs.js +2 -2
  205. package/core/websocket/ws.d.ts +6 -0
  206. package/core/websocket/ws.js +14 -1
  207. package/errors/MavenAGIError.d.ts +1 -0
  208. package/errors/MavenAGIError.js +5 -1
  209. package/errors/MavenAGITimeoutError.d.ts +2 -2
  210. package/errors/MavenAGITimeoutError.js +40 -6
  211. package/package.json +2 -2
  212. package/reference.md +595 -5
  213. package/serialization/resources/charters/client/index.d.ts +1 -0
  214. package/serialization/resources/charters/client/index.js +17 -0
  215. package/serialization/resources/charters/client/requests/CharterPatchRequest.d.ts +24 -0
  216. package/serialization/resources/charters/client/requests/CharterPatchRequest.js +57 -0
  217. package/serialization/resources/charters/client/requests/index.d.ts +1 -0
  218. package/serialization/resources/charters/client/requests/index.js +5 -0
  219. package/serialization/resources/charters/index.d.ts +1 -0
  220. package/serialization/resources/charters/index.js +1 -0
  221. package/serialization/resources/charters/types/CharterAncestorsResponse.d.ts +10 -0
  222. package/serialization/resources/charters/types/CharterAncestorsResponse.js +42 -0
  223. package/serialization/resources/charters/types/CharterBase.d.ts +11 -0
  224. package/serialization/resources/charters/types/CharterBase.js +43 -0
  225. package/serialization/resources/charters/types/CharterChildrenGroup.d.ts +13 -0
  226. package/serialization/resources/charters/types/CharterChildrenGroup.js +45 -0
  227. package/serialization/resources/charters/types/CharterContent.d.ts +19 -0
  228. package/serialization/resources/charters/types/CharterContent.js +54 -0
  229. package/serialization/resources/charters/types/CharterKnowledgeBaseReference.d.ts +11 -0
  230. package/serialization/resources/charters/types/CharterKnowledgeBaseReference.js +44 -0
  231. package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +11 -0
  232. package/serialization/resources/charters/types/CharterListChildrenRequest.js +45 -0
  233. package/serialization/resources/charters/types/CharterListChildrenResponse.d.ts +11 -0
  234. package/serialization/resources/charters/types/CharterListChildrenResponse.js +45 -0
  235. package/serialization/resources/charters/types/CharterPatchReferences.d.ts +12 -0
  236. package/serialization/resources/charters/types/CharterPatchReferences.js +44 -0
  237. package/serialization/resources/charters/types/CharterReferences.d.ts +12 -0
  238. package/serialization/resources/charters/types/CharterReferences.js +44 -0
  239. package/serialization/resources/charters/types/CharterRequest.d.ts +13 -0
  240. package/serialization/resources/charters/types/CharterRequest.js +47 -0
  241. package/serialization/resources/charters/types/CharterResponse.d.ts +25 -0
  242. package/serialization/resources/charters/types/CharterResponse.js +60 -0
  243. package/serialization/resources/charters/types/CharterSearchField.d.ts +7 -0
  244. package/serialization/resources/charters/types/CharterSearchField.js +39 -0
  245. package/serialization/resources/charters/types/CharterSearchFilter.d.ts +11 -0
  246. package/serialization/resources/charters/types/CharterSearchFilter.js +43 -0
  247. package/serialization/resources/charters/types/CharterSearchRequest.d.ts +13 -0
  248. package/serialization/resources/charters/types/CharterSearchRequest.js +47 -0
  249. package/serialization/resources/charters/types/CharterSearchResponse.d.ts +11 -0
  250. package/serialization/resources/charters/types/CharterSearchResponse.js +45 -0
  251. package/serialization/resources/charters/types/CharterSummary.d.ts +2 -3
  252. package/serialization/resources/charters/types/CharterSummary.js +2 -2
  253. package/serialization/resources/charters/types/index.d.ts +15 -0
  254. package/serialization/resources/charters/types/index.js +15 -0
  255. package/serialization/resources/commons/types/MetadataComparisonCondition.d.ts +11 -0
  256. package/serialization/resources/commons/types/MetadataComparisonCondition.js +43 -0
  257. package/serialization/resources/commons/types/MetadataComparisonOperator.d.ts +7 -0
  258. package/serialization/resources/commons/types/MetadataComparisonOperator.js +39 -0
  259. package/serialization/resources/commons/types/MetadataCondition.d.ts +19 -0
  260. package/serialization/resources/commons/types/MetadataCondition.js +51 -0
  261. package/serialization/resources/commons/types/MetadataEntryCondition.d.ts +11 -0
  262. package/serialization/resources/commons/types/MetadataEntryCondition.js +43 -0
  263. package/serialization/resources/commons/types/MetadataFilter.d.ts +14 -0
  264. package/serialization/resources/commons/types/MetadataFilter.js +49 -0
  265. package/serialization/resources/commons/types/MetadataFilterGroup.d.ts +11 -0
  266. package/serialization/resources/commons/types/MetadataFilterGroup.js +44 -0
  267. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  268. package/serialization/resources/commons/types/SystemEventName.js +14 -1
  269. package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
  270. package/serialization/resources/commons/types/UserEventName.js +28 -0
  271. package/serialization/resources/commons/types/UserMessage.d.ts +1 -0
  272. package/serialization/resources/commons/types/UserMessage.js +1 -0
  273. package/serialization/resources/commons/types/index.d.ts +6 -0
  274. package/serialization/resources/commons/types/index.js +6 -0
  275. package/serialization/resources/index.d.ts +1 -0
  276. package/serialization/resources/index.js +1 -0
  277. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -0
  278. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +1 -0
  279. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +2 -0
  280. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +2 -0
  281. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +0 -2
  282. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +0 -2
  283. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  284. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
  285. package/version.d.ts +1 -1
  286. package/version.js +1 -1
@@ -47,6 +47,7 @@ exports.AnalyticsClient = 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"));
@@ -67,6 +68,8 @@ class AnalyticsClient {
67
68
  * @throws {@link MavenAGI.PayloadTooLargeError}
68
69
  * @throws {@link MavenAGI.TooManyRequestsError}
69
70
  * @throws {@link MavenAGI.ServerError}
71
+ * @throws {@link errors.MavenAGIError}
72
+ * @throws {@link errors.MavenAGITimeoutError}
70
73
  *
71
74
  * @example
72
75
  * await client.analytics.getConversationTable({
@@ -116,7 +119,7 @@ class AnalyticsClient {
116
119
  contentType: "application/json",
117
120
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
118
121
  requestType: "json",
119
- body: serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
122
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
120
123
  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,
121
124
  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,
122
125
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -193,6 +196,8 @@ class AnalyticsClient {
193
196
  * @throws {@link MavenAGI.PayloadTooLargeError}
194
197
  * @throws {@link MavenAGI.TooManyRequestsError}
195
198
  * @throws {@link MavenAGI.ServerError}
199
+ * @throws {@link errors.MavenAGIError}
200
+ * @throws {@link errors.MavenAGITimeoutError}
196
201
  *
197
202
  * @example
198
203
  * await client.analytics.getConversationChart({
@@ -258,7 +263,7 @@ class AnalyticsClient {
258
263
  contentType: "application/json",
259
264
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
260
265
  requestType: "json",
261
- body: serializers.ConversationChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
266
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
262
267
  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,
263
268
  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,
264
269
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -334,6 +339,8 @@ class AnalyticsClient {
334
339
  * @throws {@link MavenAGI.PayloadTooLargeError}
335
340
  * @throws {@link MavenAGI.TooManyRequestsError}
336
341
  * @throws {@link MavenAGI.ServerError}
342
+ * @throws {@link errors.MavenAGIError}
343
+ * @throws {@link errors.MavenAGITimeoutError}
337
344
  */
338
345
  exportConversationTable(request, requestOptions) {
339
346
  return core.HttpResponsePromise.fromPromise(this.__exportConversationTable(request, requestOptions));
@@ -353,7 +360,7 @@ class AnalyticsClient {
353
360
  contentType: "application/json",
354
361
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
355
362
  requestType: "json",
356
- body: serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
363
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
357
364
  responseType: "binary-response",
358
365
  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,
359
366
  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,
@@ -413,7 +420,13 @@ class AnalyticsClient {
413
420
  });
414
421
  }
415
422
  /**
416
- * Retrieves structured feedback data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
423
+ * @deprecated
424
+ *
425
+ * Deprecated. Use `getEventTable` instead, which reports the same thumbs up/down and insert
426
+ * activity as user events.
427
+ *
428
+ * Retrieves structured feedback data formatted as a table, allowing users to group, filter,
429
+ * and define specific metrics to display as columns.
417
430
  *
418
431
  * @param {MavenAGI.FeedbackTableRequest} request
419
432
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -423,6 +436,8 @@ class AnalyticsClient {
423
436
  * @throws {@link MavenAGI.PayloadTooLargeError}
424
437
  * @throws {@link MavenAGI.TooManyRequestsError}
425
438
  * @throws {@link MavenAGI.ServerError}
439
+ * @throws {@link errors.MavenAGIError}
440
+ * @throws {@link errors.MavenAGITimeoutError}
426
441
  *
427
442
  * @example
428
443
  * await client.analytics.getFeedbackTable({
@@ -458,7 +473,7 @@ class AnalyticsClient {
458
473
  contentType: "application/json",
459
474
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
460
475
  requestType: "json",
461
- body: serializers.FeedbackTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
476
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.FeedbackTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
462
477
  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,
463
478
  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,
464
479
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -535,6 +550,8 @@ class AnalyticsClient {
535
550
  * @throws {@link MavenAGI.PayloadTooLargeError}
536
551
  * @throws {@link MavenAGI.TooManyRequestsError}
537
552
  * @throws {@link MavenAGI.ServerError}
553
+ * @throws {@link errors.MavenAGIError}
554
+ * @throws {@link errors.MavenAGITimeoutError}
538
555
  *
539
556
  * @example
540
557
  * await client.analytics.getAgentUserTable({
@@ -567,7 +584,7 @@ class AnalyticsClient {
567
584
  contentType: "application/json",
568
585
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
569
586
  requestType: "json",
570
- body: serializers.AgentUserTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
587
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AgentUserTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
571
588
  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,
572
589
  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,
573
590
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -644,6 +661,8 @@ class AnalyticsClient {
644
661
  * @throws {@link MavenAGI.PayloadTooLargeError}
645
662
  * @throws {@link MavenAGI.TooManyRequestsError}
646
663
  * @throws {@link MavenAGI.ServerError}
664
+ * @throws {@link errors.MavenAGIError}
665
+ * @throws {@link errors.MavenAGITimeoutError}
647
666
  *
648
667
  * @example
649
668
  * await client.analytics.getEventTable({
@@ -679,7 +698,7 @@ class AnalyticsClient {
679
698
  contentType: "application/json",
680
699
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
681
700
  requestType: "json",
682
- body: serializers.EventTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
701
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
683
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,
684
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,
685
704
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -756,6 +775,8 @@ class AnalyticsClient {
756
775
  * @throws {@link MavenAGI.PayloadTooLargeError}
757
776
  * @throws {@link MavenAGI.TooManyRequestsError}
758
777
  * @throws {@link MavenAGI.ServerError}
778
+ * @throws {@link errors.MavenAGIError}
779
+ * @throws {@link errors.MavenAGITimeoutError}
759
780
  *
760
781
  * @example
761
782
  * await client.analytics.getEventChart({
@@ -821,7 +842,7 @@ class AnalyticsClient {
821
842
  contentType: "application/json",
822
843
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
823
844
  requestType: "json",
824
- body: serializers.EventChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
845
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
825
846
  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,
826
847
  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,
827
848
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1,6 +1,10 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  /**
3
3
  * Computes the median value of the specified field.
4
+ *
5
+ * A group with no conversations in it has no median. Those results are omitted rather than
6
+ * reported as a value: the chart series has no point for that interval or bucket, and the
7
+ * table row has no entry for that column.
4
8
  */
5
9
  export interface ConversationMedian extends MavenAGI.ConversationNumericMetric {
6
10
  }
@@ -1,6 +1,10 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  /**
3
3
  * Calculates specified percentile for a numeric field.
4
+ *
5
+ * A group with no conversations in it has no percentile. Those results are omitted rather than
6
+ * reported as a value: the chart series has no point for that interval or bucket, and the
7
+ * table row has no entry for that column.
4
8
  */
5
9
  export interface ConversationPercentile extends MavenAGI.ConversationNumericMetric {
6
10
  /** The percentile to calculate. Example: 25 computes the 25th percentile. */
@@ -1,5 +1,9 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface RowBase {
3
- /** The actual row data, where keys represent column headers and values contain the respective metric results. */
3
+ /**
4
+ * The actual row data, where keys represent column headers and values contain the respective metric results.
5
+ * A column the metric could not measure is absent from the map, so a row can carry fewer
6
+ * entries than there are headers.
7
+ */
4
8
  data: Record<string, MavenAGI.CellData>;
5
9
  }
@@ -5,6 +5,9 @@ export interface Series {
5
5
  * If the metric is a percentile, the name represents the percentile value.
6
6
  */
7
7
  name: string;
8
- /** List of labeled data points for the series. */
8
+ /**
9
+ * List of labeled data points for the series.
10
+ * A bucket the metric could not measure has no point here.
11
+ */
9
12
  data: MavenAGI.LabeledPoint[];
10
13
  }
@@ -2,6 +2,10 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface TimeSeries {
3
3
  /** Name of the series, derived from the grouping field or percentile metric. */
4
4
  name: string;
5
- /** List of time-based data points for the series. */
5
+ /**
6
+ * List of time-based data points for the series.
7
+ * An interval the metric could not measure has no point here, so a series can be shorter
8
+ * than the number of intervals in the requested range.
9
+ */
6
10
  data: MavenAGI.TimeDataPoint[];
7
11
  }
@@ -21,6 +21,8 @@ export declare class AppDirectoryClient {
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.appDirectory.search({})
@@ -38,6 +40,8 @@ export declare class AppDirectoryClient {
38
40
  * @throws {@link MavenAGI.PayloadTooLargeError}
39
41
  * @throws {@link MavenAGI.TooManyRequestsError}
40
42
  * @throws {@link MavenAGI.ServerError}
43
+ * @throws {@link errors.MavenAGIError}
44
+ * @throws {@link errors.MavenAGITimeoutError}
41
45
  *
42
46
  * @example
43
47
  * await client.appDirectory.get("appId")
@@ -56,6 +60,8 @@ export declare class AppDirectoryClient {
56
60
  * @throws {@link MavenAGI.PayloadTooLargeError}
57
61
  * @throws {@link MavenAGI.TooManyRequestsError}
58
62
  * @throws {@link MavenAGI.ServerError}
63
+ * @throws {@link errors.MavenAGIError}
64
+ * @throws {@link errors.MavenAGITimeoutError}
59
65
  *
60
66
  * @example
61
67
  * await client.appDirectory.install("appId", {
@@ -77,6 +83,8 @@ export declare class AppDirectoryClient {
77
83
  * @throws {@link MavenAGI.PayloadTooLargeError}
78
84
  * @throws {@link MavenAGI.TooManyRequestsError}
79
85
  * @throws {@link MavenAGI.ServerError}
86
+ * @throws {@link errors.MavenAGIError}
87
+ * @throws {@link errors.MavenAGITimeoutError}
80
88
  *
81
89
  * @example
82
90
  * await client.appDirectory.uninstall("appId")
@@ -95,6 +103,8 @@ export declare class AppDirectoryClient {
95
103
  * @throws {@link MavenAGI.PayloadTooLargeError}
96
104
  * @throws {@link MavenAGI.TooManyRequestsError}
97
105
  * @throws {@link MavenAGI.ServerError}
106
+ * @throws {@link errors.MavenAGIError}
107
+ * @throws {@link errors.MavenAGITimeoutError}
98
108
  *
99
109
  * @example
100
110
  * await client.appDirectory.getSettingDownloadUrl("appId", "settingsKey")
@@ -114,6 +124,8 @@ export declare class AppDirectoryClient {
114
124
  * @throws {@link MavenAGI.PayloadTooLargeError}
115
125
  * @throws {@link MavenAGI.TooManyRequestsError}
116
126
  * @throws {@link MavenAGI.ServerError}
127
+ * @throws {@link errors.MavenAGIError}
128
+ * @throws {@link errors.MavenAGITimeoutError}
117
129
  *
118
130
  * @example
119
131
  * await client.appDirectory.getSettingUploadUrl("appId", "settingsKey", {
@@ -47,6 +47,7 @@ exports.AppDirectoryClient = 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"));
@@ -67,6 +68,8 @@ class AppDirectoryClient {
67
68
  * @throws {@link MavenAGI.PayloadTooLargeError}
68
69
  * @throws {@link MavenAGI.TooManyRequestsError}
69
70
  * @throws {@link MavenAGI.ServerError}
71
+ * @throws {@link errors.MavenAGIError}
72
+ * @throws {@link errors.MavenAGITimeoutError}
70
73
  *
71
74
  * @example
72
75
  * await client.appDirectory.search({})
@@ -89,7 +92,7 @@ class AppDirectoryClient {
89
92
  contentType: "application/json",
90
93
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
91
94
  requestType: "json",
92
- body: serializers.DirectoryAppsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
95
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.DirectoryAppsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
93
96
  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,
94
97
  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,
95
98
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -166,6 +169,8 @@ class AppDirectoryClient {
166
169
  * @throws {@link MavenAGI.PayloadTooLargeError}
167
170
  * @throws {@link MavenAGI.TooManyRequestsError}
168
171
  * @throws {@link MavenAGI.ServerError}
172
+ * @throws {@link errors.MavenAGIError}
173
+ * @throws {@link errors.MavenAGITimeoutError}
169
174
  *
170
175
  * @example
171
176
  * await client.appDirectory.get("appId")
@@ -263,6 +268,8 @@ class AppDirectoryClient {
263
268
  * @throws {@link MavenAGI.PayloadTooLargeError}
264
269
  * @throws {@link MavenAGI.TooManyRequestsError}
265
270
  * @throws {@link MavenAGI.ServerError}
271
+ * @throws {@link errors.MavenAGIError}
272
+ * @throws {@link errors.MavenAGITimeoutError}
266
273
  *
267
274
  * @example
268
275
  * await client.appDirectory.install("appId", {
@@ -289,7 +296,7 @@ class AppDirectoryClient {
289
296
  contentType: "application/json",
290
297
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
291
298
  requestType: "json",
292
- body: serializers.InstallDirectoryAppRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
299
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.InstallDirectoryAppRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
293
300
  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,
294
301
  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,
295
302
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -358,6 +365,8 @@ class AppDirectoryClient {
358
365
  * @throws {@link MavenAGI.PayloadTooLargeError}
359
366
  * @throws {@link MavenAGI.TooManyRequestsError}
360
367
  * @throws {@link MavenAGI.ServerError}
368
+ * @throws {@link errors.MavenAGIError}
369
+ * @throws {@link errors.MavenAGITimeoutError}
361
370
  *
362
371
  * @example
363
372
  * await client.appDirectory.uninstall("appId")
@@ -447,6 +456,8 @@ class AppDirectoryClient {
447
456
  * @throws {@link MavenAGI.PayloadTooLargeError}
448
457
  * @throws {@link MavenAGI.TooManyRequestsError}
449
458
  * @throws {@link MavenAGI.ServerError}
459
+ * @throws {@link errors.MavenAGIError}
460
+ * @throws {@link errors.MavenAGITimeoutError}
450
461
  *
451
462
  * @example
452
463
  * await client.appDirectory.getSettingDownloadUrl("appId", "settingsKey")
@@ -545,6 +556,8 @@ class AppDirectoryClient {
545
556
  * @throws {@link MavenAGI.PayloadTooLargeError}
546
557
  * @throws {@link MavenAGI.TooManyRequestsError}
547
558
  * @throws {@link MavenAGI.ServerError}
559
+ * @throws {@link errors.MavenAGIError}
560
+ * @throws {@link errors.MavenAGITimeoutError}
548
561
  *
549
562
  * @example
550
563
  * await client.appDirectory.getSettingUploadUrl("appId", "settingsKey", {
@@ -570,7 +583,7 @@ class AppDirectoryClient {
570
583
  contentType: "application/json",
571
584
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
572
585
  requestType: "json",
573
- body: serializers.GetAppSettingUploadUrlRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
586
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.GetAppSettingUploadUrlRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
574
587
  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,
575
588
  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,
576
589
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -27,6 +27,8 @@ export declare class AppSettingsClient {
27
27
  * @throws {@link MavenAGI.PayloadTooLargeError}
28
28
  * @throws {@link MavenAGI.TooManyRequestsError}
29
29
  * @throws {@link MavenAGI.ServerError}
30
+ * @throws {@link errors.MavenAGIError}
31
+ * @throws {@link errors.MavenAGITimeoutError}
30
32
  *
31
33
  * @example
32
34
  * await client.appSettings.search({
@@ -45,6 +47,8 @@ export declare class AppSettingsClient {
45
47
  * @throws {@link MavenAGI.PayloadTooLargeError}
46
48
  * @throws {@link MavenAGI.TooManyRequestsError}
47
49
  * @throws {@link MavenAGI.ServerError}
50
+ * @throws {@link errors.MavenAGIError}
51
+ * @throws {@link errors.MavenAGITimeoutError}
48
52
  *
49
53
  * @example
50
54
  * await client.appSettings.get()
@@ -68,6 +72,8 @@ export declare class AppSettingsClient {
68
72
  * @throws {@link MavenAGI.PayloadTooLargeError}
69
73
  * @throws {@link MavenAGI.TooManyRequestsError}
70
74
  * @throws {@link MavenAGI.ServerError}
75
+ * @throws {@link errors.MavenAGIError}
76
+ * @throws {@link errors.MavenAGITimeoutError}
71
77
  *
72
78
  * @example
73
79
  * await client.appSettings.update({
@@ -47,6 +47,7 @@ exports.AppSettingsClient = 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"));
@@ -73,6 +74,8 @@ class AppSettingsClient {
73
74
  * @throws {@link MavenAGI.PayloadTooLargeError}
74
75
  * @throws {@link MavenAGI.TooManyRequestsError}
75
76
  * @throws {@link MavenAGI.ServerError}
77
+ * @throws {@link errors.MavenAGIError}
78
+ * @throws {@link errors.MavenAGITimeoutError}
76
79
  *
77
80
  * @example
78
81
  * await client.appSettings.search({
@@ -178,6 +181,8 @@ class AppSettingsClient {
178
181
  * @throws {@link MavenAGI.PayloadTooLargeError}
179
182
  * @throws {@link MavenAGI.TooManyRequestsError}
180
183
  * @throws {@link MavenAGI.ServerError}
184
+ * @throws {@link errors.MavenAGIError}
185
+ * @throws {@link errors.MavenAGITimeoutError}
181
186
  *
182
187
  * @example
183
188
  * await client.appSettings.get()
@@ -280,6 +285,8 @@ class AppSettingsClient {
280
285
  * @throws {@link MavenAGI.PayloadTooLargeError}
281
286
  * @throws {@link MavenAGI.TooManyRequestsError}
282
287
  * @throws {@link MavenAGI.ServerError}
288
+ * @throws {@link errors.MavenAGIError}
289
+ * @throws {@link errors.MavenAGITimeoutError}
283
290
  *
284
291
  * @example
285
292
  * await client.appSettings.update({
@@ -306,7 +313,7 @@ class AppSettingsClient {
306
313
  contentType: "application/json",
307
314
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
308
315
  requestType: "json",
309
- body: serializers.appSettings.update.Request.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
316
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.appSettings.update.Request.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
310
317
  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,
311
318
  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,
312
319
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -22,6 +22,8 @@ export declare class AssetsClient {
22
22
  * @throws {@link MavenAGI.PayloadTooLargeError}
23
23
  * @throws {@link MavenAGI.TooManyRequestsError}
24
24
  * @throws {@link MavenAGI.ServerError}
25
+ * @throws {@link errors.MavenAGIError}
26
+ * @throws {@link errors.MavenAGITimeoutError}
25
27
  *
26
28
  * @example
27
29
  * await client.assets.initiateUpload({
@@ -43,6 +45,8 @@ export declare class AssetsClient {
43
45
  * @throws {@link MavenAGI.PayloadTooLargeError}
44
46
  * @throws {@link MavenAGI.TooManyRequestsError}
45
47
  * @throws {@link MavenAGI.ServerError}
48
+ * @throws {@link errors.MavenAGIError}
49
+ * @throws {@link errors.MavenAGITimeoutError}
46
50
  *
47
51
  * @example
48
52
  * await client.assets.commitUpload("assetReferenceId", {})
@@ -47,6 +47,7 @@ exports.AssetsClient = 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"));
@@ -68,6 +69,8 @@ class AssetsClient {
68
69
  * @throws {@link MavenAGI.PayloadTooLargeError}
69
70
  * @throws {@link MavenAGI.TooManyRequestsError}
70
71
  * @throws {@link MavenAGI.ServerError}
72
+ * @throws {@link errors.MavenAGIError}
73
+ * @throws {@link errors.MavenAGITimeoutError}
71
74
  *
72
75
  * @example
73
76
  * await client.assets.initiateUpload({
@@ -92,7 +95,7 @@ class AssetsClient {
92
95
  contentType: "application/json",
93
96
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
94
97
  requestType: "json",
95
- body: serializers.InitiateAssetUploadRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
98
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.InitiateAssetUploadRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
96
99
  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,
97
100
  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,
98
101
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -171,6 +174,8 @@ class AssetsClient {
171
174
  * @throws {@link MavenAGI.PayloadTooLargeError}
172
175
  * @throws {@link MavenAGI.TooManyRequestsError}
173
176
  * @throws {@link MavenAGI.ServerError}
177
+ * @throws {@link errors.MavenAGIError}
178
+ * @throws {@link errors.MavenAGITimeoutError}
174
179
  *
175
180
  * @example
176
181
  * await client.assets.commitUpload("assetReferenceId", {})
@@ -193,7 +198,7 @@ class AssetsClient {
193
198
  contentType: "application/json",
194
199
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
195
200
  requestType: "json",
196
- body: serializers.CommitAssetUploadRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
201
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CommitAssetUploadRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
197
202
  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,
198
203
  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,
199
204
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,