mavenagi 1.2.4 → 1.2.6

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 (203) hide show
  1. package/Client.js +2 -2
  2. package/README.md +390 -0
  3. package/api/resources/actions/client/Client.d.ts +11 -1
  4. package/api/resources/actions/client/Client.js +11 -1
  5. package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
  6. package/api/resources/agentCapabilities/types/ActionCapability.d.ts +1 -1
  7. package/api/resources/agents/client/Client.d.ts +2 -2
  8. package/api/resources/agents/client/Client.js +5 -5
  9. package/api/resources/agents/client/index.d.ts +1 -0
  10. package/api/resources/agents/client/index.js +15 -0
  11. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
  12. package/api/resources/agents/client/requests/index.d.ts +1 -0
  13. package/api/resources/agents/client/requests/index.js +2 -0
  14. package/api/resources/agents/types/Agent.d.ts +8 -0
  15. package/api/resources/agents/types/AgentPrompting.d.ts +23 -0
  16. package/api/resources/agents/types/index.d.ts +1 -1
  17. package/api/resources/agents/types/index.js +1 -1
  18. package/api/resources/analytics/client/Client.d.ts +10 -0
  19. package/api/resources/analytics/client/Client.js +83 -0
  20. package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
  21. package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
  22. package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
  23. package/api/resources/commons/types/ActionResponse.d.ts +7 -0
  24. package/api/resources/commons/types/AppUserResponse.d.ts +12 -0
  25. package/api/resources/commons/types/ConversationSummary.d.ts +4 -0
  26. package/api/resources/commons/types/SimulationContext.d.ts +6 -0
  27. package/api/resources/commons/types/UserDataWithReference.d.ts +5 -0
  28. package/api/resources/commons/types/UserDataWithReference.js +3 -0
  29. package/api/resources/commons/types/index.d.ts +1 -0
  30. package/api/resources/commons/types/index.js +1 -0
  31. package/api/resources/conversation/client/Client.d.ts +18 -1
  32. package/api/resources/conversation/client/Client.js +91 -1
  33. package/api/resources/events/client/Client.d.ts +10 -0
  34. package/api/resources/events/client/Client.js +83 -0
  35. package/api/resources/index.d.ts +1 -0
  36. package/api/resources/index.js +1 -0
  37. package/api/resources/knowledge/client/Client.d.ts +32 -1
  38. package/api/resources/knowledge/client/Client.js +104 -1
  39. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
  40. package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  41. package/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
  42. package/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
  43. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
  44. package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
  45. package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
  46. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
  47. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
  48. package/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
  49. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  50. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  51. package/api/resources/knowledge/types/index.d.ts +1 -0
  52. package/api/resources/knowledge/types/index.js +1 -0
  53. package/dist/Client.js +2 -2
  54. package/dist/api/resources/actions/client/Client.d.ts +11 -1
  55. package/dist/api/resources/actions/client/Client.js +11 -1
  56. package/dist/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
  57. package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +1 -1
  58. package/dist/api/resources/agents/client/Client.d.ts +2 -2
  59. package/dist/api/resources/agents/client/Client.js +5 -5
  60. package/dist/api/resources/agents/client/index.d.ts +1 -0
  61. package/dist/api/resources/agents/client/index.js +15 -0
  62. package/dist/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
  63. package/dist/api/resources/agents/client/requests/AgentPatchRequest.js +3 -0
  64. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  65. package/dist/api/resources/agents/client/requests/index.js +2 -0
  66. package/dist/api/resources/agents/types/Agent.d.ts +8 -0
  67. package/dist/api/resources/agents/types/AgentPrompting.d.ts +23 -0
  68. package/dist/api/resources/agents/types/AgentPrompting.js +3 -0
  69. package/dist/api/resources/agents/types/index.d.ts +1 -1
  70. package/dist/api/resources/agents/types/index.js +1 -1
  71. package/dist/api/resources/analytics/client/Client.d.ts +10 -0
  72. package/dist/api/resources/analytics/client/Client.js +83 -0
  73. package/dist/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
  74. package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
  75. package/dist/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
  76. package/dist/api/resources/commons/types/ActionResponse.d.ts +7 -0
  77. package/dist/api/resources/commons/types/AppUserResponse.d.ts +12 -0
  78. package/dist/api/resources/commons/types/ConversationSummary.d.ts +4 -0
  79. package/dist/api/resources/commons/types/SimulationContext.d.ts +6 -0
  80. package/dist/api/resources/commons/types/UserDataWithReference.d.ts +5 -0
  81. package/dist/api/resources/commons/types/UserDataWithReference.js +3 -0
  82. package/dist/api/resources/commons/types/index.d.ts +1 -0
  83. package/dist/api/resources/commons/types/index.js +1 -0
  84. package/dist/api/resources/conversation/client/Client.d.ts +18 -1
  85. package/dist/api/resources/conversation/client/Client.js +91 -1
  86. package/dist/api/resources/events/client/Client.d.ts +10 -0
  87. package/dist/api/resources/events/client/Client.js +83 -0
  88. package/dist/api/resources/index.d.ts +1 -0
  89. package/dist/api/resources/index.js +1 -0
  90. package/dist/api/resources/knowledge/client/Client.d.ts +32 -1
  91. package/dist/api/resources/knowledge/client/Client.js +104 -1
  92. package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
  93. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  94. package/dist/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
  95. package/dist/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
  96. package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
  97. package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
  98. package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
  99. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
  100. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
  101. package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
  102. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  103. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  104. package/dist/api/resources/knowledge/types/index.d.ts +1 -0
  105. package/dist/api/resources/knowledge/types/index.js +1 -0
  106. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +1 -1
  107. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  108. package/dist/serialization/resources/agents/client/index.js +4 -0
  109. package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
  110. package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
  111. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
  112. package/dist/serialization/resources/agents/client/requests/index.js +5 -0
  113. package/dist/serialization/resources/agents/types/Agent.d.ts +3 -0
  114. package/dist/serialization/resources/agents/types/Agent.js +3 -0
  115. package/dist/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
  116. package/dist/serialization/resources/agents/types/AgentPrompting.js +46 -0
  117. package/dist/serialization/resources/agents/types/index.d.ts +1 -1
  118. package/dist/serialization/resources/agents/types/index.js +1 -1
  119. package/dist/serialization/resources/commons/types/AppUserResponse.d.ts +2 -0
  120. package/dist/serialization/resources/commons/types/AppUserResponse.js +2 -0
  121. package/dist/serialization/resources/commons/types/ConversationSummary.d.ts +2 -0
  122. package/dist/serialization/resources/commons/types/ConversationSummary.js +2 -0
  123. package/dist/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  124. package/dist/serialization/resources/commons/types/SimulationContext.js +1 -0
  125. package/dist/serialization/resources/commons/types/UserDataWithReference.d.ts +11 -0
  126. package/dist/serialization/resources/commons/types/UserDataWithReference.js +45 -0
  127. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  128. package/dist/serialization/resources/commons/types/index.js +1 -0
  129. package/dist/serialization/resources/index.d.ts +1 -0
  130. package/dist/serialization/resources/index.js +1 -0
  131. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
  132. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
  133. package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
  134. package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
  135. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
  136. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
  137. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
  138. package/dist/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
  139. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
  140. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
  141. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  142. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
  143. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
  144. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
  145. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
  146. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
  147. package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
  148. package/dist/serialization/resources/knowledge/types/index.js +1 -0
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/package.json +1 -1
  152. package/reference.md +325 -4
  153. package/serialization/resources/agentCapabilities/types/ActionCapability.js +1 -1
  154. package/serialization/resources/agents/client/index.d.ts +1 -0
  155. package/serialization/resources/agents/client/index.js +4 -0
  156. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
  157. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
  158. package/serialization/resources/agents/client/requests/index.d.ts +1 -0
  159. package/serialization/resources/agents/client/requests/index.js +5 -0
  160. package/serialization/resources/agents/types/Agent.d.ts +3 -0
  161. package/serialization/resources/agents/types/Agent.js +3 -0
  162. package/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
  163. package/serialization/resources/agents/types/AgentPrompting.js +46 -0
  164. package/serialization/resources/agents/types/index.d.ts +1 -1
  165. package/serialization/resources/agents/types/index.js +1 -1
  166. package/serialization/resources/commons/types/AppUserResponse.d.ts +2 -0
  167. package/serialization/resources/commons/types/AppUserResponse.js +2 -0
  168. package/serialization/resources/commons/types/ConversationSummary.d.ts +2 -0
  169. package/serialization/resources/commons/types/ConversationSummary.js +2 -0
  170. package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  171. package/serialization/resources/commons/types/SimulationContext.js +1 -0
  172. package/serialization/resources/commons/types/UserDataWithReference.d.ts +11 -0
  173. package/serialization/resources/commons/types/UserDataWithReference.js +45 -0
  174. package/serialization/resources/commons/types/index.d.ts +1 -0
  175. package/serialization/resources/commons/types/index.js +1 -0
  176. package/serialization/resources/index.d.ts +1 -0
  177. package/serialization/resources/index.js +1 -0
  178. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
  179. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
  180. package/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
  181. package/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
  182. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
  183. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
  184. package/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
  185. package/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
  186. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
  187. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
  188. package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  189. package/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
  190. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
  191. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
  192. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
  193. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
  194. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  195. package/serialization/resources/knowledge/types/index.js +1 -0
  196. package/version.d.ts +1 -1
  197. package/version.js +1 -1
  198. package/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
  199. package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
  200. package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
  201. package/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
  202. /package/api/resources/agents/{types → client/requests}/AgentPatchRequest.js +0 -0
  203. /package/{dist/api/resources/agents/types/AgentPatchRequest.js → api/resources/agents/types/AgentPrompting.js} +0 -0
