mavenagi 0.0.0-alpha.3 → 0.0.0-alpha.4

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 (282) hide show
  1. package/Client.d.ts +9 -6
  2. package/Client.js +13 -8
  3. package/README.md +57 -33
  4. package/api/resources/actions/client/Client.d.ts +123 -0
  5. package/api/resources/actions/client/Client.js +564 -0
  6. package/api/resources/{action → actions}/types/Action.d.ts +2 -2
  7. package/{dist/api/resources/actionSet → api/resources/actions}/types/ActionSetResponse.d.ts +0 -2
  8. package/api/resources/{actionSet → actions}/types/index.d.ts +2 -0
  9. package/{dist/serialization/resources/actionSet → api/resources/actions}/types/index.js +2 -0
  10. package/api/resources/commons/types/AppUser.d.ts +10 -0
  11. package/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
  12. package/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -0
  13. package/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
  14. package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
  15. package/api/resources/commons/types/Feedback.d.ts +1 -1
  16. package/api/resources/commons/types/index.d.ts +4 -0
  17. package/api/resources/commons/types/index.js +4 -0
  18. package/api/resources/conversation/client/Client.d.ts +8 -2
  19. package/api/resources/conversation/client/Client.js +16 -10
  20. package/api/resources/conversation/types/AskRequest.d.ts +2 -0
  21. package/api/resources/conversation/types/Capability.d.ts +8 -0
  22. package/api/resources/conversation/types/Capability.js +7 -0
  23. package/api/resources/conversation/types/ConversationBase.d.ts +2 -0
  24. package/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
  25. package/api/resources/conversation/types/ResponseLength.d.ts +9 -0
  26. package/api/resources/conversation/types/ResponseLength.js +8 -0
  27. package/api/resources/conversation/types/index.d.ts +3 -0
  28. package/api/resources/conversation/types/index.js +3 -0
  29. package/api/resources/index.d.ts +5 -4
  30. package/api/resources/index.js +5 -4
  31. package/api/resources/knowledge/client/Client.d.ts +22 -6
  32. package/api/resources/knowledge/client/Client.js +103 -14
  33. package/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
  34. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  35. package/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
  36. package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
  37. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -0
  38. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -0
  39. package/api/resources/knowledge/types/index.d.ts +4 -1
  40. package/api/resources/knowledge/types/index.js +4 -1
  41. package/api/resources/{action → triggers}/client/Client.d.ts +23 -29
  42. package/api/resources/{actionSet → triggers}/client/Client.js +32 -31
  43. package/api/resources/triggers/types/EventTrigger.d.ts +12 -0
  44. package/api/resources/triggers/types/EventTrigger.js +4 -0
  45. package/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
  46. package/api/resources/triggers/types/EventTriggerType.js +7 -0
  47. package/api/resources/triggers/types/index.d.ts +2 -0
  48. package/api/resources/triggers/types/index.js +2 -0
  49. package/api/resources/user/client/Client.d.ts +62 -0
  50. package/api/resources/{action → user}/client/Client.js +29 -113
  51. package/api/resources/user/index.d.ts +1 -0
  52. package/api/resources/user/index.js +1 -0
  53. package/dist/Client.d.ts +9 -6
  54. package/dist/Client.js +13 -8
  55. package/dist/api/resources/actions/client/Client.d.ts +123 -0
  56. package/dist/api/resources/actions/client/Client.js +564 -0
  57. package/dist/api/resources/{action → actions}/types/Action.d.ts +2 -2
  58. package/dist/api/resources/actions/types/Action.js +4 -0
  59. package/dist/api/resources/actions/types/ActionParameter.js +4 -0
  60. package/dist/api/resources/actions/types/ActionSetBase.js +4 -0
  61. package/dist/api/resources/actions/types/ActionSetRequest.js +4 -0
  62. package/{api/resources/actionSet → dist/api/resources/actions}/types/ActionSetResponse.d.ts +0 -2
  63. package/dist/api/resources/actions/types/ActionSetResponse.js +4 -0
  64. package/dist/{serialization/resources/actionSet → api/resources/actions}/types/index.d.ts +2 -0
  65. package/{api/resources/actionSet → dist/api/resources/actions}/types/index.js +2 -0
  66. package/dist/api/resources/commons/types/AppUser.d.ts +10 -0
  67. package/dist/api/resources/commons/types/AppUser.js +4 -0
  68. package/dist/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
  69. package/dist/api/resources/commons/types/AppUserIdentification.js +4 -0
  70. package/dist/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -0
  71. package/dist/api/resources/commons/types/AppUserIdentifyingProperty.js +4 -0
  72. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
  73. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
  74. package/dist/api/resources/commons/types/Feedback.d.ts +1 -1
  75. package/dist/api/resources/commons/types/index.d.ts +4 -0
  76. package/dist/api/resources/commons/types/index.js +4 -0
  77. package/dist/api/resources/conversation/client/Client.d.ts +8 -2
  78. package/dist/api/resources/conversation/client/Client.js +16 -10
  79. package/dist/api/resources/conversation/types/AskRequest.d.ts +2 -0
  80. package/dist/api/resources/conversation/types/Capability.d.ts +8 -0
  81. package/dist/api/resources/conversation/types/Capability.js +7 -0
  82. package/dist/api/resources/conversation/types/ConversationBase.d.ts +2 -0
  83. package/dist/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
  84. package/dist/api/resources/conversation/types/ResponseConfig.js +4 -0
  85. package/dist/api/resources/conversation/types/ResponseLength.d.ts +9 -0
  86. package/dist/api/resources/conversation/types/ResponseLength.js +8 -0
  87. package/dist/api/resources/conversation/types/index.d.ts +3 -0
  88. package/dist/api/resources/conversation/types/index.js +3 -0
  89. package/dist/api/resources/index.d.ts +5 -4
  90. package/dist/api/resources/index.js +5 -4
  91. package/dist/api/resources/knowledge/client/Client.d.ts +22 -6
  92. package/dist/api/resources/knowledge/client/Client.js +103 -14
  93. package/dist/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
  94. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
  95. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  96. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
  97. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
  98. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -0
  99. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
  100. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -0
  101. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  102. package/dist/api/resources/knowledge/types/index.d.ts +4 -1
  103. package/dist/api/resources/knowledge/types/index.js +4 -1
  104. package/dist/api/resources/{action → triggers}/client/Client.d.ts +23 -29
  105. package/dist/api/resources/{actionSet → triggers}/client/Client.js +32 -31
  106. package/dist/api/resources/triggers/client/index.d.ts +1 -0
  107. package/dist/api/resources/triggers/client/index.js +1 -0
  108. package/dist/api/resources/triggers/types/EventTrigger.d.ts +12 -0
  109. package/dist/api/resources/triggers/types/EventTrigger.js +4 -0
  110. package/dist/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
  111. package/dist/api/resources/triggers/types/EventTriggerType.js +7 -0
  112. package/dist/api/resources/triggers/types/index.d.ts +2 -0
  113. package/dist/api/resources/triggers/types/index.js +2 -0
  114. package/dist/api/resources/user/client/Client.d.ts +62 -0
  115. package/dist/api/resources/{action → user}/client/Client.js +29 -113
  116. package/dist/api/resources/user/client/index.d.ts +1 -0
  117. package/dist/api/resources/user/client/index.js +1 -0
  118. package/dist/api/resources/user/index.d.ts +1 -0
  119. package/dist/api/resources/user/index.js +1 -0
  120. package/dist/serialization/resources/{actionSet → actions}/types/ActionSetResponse.d.ts +0 -2
  121. package/dist/serialization/resources/actions/types/ActionSetResponse.js +6 -0
  122. package/dist/{api/resources/actionSet → serialization/resources/actions}/types/index.d.ts +2 -0
  123. package/{serialization/resources/actionSet → dist/serialization/resources/actions}/types/index.js +2 -0
  124. package/dist/serialization/resources/commons/types/AppUser.d.ts +15 -0
  125. package/dist/serialization/resources/commons/types/AppUser.js +10 -0
  126. package/dist/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
  127. package/dist/serialization/resources/commons/types/AppUserIdentification.js +8 -0
  128. package/dist/serialization/resources/commons/types/AppUserIdentifyingProperty.d.ts +14 -0
  129. package/dist/serialization/resources/commons/types/AppUserIdentifyingProperty.js +9 -0
  130. package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
  131. package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
  132. package/dist/serialization/resources/commons/types/Feedback.d.ts +1 -1
  133. package/dist/serialization/resources/commons/types/Feedback.js +1 -1
  134. package/dist/serialization/resources/commons/types/index.d.ts +4 -0
  135. package/dist/serialization/resources/commons/types/index.js +4 -0
  136. package/dist/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
  137. package/dist/serialization/resources/conversation/types/AskRequest.js +2 -0
  138. package/dist/serialization/resources/conversation/types/Capability.d.ts +10 -0
  139. package/dist/serialization/resources/conversation/types/Capability.js +5 -0
  140. package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +2 -0
  141. package/dist/serialization/resources/conversation/types/ConversationBase.js +2 -0
  142. package/dist/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
  143. package/dist/serialization/resources/conversation/types/ResponseConfig.js +11 -0
  144. package/dist/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
  145. package/dist/serialization/resources/conversation/types/ResponseLength.js +5 -0
  146. package/dist/serialization/resources/conversation/types/index.d.ts +3 -0
  147. package/dist/serialization/resources/conversation/types/index.js +3 -0
  148. package/dist/serialization/resources/index.d.ts +4 -4
  149. package/dist/serialization/resources/index.js +4 -4
  150. package/dist/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
  151. package/dist/serialization/resources/knowledge/types/{KnowledgeDocument.js → BaseKnowledgeDocument.js} +3 -4
  152. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
  153. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
  154. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +15 -0
  155. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +12 -0
  156. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -0
  157. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +10 -0
  158. package/dist/serialization/resources/knowledge/types/index.d.ts +4 -1
  159. package/dist/serialization/resources/knowledge/types/index.js +4 -1
  160. package/dist/serialization/resources/triggers/types/EventTrigger.d.ts +15 -0
  161. package/dist/serialization/resources/triggers/types/EventTrigger.js +10 -0
  162. package/dist/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
  163. package/dist/serialization/resources/triggers/types/EventTriggerType.js +5 -0
  164. package/dist/serialization/resources/triggers/types/index.d.ts +2 -0
  165. package/dist/serialization/resources/triggers/types/index.js +2 -0
  166. package/package.json +1 -1
  167. package/serialization/resources/{actionSet → actions}/types/ActionSetResponse.d.ts +0 -2
  168. package/serialization/resources/actions/types/ActionSetResponse.js +6 -0
  169. package/serialization/resources/{actionSet → actions}/types/index.d.ts +2 -0
  170. package/{dist/api/resources/actionSet → serialization/resources/actions}/types/index.js +2 -0
  171. package/serialization/resources/commons/types/AppUser.d.ts +15 -0
  172. package/serialization/resources/commons/types/AppUser.js +10 -0
  173. package/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
  174. package/serialization/resources/commons/types/AppUserIdentification.js +8 -0
  175. package/serialization/resources/commons/types/AppUserIdentifyingProperty.d.ts +14 -0
  176. package/serialization/resources/commons/types/AppUserIdentifyingProperty.js +9 -0
  177. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
  178. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
  179. package/serialization/resources/commons/types/Feedback.d.ts +1 -1
  180. package/serialization/resources/commons/types/Feedback.js +1 -1
  181. package/serialization/resources/commons/types/index.d.ts +4 -0
  182. package/serialization/resources/commons/types/index.js +4 -0
  183. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
  184. package/serialization/resources/conversation/types/AskRequest.js +2 -0
  185. package/serialization/resources/conversation/types/Capability.d.ts +10 -0
  186. package/serialization/resources/conversation/types/Capability.js +5 -0
  187. package/serialization/resources/conversation/types/ConversationBase.d.ts +2 -0
  188. package/serialization/resources/conversation/types/ConversationBase.js +2 -0
  189. package/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
  190. package/serialization/resources/conversation/types/ResponseConfig.js +11 -0
  191. package/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
  192. package/serialization/resources/conversation/types/ResponseLength.js +5 -0
  193. package/serialization/resources/conversation/types/index.d.ts +3 -0
  194. package/serialization/resources/conversation/types/index.js +3 -0
  195. package/serialization/resources/index.d.ts +4 -4
  196. package/serialization/resources/index.js +4 -4
  197. package/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
  198. package/serialization/resources/knowledge/types/{KnowledgeDocument.js → BaseKnowledgeDocument.js} +3 -4
  199. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
  200. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
  201. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +15 -0
  202. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +12 -0
  203. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -0
  204. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +10 -0
  205. package/serialization/resources/knowledge/types/index.d.ts +4 -1
  206. package/serialization/resources/knowledge/types/index.js +4 -1
  207. package/serialization/resources/triggers/types/EventTrigger.d.ts +15 -0
  208. package/serialization/resources/triggers/types/EventTrigger.js +10 -0
  209. package/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
  210. package/serialization/resources/triggers/types/EventTriggerType.js +5 -0
  211. package/serialization/resources/triggers/types/index.d.ts +2 -0
  212. package/serialization/resources/triggers/types/index.js +2 -0
  213. package/api/resources/action/types/index.d.ts +0 -2
  214. package/api/resources/action/types/index.js +0 -2
  215. package/api/resources/actionSet/client/Client.d.ts +0 -71
  216. package/dist/api/resources/action/types/index.d.ts +0 -2
  217. package/dist/api/resources/action/types/index.js +0 -2
  218. package/dist/api/resources/actionSet/client/Client.d.ts +0 -71
  219. package/dist/serialization/resources/action/types/index.d.ts +0 -2
  220. package/dist/serialization/resources/action/types/index.js +0 -2
  221. package/dist/serialization/resources/actionSet/types/ActionSetResponse.js +0 -11
  222. package/serialization/resources/action/types/index.d.ts +0 -2
  223. package/serialization/resources/action/types/index.js +0 -2
  224. package/serialization/resources/actionSet/types/ActionSetResponse.js +0 -11
  225. /package/api/resources/{action → actions}/client/index.d.ts +0 -0
  226. /package/api/resources/{action → actions}/client/index.js +0 -0
  227. /package/api/resources/{action → actions}/index.d.ts +0 -0
  228. /package/api/resources/{action → actions}/index.js +0 -0
  229. /package/api/resources/{action → actions}/types/Action.js +0 -0
  230. /package/api/resources/{action → actions}/types/ActionParameter.d.ts +0 -0
  231. /package/api/resources/{action → actions}/types/ActionParameter.js +0 -0
  232. /package/api/resources/{actionSet → actions}/types/ActionSetBase.d.ts +0 -0
  233. /package/api/resources/{actionSet → actions}/types/ActionSetBase.js +0 -0
  234. /package/api/resources/{actionSet → actions}/types/ActionSetRequest.d.ts +0 -0
  235. /package/api/resources/{actionSet → actions}/types/ActionSetRequest.js +0 -0
  236. /package/api/resources/{actionSet → actions}/types/ActionSetResponse.js +0 -0
  237. /package/api/resources/{knowledge/types/KnowledgeDocument.js → commons/types/AppUser.js} +0 -0
  238. /package/{dist/api/resources/action/types/Action.js → api/resources/commons/types/AppUserIdentification.js} +0 -0
  239. /package/{dist/api/resources/action/types/ActionParameter.js → api/resources/commons/types/AppUserIdentifyingProperty.js} +0 -0
  240. /package/{dist/api/resources/actionSet/types/ActionSetBase.js → api/resources/conversation/types/ResponseConfig.js} +0 -0
  241. /package/{dist/api/resources/actionSet/types/ActionSetRequest.js → api/resources/knowledge/types/BaseKnowledgeDocument.js} +0 -0
  242. /package/{dist/api/resources/actionSet/types/ActionSetResponse.js → api/resources/knowledge/types/KnowledgeDocumentRequest.js} +0 -0
  243. /package/{dist/api/resources/knowledge/types/KnowledgeDocument.js → api/resources/knowledge/types/KnowledgeDocumentResponse.js} +0 -0
  244. /package/api/resources/{actionSet → triggers}/client/index.d.ts +0 -0
  245. /package/api/resources/{actionSet → triggers}/client/index.js +0 -0
  246. /package/api/resources/{actionSet → triggers}/index.d.ts +0 -0
  247. /package/api/resources/{actionSet → triggers}/index.js +0 -0
  248. /package/{dist/api/resources/action → api/resources/user}/client/index.d.ts +0 -0
  249. /package/{dist/api/resources/action → api/resources/user}/client/index.js +0 -0
  250. /package/dist/api/resources/{actionSet → actions}/client/index.d.ts +0 -0
  251. /package/dist/api/resources/{actionSet → actions}/client/index.js +0 -0
  252. /package/dist/api/resources/{action → actions}/index.d.ts +0 -0
  253. /package/dist/api/resources/{action → actions}/index.js +0 -0
  254. /package/dist/api/resources/{action → actions}/types/ActionParameter.d.ts +0 -0
  255. /package/dist/api/resources/{actionSet → actions}/types/ActionSetBase.d.ts +0 -0
  256. /package/dist/api/resources/{actionSet → actions}/types/ActionSetRequest.d.ts +0 -0
  257. /package/dist/api/resources/{actionSet → triggers}/index.d.ts +0 -0
  258. /package/dist/api/resources/{actionSet → triggers}/index.js +0 -0
  259. /package/dist/serialization/resources/{action → actions}/index.d.ts +0 -0
  260. /package/dist/serialization/resources/{action → actions}/index.js +0 -0
  261. /package/dist/serialization/resources/{action → actions}/types/Action.d.ts +0 -0
  262. /package/dist/serialization/resources/{action → actions}/types/Action.js +0 -0
  263. /package/dist/serialization/resources/{action → actions}/types/ActionParameter.d.ts +0 -0
  264. /package/dist/serialization/resources/{action → actions}/types/ActionParameter.js +0 -0
  265. /package/dist/serialization/resources/{actionSet → actions}/types/ActionSetBase.d.ts +0 -0
  266. /package/dist/serialization/resources/{actionSet → actions}/types/ActionSetBase.js +0 -0
  267. /package/dist/serialization/resources/{actionSet → actions}/types/ActionSetRequest.d.ts +0 -0
  268. /package/dist/serialization/resources/{actionSet → actions}/types/ActionSetRequest.js +0 -0
  269. /package/dist/serialization/resources/{actionSet → triggers}/index.d.ts +0 -0
  270. /package/dist/serialization/resources/{actionSet → triggers}/index.js +0 -0
  271. /package/serialization/resources/{action → actions}/index.d.ts +0 -0
  272. /package/serialization/resources/{action → actions}/index.js +0 -0
  273. /package/serialization/resources/{action → actions}/types/Action.d.ts +0 -0
  274. /package/serialization/resources/{action → actions}/types/Action.js +0 -0
  275. /package/serialization/resources/{action → actions}/types/ActionParameter.d.ts +0 -0
  276. /package/serialization/resources/{action → actions}/types/ActionParameter.js +0 -0
  277. /package/serialization/resources/{actionSet → actions}/types/ActionSetBase.d.ts +0 -0
  278. /package/serialization/resources/{actionSet → actions}/types/ActionSetBase.js +0 -0
  279. /package/serialization/resources/{actionSet → actions}/types/ActionSetRequest.d.ts +0 -0
  280. /package/serialization/resources/{actionSet → actions}/types/ActionSetRequest.js +0 -0
  281. /package/serialization/resources/{actionSet → triggers}/index.d.ts +0 -0
  282. /package/serialization/resources/{actionSet → triggers}/index.js +0 -0
