mavenagi 1.2.61 → 1.2.63

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 (270) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +6 -0
  3. package/Client.js +40 -30
  4. package/api/resources/actions/client/Client.d.ts +16 -0
  5. package/api/resources/actions/client/Client.js +16 -0
  6. package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +4 -0
  7. package/api/resources/analytics/types/ConversationBasicMetric.d.ts +4 -1
  8. package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +2 -0
  9. package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +2 -0
  10. package/api/resources/capabilities/client/Client.d.ts +118 -0
  11. package/api/resources/capabilities/client/Client.js +521 -0
  12. package/api/resources/capabilities/client/index.d.ts +1 -0
  13. package/api/resources/capabilities/client/index.js +17 -0
  14. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +38 -0
  15. package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
  16. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
  17. package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
  18. package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
  19. package/api/resources/capabilities/client/requests/index.d.ts +4 -0
  20. package/api/resources/capabilities/client/requests/index.js +2 -0
  21. package/api/resources/capabilities/exports.d.ts +2 -0
  22. package/api/resources/capabilities/exports.js +21 -0
  23. package/api/resources/capabilities/index.d.ts +2 -0
  24. package/api/resources/capabilities/index.js +18 -0
  25. package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
  26. package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
  27. package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
  28. package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
  29. package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
  30. package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
  31. package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
  32. package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
  33. package/api/resources/capabilities/types/index.d.ts +4 -0
  34. package/api/resources/capabilities/types/index.js +20 -0
  35. package/api/resources/charters/client/Client.js +3 -1
  36. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +1 -1
  37. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +4 -0
  38. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +1 -1
  39. package/api/resources/charters/types/CharterBase.d.ts +9 -0
  40. package/api/resources/charters/types/CharterRequest.d.ts +0 -8
  41. package/api/resources/charters/types/CharterSearchFilter.d.ts +14 -9
  42. package/api/resources/commons/types/ActionResponse.d.ts +11 -2
  43. package/api/resources/commons/types/AdditionalDataKey.d.ts +63 -0
  44. package/api/resources/commons/types/AdditionalDataKey.js +66 -0
  45. package/api/resources/commons/types/BaseConversationResponse.d.ts +7 -0
  46. package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
  47. package/api/resources/commons/types/CapabilityBase.js +3 -0
  48. package/api/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +6 -3
  49. package/api/resources/{intelligentFields/types/IntelligentFieldStatus.js → commons/types/CapabilityStatus.js} +6 -3
  50. package/api/resources/commons/types/CapabilityType.d.ts +8 -0
  51. package/api/resources/commons/types/CapabilityType.js +11 -0
  52. package/api/resources/commons/types/EntityType.d.ts +5 -1
  53. package/api/resources/commons/types/EntityType.js +5 -1
  54. package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
  55. package/api/resources/commons/types/ErrorReason.d.ts +34 -0
  56. package/api/resources/commons/types/ErrorReason.js +37 -0
  57. package/api/resources/commons/types/EventCondition.d.ts +35 -0
  58. package/api/resources/commons/types/EventCondition.js +3 -0
  59. package/api/resources/commons/types/EventConditionGroup.d.ts +11 -0
  60. package/api/resources/commons/types/EventConditionGroup.js +3 -0
  61. package/api/resources/commons/types/EventReferencesCondition.d.ts +13 -0
  62. package/api/resources/commons/types/EventReferencesCondition.js +3 -0
  63. package/api/resources/{conversation → commons}/types/IntelligentFieldFilter.d.ts +1 -1
  64. package/api/resources/commons/types/IntelligentFieldFilter.js +3 -0
  65. package/api/resources/commons/types/IntelligentFieldSearchCondition.js +3 -0
  66. package/api/resources/commons/types/SimulationContext.d.ts +12 -0
  67. package/api/resources/commons/types/SystemEventName.d.ts +4 -1
  68. package/api/resources/commons/types/SystemEventName.js +4 -1
  69. package/api/resources/commons/types/SystemEventNameCondition.d.ts +10 -0
  70. package/api/resources/commons/types/SystemEventNameCondition.js +3 -0
  71. package/api/resources/commons/types/UserEventNameCondition.d.ts +10 -0
  72. package/api/resources/commons/types/UserEventNameCondition.js +3 -0
  73. package/api/resources/commons/types/index.d.ts +13 -0
  74. package/api/resources/commons/types/index.js +13 -0
  75. package/api/resources/conversation/client/Client.d.ts +16 -0
  76. package/api/resources/conversation/client/Client.js +16 -0
  77. package/api/resources/conversation/types/ConversationField.d.ts +22 -1
  78. package/api/resources/conversation/types/ConversationField.js +22 -1
  79. package/api/resources/conversation/types/ConversationFilter.d.ts +18 -0
  80. package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
  81. package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +2 -2
  82. package/api/resources/conversation/types/index.d.ts +0 -3
  83. package/api/resources/conversation/types/index.js +0 -3
  84. package/api/resources/conversationKickoffs/client/Client.d.ts +45 -0
  85. package/api/resources/conversationKickoffs/client/Client.js +175 -0
  86. package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
  87. package/api/resources/conversationKickoffs/client/index.js +17 -0
  88. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
  89. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
  90. package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
  91. package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
  92. package/api/resources/conversationKickoffs/exports.d.ts +2 -0
  93. package/api/resources/conversationKickoffs/exports.js +21 -0
  94. package/api/resources/conversationKickoffs/index.d.ts +2 -0
  95. package/api/resources/conversationKickoffs/index.js +18 -0
  96. package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
  97. package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
  98. package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
  99. package/api/resources/conversationKickoffs/types/index.js +17 -0
  100. package/api/resources/events/client/Client.d.ts +1 -1
  101. package/api/resources/events/client/Client.js +1 -1
  102. package/api/resources/inbox/types/InboxFilter.d.ts +11 -0
  103. package/api/resources/index.d.ts +6 -0
  104. package/api/resources/index.js +7 -1
  105. package/api/resources/intelligentFields/client/Client.d.ts +23 -3
  106. package/api/resources/intelligentFields/client/Client.js +23 -3
  107. package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
  108. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +1 -1
  109. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +4 -4
  110. package/api/resources/intelligentFields/types/EnumOption.d.ts +5 -0
  111. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +2 -2
  112. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -4
  113. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +1 -1
  114. package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +6 -1
  115. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
  116. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +9 -1
  117. package/api/resources/intelligentFields/types/index.d.ts +0 -1
  118. package/api/resources/intelligentFields/types/index.js +0 -1
  119. package/api/resources/knowledge/client/Client.d.ts +3 -0
  120. package/api/resources/knowledge/client/Client.js +3 -0
  121. package/api/resources/segments/client/Client.js +1 -3
  122. package/api/resources/segments/client/requests/SegmentDeleteRequest.d.ts +0 -12
  123. package/api/resources/segments/types/SegmentPatchRequest.d.ts +0 -8
  124. package/api/resources/segments/types/SegmentRequest.d.ts +0 -8
  125. package/api/resources/triggers/client/Client.d.ts +22 -5
  126. package/api/resources/triggers/client/Client.js +38 -10
  127. package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +5 -4
  128. package/api/resources/triggers/types/EventTriggerBase.d.ts +8 -4
  129. package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
  130. package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
  131. package/api/resources/triggers/types/index.d.ts +0 -1
  132. package/api/resources/triggers/types/index.js +0 -1
  133. package/api/resources/users/types/AgentUser.d.ts +2 -0
  134. package/api/resources/users/types/AgentUserFilter.d.ts +3 -0
  135. package/package.json +1 -1
  136. package/reference.md +489 -8
  137. package/serialization/resources/capabilities/client/index.d.ts +1 -0
  138. package/serialization/resources/capabilities/client/index.js +17 -0
  139. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +23 -0
  140. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +57 -0
  141. package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
  142. package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
  143. package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
  144. package/serialization/resources/capabilities/client/requests/index.js +7 -0
  145. package/serialization/resources/capabilities/index.d.ts +2 -0
  146. package/serialization/resources/capabilities/index.js +18 -0
  147. package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
  148. package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
  149. package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
  150. package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
  151. package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
  152. package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
  153. package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
  154. package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
  155. package/serialization/resources/capabilities/types/index.d.ts +4 -0
  156. package/serialization/resources/capabilities/types/index.js +20 -0
  157. package/serialization/resources/charters/types/CharterBase.d.ts +2 -0
  158. package/serialization/resources/charters/types/CharterBase.js +2 -0
  159. package/serialization/resources/charters/types/CharterRequest.d.ts +0 -2
  160. package/serialization/resources/charters/types/CharterRequest.js +0 -2
  161. package/serialization/resources/charters/types/CharterSearchFilter.d.ts +3 -0
  162. package/serialization/resources/charters/types/CharterSearchFilter.js +3 -0
  163. package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
  164. package/serialization/resources/commons/types/ActionResponse.js +4 -2
  165. package/serialization/resources/commons/types/AdditionalDataKey.d.ts +7 -0
  166. package/serialization/resources/commons/types/AdditionalDataKey.js +57 -0
  167. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
  168. package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
  169. package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
  170. package/serialization/resources/commons/types/CapabilityBase.js +46 -0
  171. package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
  172. package/serialization/resources/{triggers/types/TriggerPartialUpdate.js → commons/types/CapabilityStatus.js} +2 -4
  173. package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
  174. package/serialization/resources/commons/types/CapabilityType.js +39 -0
  175. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  176. package/serialization/resources/commons/types/EntityType.js +1 -1
  177. package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
  178. package/serialization/resources/commons/types/ErrorMessage.js +2 -0
  179. package/serialization/resources/commons/types/ErrorReason.d.ts +7 -0
  180. package/serialization/resources/commons/types/ErrorReason.js +50 -0
  181. package/serialization/resources/commons/types/EventCondition.d.ts +26 -0
  182. package/serialization/resources/commons/types/EventCondition.js +55 -0
  183. package/serialization/resources/commons/types/EventConditionGroup.d.ts +11 -0
  184. package/serialization/resources/commons/types/EventConditionGroup.js +44 -0
  185. package/serialization/resources/commons/types/EventReferencesCondition.d.ts +12 -0
  186. package/serialization/resources/commons/types/EventReferencesCondition.js +44 -0
  187. package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts +1 -1
  188. package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.js +1 -1
  189. package/serialization/resources/commons/types/SimulationContext.d.ts +2 -0
  190. package/serialization/resources/commons/types/SimulationContext.js +2 -0
  191. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  192. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  193. package/serialization/resources/commons/types/SystemEventNameCondition.d.ts +12 -0
  194. package/serialization/resources/commons/types/SystemEventNameCondition.js +44 -0
  195. package/serialization/resources/commons/types/UserEventNameCondition.d.ts +12 -0
  196. package/serialization/resources/commons/types/UserEventNameCondition.js +44 -0
  197. package/serialization/resources/commons/types/index.d.ts +13 -0
  198. package/serialization/resources/commons/types/index.js +13 -0
  199. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  200. package/serialization/resources/conversation/types/ConversationField.js +2 -0
  201. package/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -1
  202. package/serialization/resources/conversation/types/ConversationFilter.js +3 -1
  203. package/serialization/resources/conversation/types/index.d.ts +0 -3
  204. package/serialization/resources/conversation/types/index.js +0 -3
  205. package/serialization/resources/conversationKickoffs/client/index.d.ts +1 -0
  206. package/serialization/resources/conversationKickoffs/client/index.js +17 -0
  207. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
  208. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
  209. package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
  210. package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
  211. package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
  212. package/serialization/resources/conversationKickoffs/index.js +18 -0
  213. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
  214. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
  215. package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
  216. package/serialization/resources/conversationKickoffs/types/index.js +17 -0
  217. package/serialization/resources/inbox/types/InboxFilter.d.ts +2 -0
  218. package/serialization/resources/inbox/types/InboxFilter.js +2 -0
  219. package/serialization/resources/index.d.ts +7 -0
  220. package/serialization/resources/index.js +8 -1
  221. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +4 -4
  222. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +4 -4
  223. package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
  224. package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
  225. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
  226. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
  227. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
  228. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
  229. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
  230. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
  231. package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
  232. package/serialization/resources/intelligentFields/types/index.js +0 -1
  233. package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +0 -2
  234. package/serialization/resources/segments/types/SegmentPatchRequest.js +0 -2
  235. package/serialization/resources/segments/types/SegmentRequest.d.ts +0 -2
  236. package/serialization/resources/segments/types/SegmentRequest.js +0 -2
  237. package/serialization/resources/triggers/client/index.d.ts +1 -0
  238. package/serialization/resources/triggers/client/index.js +17 -0
  239. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +10 -0
  240. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +43 -0
  241. package/serialization/resources/triggers/client/requests/index.d.ts +1 -0
  242. package/serialization/resources/triggers/client/requests/index.js +5 -0
  243. package/serialization/resources/triggers/index.d.ts +1 -0
  244. package/serialization/resources/triggers/index.js +1 -0
  245. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +2 -3
  246. package/serialization/resources/triggers/types/EventTriggerBase.js +2 -2
  247. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
  248. package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
  249. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -1
  250. package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
  251. package/serialization/resources/triggers/types/index.d.ts +0 -1
  252. package/serialization/resources/triggers/types/index.js +0 -1
  253. package/serialization/resources/users/types/AgentUser.d.ts +2 -0
  254. package/serialization/resources/users/types/AgentUser.js +2 -0
  255. package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
  256. package/serialization/resources/users/types/AgentUserFilter.js +2 -0
  257. package/version.d.ts +1 -1
  258. package/version.js +1 -1
  259. package/api/resources/triggers/types/TriggerPartialUpdate.d.ts +0 -4
  260. package/serialization/resources/triggers/types/TriggerPartialUpdate.d.ts +0 -9
  261. /package/api/resources/{conversation/types/IntelligentFieldFilter.js → capabilities/client/requests/CapabilitiesSearchRequest.js} +0 -0
  262. /package/api/resources/{conversation/types/IntelligentFieldSearchCondition.js → capabilities/client/requests/DeleteCapabilityByTypeRequest.js} +0 -0
  263. /package/api/resources/{triggers/types/TriggerPartialUpdate.js → capabilities/client/requests/GetCapabilityByTypeRequest.js} +0 -0
  264. /package/api/resources/{conversation → commons}/types/IntelligentFieldOperator.d.ts +0 -0
  265. /package/api/resources/{conversation → commons}/types/IntelligentFieldOperator.js +0 -0
  266. /package/api/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts +0 -0
  267. /package/serialization/resources/{conversation → commons}/types/IntelligentFieldFilter.d.ts +0 -0
  268. /package/serialization/resources/{conversation → commons}/types/IntelligentFieldFilter.js +0 -0
  269. /package/serialization/resources/{conversation → commons}/types/IntelligentFieldOperator.d.ts +0 -0
  270. /package/serialization/resources/{conversation → commons}/types/IntelligentFieldOperator.js +0 -0