@@ -314,6 +314,89 @@ class Analytics {
314
314
  }
315
315
  });
316
316
  }
317
+ /**
318
+ * Export the conversation analytics table to a CSV file.
319
+ *
320
+ * This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers. A maximum of 10,000 rows can be exported at a time.
321
+ * @throws {@link MavenAGI.NotFoundError}
322
+ * @throws {@link MavenAGI.BadRequestError}
323
+ * @throws {@link MavenAGI.ServerError}
324
+ */
325
+ exportConversationTable(request, requestOptions) {
326
+ return core.HttpResponsePromise.fromPromise(this.__exportConversationTable(request, requestOptions));
327
+ }
328
+ __exportConversationTable(request, requestOptions) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ var _a, _b, _c, _d, _e, _f, _g, _h;
331
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
332
+ Authorization: yield this._getAuthorizationHeader(),
333
+ "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
334
+ "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
335
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
336
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
337
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/tables/conversations/export"),
338
+ method: "POST",
339
+ headers: _headers,
340
+ contentType: "application/json",
341
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
342
+ requestType: "json",
343
+ body: serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
344
+ responseType: "binary-response",
345
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
346
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
347
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
348
+ });
349
+ if (_response.ok) {
350
+ return { data: _response.body, rawResponse: _response.rawResponse };
351
+ }
352
+ if (_response.error.reason === "status-code") {
353
+ switch (_response.error.statusCode) {
354
+ case 404:
355
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
356
+ unrecognizedObjectKeys: "passthrough",
357
+ allowUnrecognizedUnionMembers: true,
358
+ allowUnrecognizedEnumValues: true,
359
+ breadcrumbsPrefix: ["response"],
360
+ }), _response.rawResponse);
361
+ case 400:
362
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
363
+ unrecognizedObjectKeys: "passthrough",
364
+ allowUnrecognizedUnionMembers: true,
365
+ allowUnrecognizedEnumValues: true,
366
+ breadcrumbsPrefix: ["response"],
367
+ }), _response.rawResponse);
368
+ case 500:
369
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
370
+ unrecognizedObjectKeys: "passthrough",
371
+ allowUnrecognizedUnionMembers: true,
372
+ allowUnrecognizedEnumValues: true,
373
+ breadcrumbsPrefix: ["response"],
374
+ }), _response.rawResponse);
375
+ default:
376
+ throw new errors.MavenAGIError({
377
+ statusCode: _response.error.statusCode,
378
+ body: _response.error.body,
379
+ rawResponse: _response.rawResponse,
380
+ });
381
+ }
382
+ }
383
+ switch (_response.error.reason) {
384
+ case "non-json":
385
+ throw new errors.MavenAGIError({
386
+ statusCode: _response.error.statusCode,
387
+ body: _response.error.rawBody,
388
+ rawResponse: _response.rawResponse,
389
+ });
390
+ case "timeout":
391
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/tables/conversations/export.");
392
+ case "unknown":
393
+ throw new errors.MavenAGIError({
394
+ message: _response.error.errorMessage,
395
+ rawResponse: _response.rawResponse,
396
+ });
397
+ }
398
+ });
399
+ }
317
400
  /**
318
401
  * Retrieves structured feedback data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
319
402
  *
@@ -3,6 +3,16 @@ export interface ConversationBarChartRequest extends MavenAGI.ConversationAnalyt
3
3
  /**
4
4
  * Determines how data is grouped along the x-axis. Each unique value forms a separate bar.
5
5
  * The name of the bar is derived from the grouping field's value or range.
6
+ *
7
+ * **Label Formats by Field:**
8
+ * - `Sources`: Document title (e.g., "Product Documentation")
9
+ * - `Actions`: "Action Name - App Name" (e.g., "Create Ticket - Freshdesk")
10
+ * - `IncompleteActions`: "Action Name - App Name" (e.g., "Search Documents - Zendesk")
11
+ * - `Users`: User identifier value (e.g., "user@example.com")
12
+ * - `InboxItems`: Inbox item title
13
+ * - `HumanAgents`: Human agent display name
14
+ * - `HumanAgentsWithInserts`: Human agent display name (for agents who made inserts)
15
+ * - Other fields: Field value as stored (e.g., "GOOD", "NEEDS_IMPROVEMENT" for Quality)
6
16
  */