package/dist/Client.js CHANGED
@@ -1,21 +1,18 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { ActionSet } from "./api/resources/actionSet/client/Client";
5
- import { Action } from "./api/resources/action/client/Client";
4
+ import { Actions } from "./api/resources/actions/client/Client";
6
5
  import { Conversation } from "./api/resources/conversation/client/Client";
7
6
  import { Knowledge } from "./api/resources/knowledge/client/Client";
7
+ import { Triggers } from "./api/resources/triggers/client/Client";
8
+ import { User } from "./api/resources/user/client/Client";
8
9
  export class MavenAGIClient {
9
10
  constructor(_options) {
10
11
  this._options = _options;
11
12
  }
12
- get actionSet() {
13
+ get actions() {
13
14
  var _a;
14
- return ((_a = this._actionSet) !== null && _a !== void 0 ? _a : (this._actionSet = new ActionSet(this._options)));
15
- }
16
- get action() {
17
- var _a;
18
- return ((_a = this._action) !== null && _a !== void 0 ? _a : (this._action = new Action(this._options)));
15
+ return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Actions(this._options)));
19
16
  }
20
17
  get conversation() {
21
18
  var _a;
@@ -25,4 +22,12 @@ export class MavenAGIClient {
25
22
  var _a;
26
23
  return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Knowledge(this._options)));