@@ -1,8 +1,8 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface ConversationsSearchRequest extends MavenAGI.BasePaginatedRequest {
3
3
  /**
4
- * Field to sort results by. `IntelligentField` is not supported here - sorting conversations
5
- * by an intelligent field value is not available. Intelligent fields can be filtered on via
4
+ * Field to sort results by. `IntelligentField` and `IntelligentFields` are not supported
5
+ * here - sorting conversations by an intelligent field value is not available. Intelligent fields can be filtered on via
6
6
  * `filter.intelligentFields`, and grouped or aggregated through the analytics APIs.
7
7
  */
8
8
  sort?: MavenAGI.ConversationField;
@@ -29,9 +29,6 @@ export * from "./DeliveryStatus";
29
29
  export * from "./FeedbackField";
30
30
  export * from "./FeedbackFilter";
31
31
  export * from "./FeedbackRequest";
32
- export * from "./IntelligentFieldFilter";
33
- export * from "./IntelligentFieldOperator";
34
- export * from "./IntelligentFieldSearchCondition";
35
32
  export * from "./NumericConversationField";
36
33
  export * from "./SimulationFilter";
37
34
  export * from "./StreamResponse";
@@ -45,9 +45,6 @@ __exportStar(require("./DeliveryStatus"), exports);
45
45
  __exportStar(require("./FeedbackField"), exports);
46
46
  __exportStar(require("./FeedbackFilter"), exports);
47
47
  __exportStar(require("./FeedbackRequest"), exports);
48
- __exportStar(require("./IntelligentFieldFilter"), exports);
49
- __exportStar(require("./IntelligentFieldOperator"), exports);
50
- __exportStar(require("./IntelligentFieldSearchCondition"), exports);
51
48
  __exportStar(require("./NumericConversationField"), exports);
52
49
  __exportStar(require("./SimulationFilter"), exports);
53
50
  __exportStar(require("./StreamResponse"), exports);
@@ -0,0 +1,45 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
3
+ import * as core from "../../../../core";
4
+ import * as MavenAGI from "../../../index";
5
+ export declare namespace ConversationKickoffsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ConversationKickoffsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ConversationKickoffsClient.Options>;
12
+ constructor(options: ConversationKickoffsClient.Options);
13
+ /**
14
+ * Register or update one of the calling app's Conversation Kickoffs for this agent. An app may
15
+ * hold multiple independent installs, and any number of an agent's kickoffs may run at once.
16
+ *
17
+ * A newly installed kickoff starts inactive, so installing one never changes an agent's
18
+ * behaviour on its own. Updating an existing one rewrites its name and description and leaves
19
+ * its status alone, so re-registering on every install refresh never deactivates a kickoff
20
+ * that is already live. Use the capability APIs to activate it, and to read, search or delete
21
+ * it afterwards.
22
+ *
23
+ * @param {MavenAGI.CreateConversationKickoffRequest} request
24
+ * @param {ConversationKickoffsClient.RequestOptions} requestOptions - Request-specific configuration.
25
+ *
26
+ * @throws {@link MavenAGI.NotFoundError}
27
+ * @throws {@link MavenAGI.BadRequestError}
28
+ * @throws {@link MavenAGI.PayloadTooLargeError}
29
+ * @throws {@link MavenAGI.TooManyRequestsError}
30
+ * @throws {@link MavenAGI.ServerError}
31
+ * @throws {@link errors.MavenAGIError}
32
+ * @throws {@link errors.MavenAGITimeoutError}
33
+ *
34
+ * @example
35
+ * await client.conversationKickoffs.createOrUpdate({
36
+ * kickoffId: {
37
+ * referenceId: "greet-returning-customer"
38
+ * },
39
+ * name: "Greet returning customer",
40
+ * description: "Looks up the customer's open orders before the agent's first reply"
41
+ * })
42
+ */
43
+ createOrUpdate(request: MavenAGI.CreateConversationKickoffRequest, requestOptions?: ConversationKickoffsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationKickoff>;
44
+ private __createOrUpdate;
45
+ }
@@ -0,0 +1,175 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.ConversationKickoffsClient = void 0;
47
+ const BaseClient_1 = require("../../../../BaseClient");
48
+ const core = __importStar(require("../../../../core"));
49
+ const headers_1 = require("../../../../core/headers");
50
+ const requestBody_1 = require("../../../../core/requestBody");
51
+ const environments = __importStar(require("../../../../environments"));
52
+ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
53
+ const errors = __importStar(require("../../../../errors/index"));
54
+ const serializers = __importStar(require("../../../../serialization/index"));
55
+ const MavenAGI = __importStar(require("../../../index"));
56
+ class ConversationKickoffsClient {
57
+ constructor(options) {
58
+ this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
59
+ }
60
+ /**
61
+ * Register or update one of the calling app's Conversation Kickoffs for this agent. An app may
62
+ * hold multiple independent installs, and any number of an agent's kickoffs may run at once.
63
+ *
64
+ * A newly installed kickoff starts inactive, so installing one never changes an agent's
65
+ * behaviour on its own. Updating an existing one rewrites its name and description and leaves
66
+ * its status alone, so re-registering on every install refresh never deactivates a kickoff
67
+ * that is already live. Use the capability APIs to activate it, and to read, search or delete
68
+ * it afterwards.
69
+ *
70
+ * @param {MavenAGI.CreateConversationKickoffRequest} request
71
+ * @param {ConversationKickoffsClient.RequestOptions} requestOptions - Request-specific configuration.
72
+ *
73
+ * @throws {@link MavenAGI.NotFoundError}
74
+ * @throws {@link MavenAGI.BadRequestError}
75
+ * @throws {@link MavenAGI.PayloadTooLargeError}
76
+ * @throws {@link MavenAGI.TooManyRequestsError}
77
+ * @throws {@link MavenAGI.ServerError}
78
+ * @throws {@link errors.MavenAGIError}
79
+ * @throws {@link errors.MavenAGITimeoutError}
80
+ *
81
+ * @example
82
+ * await client.conversationKickoffs.createOrUpdate({
83
+ * kickoffId: {
84
+ * referenceId: "greet-returning-customer"
85
+ * },
86
+ * name: "Greet returning customer",
87
+ * description: "Looks up the customer's open orders before the agent's first reply"
88
+ * })
89
+ */
90
+ createOrUpdate(request, requestOptions) {
91
+ return core.HttpResponsePromise.fromPromise(this.__createOrUpdate(request, requestOptions));
92
+ }
93
+ __createOrUpdate(request, requestOptions) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
96
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
97
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
98
+ "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
99
+ "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
100
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
101
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
102
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/conversation-kickoffs"),
103
+ method: "PUT",
104
+ headers: _headers,
105
+ contentType: "application/json",
106
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
107
+ requestType: "json",
108
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CreateConversationKickoffRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
109
+ timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
110
+ maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
111
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
112
+ fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
113
+ logging: this._options.logging,
114
+ });
115
+ if (_response.ok) {
116
+ return {
117
+ data: serializers.ConversationKickoff.parseOrThrow(_response.body, {
118
+ unrecognizedObjectKeys: "passthrough",
119
+ allowUnrecognizedUnionMembers: true,
120
+ allowUnrecognizedEnumValues: true,
121
+ breadcrumbsPrefix: ["response"],
122
+ }),
123
+ rawResponse: _response.rawResponse,
124
+ };
125
+ }
126
+ if (_response.error.reason === "status-code") {
127
+ switch (_response.error.statusCode) {
128
+ case 404:
129
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
130
+ unrecognizedObjectKeys: "passthrough",
131
+ allowUnrecognizedUnionMembers: true,
132
+ allowUnrecognizedEnumValues: true,
133
+ breadcrumbsPrefix: ["response"],
134
+ }), _response.rawResponse);
135
+ case 400:
136
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
137
+ unrecognizedObjectKeys: "passthrough",
138
+ allowUnrecognizedUnionMembers: true,
139
+ allowUnrecognizedEnumValues: true,
140
+ breadcrumbsPrefix: ["response"],
141
+ }), _response.rawResponse);
142
+ case 413:
143
+ throw new MavenAGI.PayloadTooLargeError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
144
+ unrecognizedObjectKeys: "passthrough",
145
+ allowUnrecognizedUnionMembers: true,
146
+ allowUnrecognizedEnumValues: true,
147
+ breadcrumbsPrefix: ["response"],
148
+ }), _response.rawResponse);
149
+ case 429:
150
+ throw new MavenAGI.TooManyRequestsError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
151
+ unrecognizedObjectKeys: "passthrough",
152
+ allowUnrecognizedUnionMembers: true,
153
+ allowUnrecognizedEnumValues: true,
154
+ breadcrumbsPrefix: ["response"],
155
+ }), _response.rawResponse);
156
+ case 500:
157
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
158
+ unrecognizedObjectKeys: "passthrough",
159
+ allowUnrecognizedUnionMembers: true,
160
+ allowUnrecognizedEnumValues: true,
161
+ breadcrumbsPrefix: ["response"],
162
+ }), _response.rawResponse);
163
+ default:
164
+ throw new errors.MavenAGIError({
165
+ statusCode: _response.error.statusCode,
166
+ body: _response.error.body,
167
+ rawResponse: _response.rawResponse,
168
+ });
169
+ }
170
+ }
171
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/v1/conversation-kickoffs");
172
+ });
173
+ }
174
+ }
175
+ exports.ConversationKickoffsClient = ConversationKickoffsClient;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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("./requests"), exports);
@@ -0,0 +1,22 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * kickoffId: {
6
+ * referenceId: "greet-returning-customer"
7
+ * },
8
+ * name: "Greet returning customer",
9
+ * description: "Looks up the customer's open orders before the agent's first reply"
10
+ * }
11
+ */
12
+ export interface CreateConversationKickoffRequest {
13
+ /**
14
+ * ID that uniquely identifies this Conversation Kickoff. Must be unique within the
15
+ * calling app.
16
+ */
17
+ kickoffId: MavenAGI.EntityIdBase;
18
+ /** The kickoff's display name, shown to whoever manages the agent. */
19
+ name: string;
20
+ /** What the kickoff does, shown to whoever manages the agent. */
21
+ description?: string;
22
+ }
@@ -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 @@
1
+ export type { CreateConversationKickoffRequest } from "./CreateConversationKickoffRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ConversationKickoffsClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ConversationKickoffsClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "ConversationKickoffsClient", { enumerable: true, get: function () { return Client_1.ConversationKickoffsClient; } });
21
+ __exportStar(require("./client/index"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./types";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,27 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A Conversation Kickoff installed on an agent: code that runs when a conversation is created,
4
+ * before the agent produces its first reply.
5
+ *
6
+ * A kickoff has no settings of its own beyond the fields every capability has.
7
+ *
8
+ * @example
9
+ * {
10
+ * kickoffId: {
11
+ * referenceId: "greet-returning-customer",
12
+ * appId: "my-billing-system",
13
+ * organizationId: "acme",
14
+ * agentId: "support",
15
+ * type: MavenAGI.EntityType.ConversationKickoff
16
+ * },
17
+ * name: "Greet returning customer",
18
+ * description: "Looks the customer up and welcomes them back by name",
19
+ * status: MavenAGI.CapabilityStatus.Inactive,
20
+ * createdAt: new Date("2026-01-15T10:30:00.000Z"),
21
+ * updatedAt: new Date("2026-01-15T10:30:00.000Z")
22
+ * }
23
+ */
24
+ export interface ConversationKickoff extends MavenAGI.CapabilityBase {
25
+ /** ID that uniquely identifies this Conversation Kickoff. */
26
+ kickoffId: MavenAGI.EntityId;
27
+ }
@@ -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 @@
1
+ export * from "./ConversationKickoff";
@@ -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("./ConversationKickoff"), exports);
@@ -11,7 +11,7 @@ export declare class EventsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
12
12
  constructor(options: EventsClient.Options);
13
13
  /**
14
- * Create a new event
14
+ * Create a new event. Events are immutable, so a create that reuses the `referenceId` of an existing event in the same app is rejected with a 409 and leaves that event unchanged.
15
15
  *
16
16
  * @param {MavenAGI.EventRequest} request
17
17
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -58,7 +58,7 @@ class EventsClient {
58
58
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
59
59
  }
60
60
  /**
61
- * Create a new event
61
+ * Create a new event. Events are immutable, so a create that reuses the `referenceId` of an existing event in the same app is rejected with a 409 and leaves that event unchanged.
62
62
  *
63
63
  * @param {MavenAGI.EventRequest} request
64
64
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -10,4 +10,15 @@ export interface InboxFilter {
10
10
  createdAfter?: Date;
11
11
  /** Filter for items created before this timestamp. */
12
12
  createdBefore?: Date;
13
+ /**
14
+ * Filter for items raised from conversations pinned to any of these agent variants, by
15
+ * reference ID and owning app. Only missing-knowledge items are raised from
16
+ * conversations, so no other item type matches a variant. Simulation conversations don't
17
+ * count. Omit it to match items whatever variant their conversations ran on.
18
+ *
19
+ * Reads those conversations, so it needs permission to read conversations as well as the
20
+ * inbox. At most 10,000 items are considered: those referenced by the most of the
21
+ * variants' conversations.
22
+ */
23
+ variantIds?: MavenAGI.EntityIdFilter[];
13
24
  }