7
17
  barDefinition: MavenAGI.ConversationGroupBy;
8
18
  /** Metric defining the y-axis values for the bar chart. */
@@ -10,6 +20,16 @@ export interface ConversationBarChartRequest extends MavenAGI.ConversationAnalyt
10
20
  /**
11
21
  * Optionally defines vertical grouping within each bar, producing multiple series.
12
22
  * If omitted, a single series is generated.
23
+ *
24
+ * **Series Name Formats by Field:**
25
+ * - `Sources`: Document title (e.g., "Product Documentation")
26
+ * - `Actions`: "Action Name - App Name" (e.g., "Create Ticket - Freshdesk")
27
+ * - `IncompleteActions`: "Action Name - App Name" (e.g., "Search Documents - Zendesk")
28
+ * - `Users`: User identifier value (e.g., "user@example.com")
29
+ * - `InboxItems`: Inbox item title
30
+ * - `HumanAgents`: Human agent display name
31
+ * - `HumanAgentsWithInserts`: Human agent display name (for agents who made inserts)
32
+ * - Other fields: Field value as stored (e.g., "GOOD", "NEEDS_IMPROVEMENT" for Quality)
13
33
  */
14
34
  verticalGrouping?: MavenAGI.ConversationGroupBy;
15
35
  }
