mavenagi 1.2.55 → 1.2.57

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 (256) 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/BaseConversationResponse.d.ts +5 -0
  21. package/api/resources/commons/types/BotObjectResponse.d.ts +2 -4
  22. package/api/resources/commons/types/ConversationExecutedActionPrecondition.d.ts +13 -0
  23. package/api/resources/commons/types/ConversationMode.d.ts +10 -0
  24. package/api/resources/commons/types/ConversationMode.js +13 -0
  25. package/api/resources/commons/types/ConversationModePrecondition.d.ts +10 -0
  26. package/api/resources/commons/types/ConversationModePrecondition.js +3 -0
  27. package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
  28. package/api/resources/commons/types/ConversationPreconditionResponse.d.ts +4 -1
  29. package/api/resources/commons/types/ConversationResponse.d.ts +1 -0
  30. package/api/resources/commons/types/FieldCondition.d.ts +45 -0
  31. package/api/resources/commons/types/FieldCondition.js +3 -0
  32. package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +1 -1
  33. package/api/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +1 -1
  34. package/api/resources/commons/types/KeyValueEntryCondition.d.ts +13 -0
  35. package/api/resources/commons/types/KeyValueEntryCondition.js +3 -0
  36. package/api/resources/commons/types/ObjectCondition.d.ts +10 -0
  37. package/api/resources/commons/types/ObjectCondition.js +3 -0
  38. package/api/resources/commons/types/TextFormat.d.ts +13 -0
  39. package/api/resources/commons/types/TextFormat.js +3 -0
  40. package/api/resources/commons/types/TextFormatJsonSchema.d.ts +35 -0
  41. package/api/resources/commons/types/TextFormatJsonSchema.js +3 -0
  42. package/api/resources/commons/types/TextFormatText.d.ts +4 -0
  43. package/api/resources/commons/types/TextFormatText.js +3 -0
  44. package/api/resources/commons/types/UniversalCondition.d.ts +3 -3
  45. package/api/resources/commons/types/index.d.ts +8 -1
  46. package/api/resources/commons/types/index.js +8 -1
  47. package/api/resources/conversation/types/AskRequest.d.ts +59 -0
  48. package/api/resources/conversation/types/AskStreamObjectEvent.d.ts +7 -0
  49. package/api/resources/conversation/types/AskStreamObjectEvent.js +3 -0
  50. package/api/resources/conversation/types/ConversationField.d.ts +8 -0
  51. package/api/resources/conversation/types/ConversationField.js +8 -0
  52. package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +5 -0
  53. package/api/resources/conversation/types/NumericConversationField.d.ts +4 -0
  54. package/api/resources/conversation/types/NumericConversationField.js +4 -0
  55. package/api/resources/conversation/types/StreamResponse.d.ts +4 -1
  56. package/api/resources/conversation/types/index.d.ts +1 -0
  57. package/api/resources/conversation/types/index.js +1 -0
  58. package/api/resources/index.d.ts +5 -0
  59. package/api/resources/index.js +6 -1
  60. package/api/resources/intelligentFields/client/Client.d.ts +156 -0
  61. package/api/resources/intelligentFields/client/Client.js +627 -0
  62. package/api/resources/intelligentFields/client/index.d.ts +1 -0
  63. package/api/resources/intelligentFields/client/index.js +17 -0
  64. package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +12 -0
  65. package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.js +3 -0
  66. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +8 -0
  67. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.js +3 -0
  68. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +26 -0
  69. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +3 -0
  70. package/api/resources/intelligentFields/client/requests/index.d.ts +3 -0
  71. package/api/resources/intelligentFields/client/requests/index.js +2 -0
  72. package/api/resources/intelligentFields/exports.d.ts +2 -0
  73. package/api/resources/intelligentFields/exports.js +21 -0
  74. package/api/resources/intelligentFields/index.d.ts +2 -0
  75. package/api/resources/intelligentFields/index.js +18 -0
  76. package/api/resources/intelligentFields/types/EnumOption.d.ts +9 -0
  77. package/api/resources/intelligentFields/types/EnumOption.js +3 -0
  78. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +7 -0
  79. package/api/resources/intelligentFields/types/IntelligentFieldBase.js +3 -0
  80. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +28 -0
  81. package/api/resources/intelligentFields/types/IntelligentFieldCore.js +3 -0
  82. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +36 -0
  83. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.js +3 -0
  84. package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +28 -0
  85. package/api/resources/intelligentFields/types/IntelligentFieldRequest.js +3 -0
  86. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +41 -0
  87. package/api/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -0
  88. package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +7 -0
  89. package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +10 -0
  90. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +9 -0
  91. package/api/resources/intelligentFields/types/IntelligentFieldType.js +12 -0
  92. package/api/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.d.ts +8 -0
  93. package/api/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.js +3 -0
  94. package/api/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.d.ts +10 -0
  95. package/api/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.js +3 -0
  96. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +17 -0
  97. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.js +3 -0
  98. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +35 -0
  99. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.js +3 -0
  100. package/api/resources/intelligentFields/types/IntelligentFieldValueSortField.d.ts +5 -0
  101. package/api/resources/intelligentFields/types/IntelligentFieldValueSortField.js +8 -0
  102. package/api/resources/intelligentFields/types/index.d.ts +13 -0
  103. package/api/resources/intelligentFields/types/index.js +29 -0
  104. package/api/resources/knowledge/client/Client.d.ts +39 -3
  105. package/api/resources/knowledge/client/Client.js +123 -3
  106. package/api/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.d.ts +2 -0
  107. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +5 -0
  108. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +25 -0
  109. package/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +5 -1
  110. package/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +5 -1
  111. package/api/resources/knowledge/types/KnowledgeBaseVersionProgress.d.ts +29 -0
  112. package/api/resources/knowledge/types/KnowledgeBaseVersionProgress.js +3 -0
  113. package/api/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.d.ts +24 -0
  114. package/api/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.js +3 -0
  115. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +3 -0
  116. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +3 -0
  117. package/api/resources/knowledge/types/index.d.ts +2 -0
  118. package/api/resources/knowledge/types/index.js +2 -0
  119. package/api/resources/segments/client/Client.js +3 -1
  120. package/api/resources/segments/client/requests/SegmentDeleteRequest.d.ts +12 -0
  121. package/api/resources/segments/types/SegmentPatchRequest.d.ts +8 -0
  122. package/api/resources/segments/types/SegmentRequest.d.ts +8 -0
  123. package/api/resources/segments/types/SegmentSummary.d.ts +14 -0
  124. package/api/resources/segments/types/SegmentSummary.js +3 -0
  125. package/api/resources/segments/types/index.d.ts +1 -0
  126. package/api/resources/segments/types/index.js +1 -0
  127. package/package.json +1 -1
  128. package/reference.md +482 -3
  129. package/serialization/resources/analytics/types/ConversationBasicMetric.d.ts +2 -0
  130. package/serialization/resources/analytics/types/ConversationBasicMetric.js +2 -0
  131. package/serialization/resources/analytics/types/ConversationGroupBy.d.ts +2 -0
  132. package/serialization/resources/analytics/types/ConversationGroupBy.js +2 -0
  133. package/serialization/resources/analytics/types/ConversationNumericMetric.d.ts +2 -0
  134. package/serialization/resources/analytics/types/ConversationNumericMetric.js +2 -0
  135. package/serialization/resources/charters/index.d.ts +1 -0
  136. package/serialization/resources/charters/index.js +17 -0
  137. package/serialization/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +7 -0
  138. package/serialization/resources/charters/types/CharterChildrenExclusionPolicy.js +39 -0
  139. package/serialization/resources/charters/types/CharterStatus.d.ts +7 -0
  140. package/serialization/resources/charters/types/CharterStatus.js +39 -0
  141. package/serialization/resources/charters/types/CharterSummary.d.ts +22 -0
  142. package/serialization/resources/charters/types/CharterSummary.js +54 -0
  143. package/serialization/resources/charters/types/CharterType.d.ts +7 -0
  144. package/serialization/resources/charters/types/CharterType.js +39 -0
  145. package/serialization/resources/charters/types/index.d.ts +4 -0
  146. package/serialization/resources/charters/types/index.js +20 -0
  147. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
  148. package/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
  149. package/serialization/resources/commons/types/BotObjectResponse.d.ts +0 -1
  150. package/serialization/resources/commons/types/BotObjectResponse.js +0 -1
  151. package/serialization/resources/commons/types/ConversationExecutedActionPrecondition.d.ts +2 -0
  152. package/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +2 -0
  153. package/serialization/resources/commons/types/ConversationMode.d.ts +7 -0
  154. package/serialization/resources/commons/types/ConversationMode.js +39 -0
  155. package/serialization/resources/commons/types/ConversationModePrecondition.d.ts +11 -0
  156. package/serialization/resources/commons/types/ConversationModePrecondition.js +45 -0
  157. package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
  158. package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
  159. package/serialization/resources/commons/types/ConversationPreconditionResponse.d.ts +5 -1
  160. package/serialization/resources/commons/types/ConversationPreconditionResponse.js +2 -0
  161. package/serialization/resources/commons/types/{IntelligentFieldCondition.d.ts → FieldCondition.d.ts} +3 -3
  162. package/serialization/resources/commons/types/{IntelligentFieldCondition.js → FieldCondition.js} +2 -2
  163. package/serialization/resources/commons/types/IntelligentFieldPrecondition.d.ts +2 -2
  164. package/serialization/resources/commons/types/IntelligentFieldPrecondition.js +2 -2
  165. package/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +2 -2
  166. package/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.js +2 -2
  167. package/serialization/resources/commons/types/KeyValueEntryCondition.d.ts +11 -0
  168. package/serialization/resources/commons/types/KeyValueEntryCondition.js +43 -0
  169. package/serialization/resources/commons/types/ObjectCondition.d.ts +11 -0
  170. package/serialization/resources/commons/types/ObjectCondition.js +47 -0
  171. package/serialization/resources/commons/types/TextFormat.d.ts +15 -0
  172. package/serialization/resources/commons/types/TextFormat.js +49 -0
  173. package/serialization/resources/commons/types/TextFormatJsonSchema.d.ts +10 -0
  174. package/serialization/resources/commons/types/TextFormatJsonSchema.js +42 -0
  175. package/serialization/resources/commons/types/TextFormatText.d.ts +7 -0
  176. package/serialization/resources/commons/types/TextFormatText.js +39 -0
  177. package/serialization/resources/commons/types/index.d.ts +8 -1
  178. package/serialization/resources/commons/types/index.js +8 -1
  179. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
  180. package/serialization/resources/conversation/types/AskRequest.js +2 -0
  181. package/serialization/resources/conversation/types/AskStreamObjectEvent.d.ts +9 -0
  182. package/serialization/resources/conversation/types/AskStreamObjectEvent.js +40 -0
  183. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  184. package/serialization/resources/conversation/types/ConversationField.js +2 -0
  185. package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
  186. package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
  187. package/serialization/resources/conversation/types/StreamResponse.d.ts +5 -1
  188. package/serialization/resources/conversation/types/StreamResponse.js +2 -0
  189. package/serialization/resources/conversation/types/index.d.ts +1 -0
  190. package/serialization/resources/conversation/types/index.js +1 -0
  191. package/serialization/resources/index.d.ts +5 -0
  192. package/serialization/resources/index.js +6 -1
  193. package/serialization/resources/intelligentFields/client/index.d.ts +1 -0
  194. package/serialization/resources/intelligentFields/client/index.js +17 -0
  195. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +17 -0
  196. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +49 -0
  197. package/serialization/resources/intelligentFields/client/requests/index.d.ts +1 -0
  198. package/serialization/resources/intelligentFields/client/requests/index.js +5 -0
  199. package/serialization/resources/intelligentFields/index.d.ts +2 -0
  200. package/serialization/resources/intelligentFields/index.js +18 -0
  201. package/serialization/resources/intelligentFields/types/EnumOption.d.ts +10 -0
  202. package/serialization/resources/intelligentFields/types/EnumOption.js +42 -0
  203. package/serialization/resources/intelligentFields/types/IntelligentFieldBase.d.ts +13 -0
  204. package/serialization/resources/intelligentFields/types/IntelligentFieldBase.js +47 -0
  205. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +15 -0
  206. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +47 -0
  207. package/serialization/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +11 -0
  208. package/serialization/resources/intelligentFields/types/IntelligentFieldDetailResponse.js +45 -0
  209. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +11 -0
  210. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +45 -0
  211. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +15 -0
  212. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +49 -0
  213. package/serialization/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +7 -0
  214. package/serialization/resources/intelligentFields/types/IntelligentFieldStatus.js +39 -0
  215. package/serialization/resources/intelligentFields/types/IntelligentFieldType.d.ts +7 -0
  216. package/serialization/resources/intelligentFields/types/IntelligentFieldType.js +39 -0
  217. package/serialization/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.d.ts +10 -0
  218. package/serialization/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.js +42 -0
  219. package/serialization/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.d.ts +12 -0
  220. package/serialization/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.js +44 -0
  221. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +20 -0
  222. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.js +54 -0
  223. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +11 -0
  224. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.js +45 -0
  225. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSortField.d.ts +7 -0
  226. package/serialization/resources/intelligentFields/types/IntelligentFieldValueSortField.js +39 -0
  227. package/serialization/resources/intelligentFields/types/index.d.ts +13 -0
  228. package/serialization/resources/intelligentFields/types/index.js +29 -0
  229. package/serialization/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.d.ts +1 -0
  230. package/serialization/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.js +1 -0
  231. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  232. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
  233. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  234. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
  235. package/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +1 -1
  236. package/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +1 -1
  237. package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgress.d.ts +11 -0
  238. package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgress.js +43 -0
  239. package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.d.ts +13 -0
  240. package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.js +45 -0
  241. package/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +1 -1
  242. package/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.js +1 -1
  243. package/serialization/resources/knowledge/types/index.d.ts +2 -0
  244. package/serialization/resources/knowledge/types/index.js +2 -0
  245. package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +2 -0
  246. package/serialization/resources/segments/types/SegmentPatchRequest.js +2 -0
  247. package/serialization/resources/segments/types/SegmentRequest.d.ts +2 -0
  248. package/serialization/resources/segments/types/SegmentRequest.js +2 -0
  249. package/serialization/resources/segments/types/SegmentSummary.d.ts +14 -0
  250. package/serialization/resources/segments/types/SegmentSummary.js +47 -0
  251. package/serialization/resources/segments/types/index.d.ts +1 -0
  252. package/serialization/resources/segments/types/index.js +1 -0
  253. package/version.d.ts +1 -1
  254. package/version.js +1 -1
  255. package/api/resources/commons/types/IntelligentFieldCondition.d.ts +0 -37
  256. /package/api/resources/{commons/types/IntelligentFieldCondition.js → charters/types/CharterSummary.js} +0 -0