@@ -14,6 +14,9 @@ export * from "./appSettings/client/requests";
14
14
  export * from "./appSettings/types";
15
15
  export * as assets from "./assets";
16
16
  export * from "./assets/types";
17
+ export * as capabilities from "./capabilities";
18
+ export * from "./capabilities/client/requests";
19
+ export * from "./capabilities/types";
17
20
  export * as charters from "./charters";
18
21
  export * from "./charters/client/requests";
19
22
  export * from "./charters/types";
@@ -23,6 +26,9 @@ export * from "./commons/types";
23
26
  export * as conversation from "./conversation";
24
27
  export * from "./conversation/client/requests";
25
28
  export * from "./conversation/types";
29
+ export * as conversationKickoffs from "./conversationKickoffs";
30
+ export * from "./conversationKickoffs/client/requests";
31
+ export * from "./conversationKickoffs/types";
26
32
  export * as customers from "./customers";
27
33
  export * from "./customers/client/requests";
28
34
  export * from "./customers/types";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.voiceConversations = exports.voice = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.intelligentFields = exports.integrations = exports.inbox = exports.events = exports.developersCommons = exports.customers = exports.conversation = exports.commons = exports.charters = exports.assets = exports.appSettings = exports.appDirectory = exports.analytics = exports.agents = exports.actions = void 0;