@@ -2,7 +2,19 @@ import * as MavenAGI from "../../../index";
2
2
  export interface ConversationDateHistogramRequest extends MavenAGI.ConversationAnalyticsRequest {
3
3
  /** Time-based grouping interval (e.g., HOUR, DAY, WEEK) for the date histogram. */
4
4
  timeInterval: MavenAGI.TimeInterval;
5
- /** Groups data before applying calculations, forming a separate time series for each group. */
5
+ /**
6
+ * Groups data before applying calculations, forming a separate time series for each group.
7
+ *
8
+ * **Series Name Formats by Field:**
9
+ * - `Sources`: Document title (e.g., "Product Documentation")
10
+ * - `Actions`: "Action Name - App Name" (e.g., "Create Ticket - Freshdesk")
11
+ * - `IncompleteActions`: "Action Name - App Name" (e.g., "Search Documents - Zendesk")
12
+ * - `Users`: User identifier value (e.g., "user@example.com")
13
+ * - `InboxItems`: Inbox item title
14
+ * - `HumanAgents`: Human agent display name
15
+ * - `HumanAgentsWithInserts`: Human agent display name (for agents who made inserts)
16
+ * - Other fields: Field value as stored (e.g., "GOOD", "NEEDS_IMPROVEMENT" for Quality)
17
+ */
6
18
  groupBy?: MavenAGI.ConversationGroupBy;
7
19
  /** Defines the y-axis values for the date histogram. */
8
20
  metric: MavenAGI.ConversationMetric;
@@ -1,6 +1,18 @@
1
1
  import * as MavenAGI from "../../../index";
2
2
  export interface ConversationPieChartRequest extends MavenAGI.ConversationAnalyticsRequest {
3
- /** Field used to group data into slices for the pie chart. */
3
+ /**
4
+ * Field used to group data into slices for the pie chart.
5
+ *
6
+ * **Series Name Formats by Field:**
7
+ * - `Sources`: Document title (e.g., "Product Documentation")
8
+ * - `Actions`: "Action Name - App Name" (e.g., "Create Ticket - Freshdesk")
9
+ * - `IncompleteActions`: "Action Name - App Name" (e.g., "Search Documents - Zendesk")
10
+ * - `Users`: User identifier value (e.g., "user@example.com")
11
+ * - `InboxItems`: Inbox item title
12
+ * - `HumanAgents`: Human agent display name
13
+ * - `HumanAgentsWithInserts`: Human agent display name (for agents who made inserts)
14
+ * - Other fields: Field value as stored (e.g., "GOOD", "NEEDS_IMPROVEMENT" for Quality)
15
+ */
4
16
  groupBy: MavenAGI.ConversationGroupBy;
5
17
  /** Metric defining the value for each pie slice, stored in the y-axis value. */
6
18
  metric: MavenAGI.ConversationMetric;
@@ -26,6 +26,13 @@ import * as MavenAGI from "../../../index";
26
26
  * key: "userKey2"
27
27
  * }]