package/BaseClient.js CHANGED
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "mavenagi",
46
- "X-Fern-SDK-Version": "1.2.55",
47
- "User-Agent": "mavenagi/1.2.55",
46
+ "X-Fern-SDK-Version": "1.2.57",
47
+ "User-Agent": "mavenagi/1.2.57",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
package/Client.d.ts CHANGED
@@ -8,6 +8,7 @@ import { CustomersClient } from "./api/resources/customers/client/Client";
8
8
  import { EventsClient } from "./api/resources/events/client/Client";
9
9
  import { InboxClient } from "./api/resources/inbox/client/Client";
10
10
  import { IntegrationsClient } from "./api/resources/integrations/client/Client";
11
+ import { IntelligentFieldsClient } from "./api/resources/intelligentFields/client/Client";
11
12
  import { KnowledgeClient } from "./api/resources/knowledge/client/Client";
12
13
  import { OrganizationsClient } from "./api/resources/organizations/client/Client";
13
14
  import { SegmentsClient } from "./api/resources/segments/client/Client";
@@ -36,6 +37,7 @@ export declare class MavenAGIClient {
36
37
  protected _events: EventsClient | undefined;
37
38
  protected _inbox: InboxClient | undefined;
38
39
  protected _integrations: IntegrationsClient | undefined;
40
+ protected _intelligentFields: IntelligentFieldsClient | undefined;
39
41
  protected _knowledge: KnowledgeClient | undefined;
40
42
  protected _organizations: OrganizationsClient | undefined;
41
43
  protected _segments: SegmentsClient | undefined;
@@ -55,6 +57,7 @@ export declare class MavenAGIClient {
55
57
  get events(): EventsClient;
56
58
  get inbox(): InboxClient;
57
59
  get integrations(): IntegrationsClient;
60
+ get intelligentFields(): IntelligentFieldsClient;
58
61
  get knowledge(): KnowledgeClient;
59
62
  get organizations(): OrganizationsClient;
60
63
  get segments(): SegmentsClient;
package/Client.js CHANGED
@@ -54,14 +54,15 @@ const Client_7 = require("./api/resources/customers/client/Client");
54
54
  const Client_8 = require("./api/resources/events/client/Client");
55
55
  const Client_9 = require("./api/resources/inbox/client/Client");
56
56
  const Client_10 = require("./api/resources/integrations/client/Client");
57
- const Client_11 = require("./api/resources/knowledge/client/Client");
58
- const Client_12 = require("./api/resources/organizations/client/Client");
59
- const Client_13 = require("./api/resources/segments/client/Client");
60
- const Client_14 = require("./api/resources/translations/client/Client");
61
- const Client_15 = require("./api/resources/triggers/client/Client");
62
- const Client_16 = require("./api/resources/users/client/Client");
63
- const Client_17 = require("./api/resources/voice/client/Client");
64
- const Client_18 = require("./api/resources/voiceConversations/client/Client");
57
+ const Client_11 = require("./api/resources/intelligentFields/client/Client");
58
+ const Client_12 = require("./api/resources/knowledge/client/Client");
59
+ const Client_13 = require("./api/resources/organizations/client/Client");
60
+ const Client_14 = require("./api/resources/segments/client/Client");
61
+ const Client_15 = require("./api/resources/translations/client/Client");
62
+ const Client_16 = require("./api/resources/triggers/client/Client");
63
+ const Client_17 = require("./api/resources/users/client/Client");
64
+ const Client_18 = require("./api/resources/voice/client/Client");
65
+ const Client_19 = require("./api/resources/voiceConversations/client/Client");
65
66
  const BaseClient_1 = require("./BaseClient");
66
67
  const core = __importStar(require("./core"));
67
68
  class MavenAGIClient {
@@ -108,37 +109,41 @@ class MavenAGIClient {
108
109
  var _a;
109
110
  return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_10.IntegrationsClient(this._options)));
110
111
  }
112
+ get intelligentFields() {
113
+ var _a;
114
+ return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new Client_11.IntelligentFieldsClient(this._options)));
115
+ }
111
116
  get knowledge() {
112
117
  var _a;
113
- return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_11.KnowledgeClient(this._options)));
118
+ return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_12.KnowledgeClient(this._options)));
114
119
  }