39
+ exports.voiceConversations = exports.voice = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.intelligentFields = exports.integrations = exports.inbox = exports.events = exports.developersCommons = exports.customers = exports.conversationKickoffs = exports.conversation = exports.commons = exports.charters = exports.capabilities = exports.assets = exports.appSettings = exports.appDirectory = exports.analytics = exports.agents = exports.actions = void 0;
40
40
  exports.actions = __importStar(require("./actions"));
41
41
  __exportStar(require("./actions/client/requests"), exports);
42
42
  __exportStar(require("./actions/types"), exports);
@@ -53,6 +53,9 @@ __exportStar(require("./appSettings/client/requests"), exports);
53
53
  __exportStar(require("./appSettings/types"), exports);
54
54
  exports.assets = __importStar(require("./assets"));
55
55
  __exportStar(require("./assets/types"), exports);
56
+ exports.capabilities = __importStar(require("./capabilities"));
57
+ __exportStar(require("./capabilities/client/requests"), exports);
58
+ __exportStar(require("./capabilities/types"), exports);
56
59
  exports.charters = __importStar(require("./charters"));
57
60
  __exportStar(require("./charters/client/requests"), exports);
58
61
  __exportStar(require("./charters/types"), exports);
@@ -62,6 +65,9 @@ __exportStar(require("./commons/types"), exports);
62
65
  exports.conversation = __importStar(require("./conversation"));
