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/reference.md CHANGED
@@ -4102,6 +4102,396 @@ await client.integrations.update("organizationId", "integrationId", {});
4102
4102
  </dl>
4103
4103
 
4104
4104
 
4105
+ </dd>
4106
+ </dl>
4107
+ </details>
4108
+
4109
+ ## IntelligentFields
4110
+ <details><summary><code>client.intelligentFields.<a href="/src/api/resources/intelligentFields/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.IntelligentFieldResponse</code></summary>
4111
+ <dl>
4112
+ <dd>
4113
+
4114
+ #### 📝 Description
4115
+
4116
+ <dl>
4117
+ <dd>
4118
+
4119
+ <dl>
4120
+ <dd>
4121
+
4122
+ Create a new intelligent field. Intelligent fields are used to store custom LLM-generated values on entities like conversations or events.
4123
+ </dd>
4124
+ </dl>
4125
+ </dd>
4126
+ </dl>
4127
+
4128
+ #### 🔌 Usage
4129
+
4130
+ <dl>
4131
+ <dd>
4132
+
4133
+ <dl>
4134
+ <dd>
4135
+
4136
+ ```typescript
4137
+ await client.intelligentFields.createOrUpdate({
4138
+ fieldId: {
4139
+ referenceId: "ticket-priority"
4140
+ },
4141
+ name: "Ticket Priority",
4142
+ description: "The priority of the conversation based on urgency",
4143
+ entityType: "CONVERSATION",
4144
+ validationType: "STRING",
4145
+ enumOptions: [{
4146
+ value: "HIGH",
4147
+ label: "High Priority"
4148
+ }, {
4149
+ value: "MEDIUM",
4150
+ label: "Medium Priority"
4151
+ }, {
4152
+ value: "LOW",
4153
+ label: "Low Priority"
4154
+ }],
4155
+ 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."
4156
+ });
4157
+
4158
+ ```
4159
+ </dd>
4160
+ </dl>
4161
+ </dd>
4162
+ </dl>
4163
+
4164
+ #### ⚙️ Parameters
4165
+
4166
+ <dl>
4167
+ <dd>
4168
+
4169
+ <dl>
4170
+ <dd>
4171
+
4172
+ **request:** `MavenAGI.IntelligentFieldRequest`
4173
+
4174
+ </dd>
4175
+ </dl>
4176
+
4177
+ <dl>
4178
+ <dd>
4179
+
4180
+ **requestOptions:** `IntelligentFieldsClient.RequestOptions`
4181
+
4182
+ </dd>
4183
+ </dl>
4184
+ </dd>
4185
+ </dl>
4186
+
4187
+
4188
+ </dd>
4189
+ </dl>
4190
+ </details>
4191
+
4192
+ <details><summary><code>client.intelligentFields.<a href="/src/api/resources/intelligentFields/client/Client.ts">get</a>(fieldReferenceId, { ...params }) -> MavenAGI.IntelligentFieldDetailResponse</code></summary>
4193
+ <dl>
4194
+ <dd>
4195
+
4196
+ #### 📝 Description
4197
+
4198
+ <dl>
4199
+ <dd>
4200
+
4201
+ <dl>
4202
+ <dd>
4203
+
4204
+ Get an intelligent field by its supplied ID
4205
+ </dd>
4206
+ </dl>
4207
+ </dd>
4208
+ </dl>
4209
+
4210
+ #### 🔌 Usage
4211
+
4212
+ <dl>
4213
+ <dd>
4214
+
4215
+ <dl>
4216
+ <dd>
4217
+
4218
+ ```typescript
4219
+ await client.intelligentFields.get("ticket-priority");
4220
+
4221
+ ```
4222
+ </dd>
4223
+ </dl>
4224
+ </dd>
4225
+ </dl>
4226
+
4227
+ #### ⚙️ Parameters
4228
+
4229
+ <dl>
4230
+ <dd>
4231
+
4232
+ <dl>
4233
+ <dd>
4234
+
4235
+ **fieldReferenceId:** `string` — The reference ID of the intelligent field to get. All other entity ID fields are inferred from the request.
4236
+
4237
+ </dd>
4238
+ </dl>
4239
+
4240
+ <dl>
4241
+ <dd>
4242
+
4243
+ **request:** `MavenAGI.IntelligentFieldGetRequest`
4244
+
4245
+ </dd>
4246
+ </dl>
4247
+
4248
+ <dl>
4249
+ <dd>
4250
+
4251
+ **requestOptions:** `IntelligentFieldsClient.RequestOptions`
4252
+
4253
+ </dd>
4254
+ </dl>
4255
+ </dd>
4256
+ </dl>
4257
+
4258
+
4259
+ </dd>
4260
+ </dl>
4261
+ </details>
4262
+
4263
+ <details><summary><code>client.intelligentFields.<a href="/src/api/resources/intelligentFields/client/Client.ts">patch</a>(fieldReferenceId, { ...params }) -> MavenAGI.IntelligentFieldResponse</code></summary>
4264
+ <dl>
4265
+ <dd>
4266
+
4267
+ #### 📝 Description
4268
+
4269
+ <dl>
4270
+ <dd>
4271
+
4272
+ <dl>
4273
+ <dd>
4274
+
4275
+ Patch an intelligent field. Can be used to update the definition, status, or other mutable properties.
4276
+ </dd>
4277
+ </dl>
4278
+ </dd>
4279
+ </dl>
4280
+
4281
+ #### 🔌 Usage
4282
+
4283
+ <dl>
4284
+ <dd>
4285
+
4286
+ <dl>
4287
+ <dd>
4288
+
4289
+ ```typescript
4290
+ await client.intelligentFields.patch("ticket-priority", {
4291
+ 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."
4292
+ });
4293
+
4294
+ ```
4295
+ </dd>
4296
+ </dl>
4297
+ </dd>
4298
+ </dl>
4299
+
4300
+ #### ⚙️ Parameters
4301
+
4302
+ <dl>
4303
+ <dd>
4304
+
4305
+ <dl>
4306
+ <dd>
4307
+
4308
+ **fieldReferenceId:** `string` — The reference ID of the intelligent field to patch.
4309
+
4310
+ </dd>
4311
+ </dl>
4312
+
4313
+ <dl>
4314
+ <dd>
4315
+
4316
+ **request:** `MavenAGI.IntelligentFieldPatchRequest`
4317
+
4318
+ </dd>
4319
+ </dl>
4320
+
4321
+ <dl>
4322
+ <dd>
4323
+
4324
+ **requestOptions:** `IntelligentFieldsClient.RequestOptions`
4325
+
4326
+ </dd>
4327
+ </dl>
4328
+ </dd>
4329
+ </dl>
4330
+
4331
+
4332
+ </dd>
4333
+ </dl>
4334
+ </details>
4335
+
4336
+ <details><summary><code>client.intelligentFields.<a href="/src/api/resources/intelligentFields/client/Client.ts">delete</a>(fieldReferenceId, { ...params }) -> MavenAGI.IntelligentFieldResponse</code></summary>
4337
+ <dl>
4338
+ <dd>
4339
+
4340
+ #### 📝 Description
4341
+
4342
+ <dl>
4343
+ <dd>
4344
+
4345
+ <dl>
4346
+ <dd>
4347
+
4348
+ Soft delete an intelligent field. Only INACTIVE fields can be deleted.
4349
+
4350
+ Deleted fields are excluded from search results but can still be retrieved by ID.
4351
+ Creating a new field with the same referenceId as a deleted field will overwrite
4352
+ the deleted field and restore it to INACTIVE status.
4353
+
4354
+ Deleted fields cannot be modified.
4355
+ </dd>
4356
+ </dl>
4357
+ </dd>
4358
+ </dl>
4359
+
4360
+ #### 🔌 Usage
4361
+
4362
+ <dl>
4363
+ <dd>
4364
+
4365
+ <dl>
4366
+ <dd>
4367
+
4368
+ ```typescript
4369
+ await client.intelligentFields.delete("ticket-priority");
4370
+
4371
+ ```
4372
+ </dd>
4373
+ </dl>
4374
+ </dd>
4375
+ </dl>
4376
+
4377
+ #### ⚙️ Parameters
4378
+
4379
+ <dl>
4380
+ <dd>
4381
+
4382
+ <dl>
4383
+ <dd>
4384
+
4385
+ **fieldReferenceId:** `string` — The reference ID of the intelligent field to delete.
4386
+
4387
+ </dd>
4388
+ </dl>
4389
+
4390
+ <dl>
4391
+ <dd>
4392
+
4393
+ **request:** `MavenAGI.IntelligentFieldDeleteRequest`
4394
+
4395
+ </dd>
4396
+ </dl>
4397
+
4398
+ <dl>
4399
+ <dd>
4400
+
4401
+ **requestOptions:** `IntelligentFieldsClient.RequestOptions`
4402
+
4403
+ </dd>
4404
+ </dl>
4405
+ </dd>
4406
+ </dl>
4407
+
4408
+
4409
+ </dd>
4410
+ </dl>
4411
+ </details>
4412
+
4413
+ <details><summary><code>client.intelligentFields.<a href="/src/api/resources/intelligentFields/client/Client.ts">searchValues</a>({ ...params }) -> MavenAGI.IntelligentFieldValueSearchResponse</code></summary>
4414
+ <dl>
4415
+ <dd>
4416
+
4417
+ #### 📝 Description
4418
+
4419
+ <dl>
4420
+ <dd>
4421
+
4422
+ <dl>
4423
+ <dd>
4424
+
4425
+ Search computed values for intelligent fields across entities. Supports filtering by field properties and target entity.
4426
+ </dd>
4427
+ </dl>
4428
+ </dd>
4429
+ </dl>
4430
+
4431
+ #### 🔌 Usage
4432
+
4433
+ <dl>
4434
+ <dd>
4435
+
4436
+ <dl>
4437
+ <dd>
4438
+
4439
+ ```typescript
4440
+ await client.intelligentFields.searchValues({
4441
+ fieldFilter: {
4442
+ fieldIds: [{
4443
+ referenceId: "ticket-priority",
4444
+ appId: "zendesk",
4445
+ type: "INTELLIGENT_FIELD",
4446
+ organizationId: "acme",
4447
+ agentId: "support"
4448
+ }]
4449
+ },
4450
+ entityFilter: {
4451
+ entityIds: [{
4452
+ referenceId: "conv-123",
4453
+ appId: "zendesk",
4454
+ type: "CONVERSATION",
4455
+ organizationId: "acme",
4456
+ agentId: "support"
4457
+ }]
4458
+ },
4459
+ page: 0,
4460
+ size: 20,
4461
+ sort: "CREATED_AT",
4462
+ sortDesc: true
4463
+ });
4464
+
4465
+ ```
4466
+ </dd>
4467
+ </dl>
4468
+ </dd>
4469
+ </dl>
4470
+
4471
+ #### ⚙️ Parameters
4472
+
4473
+ <dl>
4474
+ <dd>
4475
+
4476
+ <dl>
4477
+ <dd>
4478
+
4479
+ **request:** `MavenAGI.IntelligentFieldValueSearchRequest`
4480
+
4481
+ </dd>
4482
+ </dl>
4483
+
4484
+ <dl>
4485
+ <dd>
4486
+
4487
+ **requestOptions:** `IntelligentFieldsClient.RequestOptions`
4488
+
4489
+ </dd>
4490
+ </dl>
4491
+ </dd>
4492
+ </dl>
4493
+
4494
+
4105
4495
  </dd>