115
120
  get organizations() {
116
121
  var _a;
117
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_12.OrganizationsClient(this._options)));
122
+ return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_13.OrganizationsClient(this._options)));
118
123
  }
119
124
  get segments() {
120
125
  var _a;
121
- return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_13.SegmentsClient(this._options)));
126
+ return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_14.SegmentsClient(this._options)));
122
127
  }
123
128
  get translations() {
124
129
  var _a;
125
- return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_14.TranslationsClient(this._options)));
130
+ return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_15.TranslationsClient(this._options)));
126
131
  }
127
132
  get triggers() {
128
133
  var _a;
129
- return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_15.TriggersClient(this._options)));
134
+ return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_16.TriggersClient(this._options)));
130
135
  }
131
136
  get users() {
132
137
  var _a;
133
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_16.UsersClient(this._options)));
138
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.UsersClient(this._options)));
134
139
  }
135
140
  get voiceConversations() {
136
141
  var _a;
137
- return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_18.VoiceConversationsClient(this._options)));
142
+ return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_19.VoiceConversationsClient(this._options)));
138
143
  }
139
144
  get voice() {
140
145
  var _a;
141
- return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_17.VoiceClient(this._options)));
146
+ return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_18.VoiceClient(this._options)));
142
147
  }
143
148
  /**
144
149
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -2,4 +2,9 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface ConversationBasicMetric {
3
3
  /** Field to apply the metric to. */