28
28
  * },
29
+ * segmentId: {
30
+ * referenceId: "premium-users",
31
+ * appId: "my-billing-system",
32
+ * organizationId: "acme",
33
+ * agentId: "support",
34
+ * type: MavenAGI.EntityType.Segment
35
+ * },
29
36
  * language: "en",
30
37
  * deleted: false
31
38
  * }
@@ -27,6 +27,16 @@ import * as MavenAGI from "../../../index";
27
27
  * },
28
28
  * defaultUserData: {
29
29
  * "name": "Joe"
30
+ * },
31
+ * agentUserData: {
32
+ * "name": [{
33
+ * value: "Joe",
34
+ * visibility: MavenAGI.VisibilityType.Visible,
35
+ * userId: {
36
+ * appId: "myapp",
37
+ * referenceId: "user0"
38
+ * }
39
+ * }]
30
40
  * }
31
41
  * }
32
42
  */
@@ -39,4 +49,6 @@ export interface AppUserResponse extends MavenAGI.AppUser {
39
49
  allUserData: Record<string, Record<string, string>>;
40
50
  /** Default data for this user */
41
51
  defaultUserData: Record<string, string>;
52
+ /** All user data for this user, including reverse indexable user data */
53
+ agentUserData: Record<string, MavenAGI.UserDataWithReference[]>;
42
54
  }
@@ -33,4 +33,8 @@ export interface ConversationSummary {
33
33
  humanAgentsWithInserts: string[];
34
34
  /** The names of all users that have a message of type `USER` on the conversation. */
35
35
  users: string[];
36
+ /** The text of the last user message in the conversation. */
37
+ lastUserMessage?: string;
38
+ /** The text of the last bot message in the conversation. */
39
+ lastBotMessage?: string;
36
40
  }
@@ -1,5 +1,11 @@
1
1
  import * as MavenAGI from "../../../index";