4106
4496
  </dl>
4107
4497
  </details>
@@ -4397,10 +4787,13 @@ await client.knowledge.refreshKnowledgeBase("help-center", {
4397
4787
  <dl>
4398
4788
  <dd>
4399
4789
 
4400
- in-progress knowledge base version.
4790
+ Cancel an in-progress knowledge base version.
4401
4791
 
4402
- If the knowledge base has a version that is currently being ingested,
4403
- this will cancel the ingestion workflow and set the version status to FAILED.
4792
+ If the knowledge base has a version that is currently being ingested, this cancels the
4793
+ ingestion workflow and sets the version status to CANCELED.
4794
+
4795
+ An app still refreshing that version finds out on its next write to it: adding or
4796
+ removing a document on a canceled version is rejected rather than succeeding.
4404
4797
  </dd>
4405
4798
  </dl>
4406
4799
  </dd>
@@ -4755,6 +5148,92 @@ await client.knowledge.finalizeKnowledgeBaseVersion("help-center", {
4755
5148
  </dl>
4756
5149
 
4757
5150
 
5151
+ </dd>
5152
+ </dl>
5153
+ </details>
5154
+
5155
+ <details><summary><code>client.knowledge.<a href="/src/api/resources/knowledge/client/Client.ts">updateKnowledgeBaseVersionProgress</a>(knowledgeBaseReferenceId, { ...params }) -> MavenAGI.KnowledgeBaseVersion</code></summary>
5156
+ <dl>
5157
+ <dd>
5158
+
5159
+ #### 📝 Description
5160
+
5161
+ <dl>
5162
+ <dd>
5163
+
5164
+ <dl>
5165
+ <dd>
5166
+
5167
+ Report refresh progress for an in-progress knowledge base version.
5168
+
5169
+ Progress is advisory and shown to users while a refresh runs. Each call replaces the
5170
+ version's entire progress state - no history is kept, only the most recent value is
5171
+ retained. Will throw an exception if the target version is not in progress.
5172
+ </dd>
5173
+ </dl>
5174
+ </dd>
5175
+ </dl>
5176
+
5177
+ #### 🔌 Usage
5178
+
5179
+ <dl>
5180
+ <dd>
5181
+
5182
+ <dl>
5183
+ <dd>
5184
+
5185
+ ```typescript
5186
+ await client.knowledge.updateKnowledgeBaseVersionProgress("help-center", {
5187
+ versionId: {
5188
+ type: "KNOWLEDGE_BASE_VERSION",
5189
+ referenceId: "versionId",
5190
+ appId: "maven"
5191
+ },
5192
+ progress: {
5193
+ message: "Fetching articles from the help center",
5194
+ completedCount: 120,
5195
+ totalCount: 500
5196
+ }
5197
+ });
5198
+
5199
+ ```
5200
+ </dd>
5201
+ </dl>
5202
+ </dd>
5203
+ </dl>
5204
+
5205
+ #### ⚙️ Parameters
5206
+
5207
+ <dl>
5208
+ <dd>
5209
+
5210
+ <dl>
5211
+ <dd>
5212
+
5213
+ **knowledgeBaseReferenceId:** `string` — The reference ID of the knowledge base to report progress for. All other entity ID fields are inferred from the request.
5214
+
5215
+ </dd>
5216
+ </dl>
5217
+
5218
+ <dl>
5219
+ <dd>
5220
+
5221
+ **request:** `MavenAGI.KnowledgeBaseVersionProgressRequest`
5222
+
5223
+ </dd>
5224
+ </dl>
5225
+
5226
+ <dl>
5227
+ <dd>
5228
+
5229
+ **requestOptions:** `KnowledgeClient.RequestOptions`
5230
+
5231
+ </dd>
5232
+ </dl>
5233
+ </dd>
5234
+ </dl>
5235
+
5236
+
4758
5237
  </dd>
4759
5238
  </dl>
4760
5239
  </details>
@@ -1,10 +1,12 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
+ import { EntityId } from "../../commons/types/EntityId";
4
5
  import { ConversationField } from "../../conversation/types/ConversationField";
5
6
  export declare const ConversationBasicMetric: core.serialization.ObjectSchema<serializers.ConversationBasicMetric.Raw, MavenAGI.ConversationBasicMetric>;
6
7
  export declare namespace ConversationBasicMetric {
7
8
  interface Raw {
8
9
  targetField: ConversationField.Raw;
10
+ intelligentFieldId?: EntityId.Raw | null;
9
11
  }
10
12
  }
@@ -36,7 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ConversationBasicMetric = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const EntityId_1 = require("../../commons/types/EntityId");
39
40
  const ConversationField_1 = require("../../conversation/types/ConversationField");
40
41
  exports.ConversationBasicMetric = core.serialization.object({
41
42
  targetField: ConversationField_1.ConversationField,
43
+ intelligentFieldId: EntityId_1.EntityId.optional(),
42
44
  });
@@ -1,6 +1,7 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
+ import { EntityId } from "../../commons/types/EntityId";
4
5
  import { ConversationField } from "../../conversation/types/ConversationField";
5
6
  import { GroupByBase } from "./GroupByBase";
6
7
  import { Range } from "./Range";
@@ -8,6 +9,7 @@ export declare const ConversationGroupBy: core.serialization.ObjectSchema<serial
8
9
  export declare namespace ConversationGroupBy {
9
10
  interface Raw extends GroupByBase.Raw {
10
11
  field: ConversationField.Raw;
12
+ intelligentFieldId?: EntityId.Raw | null;
11
13
  ranges?: Range.Raw[] | null;
12
14
  }
13
15
  }
@@ -36,12 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ConversationGroupBy = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const EntityId_1 = require("../../commons/types/EntityId");
39
40
  const ConversationField_1 = require("../../conversation/types/ConversationField");
40
41
  const GroupByBase_1 = require("./GroupByBase");
41
42
  const Range_1 = require("./Range");
42
43
  exports.ConversationGroupBy = core.serialization
43
44
  .object({
44
45
  field: ConversationField_1.ConversationField,
46
+ intelligentFieldId: EntityId_1.EntityId.optional(),
45
47
  ranges: core.serialization.list(Range_1.Range).optional(),
46
48
  })
47
49
  .extend(GroupByBase_1.GroupByBase);
@@ -1,10 +1,12 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
+ import { EntityId } from "../../commons/types/EntityId";
4
5
  import { NumericConversationField } from "../../conversation/types/NumericConversationField";
5
6
  export declare const ConversationNumericMetric: core.serialization.ObjectSchema<serializers.ConversationNumericMetric.Raw, MavenAGI.ConversationNumericMetric>;
6
7
  export declare namespace ConversationNumericMetric {
7
8
  interface Raw {
8
9
  targetField: NumericConversationField.Raw;
10
+ intelligentFieldId?: EntityId.Raw | null;
9
11
  }
10
12
  }
@@ -36,7 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ConversationNumericMetric = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const EntityId_1 = require("../../commons/types/EntityId");
39
40
  const NumericConversationField_1 = require("../../conversation/types/NumericConversationField");
40
41
  exports.ConversationNumericMetric = core.serialization.object({
41
42
  targetField: NumericConversationField_1.NumericConversationField,
43
+ intelligentFieldId: EntityId_1.EntityId.optional(),
42
44
  });
@@ -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,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const CharterChildrenExclusionPolicy: core.serialization.Schema<serializers.CharterChildrenExclusionPolicy.Raw, MavenAGI.CharterChildrenExclusionPolicy>;
5
+ export declare namespace CharterChildrenExclusionPolicy {
6
+ type Raw = "DEFAULT" | "ALLOW_OVERLAP";
7
+ }
@@ -0,0 +1,39 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CharterChildrenExclusionPolicy = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.CharterChildrenExclusionPolicy = core.serialization.forwardCompatibleEnum_(["DEFAULT", "ALLOW_OVERLAP"]);
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const CharterStatus: core.serialization.Schema<serializers.CharterStatus.Raw, MavenAGI.CharterStatus>;
5
+ export declare namespace CharterStatus {
6
+ type Raw = "ACTIVE" | "INACTIVE" | "DELETED";
7
+ }