63
66
  __exportStar(require("./conversation/client/requests"), exports);
64
67
  __exportStar(require("./conversation/types"), exports);
68
+ exports.conversationKickoffs = __importStar(require("./conversationKickoffs"));
69
+ __exportStar(require("./conversationKickoffs/client/requests"), exports);
70
+ __exportStar(require("./conversationKickoffs/types"), exports);
65
71
  exports.customers = __importStar(require("./customers"));
66
72
  __exportStar(require("./customers/client/requests"), exports);
67
73
  __exportStar(require("./customers/types"), exports);
@@ -16,7 +16,15 @@ export declare class IntelligentFieldsClient {
16
16
  * entities such as conversations.
17
17
  *
18
18
  * New fields are created with `status: INACTIVE` and are not evaluated until activated
19
- * with the patch endpoint. `definition` is limited to 5,000 characters.
19
+ * with the patch endpoint. A new field created in a `variantId` starts `ACTIVE` instead,
20
+ * since it is evaluated only once that variant is published and given traffic; it starts
21
+ * `INACTIVE` while the agent is at its limit of active fields. `definition` is limited
22
+ * to 5,000 characters.
23
+ *
24
+ * A replace that names a `variantId` must keep the field's `validationType` as that
25
+ * variant has it, or it is rejected with reason `INTELLIGENT_FIELD_TYPE_CHANGED`. To use
26
+ * a different type, create a new field. A field deleted in the variant may be recreated
27
+ * with any type.
20
28
  *
21
29
  * @param {MavenAGI.IntelligentFieldRequest} request
22
30
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -40,7 +48,8 @@ export declare class IntelligentFieldsClient {
40
48
  * validationType: "STRING",
41
49
  * enumOptions: [{
42
50
  * value: "HIGH",
43
- * label: "High Priority"
51
+ * label: "High Priority",
52
+ * description: "The customer is blocked or reports an outage."
44
53
  * }, {
45
54
  * value: "MEDIUM",
46
55
  * label: "Medium Priority"
@@ -54,6 +63,12 @@ export declare class IntelligentFieldsClient {
54
63
  createOrUpdate(request: MavenAGI.IntelligentFieldRequest, requestOptions?: IntelligentFieldsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.IntelligentFieldResponse>;
55
64
  private __createOrUpdate;
56
65
  /**
66
+ * @deprecated
67
+ *
68
+ * Deprecated. Use `GET /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which reads any
69
+ * kind of capability the same way. It does not carry `referencingCharters`; search
70
+ * charters to find the ones that reference a capability.
71
+ *
57
72
  * Get an intelligent field by its supplied ID
58
73
  *
59
74
  * @param {string} fieldReferenceId - The reference ID of the intelligent field to get. All other entity ID fields are inferred from the request.
@@ -106,11 +121,16 @@ export declare class IntelligentFieldsClient {
106
121
  patch(fieldReferenceId: string, request?: MavenAGI.IntelligentFieldPatchRequest, requestOptions?: IntelligentFieldsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.IntelligentFieldResponse>;
107
122
  private __patch;
108
123
  /**
124
+ * @deprecated
125
+ *
126
+ * Deprecated. Use `DELETE /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which
127
+ * deletes any kind of capability the same way. That endpoint returns no body.
128
+ *
109
129
  * Soft delete an intelligent field. Only INACTIVE fields can be deleted.
110
130
  *
111
131
  * Deleted fields are excluded from search results but can still be retrieved by ID.
112
132
  * Creating a new field with the same referenceId as a deleted field will overwrite
113
- * the deleted field and restore it to INACTIVE status.
133
+ * the deleted field and restore it with the status a new field gets.
114
134
  *
115
135
  * Deleted fields cannot be modified.
116
136
  *
@@ -63,7 +63,15 @@ class IntelligentFieldsClient {
63
63
  * entities such as conversations.
64
64
  *
65
65
  * New fields are created with `status: INACTIVE` and are not evaluated until activated
66
- * with the patch endpoint. `definition` is limited to 5,000 characters.
66
+ * with the patch endpoint. A new field created in a `variantId` starts `ACTIVE` instead,
67
+ * since it is evaluated only once that variant is published and given traffic; it starts
68
+ * `INACTIVE` while the agent is at its limit of active fields. `definition` is limited
69
+ * to 5,000 characters.
70
+ *
71
+ * A replace that names a `variantId` must keep the field's `validationType` as that
72
+ * variant has it, or it is rejected with reason `INTELLIGENT_FIELD_TYPE_CHANGED`. To use
73
+ * a different type, create a new field. A field deleted in the variant may be recreated
74
+ * with any type.
67
75
  *
68
76
  * @param {MavenAGI.IntelligentFieldRequest} request
69
77
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -87,7 +95,8 @@ class IntelligentFieldsClient {
87
95
  * validationType: "STRING",
88
96
  * enumOptions: [{
89
97
  * value: "HIGH",
90
- * label: "High Priority"
98
+ * label: "High Priority",
99
+ * description: "The customer is blocked or reports an outage."
91
100
  * }, {
92
101
  * value: "MEDIUM",
93
102
  * label: "Medium Priority"
@@ -183,6 +192,12 @@ class IntelligentFieldsClient {
183
192
  });
184
193
  }
185
194
  /**
195
+ * @deprecated
196
+ *
197
+ * Deprecated. Use `GET /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which reads any
198
+ * kind of capability the same way. It does not carry `referencingCharters`; search
199
+ * charters to find the ones that reference a capability.
200
+ *
186
201
  * Get an intelligent field by its supplied ID
187
202
  *
188
203
  * @param {string} fieldReferenceId - The reference ID of the intelligent field to get. All other entity ID fields are inferred from the request.
@@ -406,11 +421,16 @@ class IntelligentFieldsClient {
406
421
  });
407
422
  }
408
423
  /**
424
+ * @deprecated
425
+ *
426
+ * Deprecated. Use `DELETE /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which
427
+ * deletes any kind of capability the same way. That endpoint returns no body.
428
+ *
409
429
  * Soft delete an intelligent field. Only INACTIVE fields can be deleted.
410
430
  *
411
431
  * Deleted fields are excluded from search results but can still be retrieved by ID.
412
432
  * Creating a new field with the same referenceId as a deleted field will overwrite
413
- * the deleted field and restore it to INACTIVE status.
433
+ * the deleted field and restore it with the status a new field gets.
414
434
  *
415
435
  * Deleted fields cannot be modified.
416
436
  *
@@ -5,7 +5,7 @@
5
5
  export interface IntelligentFieldDeleteRequest {
6
6
  /** The App ID of the intelligent field to delete. If not provided, the ID of the calling app will be used. */
7
7
  appId?: string;
8
- /** The agent variant reference ID of the intelligent field to delete. */
8
+ /** The agent variant to stage the delete in, by reference ID. Required on an agent with versioned intelligent fields; a delete that omits it there is rejected with reason `VARIANT_REQUIRED`. */
9
9
  variantReferenceId?: string;
10
10
  /** The App ID of the agent variant reference for the intelligent field to delete. If not provided, the ID of the calling app will be used. */
11
11
  variantAppId?: string;