2
2
  export interface SimulationContext {
3
+ /**
4
+ * If provided, overrides the agent's default additional prompt text during the simulation.
5
+ * Note that this field is provided for backwards compatibility and will be removed in a future release.
6
+ * Instead please use the `availableKnowledgeBases` field to include a knowledge base with a document `llmInclusionStatus` set to `ALWAYS`.
7
+ */
8
+ additionalPromptText?: string;
3
9
  /** The persona to use during the simulation. If not provided, the agent's default persona will be used. */
4
10
  persona?: MavenAGI.LlmPersona;
5
11
  /** If provided, knowledge search will be restricted to the provided list of knowledge bases. Otherwise, all active knowledge bases will be used. An empty list means no knowledge bases will be used. */
@@ -0,0 +1,5 @@
1
+ import * as MavenAGI from "../../../index";
2
+ export interface UserDataWithReference extends MavenAGI.UserData {
3
+ /** Reverse index containing appId and referenceId data that identifies this app user */
4
+ userId: MavenAGI.EntityIdFilter;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -46,6 +46,7 @@ export * from "./AppUserIdentifier";
46
46
  export * from "./AppUserIdentifyingPropertyType";
47
47
  export * from "./AppUser";
48
48
  export * from "./UserData";
49
+ export * from "./UserDataWithReference";
49
50
  export * from "./VisibilityType";
50
51
  export * from "./AppUserRequest";
51
52
  export * from "./AppUserResponse";
@@ -62,6 +62,7 @@ __exportStar(require("./AppUserIdentifier"), exports);
62
62
  __exportStar(require("./AppUserIdentifyingPropertyType"), exports);
63
63
  __exportStar(require("./AppUser"), exports);
64
64
  __exportStar(require("./UserData"), exports);
65
+ __exportStar(require("./UserDataWithReference"), exports);
65
66
  __exportStar(require("./VisibilityType"), exports);
66
67
  __exportStar(require("./AppUserRequest"), exports);
67
68
  __exportStar(require("./AppUserResponse"), exports);
@@ -300,7 +300,11 @@ export declare class Conversation {
300
300
  createFeedback(request: MavenAGI.FeedbackRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.Feedback>;
301
301
  private __createFeedback;
302
302
  /**
303
- * Submit a filled out action form
303
+ * Submit a filled out action form.
304
+ * Action forms can not be submitted more than once, attempting to do so will result in an error.
305
+ *
306
+ * Additionally, form submission is only allowed when the form is the last message in the conversation.
307
+ * Forms should be disabled in surface UI if a conversation continues and they remain unsubmitted.
304
308
  *
305
309
  * @param {string} conversationId - The ID of a conversation the form being submitted belongs to
306
310
  * @param {MavenAGI.SubmitActionFormRequest} request
@@ -384,6 +388,19 @@ export declare class Conversation {
384
388
  */
385
389
  search(request: MavenAGI.ConversationsSearchRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationsResponse>;
386
390
  private __search;
391
+ /**
392
+ * Export conversations to a CSV file.
393
+ *
394
+ * This will output a summary of each conversation that matches the supplied filter. A maximum of 10,000 conversations can be exported at a time.
395
+ *
396
+ * For most use cases it is recommended to use the `search` API instead and convert the JSON response to your desired format.
397
+ * The CSV format may change over time and should not be relied upon by code consumers.
398
+ * @throws {@link MavenAGI.NotFoundError}
399
+ * @throws {@link MavenAGI.BadRequestError}
400
+ * @throws {@link MavenAGI.ServerError}
401
+ */
402
+ export(request: MavenAGI.ConversationsSearchRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
403
+ private __export;
387
404
  /**
388
405
  * Deliver a message to a user or conversation.
389
406
  *
@@ -1139,7 +1139,11 @@ class Conversation {
1139
1139
  });
1140
1140
  }
1141
1141
  /**
1142
- * Submit a filled out action form
1142
+ * Submit a filled out action form.
1143
+ * Action forms can not be submitted more than once, attempting to do so will result in an error.
1144
+ *
1145
+ * Additionally, form submission is only allowed when the form is the last message in the conversation.
1146
+ * Forms should be disabled in surface UI if a conversation continues and they remain unsubmitted.
1143
1147
  *
1144
1148
  * @param {string} conversationId - The ID of a conversation the form being submitted belongs to
1145
1149
  * @param {MavenAGI.SubmitActionFormRequest} request
@@ -1545,6 +1549,92 @@ class Conversation {
1545
1549
  }
1546
1550
  });
1547
1551
  }
1552
+ /**
1553
+ * Export conversations to a CSV file.
1554
+ *
1555
+ * This will output a summary of each conversation that matches the supplied filter. A maximum of 10,000 conversations can be exported at a time.
1556
+ *
1557
+ * For most use cases it is recommended to use the `search` API instead and convert the JSON response to your desired format.
1558
+ * The CSV format may change over time and should not be relied upon by code consumers.
1559
+ * @throws {@link MavenAGI.NotFoundError}
1560
+ * @throws {@link MavenAGI.BadRequestError}
1561
+ * @throws {@link MavenAGI.ServerError}
1562
+ */
1563
+ export(request, requestOptions) {
1564
+ return core.HttpResponsePromise.fromPromise(this.__export(request, requestOptions));
1565
+ }
1566
+ __export(request, requestOptions) {
1567
+ return __awaiter(this, void 0, void 0, function* () {
1568
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1569
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
1570
+ Authorization: yield this._getAuthorizationHeader(),
1571
+ "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
1572
+ "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
1573
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1574
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1575
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/conversations/export"),
1576
+ method: "POST",
1577
+ headers: _headers,
1578
+ contentType: "application/json",
1579
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1580
+ requestType: "json",
1581
+ body: serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1582
+ responseType: "binary-response",
1583
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1584
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1585
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1586
+ });
1587
+ if (_response.ok) {
1588
+ return { data: _response.body, rawResponse: _response.rawResponse };
1589
+ }
1590
+ if (_response.error.reason === "status-code") {
1591
+ switch (_response.error.statusCode) {
1592
+ case 404:
1593
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1594
+ unrecognizedObjectKeys: "passthrough",
1595
+ allowUnrecognizedUnionMembers: true,
1596
+ allowUnrecognizedEnumValues: true,
1597
+ breadcrumbsPrefix: ["response"],
1598
+ }), _response.rawResponse);
1599
+ case 400:
1600
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1601
+ unrecognizedObjectKeys: "passthrough",
1602
+ allowUnrecognizedUnionMembers: true,
1603
+ allowUnrecognizedEnumValues: true,
1604
+ breadcrumbsPrefix: ["response"],
1605
+ }), _response.rawResponse);
1606
+ case 500:
1607
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1608
+ unrecognizedObjectKeys: "passthrough",
1609
+ allowUnrecognizedUnionMembers: true,
1610
+ allowUnrecognizedEnumValues: true,
1611
+ breadcrumbsPrefix: ["response"],
1612
+ }), _response.rawResponse);
1613
+ default:
1614
+ throw new errors.MavenAGIError({
1615
+ statusCode: _response.error.statusCode,
1616
+ body: _response.error.body,
1617
+ rawResponse: _response.rawResponse,
1618
+ });
1619
+ }
1620
+ }
1621
+ switch (_response.error.reason) {
1622
+ case "non-json":
1623
+ throw new errors.MavenAGIError({
1624
+ statusCode: _response.error.statusCode,
1625
+ body: _response.error.rawBody,
1626
+ rawResponse: _response.rawResponse,
1627
+ });
1628
+ case "timeout":
1629
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/conversations/export.");
1630
+ case "unknown":
1631
+ throw new errors.MavenAGIError({
1632
+ message: _response.error.errorMessage,
1633
+ rawResponse: _response.rawResponse,
1634
+ });
1635
+ }
1636
+ });
1637
+ }
1548
1638
  /**
1549
1639
  * Deliver a message to a user or conversation.
1550
1640
  *
@@ -95,5 +95,15 @@ export declare class Events {
95
95
  */