4
4
  targetField: MavenAGI.ConversationField;
5
+ /**
6
+ * Fully specified ID of the intelligent field. Required when `targetField` is
7
+ * `IntelligentField`, and ignored otherwise.
8
+ */
9
+ intelligentFieldId?: MavenAGI.EntityId;
5
10
  }
@@ -2,6 +2,14 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface ConversationGroupBy extends MavenAGI.GroupByBase {
3
3
  /** Field used for data grouping. */
4
4
  field: MavenAGI.ConversationField;
5
- /** Numeric ranges for grouping data into predefined buckets. Applies only to numeric fields. */
5
+ /**
6
+ * Fully specified ID of the intelligent field. Required when `field` is
7
+ * `IntelligentField`, and ignored otherwise.
8
+ */
9
+ intelligentFieldId?: MavenAGI.EntityId;
10
+ /**
11
+ * Numeric ranges for grouping data into predefined buckets.
12
+ * Applies only to numeric fields and to NUMBER-validated intelligent fields.
13
+ */
6
14
  ranges?: MavenAGI.Range[];
7
15
  }
@@ -2,4 +2,9 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface ConversationNumericMetric {
3
3
  /** Numeric field to apply the metric to. */
4
4
  targetField: MavenAGI.NumericConversationField;
5
+ /**
6
+ * Fully specified ID of the intelligent field. Required when `targetField` is
7
+ * `IntelligentField`, and ignored otherwise.
8
+ */
9
+ intelligentFieldId?: MavenAGI.EntityId;
5
10
  }
