mavenagi 1.2.56 → 1.2.58

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 (242) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +3 -0
  3. package/Client.js +21 -16
  4. package/api/resources/analytics/types/ConversationBasicMetric.d.ts +5 -0
  5. package/api/resources/analytics/types/ConversationGroupBy.d.ts +9 -1
  6. package/api/resources/analytics/types/ConversationNumericMetric.d.ts +5 -0
  7. package/api/resources/analytics/types/ConversationTableRequest.d.ts +6 -0
  8. package/api/resources/charters/index.d.ts +1 -0
  9. package/api/resources/charters/index.js +17 -0
  10. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +17 -0
  11. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +20 -0
  12. package/api/resources/charters/types/CharterStatus.d.ts +16 -0
  13. package/api/resources/charters/types/CharterStatus.js +19 -0
  14. package/api/resources/charters/types/CharterSummary.d.ts +28 -0
  15. package/api/resources/charters/types/CharterType.d.ts +25 -0
  16. package/api/resources/charters/types/CharterType.js +28 -0
  17. package/api/resources/charters/types/index.d.ts +4 -0
  18. package/api/resources/charters/types/index.js +20 -0
  19. package/api/resources/commons/types/ActionParameter.d.ts +2 -2
  20. package/api/resources/commons/types/BaseCursorRequest.d.ts +21 -0
  21. package/api/resources/commons/types/BaseCursorRequest.js +3 -0
  22. package/api/resources/commons/types/BotObjectResponse.d.ts +2 -4
  23. package/api/resources/commons/types/CursorPage.d.ts +12 -0
  24. package/api/resources/commons/types/CursorPage.js +3 -0
  25. package/api/resources/commons/types/FieldCondition.d.ts +45 -0
  26. package/api/resources/commons/types/FieldCondition.js +3 -0
  27. package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +1 -1
  28. package/api/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +1 -1
  29. package/api/resources/commons/types/KeyValueEntryCondition.d.ts +1 -1
  30. package/api/resources/commons/types/TextFormat.d.ts +13 -0
  31. package/api/resources/commons/types/TextFormat.js +3 -0
  32. package/api/resources/commons/types/TextFormatJsonSchema.d.ts +35 -0
  33. package/api/resources/commons/types/TextFormatJsonSchema.js +3 -0
  34. package/api/resources/commons/types/TextFormatText.d.ts +4 -0
  35. package/api/resources/commons/types/TextFormatText.js +3 -0
  36. package/api/resources/commons/types/UniversalCondition.d.ts +3 -3
  37. package/api/resources/commons/types/index.d.ts +6 -1
  38. package/api/resources/commons/types/index.js +6 -1
  39. package/api/resources/conversation/client/Client.d.ts +32 -1
  40. package/api/resources/conversation/client/Client.js +116 -1
  41. package/api/resources/conversation/types/AskRequest.d.ts +59 -0
  42. package/api/resources/conversation/types/AskStreamObjectEvent.d.ts +7 -0
  43. package/api/resources/conversation/types/AskStreamObjectEvent.js +3 -0
  44. package/api/resources/conversation/types/ConversationField.d.ts +8 -0
  45. package/api/resources/conversation/types/ConversationField.js +8 -0
  46. package/api/resources/conversation/types/ConversationRequest.d.ts +12 -1
  47. package/api/resources/conversation/types/ConversationsCursorSearchRequest.d.ts +4 -0
  48. package/api/resources/conversation/types/ConversationsCursorSearchRequest.js +3 -0
  49. package/api/resources/conversation/types/ConversationsCursorSearchResponse.d.ts +11 -0
  50. package/api/resources/conversation/types/ConversationsCursorSearchResponse.js +3 -0
  51. package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +5 -0
  52. package/api/resources/conversation/types/NumericConversationField.d.ts +4 -0
  53. package/api/resources/conversation/types/NumericConversationField.js +4 -0
  54. package/api/resources/conversation/types/StreamResponse.d.ts +4 -1
  55. package/api/resources/conversation/types/index.d.ts +3 -0
  56. package/api/resources/conversation/types/index.js +3 -0
  57. package/api/resources/index.d.ts +5 -0
  58. package/api/resources/index.js +6 -1
  59. package/api/resources/intelligentFields/client/Client.d.ts +156 -0
  60. package/api/resources/intelligentFields/client/Client.js +627 -0
  61. package/api/resources/intelligentFields/client/index.d.ts +1 -0
  62. package/api/resources/intelligentFields/client/index.js +17 -0
  63. package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +12 -0
  64. package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.js +3 -0
  65. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +8 -0
  66. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.js +3 -0
  67. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +26 -0
  68. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +3 -0
  69. package/api/resources/intelligentFields/client/requests/index.d.ts +3 -0
  70. package/api/resources/intelligentFields/client/requests/index.js +2 -0
  71. package/api/resources/intelligentFields/exports.d.ts +2 -0
  72. package/api/resources/intelligentFields/exports.js +21 -0
  73. package/api/resources/intelligentFields/index.d.ts +2 -0
  74. package/api/resources/intelligentFields/index.js +18 -0
  75. package/api/resources/intelligentFields/types/EnumOption.d.ts +9 -0
  76. package/api/resources/intelligentFields/types/EnumOption.js +3 -0
  77. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +7 -0
  78. package/api/resources/intelligentFields/types/IntelligentFieldBase.js +3 -0
  79. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +28 -0
  80. package/api/resources/intelligentFields/types/IntelligentFieldCore.js +3 -0
  81. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +36 -0
  82. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.js +3 -0
  83. package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +28 -0
  84. package/api/resources/intelligentFields/types/IntelligentFieldRequest.js +3 -0
  85. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +41 -0
  86. package/api/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -0
  87. package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +7 -0
  88. package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +10 -0
  89. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +9 -0
  90. package/api/resources/intelligentFields/types/IntelligentFieldType.js +12 -0
  91. package/api/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.d.ts +8 -0
  92. package/api/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.js +3 -0
  93. package/api/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.d.ts +10 -0
  94. package/api/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.js +3 -0
  95. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +17 -0
  96. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.js +3 -0
  97. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +35 -0
  98. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.js +3 -0
  99. package/api/resources/intelligentFields/types/IntelligentFieldValueSortField.d.ts +5 -0
  100. package/api/resources/intelligentFields/types/IntelligentFieldValueSortField.js +8 -0
  101. package/api/resources/intelligentFields/types/index.d.ts +13 -0
  102. package/api/resources/intelligentFields/types/index.js +29 -0
  103. package/api/resources/knowledge/client/Client.d.ts +33 -0
  104. package/api/resources/knowledge/client/Client.js +117 -0
  105. package/api/resources/knowledge/types/KnowledgeBaseDocumentDeltas.d.ts +16 -0
  106. package/api/resources/knowledge/types/KnowledgeBaseDocumentDeltas.js +3 -0
  107. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +5 -0
  108. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +30 -0
  109. package/api/resources/knowledge/types/KnowledgeBaseVersionProgress.d.ts +29 -0
  110. package/api/resources/knowledge/types/KnowledgeBaseVersionProgress.js +3 -0
  111. package/api/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.d.ts +24 -0
  112. package/api/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.js +3 -0
  113. package/api/resources/knowledge/types/index.d.ts +3 -0
  114. package/api/resources/knowledge/types/index.js +3 -0
  115. package/api/resources/segments/client/Client.js +3 -1
  116. package/api/resources/segments/client/requests/SegmentDeleteRequest.d.ts +12 -0
  117. package/api/resources/segments/types/SegmentPatchRequest.d.ts +8 -0
  118. package/api/resources/segments/types/SegmentRequest.d.ts +8 -0
  119. package/api/resources/segments/types/SegmentSummary.d.ts +14 -0
  120. package/api/resources/segments/types/SegmentSummary.js +3 -0
  121. package/api/resources/segments/types/index.d.ts +1 -0
  122. package/api/resources/segments/types/index.js +1 -0
  123. package/package.json +1 -1
  124. package/reference.md +552 -1
  125. package/serialization/resources/analytics/types/ConversationBasicMetric.d.ts +2 -0
  126. package/serialization/resources/analytics/types/ConversationBasicMetric.js +2 -0
  127. package/serialization/resources/analytics/types/ConversationGroupBy.d.ts +2 -0
  128. package/serialization/resources/analytics/types/ConversationGroupBy.js +2 -0
  129. package/serialization/resources/analytics/types/ConversationNumericMetric.d.ts +2 -0
  130. package/serialization/resources/analytics/types/ConversationNumericMetric.js +2 -0
  131. package/serialization/resources/charters/index.d.ts +1 -0
  132. package/serialization/resources/charters/index.js +17 -0
  133. package/serialization/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +7 -0
  134. package/serialization/resources/charters/types/CharterChildrenExclusionPolicy.js +39 -0
  135. package/serialization/resources/charters/types/CharterStatus.d.ts +7 -0
  136. package/serialization/resources/charters/types/CharterStatus.js +39 -0
  137. package/serialization/resources/charters/types/CharterSummary.d.ts +22 -0
  138. package/serialization/resources/charters/types/CharterSummary.js +54 -0
  139. package/serialization/resources/charters/types/CharterType.d.ts +7 -0
  140. package/serialization/resources/charters/types/CharterType.js +39 -0
  141. package/serialization/resources/charters/types/index.d.ts +4 -0
  142. package/serialization/resources/charters/types/index.js +20 -0
  143. package/serialization/resources/commons/types/BaseCursorRequest.d.ts +11 -0
  144. package/serialization/resources/commons/types/BaseCursorRequest.js +43 -0
  145. package/serialization/resources/commons/types/BotObjectResponse.d.ts +0 -1
  146. package/serialization/resources/commons/types/BotObjectResponse.js +0 -1
  147. package/serialization/resources/commons/types/CursorPage.d.ts +9 -0
  148. package/serialization/resources/commons/types/CursorPage.js +41 -0
  149. package/serialization/resources/commons/types/{IntelligentFieldCondition.d.ts → FieldCondition.d.ts} +3 -3
  150. package/serialization/resources/commons/types/{IntelligentFieldCondition.js → FieldCondition.js} +2 -2
  151. package/serialization/resources/commons/types/IntelligentFieldPrecondition.d.ts +2 -2
  152. package/serialization/resources/commons/types/IntelligentFieldPrecondition.js +2 -2
  153. package/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +2 -2
  154. package/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.js +2 -2
  155. package/serialization/resources/commons/types/KeyValueEntryCondition.d.ts +2 -2
  156. package/serialization/resources/commons/types/KeyValueEntryCondition.js +2 -2
  157. package/serialization/resources/commons/types/TextFormat.d.ts +15 -0
  158. package/serialization/resources/commons/types/TextFormat.js +49 -0
  159. package/serialization/resources/commons/types/TextFormatJsonSchema.d.ts +10 -0
  160. package/serialization/resources/commons/types/TextFormatJsonSchema.js +42 -0
  161. package/serialization/resources/commons/types/TextFormatText.d.ts +7 -0
  162. package/serialization/resources/commons/types/TextFormatText.js +39 -0
  163. package/serialization/resources/commons/types/index.d.ts +6 -1
  164. package/serialization/resources/commons/types/index.js +6 -1
  165. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
  166. package/serialization/resources/conversation/types/AskRequest.js +2 -0
  167. package/serialization/resources/conversation/types/AskStreamObjectEvent.d.ts +9 -0
  168. package/serialization/resources/conversation/types/AskStreamObjectEvent.js +40 -0
  169. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  170. package/serialization/resources/conversation/types/ConversationField.js +2 -0
  171. package/serialization/resources/conversation/types/ConversationsCursorSearchRequest.d.ts +11 -0
  172. package/serialization/resources/conversation/types/ConversationsCursorSearchRequest.js +45 -0
  173. package/serialization/resources/conversation/types/ConversationsCursorSearchResponse.d.ts +12 -0
  174. package/serialization/resources/conversation/types/ConversationsCursorSearchResponse.js +46 -0
  175. package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
  176. package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
  177. package/serialization/resources/conversation/types/StreamResponse.d.ts +5 -1
  178. package/serialization/resources/conversation/types/StreamResponse.js +2 -0
  179. package/serialization/resources/conversation/types/index.d.ts +3 -0
  180. package/serialization/resources/conversation/types/index.js +3 -0
  181. package/serialization/resources/index.d.ts +5 -0
  182. package/serialization/resources/index.js +6 -1
  183. package/serialization/resources/intelligentFields/client/index.d.ts +1 -0
  184. package/serialization/resources/intelligentFields/client/index.js +17 -0
  185. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +17 -0
  186. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +49 -0
  187. package/serialization/resources/intelligentFields/client/requests/index.d.ts +1 -0
  188. package/serialization/resources/intelligentFields/client/requests/index.js +5 -0
  189. package/serialization/resources/intelligentFields/index.d.ts +2 -0
  190. package/serialization/resources/intelligentFields/index.js +18 -0
  191. package/serialization/resources/intelligentFields/types/EnumOption.d.ts +10 -0
  192. package/serialization/resources/intelligentFields/types/EnumOption.js +42 -0
  193. package/serialization/resources/intelligentFields/types/IntelligentFieldBase.d.ts +13 -0
  194. package/serialization/resources/intelligentFields/types/IntelligentFieldBase.js +47 -0
  195. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +15 -0
  196. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +47 -0
  197. package/serialization/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +11 -0
  198. package/serialization/resources/intelligentFields/types/IntelligentFieldDetailResponse.js +45 -0
  199. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +11 -0
  200. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +45 -0
  201. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +15 -0
  202. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +49 -0
  203. package/serialization/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +7 -0
  204. package/serialization/resources/intelligentFields/types/IntelligentFieldStatus.js +39 -0
  205. package/serialization/resources/intelligentFields/types/IntelligentFieldType.d.ts +7 -0
  206. package/serialization/resources/intelligentFields/types/IntelligentFieldType.js +39 -0
  207. package/serialization/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.d.ts +10 -0
  208. package/serialization/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.js +42 -0
  209. package/serialization/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.d.ts +12 -0
  210. package/serialization/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.js +44 -0
  211. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +20 -0
  212. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.js +54 -0
  213. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +11 -0
  214. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.js +45 -0
  215. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSortField.d.ts +7 -0
  216. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSortField.js +39 -0
  217. package/serialization/resources/intelligentFields/types/index.d.ts +13 -0
  218. package/serialization/resources/intelligentFields/types/index.js +29 -0
  219. package/serialization/resources/knowledge/types/KnowledgeBaseDocumentDeltas.d.ts +11 -0
  220. package/serialization/resources/knowledge/types/KnowledgeBaseDocumentDeltas.js +43 -0
  221. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  222. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
  223. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +4 -0
  224. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +4 -0
  225. package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgress.d.ts +11 -0
  226. package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgress.js +43 -0
  227. package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.d.ts +13 -0
  228. package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.js +45 -0
  229. package/serialization/resources/knowledge/types/index.d.ts +3 -0
  230. package/serialization/resources/knowledge/types/index.js +3 -0
  231. package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +2 -0
  232. package/serialization/resources/segments/types/SegmentPatchRequest.js +2 -0
  233. package/serialization/resources/segments/types/SegmentRequest.d.ts +2 -0
  234. package/serialization/resources/segments/types/SegmentRequest.js +2 -0
  235. package/serialization/resources/segments/types/SegmentSummary.d.ts +14 -0
  236. package/serialization/resources/segments/types/SegmentSummary.js +47 -0
  237. package/serialization/resources/segments/types/index.d.ts +1 -0
  238. package/serialization/resources/segments/types/index.js +1 -0
  239. package/version.d.ts +1 -1
  240. package/version.js +1 -1
  241. package/api/resources/commons/types/IntelligentFieldCondition.d.ts +0 -37
  242. /package/api/resources/{commons/types/IntelligentFieldCondition.js → charters/types/CharterSummary.js} +0 -0
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface IntelligentFieldDeleteRequest {
6
+ /** The App ID of the intelligent field to delete. If not provided, the ID of the calling app will be used. */
7
+ appId?: string;
8
+ /** The agent variant reference ID of the intelligent field to delete. */
9
+ variantReferenceId?: string;
10
+ /** The App ID of the agent variant reference for the intelligent field to delete. If not provided, the ID of the calling app will be used. */
11
+ variantAppId?: string;
12
+ }
@@ -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 });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface IntelligentFieldGetRequest {
6
+ /** The App ID of the intelligent field to get. If not provided the ID of the calling app will be used. */
7
+ appId?: string;
8
+ }
@@ -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 });
@@ -0,0 +1,26 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * definition: "The priority of the conversation based on the urgency and importance; draw from the content / messages in the conversation; must be one of HIGH, MEDIUM, or LOW."
6
+ * }
7
+ *
8
+ * @example
9
+ * {
10
+ * status: "INACTIVE"
11
+ * }
12
+ */
13
+ export interface IntelligentFieldPatchRequest {
14
+ /** The App ID of the intelligent field to update. If not provided the ID of the calling app will be used. */
15
+ appId?: string;
16
+ /** The definition of the intelligent field. This text will be influential in guiding the LLM to produce the desired results. */
17
+ definition?: string;
18
+ /** The lifecycle state for whether this field is evaluated by workflows. Use INACTIVE to deactivate. */
19
+ status?: MavenAGI.IntelligentFieldStatus;
20
+ /** A plain text description of the intelligent field. */
21
+ description?: string;
22
+ /** Updated enum options for select/multi-select fields. Omit to leave unchanged. The new list must be a superset of the existing options (add-only; removals are rejected). */
23
+ enumOptions?: MavenAGI.EnumOption[];
24
+ /** ID of the agent variant that this field belongs to, if applicable */
25
+ variantId?: MavenAGI.EntityIdBase;
26
+ }
@@ -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 });
@@ -0,0 +1,3 @@
1
+ export type { IntelligentFieldDeleteRequest } from "./IntelligentFieldDeleteRequest";
2
+ export type { IntelligentFieldGetRequest } from "./IntelligentFieldGetRequest";
3
+ export type { IntelligentFieldPatchRequest } from "./IntelligentFieldPatchRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { IntelligentFieldsClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.IntelligentFieldsClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "IntelligentFieldsClient", { enumerable: true, get: function () { return Client_1.IntelligentFieldsClient; } });
21
+ __exportStar(require("./client/index"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./types";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Option for STRING/MULTILINE/NUMBER fields when a finite set is desired
3
+ */
4
+ export interface EnumOption {
5
+ /** The value of the option */
6
+ value: string;
7
+ /** Display label for the option */
8
+ label?: string;
9
+ }
@@ -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 });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface IntelligentFieldBase extends MavenAGI.IntelligentFieldCore {
3
+ /** Target entity type for evaluation. Only CONVERSATION is supported at this time. The backend will return an error for other types. */
4
+ entityType: MavenAGI.EntityType;
5
+ /** ID of the agent variant that created this field, if applicable */
6
+ variantId?: MavenAGI.EntityIdWithoutAgent;
7
+ }
@@ -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 });
@@ -0,0 +1,28 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * The minimal set of fields describing an intelligent field's content, shared by both the
4
+ * field's own resource representation (IntelligentFieldBase) and a single staged edit's
5
+ * payload (IntelligentFieldPayload) -- kept as one type so the two don't drift out of sync on
6
+ * what "the same" field content looks like.
7
+ */
8
+ export interface IntelligentFieldCore {
9
+ /** Display name for the intelligent field */
10
+ name: string;
11
+ /** A plain text description of the intelligent field. */
12
+ description?: string;
13
+ /**
14
+ * Result type hint used for schema generation, UI, and validation.
15
+ *
16
+ * - STRING / MULTILINE: single string value
17
+ * - MULTI_SELECT: multiple values
18
+ * - BOOLEAN: boolean value
19
+ * - NUMBER: numeric value
20
+ *
21
+ * Note: for single select, use STRING/NUMBER with a list of enumOptions.
22
+ */
23
+ validationType: MavenAGI.IntelligentFieldType;
24
+ /** Definition used by the LLM when generating this field's value */
25
+ definition: string;
26
+ /** Optional enum options for STRING/MULTILINE/NUMBER when a finite set is desired */
27
+ enumOptions?: MavenAGI.EnumOption[];
28
+ }
@@ -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 });
@@ -0,0 +1,36 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * fieldId: {
6
+ * referenceId: "ticket-priority",
7
+ * appId: "zendesk",
8
+ * organizationId: "acme",
9
+ * agentId: "support",
10
+ * type: MavenAGI.EntityType.IntelligentField
11
+ * },
12
+ * name: "Ticket Priority",
13
+ * description: "The priority of the conversation based on urgency",
14
+ * status: MavenAGI.IntelligentFieldStatus.Inactive,
15
+ * entityType: MavenAGI.EntityType.Conversation,
16
+ * validationType: MavenAGI.IntelligentFieldType.String,
17
+ * enumOptions: [{
18
+ * value: "HIGH",
19
+ * label: "High Priority"
20
+ * }, {
21
+ * value: "MEDIUM",
22
+ * label: "Medium Priority"
23
+ * }, {
24
+ * value: "LOW",
25
+ * label: "Low Priority"
26
+ * }],
27
+ * definition: "The priority of the conversation based on the urgency and importance; draw from the content / messages in the conversation; must be one of HIGH, MEDIUM, or LOW.",
28
+ * createdAt: new Date("2024-01-15T10:30:00.000Z"),
29
+ * updatedAt: new Date("2024-01-15T10:30:00.000Z"),
30
+ * referencingCharters: []
31
+ * }
32
+ */
33
+ export interface IntelligentFieldDetailResponse extends MavenAGI.IntelligentFieldResponse {
34
+ /** Charters whose attached segment precondition references this intelligent field. */
35
+ referencingCharters?: MavenAGI.CharterSummary[];
36
+ }
@@ -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 });
@@ -0,0 +1,28 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * fieldId: {
6
+ * referenceId: "ticket-priority"
7
+ * },
8
+ * name: "Ticket Priority",
9
+ * description: "The priority of the conversation based on urgency",
10
+ * entityType: MavenAGI.EntityType.Conversation,
11
+ * validationType: MavenAGI.IntelligentFieldType.String,
12
+ * enumOptions: [{
13
+ * value: "HIGH",
14
+ * label: "High Priority"
15
+ * }, {
16
+ * value: "MEDIUM",
17
+ * label: "Medium Priority"
18
+ * }, {
19
+ * value: "LOW",
20
+ * label: "Low Priority"
21
+ * }],
22
+ * definition: "The priority of the conversation based on the urgency and importance; draw from the content / messages in the conversation; must be one of HIGH, MEDIUM, or LOW."
23
+ * }
24
+ */
25
+ export interface IntelligentFieldRequest extends MavenAGI.IntelligentFieldBase {
26
+ /** ID that uniquely identifies this intelligent field */
27
+ fieldId: MavenAGI.EntityIdBase;
28
+ }
@@ -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 });
@@ -0,0 +1,41 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * fieldId: {
6
+ * referenceId: "ticket-priority",
7
+ * appId: "zendesk",
8
+ * organizationId: "acme",
9
+ * agentId: "support",
10
+ * type: MavenAGI.EntityType.IntelligentField
11
+ * },
12
+ * name: "Ticket Priority",
13
+ * description: "The priority of the conversation based on urgency",
14
+ * status: MavenAGI.IntelligentFieldStatus.Inactive,
15
+ * entityType: MavenAGI.EntityType.Conversation,
16
+ * validationType: MavenAGI.IntelligentFieldType.String,
17
+ * enumOptions: [{
18
+ * value: "HIGH",
19
+ * label: "High Priority"
20
+ * }, {
21
+ * value: "MEDIUM",
22
+ * label: "Medium Priority"
23
+ * }, {
24
+ * value: "LOW",
25
+ * label: "Low Priority"
26
+ * }],
27
+ * definition: "The priority of the conversation based on the urgency and importance; draw from the content / messages in the conversation; must be one of HIGH, MEDIUM, or LOW.",
28
+ * createdAt: new Date("2024-01-15T10:30:00.000Z"),
29
+ * updatedAt: new Date("2024-01-15T10:30:00.000Z")
30
+ * }
31
+ */
32
+ export interface IntelligentFieldResponse extends MavenAGI.IntelligentFieldBase {
33
+ /** ID that uniquely identifies this intelligent field */
34
+ fieldId: MavenAGI.EntityId;
35
+ /** Lifecycle state for whether this field is evaluated by workflows. Defaults to INACTIVE on creation. Use PATCH to activate. */
36
+ status: MavenAGI.IntelligentFieldStatus;
37
+ /** The date and time the intelligent field was created */
38
+ createdAt?: Date;
39
+ /** The date and time the intelligent field was last updated */
40
+ updatedAt?: Date;
41
+ }
@@ -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 });
@@ -0,0 +1,7 @@
1
+ /** Lifecycle state for whether this field is evaluated by workflows */
2
+ export declare const IntelligentFieldStatus: {
3
+ readonly Active: "ACTIVE";
4
+ readonly Inactive: "INACTIVE";
5
+ readonly Deleted: "DELETED";
6
+ };
7
+ export type IntelligentFieldStatus = (typeof IntelligentFieldStatus)[keyof typeof IntelligentFieldStatus] | string;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IntelligentFieldStatus = void 0;
5
+ /** Lifecycle state for whether this field is evaluated by workflows */
6
+ exports.IntelligentFieldStatus = {
7
+ Active: "ACTIVE",
8
+ Inactive: "INACTIVE",
9
+ Deleted: "DELETED",
10
+ };
@@ -0,0 +1,9 @@
1
+ /** Result type hint used for schema generation, UI, and validation */
2
+ export declare const IntelligentFieldType: {
3
+ readonly String: "STRING";
4
+ readonly Multiline: "MULTILINE";
5
+ readonly MultiSelect: "MULTI_SELECT";
6
+ readonly Boolean: "BOOLEAN";
7
+ readonly Number: "NUMBER";
8
+ };
9
+ export type IntelligentFieldType = (typeof IntelligentFieldType)[keyof typeof IntelligentFieldType] | string;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IntelligentFieldType = void 0;
5
+ /** Result type hint used for schema generation, UI, and validation */
6
+ exports.IntelligentFieldType = {
7
+ String: "STRING",
8
+ Multiline: "MULTILINE",
9
+ MultiSelect: "MULTI_SELECT",
10
+ Boolean: "BOOLEAN",
11
+ Number: "NUMBER",
12
+ };
@@ -0,0 +1,8 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Filter by properties of the target entity
4
+ */
5
+ export interface IntelligentFieldValueEntityFilter {
6
+ /** Filter to specific target entities by their entity IDs. OR semantics. Maximum 100 IDs. */
7
+ entityIds?: MavenAGI.EntityId[];
8
+ }
@@ -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 });
@@ -0,0 +1,10 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Filter by properties of the intelligent field definition
4
+ */
5
+ export interface IntelligentFieldValueFieldFilter {
6
+ /** Filter to specific fields by their entity IDs. OR semantics. Maximum 100 IDs. */
7
+ fieldIds?: MavenAGI.EntityId[];
8
+ /** Filter by field validation type (STRING, MULTILINE, MULTI_SELECT, BOOLEAN, NUMBER). OR semantics. */
9
+ validationTypes?: MavenAGI.IntelligentFieldType[];
10
+ }
@@ -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 });
@@ -0,0 +1,17 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface IntelligentFieldValueSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
3
+ /** Filter by properties of the intelligent field definition. If not provided, returns values for all fields. */
4
+ fieldFilter?: MavenAGI.IntelligentFieldValueFieldFilter;
5
+ /** Filter by properties of the target entity. If not provided, returns values across all entities. */
6
+ entityFilter?: MavenAGI.IntelligentFieldValueEntityFilter;
7
+ /** Filter values computed on or after this timestamp */
8
+ createdAfter?: Date;
9
+ /** Filter values computed on or before this timestamp */
10
+ createdBefore?: Date;
11
+ /** Whether to include results where the LLM could not determine a value (value is null). Defaults to false. */
12
+ includeUnknownValues?: boolean;
13
+ /** Field to sort by. Defaults to CREATED_AT. */
14
+ sort?: MavenAGI.IntelligentFieldValueSortField;
15
+ /** Filter to values generated by a specific agent variant. If not provided, returns values from all variants. */
16
+ variantId?: MavenAGI.EntityIdWithoutAgent;
17
+ }
@@ -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 });
@@ -0,0 +1,35 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * values: [{
6
+ * fieldId: {
7
+ * referenceId: "ticket-priority",
8
+ * appId: "zendesk",
9
+ * organizationId: "acme",
10
+ * agentId: "support",
11
+ * type: MavenAGI.EntityType.IntelligentField
12
+ * },
13
+ * name: "Ticket Priority",
14
+ * entityId: {
15
+ * referenceId: "ticket-123",
16
+ * appId: "zendesk",
17
+ * organizationId: "acme",
18
+ * agentId: "support",
19
+ * type: MavenAGI.EntityType.Conversation
20
+ * },
21
+ * value: "HIGH",
22
+ * confidence: 0.95,
23
+ * rationale: "The conversation mentions a production outage affecting multiple customers, indicating high urgency and impact.",
24
+ * createdAt: new Date("2024-01-15T10:30:00.000Z")
25
+ * }],
26
+ * totalElements: 1,
27
+ * totalPages: 1,
28
+ * size: 20,
29
+ * number: 0
30
+ * }
31
+ */
32
+ export interface IntelligentFieldValueSearchResponse extends MavenAGI.Page {
33
+ /** Field values matching the search criteria, sorted by specified field */
34
+ values: MavenAGI.IntelligentFieldValueResponse[];
35
+ }
@@ -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 });
@@ -0,0 +1,5 @@
1
+ /** Fields that can be used to sort intelligent field value search results */
2
+ export declare const IntelligentFieldValueSortField: {
3
+ readonly CreatedAt: "CREATED_AT";
4
+ };
5
+ export type IntelligentFieldValueSortField = (typeof IntelligentFieldValueSortField)[keyof typeof IntelligentFieldValueSortField] | string;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IntelligentFieldValueSortField = void 0;
5
+ /** Fields that can be used to sort intelligent field value search results */
6
+ exports.IntelligentFieldValueSortField = {
7
+ CreatedAt: "CREATED_AT",
8
+ };
@@ -0,0 +1,13 @@
1
+ export * from "./EnumOption";
2
+ export * from "./IntelligentFieldBase";
3
+ export * from "./IntelligentFieldCore";
4
+ export * from "./IntelligentFieldDetailResponse";
5
+ export * from "./IntelligentFieldRequest";
6
+ export * from "./IntelligentFieldResponse";
7
+ export * from "./IntelligentFieldStatus";
8
+ export * from "./IntelligentFieldType";
9
+ export * from "./IntelligentFieldValueEntityFilter";
10
+ export * from "./IntelligentFieldValueFieldFilter";
11
+ export * from "./IntelligentFieldValueSearchRequest";
12
+ export * from "./IntelligentFieldValueSearchResponse";
13
+ export * from "./IntelligentFieldValueSortField";
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./EnumOption"), exports);
18
+ __exportStar(require("./IntelligentFieldBase"), exports);
19
+ __exportStar(require("./IntelligentFieldCore"), exports);
20
+ __exportStar(require("./IntelligentFieldDetailResponse"), exports);
21
+ __exportStar(require("./IntelligentFieldRequest"), exports);
22
+ __exportStar(require("./IntelligentFieldResponse"), exports);
23
+ __exportStar(require("./IntelligentFieldStatus"), exports);
24
+ __exportStar(require("./IntelligentFieldType"), exports);
25
+ __exportStar(require("./IntelligentFieldValueEntityFilter"), exports);
26
+ __exportStar(require("./IntelligentFieldValueFieldFilter"), exports);
27
+ __exportStar(require("./IntelligentFieldValueSearchRequest"), exports);
28
+ __exportStar(require("./IntelligentFieldValueSearchResponse"), exports);
29
+ __exportStar(require("./IntelligentFieldValueSortField"), exports);
@@ -209,6 +209,39 @@ export declare class KnowledgeClient {
209
209
  */
210
210
  finalizeKnowledgeBaseVersion(knowledgeBaseReferenceId: string, request: MavenAGI.FinalizeKnowledgeBaseVersionRequest, requestOptions?: KnowledgeClient.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseVersion>;
211
211
  private __finalizeKnowledgeBaseVersion;
212
+ /**
213
+ * Report refresh progress for an in-progress knowledge base version.
214
+ *
215
+ * Progress is advisory and shown to users while a refresh runs. Each call replaces the
216
+ * version's entire progress state - no history is kept, only the most recent value is
217
+ * retained. Will throw an exception if the target version is not in progress.
218
+ *
219
+ * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to report progress for. All other entity ID fields are inferred from the request.
220
+ * @param {MavenAGI.KnowledgeBaseVersionProgressRequest} request
221
+ * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
222
+ *
223
+ * @throws {@link MavenAGI.NotFoundError}
224
+ * @throws {@link MavenAGI.BadRequestError}
225
+ * @throws {@link MavenAGI.PayloadTooLargeError}
226
+ * @throws {@link MavenAGI.TooManyRequestsError}
227
+ * @throws {@link MavenAGI.ServerError}
228
+ *
229
+ * @example
230
+ * await client.knowledge.updateKnowledgeBaseVersionProgress("help-center", {
231
+ * versionId: {
232
+ * type: "KNOWLEDGE_BASE_VERSION",
233
+ * referenceId: "versionId",
234
+ * appId: "maven"
235
+ * },
236
+ * progress: {
237
+ * message: "Fetching articles from the help center",
238
+ * completedCount: 120,
239
+ * totalCount: 500
240
+ * }
241
+ * })
242
+ */
243
+ updateKnowledgeBaseVersionProgress(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeBaseVersionProgressRequest, requestOptions?: KnowledgeClient.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseVersion>;
244
+ private __updateKnowledgeBaseVersionProgress;
212
245
  /**
213
246
  * List all active versions for a knowledge base. Returns the most recent versions first.
214
247
  *