96
96
  get(eventId: string, request: MavenAGI.EventGetRequest, requestOptions?: Events.RequestOptions): core.HttpResponsePromise<MavenAGI.EventResponse>;
97
97
  private __get;
98
+ /**
99
+ * Export events to a CSV file.
100
+ *
101
+ * This will output a summary of each event that matches the supplied filter. A maximum of 10,000 events can be exported at a time. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
102
+ * @throws {@link MavenAGI.NotFoundError}
103
+ * @throws {@link MavenAGI.BadRequestError}
104
+ * @throws {@link MavenAGI.ServerError}
105
+ */
106
+ export(request: MavenAGI.EventsSearchRequest, requestOptions?: Events.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
107
+ private __export;
98
108
  protected _getAuthorizationHeader(): Promise<string | undefined>;
99
109
  }
@@ -353,6 +353,89 @@ class Events {
353
353
  }
354
354
  });
355
355
  }
356
+ /**
357
+ * Export events to a CSV file.
358
+ *
359
+ * This will output a summary of each event that matches the supplied filter. A maximum of 10,000 events can be exported at a time. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
360
+ * @throws {@link MavenAGI.NotFoundError}
361
+ * @throws {@link MavenAGI.BadRequestError}
362
+ * @throws {@link MavenAGI.ServerError}
363
+ */
364
+ export(request, requestOptions) {
365
+ return core.HttpResponsePromise.fromPromise(this.__export(request, requestOptions));
366
+ }
367
+ __export(request, requestOptions) {
368
+ return __awaiter(this, void 0, void 0, function* () {
369
+ var _a, _b, _c, _d, _e, _f, _g, _h;
370
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
371
+ Authorization: yield this._getAuthorizationHeader(),
372
+ "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
373
+ "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
374
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
375
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
376
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/events/export"),
377
+ method: "POST",
378
+ headers: _headers,
379
+ contentType: "application/json",
380
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
381
+ requestType: "json",
382
+ body: serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
383
+ responseType: "binary-response",
384
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
385
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
386
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
387
+ });
388
+ if (_response.ok) {
389
+ return { data: _response.body, rawResponse: _response.rawResponse };
390
+ }
391
+ if (_response.error.reason === "status-code") {
392
+ switch (_response.error.statusCode) {
393
+ case 404:
394
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
395
+ unrecognizedObjectKeys: "passthrough",
396
+ allowUnrecognizedUnionMembers: true,
397
+ allowUnrecognizedEnumValues: true,
398
+ breadcrumbsPrefix: ["response"],
399
+ }), _response.rawResponse);
400
+ case 400:
401
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
402
+ unrecognizedObjectKeys: "passthrough",
403
+ allowUnrecognizedUnionMembers: true,
404
+ allowUnrecognizedEnumValues: true,
405
+ breadcrumbsPrefix: ["response"],
406
+ }), _response.rawResponse);
407
+ case 500:
408
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
409
+ unrecognizedObjectKeys: "passthrough",
410
+ allowUnrecognizedUnionMembers: true,
411
+ allowUnrecognizedEnumValues: true,
412
+ breadcrumbsPrefix: ["response"],
413
+ }), _response.rawResponse);
414
+ default:
415
+ throw new errors.MavenAGIError({
416
+ statusCode: _response.error.statusCode,
417
+ body: _response.error.body,
418
+ rawResponse: _response.rawResponse,
419
+ });
420
+ }
421
+ }
422
+ switch (_response.error.reason) {
423
+ case "non-json":
424
+ throw new errors.MavenAGIError({
425
+ statusCode: _response.error.statusCode,
426
+ body: _response.error.rawBody,
427
+ rawResponse: _response.rawResponse,
428
+ });
429
+ case "timeout":
430
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/events/export.");
431
+ case "unknown":
432
+ throw new errors.MavenAGIError({
433
+ message: _response.error.errorMessage,
434
+ rawResponse: _response.rawResponse,
435
+ });
436
+ }
437
+ });
438
+ }
356
439
  _getAuthorizationHeader() {
357
440
  return __awaiter(this, void 0, void 0, function* () {
358
441
  var _a, _b;
@@ -31,6 +31,7 @@ export * from "./users/types";
31
31
  export * from "./commons/errors";
32
32
  export * as events from "./events";
33
33
  export * from "./actions/client/requests";
34
+ export * from "./agents/client/requests";
34
35
  export * from "./appSettings/client/requests";
35
36
  export * from "./conversation/client/requests";
36
37
  export * from "./events/client/requests";
@@ -70,6 +70,7 @@ __exportStar(require("./users/types"), exports);
70
70
  __exportStar(require("./commons/errors"), exports);
71
71
  exports.events = __importStar(require("./events"));
72
72
  __exportStar(require("./actions/client/requests"), exports);
73
+ __exportStar(require("./agents/client/requests"), exports);
73
74
  __exportStar(require("./appSettings/client/requests"), exports);
74
75
  __exportStar(require("./conversation/client/requests"), exports);
75
76
  __exportStar(require("./events/client/requests"), exports);
@@ -87,6 +87,27 @@ export declare class Knowledge {
87
87
  */
88
88
  getKnowledgeBase(knowledgeBaseReferenceId: string, request?: MavenAGI.KnowledgeBaseGetRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseResponse>;
89
89
  private __getKnowledgeBase;
90
+ /**
91
+ * Request that a knowledge base refresh itself.
92
+ *
93
+ * Knowledge bases refresh on a schedule determined by the `refreshFrequency` field.
94
+ * They can also be refreshed on demand by calling this endpoint.
95
+ *
96
+ * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to refresh. All other entity ID fields are inferred from the request.
97
+ * @param {MavenAGI.KnowledgeBaseRefreshRequest} request
98
+ * @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
99
+ *
100
+ * @throws {@link MavenAGI.NotFoundError}
101
+ * @throws {@link MavenAGI.BadRequestError}
102
+ * @throws {@link MavenAGI.ServerError}
103
+ *
104
+ * @example
105
+ * await client.knowledge.refreshKnowledgeBase("help-center", {
106
+ * appId: "readme"
107
+ * })
108
+ */
109
+ refreshKnowledgeBase(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeBaseRefreshRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<void>;
110
+ private __refreshKnowledgeBase;
90
111
  /**
91
112
  * Update mutable knowledge base fields
92
113
  *
@@ -102,7 +123,17 @@ export declare class Knowledge {
102
123
  * @throws {@link MavenAGI.ServerError}
103
124
  *
104
125
  * @example
105
- * await client.knowledge.patchKnowledgeBase("knowledgeBaseReferenceId")
126
+ * await client.knowledge.patchKnowledgeBase("help-center", {
127
+ * name: "Updated Help Center",
128
+ * tags: new Set(["tag1", "tag2", "tag3"]),
129
+ * segmentId: {
130
+ * referenceId: "premium-users",
131
+ * appId: "readme",
132
+ * organizationId: "acme",
133
+ * agentId: "support",
134
+ * type: "SEGMENT"
135
+ * }
136
+ * })
106
137
  */
107
138
  patchKnowledgeBase(knowledgeBaseReferenceId: string, request?: MavenAGI.KnowledgeBasePatchRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseResponse>;
108
139
  private __patchKnowledgeBase;