@@ -38,6 +38,12 @@ export interface ConversationTableRequest extends MavenAGI.ConversationAnalytics
38
38
  * If multiple fields are provided, the result is grouped by their unique value combinations.
39
39
  * If empty, all data is aggregated into a single row. |
40
40
  * Note: The field `CreatedAt` should not be used here, all time-based grouping should be done using the `timeGrouping` field.
41
+ *
42
+ * Note: A row's `identifier` cannot name an intelligent field, so an `IntelligentField`
43
+ * grouping is not currently distinguishable here from a second `IntelligentField` grouping,
44
+ * nor from `timeGrouping`. Row counts are correct in both cases, but the identifier keeps
45
+ * only one value. Use a single `IntelligentField` grouping with no `timeGrouping`, or a
46
+ * chart, which is unaffected.
41
47
  */
42
48
  fieldGroupings: MavenAGI.ConversationGroupBy[];
43
49
  /** Specifies the metrics to be displayed as columns. Column headers act as keys, with computed metric values as their mapped values. There needs to be at least one column definition in the table request. */
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
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("./types"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Controls whether this charter's direct children mutually exclude each other when more than
3
+ * one of them matches a turn. Set on the parent (group) charter; it has no effect on a charter
4
+ * with no children.
5
+ *
6
+ * - DEFAULT: Standard behavior. A parent's children are mutually exclusive only when all of that
7
+ * parent's children are leaves — when they compete, only the highest-priority child
8
+ * (lowest userRank) is kept. If any child is itself a group (has children of its
9
+ * own), none of the parent's children are excluded.
10
+ * - ALLOW_OVERLAP: This charter's children never mutually exclude each other. Every child that
11
+ * matches is kept.
12
+ */
13
+ export declare const CharterChildrenExclusionPolicy: {
14
+ readonly Default: "DEFAULT";
15
+ readonly AllowOverlap: "ALLOW_OVERLAP";
16
+ };
17
+ export type CharterChildrenExclusionPolicy = (typeof CharterChildrenExclusionPolicy)[keyof typeof CharterChildrenExclusionPolicy] | string;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CharterChildrenExclusionPolicy = void 0;
5
+ /**
6
+ * Controls whether this charter's direct children mutually exclude each other when more than
7
+ * one of them matches a turn. Set on the parent (group) charter; it has no effect on a charter
8
+ * with no children.
9
+ *
10
+ * - DEFAULT: Standard behavior. A parent's children are mutually exclusive only when all of that
11
+ * parent's children are leaves — when they compete, only the highest-priority child
12
+ * (lowest userRank) is kept. If any child is itself a group (has children of its
13
+ * own), none of the parent's children are excluded.
14
+ * - ALLOW_OVERLAP: This charter's children never mutually exclude each other. Every child that
15
+ * matches is kept.
16
+ */
17
+ exports.CharterChildrenExclusionPolicy = {
18
+ Default: "DEFAULT",
19
+ AllowOverlap: "ALLOW_OVERLAP",
20
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The lifecycle status of a charter.
3
+ *
4
+ * - ACTIVE: The charter is active and will be evaluated during Q&A. The caller is responsible
5
+ * for ensuring ancestor charters are also ACTIVE if the full subtree should be reachable.
6
+ * - INACTIVE: The charter is inactive. It retains its rank among siblings and its descendants retain their statuses.
7
+ * However, it and its descendants are skipped during runtime Q&A evaluation.
8
+ * - DELETED: The charter has been soft deleted. Excluded from searches and cannot be modified.
9
+ * Deleting a charter cascades to all descendants (they are also soft-deleted).
10
+ */
11
+ export declare const CharterStatus: {
12
+ readonly Active: "ACTIVE";
13
+ readonly Inactive: "INACTIVE";
14
+ readonly Deleted: "DELETED";
15
+ };
16
+ export type CharterStatus = (typeof CharterStatus)[keyof typeof CharterStatus] | string;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CharterStatus = void 0;
5
+ /**
6
+ * The lifecycle status of a charter.
7
+ *
8
+ * - ACTIVE: The charter is active and will be evaluated during Q&A. The caller is responsible
9
+ * for ensuring ancestor charters are also ACTIVE if the full subtree should be reachable.
10
+ * - INACTIVE: The charter is inactive. It retains its rank among siblings and its descendants retain their statuses.
11
+ * However, it and its descendants are skipped during runtime Q&A evaluation.
12
+ * - DELETED: The charter has been soft deleted. Excluded from searches and cannot be modified.
13
+ * Deleting a charter cascades to all descendants (they are also soft-deleted).
14
+ */
15
+ exports.CharterStatus = {
16
+ Active: "ACTIVE",
17
+ Inactive: "INACTIVE",
18
+ Deleted: "DELETED",
19
+ };
@@ -0,0 +1,28 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A lightweight charter representation for search results and ancestor paths.
4
+ * Use the get endpoint to retrieve the full charter with references, manual, and children.
5
+ */
6
+ export interface CharterSummary {
7
+ /** ID that uniquely identifies this charter. */
8
+ charterId: MavenAGI.EntityId;
9
+ /** The display name of the charter. */
10
+ name: string;
11
+ /**
12
+ * The segment controlling when this charter applies. Null means wildcard
13
+ * (always matches).
14
+ */
15
+ segmentSummary: MavenAGI.SegmentSummary | null;
16
+ /** The ID of the parent charter. Null for root-level charters. */
17
+ parentCharterId: MavenAGI.EntityId | null;
18
+ /** The lifecycle status of this charter. */
19
+ status: MavenAGI.CharterStatus;
20
+ /** The behavioral mode for this charter. Defaults to STANDARD. */
21
+ type?: MavenAGI.CharterType;
22
+ /** Whether this charter's children mutually exclude each other. Defaults to DEFAULT. */
23
+ childrenExclusionPolicy?: MavenAGI.CharterChildrenExclusionPolicy;
24
+ /** The date and time this charter was created. */
25
+ createdAt: Date;
26
+ /** The date and time this charter was last updated. */
27
+ updatedAt: Date;
28
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The behavioral mode for a charter.
3
+ *
4
+ * - STANDARD: Default. The charter's manual is delivered to the LLM as instructions,
5
+ * concatenated with ancestor charter manuals before delivery.
6
+ * - STRICT_RETURN: When matched, this charter's manual becomes the response: it is returned
7
+ * verbatim, without invoking the LLM. The charter cannot have children, and
8
+ * its manual must be non-blank — the manual is the response.
9
+ *
10
+ * A STRICT_RETURN charter references nothing: both `knowledgeBaseIds` and
11
+ * `actionIds` must be empty, and a create or update supplying either is
12
+ * rejected. With no LLM in the turn there is nothing to consult a knowledge
13
+ * base or to choose an action.
14
+ *
15
+ * A STRICT_RETURN charter is matched exactly like any other charter — same
16
+ * ordering and mutual-exclusion rules. The only difference is what a match
17
+ * does: the first matched STRICT_RETURN charter takes over the turn, so its
18
+ * manual is the whole response and every other matched charter is ignored.
19
+ * (At most one applies per turn.)
20
+ */
21
+ export declare const CharterType: {
22
+ readonly Standard: "STANDARD";
23
+ readonly StrictReturn: "STRICT_RETURN";
24
+ };
25
+ export type CharterType = (typeof CharterType)[keyof typeof CharterType] | string;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CharterType = void 0;
5
+ /**
6
+ * The behavioral mode for a charter.
7
+ *
8
+ * - STANDARD: Default. The charter's manual is delivered to the LLM as instructions,
9
+ * concatenated with ancestor charter manuals before delivery.
10
+ * - STRICT_RETURN: When matched, this charter's manual becomes the response: it is returned
11
+ * verbatim, without invoking the LLM. The charter cannot have children, and
12
+ * its manual must be non-blank — the manual is the response.
13
+ *
14
+ * A STRICT_RETURN charter references nothing: both `knowledgeBaseIds` and
15
+ * `actionIds` must be empty, and a create or update supplying either is
16
+ * rejected. With no LLM in the turn there is nothing to consult a knowledge
17
+ * base or to choose an action.
18
+ *
19
+ * A STRICT_RETURN charter is matched exactly like any other charter — same
20
+ * ordering and mutual-exclusion rules. The only difference is what a match
21
+ * does: the first matched STRICT_RETURN charter takes over the turn, so its
22
+ * manual is the whole response and every other matched charter is ignored.
23
+ * (At most one applies per turn.)
24
+ */
25
+ exports.CharterType = {
26
+ Standard: "STANDARD",
27
+ StrictReturn: "STRICT_RETURN",
28
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./CharterChildrenExclusionPolicy";
2
+ export * from "./CharterStatus";
3
+ export * from "./CharterSummary";
4
+ export * from "./CharterType";
@@ -0,0 +1,20 @@
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("./CharterChildrenExclusionPolicy"), exports);
18
+ __exportStar(require("./CharterStatus"), exports);
19
+ __exportStar(require("./CharterSummary"), exports);
20
+ __exportStar(require("./CharterType"), exports);
@@ -19,8 +19,8 @@ export interface ActionParameter {
19
19
  *
20
20
  * **Schema Requirements:**
21
21
  * - Root type must be "object" - The top-level schema must define an object type
22
- * - Supported types: string, number, boolean, integer, object, array, enum, anyOf
23
- * - Unsupported features: oneOf, allOf, const, not, if/then/else, pattern, maxLength, minLength
22
+ * - Supported types: string, number, integer, boolean, object, array, null
23
+ * - Structural keywords only: properties, required, additionalProperties, items, anyOf, enum, const (with a sibling type), $defs/$ref, description. Value constraints such as pattern, format, minimum or minItems, and combinators such as oneOf, allOf and if/then/else, are not accepted
24
24
  * - Required fields: All fields must be required (no optional properties)
25
25
  * - Additional properties: Must be set to false
26
26
  *
@@ -47,4 +47,9 @@ export interface BaseConversationResponse {
47
47
  * - `SPAWN_TO`: the conversations that were spawned from this conversation.
48
48
  */
49
49
  relatedEntities?: Partial<Record<MavenAGI.RelationshipType, MavenAGI.EntityId[]>>;
50
+ /**
51
+ * Whether the conversation is spoken or written. Set by the platform and read-only —
52
+ * it cannot be supplied when creating or updating a conversation.
53
+ */
54
+ conversationMode?: MavenAGI.ConversationMode;
50
55
  }
@@ -1,9 +1,7 @@
1
1
  /**
2
- * A structured object generated by the bot in response to a schema-based generateObject request. Should be rendered as JSON.
2
+ * The structured answer for an ask whose `textFormat` was `jsonSchema`. Accompanies the `BotTextResponse` rather than replacing it — the same turn produces both, so the conversation still reads as prose.
3
3
  */
4
4
  export interface BotObjectResponse {
5
- /** A human-readable name for the generated object, for use in the UI. */
6
- label?: string;
7
- /** The generated object conforming to the provided schema. */
5
+ /** The answer, matching the schema the ask supplied. Every property the schema requires is present, with `null` where a nullable one does not apply. */
8
6
  object?: unknown;
9
7
  }
@@ -6,4 +6,17 @@ export interface ConversationExecutedActionPrecondition extends MavenAGI.Precond
6
6
  appId?: string;
7
7
  /** Restricts which round the action must have executed in. Defaults to ANY when omitted, matching an action executed in any round. */
8
8
  conversationRound?: MavenAGI.ConversationRound;
9
+ /**
10
+ * Restricts the match to executions whose returned data satisfies this condition.
11
+ * When omitted, any execution of the action matches regardless of what it returned.
12
+ *
13
+ * Actions may return `{response, data}`, where `data` is a JSON object persisted
14
+ * alongside the response. This gates the precondition on what the action returned
15
+ * rather than only on whether it ran.
16
+ *
17
+ * The precondition is met when *some* execution of the action in scope returned data
18
+ * satisfying this condition. An action that executed but returned no data never
19
+ * matches, except via `universal` `IS_UNDETERMINED`.
20
+ */
21
+ dataCondition?: MavenAGI.ObjectCondition;
9
22
  }
@@ -0,0 +1,10 @@
1
+ /** Whether a conversation is spoken or written. */
2
+ export declare const ConversationMode: {
3
+ /**
4
+ * A spoken conversation — phone or realtime audio. */
5
+ readonly Voice: "VOICE";
6
+ /**
7
+ * A written conversation. The default for any conversation the platform does not identify as voice. */
8
+ readonly Text: "TEXT";
9
+ };
10
+ export type ConversationMode = (typeof ConversationMode)[keyof typeof ConversationMode] | string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ConversationMode = void 0;
5
+ /** Whether a conversation is spoken or written. */
6
+ exports.ConversationMode = {
7
+ /**
8
+ * A spoken conversation — phone or realtime audio. */
9
+ Voice: "VOICE",
10
+ /**
11
+ * A written conversation. The default for any conversation the platform does not identify as voice. */
12
+ Text: "TEXT",
13
+ };
@@ -0,0 +1,10 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A precondition based on the mode — voice or text — the conversation is running in.
4
+ *
5
+ * The mode is set by the platform and is not customer-writable.
6
+ */
7
+ export interface ConversationModePrecondition extends MavenAGI.PreconditionBase {
8
+ /** The mode the conversation must be running in for the precondition to be met. Omit the operator for an exact match, or set it to NOT to invert (NOT + VOICE is equivalent to TEXT). Any other operator is rejected with a 400. */
9
+ conversationMode: MavenAGI.ConversationMode;
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 });
@@ -1,5 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig | MavenAGI.ConversationPrecondition.App | MavenAGI.ConversationPrecondition.ConversationState | MavenAGI.ConversationPrecondition.IntelligentField;
2
+ export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig | MavenAGI.ConversationPrecondition.App | MavenAGI.ConversationPrecondition.ConversationState | MavenAGI.ConversationPrecondition.ConversationMode | MavenAGI.ConversationPrecondition.IntelligentField;
3
3
  export declare namespace ConversationPrecondition {
4
4
  interface Tags extends MavenAGI.TagsPrecondition {
5
5
  conversationPreconditionType: "tags";
@@ -19,6 +19,9 @@ export declare namespace ConversationPrecondition {
19
19
  interface ConversationState extends MavenAGI.ConversationStatePrecondition {
20
20
  conversationPreconditionType: "conversationState";
21
21
  }
22
+ interface ConversationMode extends MavenAGI.ConversationModePrecondition {
23
+ conversationPreconditionType: "conversationMode";
24
+ }
22
25
  interface IntelligentField extends MavenAGI.IntelligentFieldPrecondition {
23
26
  conversationPreconditionType: "intelligentField";
24
27
  }
@@ -1,5 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export type ConversationPreconditionResponse = MavenAGI.ConversationPreconditionResponse.Tags | MavenAGI.ConversationPreconditionResponse.Metadata | MavenAGI.ConversationPreconditionResponse.ActionExecuted | MavenAGI.ConversationPreconditionResponse.ResponseConfig | MavenAGI.ConversationPreconditionResponse.App | MavenAGI.ConversationPreconditionResponse.ConversationState | MavenAGI.ConversationPreconditionResponse.IntelligentField;
2
+ export type ConversationPreconditionResponse = MavenAGI.ConversationPreconditionResponse.Tags | MavenAGI.ConversationPreconditionResponse.Metadata | MavenAGI.ConversationPreconditionResponse.ActionExecuted | MavenAGI.ConversationPreconditionResponse.ResponseConfig | MavenAGI.ConversationPreconditionResponse.App | MavenAGI.ConversationPreconditionResponse.ConversationState | MavenAGI.ConversationPreconditionResponse.ConversationMode | MavenAGI.ConversationPreconditionResponse.IntelligentField;
3
3
  export declare namespace ConversationPreconditionResponse {
4
4
  interface Tags extends MavenAGI.TagsPrecondition {
5
5
  conversationPreconditionType: "tags";
@@ -19,6 +19,9 @@ export declare namespace ConversationPreconditionResponse {
19
19
  interface ConversationState extends MavenAGI.ConversationStatePrecondition {
20
20
  conversationPreconditionType: "conversationState";
21
21
  }
22
+ interface ConversationMode extends MavenAGI.ConversationModePrecondition {
23
+ conversationPreconditionType: "conversationMode";
24
+ }
22
25
  interface IntelligentField extends MavenAGI.IntelligentFieldPreconditionResponse {
23
26
  conversationPreconditionType: "intelligentField";
24
27
  }
@@ -12,6 +12,7 @@ import type * as MavenAGI from "../../../index";
12
12
  * deleted: false,
13
13
  * open: false,
14
14
  * llmEnabled: true,
15
+ * conversationMode: MavenAGI.ConversationMode.Text,
15
16
  * analysis: {
16
17
  * resolutionStatus: MavenAGI.ResolutionStatus.Resolved,
17
18
  * sentiment: MavenAGI.Sentiment.Positive,
@@ -0,0 +1,45 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A condition on a single value, discriminated by the type the value is
4
+ * validated as. Used wherever a value needs testing regardless of where it
5
+ * came from: an intelligent field's computed value, or a value addressed by
6
+ * path inside data an action returned.
7
+ *
8
+ * Pick the variant by type:
9
+ * - `string`: For STRING and MULTILINE values
10
+ * - `numeric`: For NUMBER values
11
+ * - `boolean`: For BOOLEAN values
12
+ * - `set`: For MULTI_SELECT values (unordered set of values)
13
+ *
14
+ * The declared type is what the value is coerced to, not an assertion about
15
+ * how it is already stored. Action data is untyped, so a `numeric` condition
16
+ * against it coerces the same way a `numeric` intelligent field condition
17
+ * coerces a STRING field the bot was asked to answer with a number.
18
+ *
19
+ * For intelligent fields specifically: single select fields are represented
20
+ * as STRING/NUMBER with a list of enumOptions, and the caller is responsible
21
+ * for querying the validationType and enumOptions from the intelligent field
22
+ * API to ensure the values are valid enumOptions.
23
+ */
24
+ export type FieldCondition = MavenAGI.FieldCondition.String | MavenAGI.FieldCondition.Numeric | MavenAGI.FieldCondition.Boolean | MavenAGI.FieldCondition.Set | MavenAGI.FieldCondition.Universal;
25
+ export declare namespace FieldCondition {
26
+ interface String {
27
+ fieldValidationType: "string";
28
+ value: MavenAGI.StringCondition;
29
+ }
30
+ interface Numeric {
31
+ fieldValidationType: "numeric";
32
+ value: MavenAGI.NumericCondition;
33
+ }
34
+ interface Boolean extends MavenAGI.BooleanCondition {
35
+ fieldValidationType: "boolean";
36
+ }
37
+ interface Set {
38
+ fieldValidationType: "set";
39
+ value: MavenAGI.SetCondition;
40
+ }
41
+ interface Universal {
42
+ fieldValidationType: "universal";
43
+ value: MavenAGI.UniversalCondition;
44
+ }
45
+ }
@@ -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 });
@@ -15,5 +15,5 @@ export interface IntelligentFieldPrecondition {
15
15
  /** The ID of the intelligent field. */
16
16
  fieldIdWithoutAgent: MavenAGI.EntityIdWithoutAgent;
17
17
  /** The condition to evaluate against the field's value. */
18
- fieldCondition: MavenAGI.IntelligentFieldCondition;
18
+ fieldCondition: MavenAGI.FieldCondition;
19
19
  }
@@ -9,5 +9,5 @@ export interface IntelligentFieldPreconditionResponse {
9
9
  /** Human-readable display name of the intelligent field. Resolved server-side. */
10
10
  name?: string;
11
11
  /** The condition to evaluate against the field's value. */
12
- fieldCondition: MavenAGI.IntelligentFieldCondition;
12
+ fieldCondition: MavenAGI.FieldCondition;
13
13
  }
@@ -0,0 +1,13 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A condition on one entry inside a JSON object, addressed by path.
4
+ */
5
+ export interface KeyValueEntryCondition {
6
+ /**
7
+ * Dot-separated path to a value inside the object, e.g. `name` or `customer.tier`. Array elements are indexed with brackets (`orders[0].id`), and a key containing a dot needs bracket notation (`['a.b']`). A path that reaches nothing resolves to undetermined rather than failing.
8
+ * The path must address a single value. Wildcards, filters, slices and recursive descent (`orders[*].total`, `$..total`) address many values and are rejected, as is a path with a syntax error.
9
+ */
10
+ path: string;
11
+ /** The condition to evaluate against the value at `path`. */
12
+ condition: MavenAGI.FieldCondition;
13
+ }
@@ -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
+ * A condition on a JSON object.
4
+ */
5
+ export type ObjectCondition = MavenAGI.ObjectCondition.Entry;
6
+ export declare namespace ObjectCondition {
7
+ interface Entry extends MavenAGI.KeyValueEntryCondition {
8
+ objectConditionType: "entry";
9
+ }
10
+ }