27
24
  }
25
+ get triggers() {
26
+ var _a;
27
+ return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Triggers(this._options)));
28
+ }
29
+ get user() {
30
+ var _a;
31
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new User(this._options)));
32
+ }
28
33
  }
@@ -0,0 +1,123 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as MavenAGI from "../../../index";
7
+ export declare namespace Actions {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
10
+ appId?: core.Supplier<string | undefined>;
11
+ appSecret?: core.Supplier<string | undefined>;
12
+ organizationId: core.Supplier<string>;
13
+ agentId: core.Supplier<string>;
14
+ fetcher?: core.FetchFunction;
15
+ }
16
+ interface RequestOptions {
17
+ timeoutInSeconds?: number;
18
+ maxRetries?: number;
19
+ abortSignal?: AbortSignal;
20
+ }
21
+ }
22
+ export declare class Actions {
23
+ protected readonly _options: Actions.Options;
24
+ constructor(_options: Actions.Options);
25
+ /**
26
+ * Update an action set or create it if it doesn't exist
27
+ *
28
+ * @param {MavenAGI.ActionSetRequest} request
29
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @throws {@link MavenAGI.NotFoundError}
32
+ * @throws {@link MavenAGI.BadRequestError}
33
+ * @throws {@link MavenAGI.ServerError}
34
+ *
35
+ * @example
36
+ * await client.actions.createActionSet({
37
+ * id: "string",
38
+ * name: "string"
39
+ * })
40
+ */
41
+ createActionSet(request: MavenAGI.ActionSetRequest, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.ActionSetResponse>;
42
+ /**
43
+ * Get an action set by its supplied ID
44
+ *
45
+ * @param {string} actionSetId - The ID of the action set to get
46
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @throws {@link MavenAGI.NotFoundError}
49
+ * @throws {@link MavenAGI.BadRequestError}
50
+ * @throws {@link MavenAGI.ServerError}
51
+ *
52
+ * @example
53
+ * await client.actions.getActionSet("string")
54
+ */
55
+ getActionSet(actionSetId: string, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.ActionSetResponse>;
56
+ /**
57
+ * Delete an action set
58
+ *
59
+ * @param {string} actionSetId - The ID of the action set to delete
60
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @throws {@link MavenAGI.NotFoundError}
63
+ * @throws {@link MavenAGI.BadRequestError}
64
+ * @throws {@link MavenAGI.ServerError}
65
+ *
66
+ * @example
67
+ * await client.actions.deleteActionSet("string")
68
+ */
69
+ deleteActionSet(actionSetId: string, requestOptions?: Actions.RequestOptions): Promise<void>;
70
+ /**
71
+ * Update an action or create it if it doesn't exist
72
+ *
73
+ * @param {MavenAGI.Action} request
74
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link MavenAGI.NotFoundError}
77
+ * @throws {@link MavenAGI.BadRequestError}
78
+ * @throws {@link MavenAGI.ServerError}
79
+ *
80
+ * @example
81
+ * await client.actions.registerAction({
82
+ * id: "string",
83
+ * actionSetId: "string",
84
+ * appId: "string",
85
+ * name: "string",
86
+ * description: "string",
87
+ * userInteractionRequired: true,
88
+ * buttonName: "string",
89
+ * requiredUserContextFieldNames: new Set(["string"]),
90
+ * userFormParameters: [{}]
91
+ * })
92
+ */
93
+ registerAction(request: MavenAGI.Action, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.Action>;
94
+ /**
95
+ * Get an action by its supplied ID
96
+ *
97
+ * @param {string} actionId - The ID of the action to get
98
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
99
+ *
100
+ * @throws {@link MavenAGI.NotFoundError}
101
+ * @throws {@link MavenAGI.BadRequestError}
102
+ * @throws {@link MavenAGI.ServerError}
103
+ *
104
+ * @example
105
+ * await client.actions.getAction("string")
106
+ */
107
+ getAction(actionId: string, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.Action>;
108
+ /**
109
+ * Delete an action
110
+ *
111
+ * @param {string} actionId - The ID of the action to delete
112
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
113
+ *
114
+ * @throws {@link MavenAGI.NotFoundError}
115
+ * @throws {@link MavenAGI.BadRequestError}
116
+ * @throws {@link MavenAGI.ServerError}
117
+ *
118
+ * @example
119
+ * await client.actions.deleteAction("string")
120
+ */
121
+ deleteAction(actionId: string, requestOptions?: Actions.RequestOptions): Promise<void>;
122
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
123
+ }