mavenagi 1.2.5 → 1.2.7

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 (265) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +28 -33
  3. package/README.md +21 -21
  4. package/api/resources/analytics/client/Client.d.ts +10 -0
  5. package/api/resources/analytics/client/Client.js +83 -0
  6. package/api/resources/commons/types/AppUserResponse.d.ts +12 -0
  7. package/api/resources/commons/types/ConversationResponse.d.ts +2 -1
  8. package/api/resources/commons/types/ConversationSummary.d.ts +6 -0
  9. package/api/resources/commons/types/UserDataWithReference.d.ts +5 -0
  10. package/api/resources/commons/types/index.d.ts +1 -0
  11. package/api/resources/commons/types/index.js +1 -0
  12. package/api/resources/conversation/client/Client.d.ts +19 -0
  13. package/api/resources/conversation/client/Client.js +94 -0
  14. package/api/resources/conversation/client/requests/SimulationImportRequest.d.ts +5 -0
  15. package/api/resources/conversation/client/requests/index.d.ts +1 -0
  16. package/api/resources/index.d.ts +0 -2
  17. package/api/resources/index.js +1 -3
  18. package/api/resources/knowledge/client/Client.d.ts +24 -0
  19. package/api/resources/knowledge/client/Client.js +104 -0
  20. package/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +13 -0
  21. package/api/resources/knowledge/client/requests/index.d.ts +1 -0
  22. package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -4
  23. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  24. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +7 -1
  25. package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +4 -0
  26. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -0
  27. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +4 -1
  28. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +30 -0
  29. package/core/exports.d.ts +1 -0
  30. package/{api/resources/agentCapabilities/index.js → core/exports.js} +1 -2
  31. package/core/file/exports.d.ts +1 -0
  32. package/core/file/file.d.ts +5 -0
  33. package/core/file/file.js +203 -0
  34. package/{dist/serialization/resources/agentCapabilities → core/file}/index.d.ts +1 -0
  35. package/{dist/serialization/resources/agentCapabilities → core/file}/index.js +1 -0
  36. package/core/file/types.d.ts +66 -0
  37. package/core/form-data-utils/FormDataWrapper.d.ts +16 -0
  38. package/core/form-data-utils/FormDataWrapper.js +208 -0
  39. package/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  40. package/core/form-data-utils/encodeAsFormParameter.js +12 -0
  41. package/core/form-data-utils/index.d.ts +2 -0
  42. package/core/form-data-utils/index.js +20 -0
  43. package/core/index.d.ts +2 -0
  44. package/core/index.js +3 -1
  45. package/dist/Client.d.ts +0 -3
  46. package/dist/Client.js +28 -33
  47. package/dist/api/resources/analytics/client/Client.d.ts +10 -0
  48. package/dist/api/resources/analytics/client/Client.js +83 -0
  49. package/dist/api/resources/commons/types/AppUserResponse.d.ts +12 -0
  50. package/dist/api/resources/commons/types/ConversationResponse.d.ts +2 -1
  51. package/dist/api/resources/commons/types/ConversationSummary.d.ts +6 -0
  52. package/dist/api/resources/commons/types/UserDataWithReference.d.ts +5 -0
  53. package/dist/api/resources/commons/types/index.d.ts +1 -0
  54. package/dist/api/resources/commons/types/index.js +1 -0
  55. package/dist/api/resources/conversation/client/Client.d.ts +19 -0
  56. package/dist/api/resources/conversation/client/Client.js +94 -0
  57. package/dist/api/resources/conversation/client/requests/SimulationImportRequest.d.ts +5 -0
  58. package/dist/api/resources/conversation/client/requests/index.d.ts +1 -0
  59. package/dist/api/resources/index.d.ts +0 -2
  60. package/dist/api/resources/index.js +1 -3
  61. package/dist/api/resources/knowledge/client/Client.d.ts +24 -0
  62. package/dist/api/resources/knowledge/client/Client.js +104 -0
  63. package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +13 -0
  64. package/dist/api/resources/knowledge/client/requests/index.d.ts +1 -0
  65. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -4
  66. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  67. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +7 -1
  68. package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +4 -0
  69. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -0
  70. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +4 -1
  71. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +30 -0
  72. package/dist/core/exports.d.ts +1 -0
  73. package/dist/{api/resources/agentCapabilities/index.js → core/exports.js} +1 -2
  74. package/dist/core/file/exports.d.ts +1 -0
  75. package/dist/core/file/exports.js +2 -0
  76. package/dist/core/file/file.d.ts +5 -0
  77. package/dist/core/file/file.js +203 -0
  78. package/{serialization/resources/agentCapabilities → dist/core/file}/index.d.ts +1 -0
  79. package/{serialization/resources/agentCapabilities → dist/core/file}/index.js +1 -0
  80. package/dist/core/file/types.d.ts +66 -0
  81. package/dist/core/file/types.js +2 -0
  82. package/dist/core/form-data-utils/FormDataWrapper.d.ts +16 -0
  83. package/dist/core/form-data-utils/FormDataWrapper.js +208 -0
  84. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  85. package/dist/core/form-data-utils/encodeAsFormParameter.js +12 -0
  86. package/dist/core/form-data-utils/index.d.ts +2 -0
  87. package/dist/core/form-data-utils/index.js +20 -0
  88. package/dist/core/index.d.ts +2 -0
  89. package/dist/core/index.js +3 -1
  90. package/dist/exports.d.ts +1 -0
  91. package/dist/exports.js +17 -0
  92. package/dist/index.d.ts +1 -0
  93. package/dist/index.js +4 -0
  94. package/dist/serialization/resources/commons/types/AppUserResponse.d.ts +2 -0
  95. package/dist/serialization/resources/commons/types/AppUserResponse.js +2 -0
  96. package/dist/serialization/resources/commons/types/ConversationSummary.d.ts +3 -0
  97. package/dist/serialization/resources/commons/types/ConversationSummary.js +3 -0
  98. package/dist/serialization/resources/commons/types/UserDataWithReference.d.ts +11 -0
  99. package/dist/serialization/resources/{agentCapabilities/types/ExecuteCapabilityRequest.js → commons/types/UserDataWithReference.js} +8 -4
  100. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  101. package/dist/serialization/resources/commons/types/index.js +1 -0
  102. package/dist/serialization/resources/index.d.ts +0 -2
  103. package/dist/serialization/resources/index.js +1 -3
  104. package/dist/serialization/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +11 -0
  105. package/dist/serialization/resources/{agentCapabilities/types/PatchAgentCapabilityRequest.js → knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +6 -6
  106. package/dist/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
  107. package/dist/serialization/resources/knowledge/client/requests/index.js +3 -1
  108. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  109. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -2
  110. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  111. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -1
  112. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  113. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
  114. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
  115. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
  116. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  117. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -0
  118. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
  119. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +4 -0
  120. package/dist/version.d.ts +1 -1
  121. package/dist/version.js +1 -1
  122. package/exports.d.ts +1 -0
  123. package/exports.js +17 -0
  124. package/index.d.ts +1 -0
  125. package/index.js +4 -0
  126. package/package.json +1 -1
  127. package/reference.md +174 -264
  128. package/serialization/resources/commons/types/AppUserResponse.d.ts +2 -0
  129. package/serialization/resources/commons/types/AppUserResponse.js +2 -0
  130. package/serialization/resources/commons/types/ConversationSummary.d.ts +3 -0
  131. package/serialization/resources/commons/types/ConversationSummary.js +3 -0
  132. package/serialization/resources/commons/types/UserDataWithReference.d.ts +11 -0
  133. package/{dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.js → serialization/resources/commons/types/UserDataWithReference.js} +8 -2
  134. package/serialization/resources/commons/types/index.d.ts +1 -0
  135. package/serialization/resources/commons/types/index.js +1 -0
  136. package/serialization/resources/index.d.ts +0 -2
  137. package/serialization/resources/index.js +1 -3
  138. package/serialization/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +11 -0
  139. package/serialization/resources/{agentCapabilities/types/ExecuteCapabilityRequest.js → knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +6 -4
  140. package/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
  141. package/serialization/resources/knowledge/client/requests/index.js +3 -1
  142. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  143. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -2
  144. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  145. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -1
  146. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  147. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
  148. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
  149. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
  150. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  151. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -0
  152. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
  153. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +4 -0
  154. package/version.d.ts +1 -1
  155. package/version.js +1 -1
  156. package/api/resources/agentCapabilities/client/Client.d.ts +0 -101
  157. package/api/resources/agentCapabilities/client/Client.js +0 -450
  158. package/api/resources/agentCapabilities/client/index.d.ts +0 -1
  159. package/api/resources/agentCapabilities/index.d.ts +0 -2
  160. package/api/resources/agentCapabilities/types/ActionCapability.d.ts +0 -13
  161. package/api/resources/agentCapabilities/types/AgentCapability.d.ts +0 -10
  162. package/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -12
  163. package/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -8
  164. package/api/resources/agentCapabilities/types/AgentCapabilityField.js +0 -11
  165. package/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -11
  166. package/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -5
  167. package/api/resources/agentCapabilities/types/AgentCapabilityType.js +0 -8
  168. package/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -4
  169. package/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -4
  170. package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -5
  171. package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -3
  172. package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -8
  173. package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -3
  174. package/api/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -4
  175. package/api/resources/agentCapabilities/types/TriggerCapability.js +0 -3
  176. package/api/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  177. package/api/resources/agentCapabilities/types/TriggerType.js +0 -10
  178. package/api/resources/agentCapabilities/types/index.d.ts +0 -12
  179. package/api/resources/agentCapabilities/types/index.js +0 -28
  180. package/dist/api/resources/agentCapabilities/client/Client.d.ts +0 -101
  181. package/dist/api/resources/agentCapabilities/client/Client.js +0 -450
  182. package/dist/api/resources/agentCapabilities/client/index.d.ts +0 -1
  183. package/dist/api/resources/agentCapabilities/index.d.ts +0 -2
  184. package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +0 -13
  185. package/dist/api/resources/agentCapabilities/types/ActionCapability.js +0 -3
  186. package/dist/api/resources/agentCapabilities/types/AgentCapability.d.ts +0 -10
  187. package/dist/api/resources/agentCapabilities/types/AgentCapability.js +0 -3
  188. package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -12
  189. package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -3
  190. package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -8
  191. package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.js +0 -11
  192. package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -11
  193. package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -3
  194. package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -5
  195. package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.js +0 -8
  196. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -4
  197. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.js +0 -3
  198. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -4
  199. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -3
  200. package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -5
  201. package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -3
  202. package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -8
  203. package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -3
  204. package/dist/api/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -4
  205. package/dist/api/resources/agentCapabilities/types/TriggerCapability.js +0 -3
  206. package/dist/api/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  207. package/dist/api/resources/agentCapabilities/types/TriggerType.js +0 -10
  208. package/dist/api/resources/agentCapabilities/types/index.d.ts +0 -12
  209. package/dist/api/resources/agentCapabilities/types/index.js +0 -28
  210. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +0 -17
  211. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +0 -52
  212. package/dist/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +0 -15
  213. package/dist/serialization/resources/agentCapabilities/types/AgentCapability.js +0 -49
  214. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -15
  215. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -47
  216. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -7
  217. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -18
  218. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -52
  219. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -7
  220. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +0 -39
  221. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -9
  222. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -10
  223. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -42
  224. package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -12
  225. package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -46
  226. package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -11
  227. package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -11
  228. package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.js +0 -45
  229. package/dist/serialization/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  230. package/dist/serialization/resources/agentCapabilities/types/TriggerType.js +0 -39
  231. package/dist/serialization/resources/agentCapabilities/types/index.d.ts +0 -12
  232. package/dist/serialization/resources/agentCapabilities/types/index.js +0 -28
  233. package/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +0 -17
  234. package/serialization/resources/agentCapabilities/types/ActionCapability.js +0 -52
  235. package/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +0 -15
  236. package/serialization/resources/agentCapabilities/types/AgentCapability.js +0 -49
  237. package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -15
  238. package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -47
  239. package/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -7
  240. package/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +0 -39
  241. package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -18
  242. package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -52
  243. package/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -7
  244. package/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +0 -39
  245. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -9
  246. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -10
  247. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -42
  248. package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -12
  249. package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -46
  250. package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -11
  251. package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -43
  252. package/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -11
  253. package/serialization/resources/agentCapabilities/types/TriggerCapability.js +0 -45
  254. package/serialization/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  255. package/serialization/resources/agentCapabilities/types/TriggerType.js +0 -39
  256. package/serialization/resources/agentCapabilities/types/index.d.ts +0 -12
  257. package/serialization/resources/agentCapabilities/types/index.js +0 -28
  258. /package/api/resources/{agentCapabilities/types/ActionCapability.js → commons/types/UserDataWithReference.js} +0 -0
  259. /package/api/resources/{agentCapabilities/types/AgentCapability.js → conversation/client/requests/SimulationImportRequest.js} +0 -0
  260. /package/api/resources/{agentCapabilities/types/AgentCapabilityBase.js → knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +0 -0
  261. /package/{api/resources/agentCapabilities/client/index.js → core/file/exports.js} +0 -0
  262. /package/{dist/api/resources/agentCapabilities/client/index.js → core/file/types.js} +0 -0
  263. /package/{api/resources/agentCapabilities/types/AgentCapabilityListRequest.js → dist/api/resources/commons/types/UserDataWithReference.js} +0 -0
  264. /package/{api/resources/agentCapabilities/types/ExecuteCapabilityRequest.js → dist/api/resources/conversation/client/requests/SimulationImportRequest.js} +0 -0
  265. /package/{api/resources/agentCapabilities/types/ExecuteCapabilityResponse.js → dist/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +0 -0
@@ -50,6 +50,7 @@ const MavenAGI = __importStar(require("../../../index"));
50
50
  const headers_1 = require("../../../../core/headers");
51
51
  const serializers = __importStar(require("../../../../serialization/index"));
52
52
  const errors = __importStar(require("../../../../errors/index"));
53
+ const json_1 = require("../../../../core/json");
53
54
  class Conversation {
54
55
  constructor(_options) {
55
56
  this._options = _options;
@@ -1635,6 +1636,99 @@ class Conversation {
1635
1636
  }
1636
1637
  });
1637
1638
  }
1639
+ /**
1640
+ * Import simulation conversations from a CSV file.
1641
+ *
1642
+ * This CSV format is very simple and only allows for one column: `question`. A header containing this column is required.
1643
+ * Each row will generate one simulation conversation, using the provided response config, if present.
1644
+ *
1645
+ * This API is offered for backwards compatibility.
1646
+ * Most API callers should create simulations programmatically to allow for more flexibility.
1647
+ *
1648
+ * @param {core.file.Uploadable.FileLike} file
1649
+ * @param {MavenAGI.SimulationImportRequest} request
1650
+ * @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
1651
+ *
1652
+ * @throws {@link MavenAGI.NotFoundError}
1653
+ * @throws {@link MavenAGI.BadRequestError}
1654
+ * @throws {@link MavenAGI.ServerError}
1655
+ */
1656
+ importSimulations(file, request, requestOptions) {
1657
+ return core.HttpResponsePromise.fromPromise(this.__importSimulations(file, request, requestOptions));
1658
+ }
1659
+ __importSimulations(file, request, requestOptions) {
1660
+ return __awaiter(this, void 0, void 0, function* () {
1661
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1662
+ const _request = yield core.newFormData();
1663
+ yield _request.appendFile("file", file);
1664
+ if (request.responseConfig != null) {
1665
+ _request.append("responseConfig", (0, json_1.toJson)(serializers.ResponseConfig.jsonOrThrow(request.responseConfig, { unrecognizedObjectKeys: "strip" })));
1666
+ }
1667
+ const _maybeEncodedRequest = yield _request.getRequest();
1668
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader(), "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, "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 }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1669
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1670
+ 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/conversations/import_simulations"),
1671
+ method: "POST",
1672
+ headers: _headers,
1673
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1674
+ requestType: "file",
1675
+ duplex: _maybeEncodedRequest.duplex,
1676
+ body: _maybeEncodedRequest.body,
1677
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1678
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1679
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1680
+ });
1681
+ if (_response.ok) {
1682
+ return { data: undefined, rawResponse: _response.rawResponse };
1683
+ }
1684
+ if (_response.error.reason === "status-code") {
1685
+ switch (_response.error.statusCode) {
1686
+ case 404:
1687
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1688
+ unrecognizedObjectKeys: "passthrough",
1689
+ allowUnrecognizedUnionMembers: true,
1690
+ allowUnrecognizedEnumValues: true,
1691
+ breadcrumbsPrefix: ["response"],
1692
+ }), _response.rawResponse);
1693
+ case 400:
1694
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1695
+ unrecognizedObjectKeys: "passthrough",
1696
+ allowUnrecognizedUnionMembers: true,
1697
+ allowUnrecognizedEnumValues: true,
1698
+ breadcrumbsPrefix: ["response"],
1699
+ }), _response.rawResponse);
1700
+ case 500:
1701
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1702
+ unrecognizedObjectKeys: "passthrough",
1703
+ allowUnrecognizedUnionMembers: true,
1704
+ allowUnrecognizedEnumValues: true,
1705
+ breadcrumbsPrefix: ["response"],
1706
+ }), _response.rawResponse);
1707
+ default:
1708
+ throw new errors.MavenAGIError({
1709
+ statusCode: _response.error.statusCode,
1710
+ body: _response.error.body,
1711
+ rawResponse: _response.rawResponse,
1712
+ });
1713
+ }
1714
+ }
1715
+ switch (_response.error.reason) {
1716
+ case "non-json":
1717
+ throw new errors.MavenAGIError({
1718
+ statusCode: _response.error.statusCode,
1719
+ body: _response.error.rawBody,
1720
+ rawResponse: _response.rawResponse,
1721
+ });
1722
+ case "timeout":
1723
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/conversations/import_simulations.");
1724
+ case "unknown":
1725
+ throw new errors.MavenAGIError({
1726
+ message: _response.error.errorMessage,
1727
+ rawResponse: _response.rawResponse,
1728
+ });
1729
+ }
1730
+ });
1731
+ }
1638
1732
  /**
1639
1733
  * Deliver a message to a user or conversation.
1640
1734
  *
@@ -0,0 +1,5 @@
1
+ import * as MavenAGI from "../../../../index";
2
+ export interface SimulationImportRequest {
3
+ /** The response config to use for all of the created simulations. */
4
+ responseConfig?: MavenAGI.ResponseConfig;
5
+ }
@@ -1,2 +1,3 @@
1
1
  export { type ConversationGetRequest } from "./ConversationGetRequest";
2
2
  export { type ConversationDeleteRequest } from "./ConversationDeleteRequest";
3
+ export { type SimulationImportRequest } from "./SimulationImportRequest";
@@ -1,7 +1,5 @@
1
1
  export * as actions from "./actions";
2
2
  export * from "./actions/types";
3
- export * as agentCapabilities from "./agentCapabilities";
4
- export * from "./agentCapabilities/types";
5
3
  export * as agents from "./agents";
6
4
  export * from "./agents/types";
7
5
  export * as analytics from "./analytics";
@@ -36,11 +36,9 @@ 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.events = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.inbox = exports.conversation = exports.commons = exports.assets = exports.appSettings = exports.analytics = exports.agents = exports.agentCapabilities = exports.actions = void 0;
39
+ exports.events = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.inbox = exports.conversation = exports.commons = exports.assets = exports.appSettings = exports.analytics = exports.agents = exports.actions = void 0;
40
40
  exports.actions = __importStar(require("./actions"));
41
41
  __exportStar(require("./actions/types"), exports);
42
- exports.agentCapabilities = __importStar(require("./agentCapabilities"));
43
- __exportStar(require("./agentCapabilities/types"), exports);
44
42
  exports.agents = __importStar(require("./agents"));
45
43
  __exportStar(require("./agents/types"), exports);
46
44
  exports.analytics = __importStar(require("./analytics"));
@@ -291,5 +291,29 @@ export declare class Knowledge {
291
291
  */
292
292
  getKnowledgeDocument(knowledgeBaseVersionReferenceId: string, knowledgeDocumentReferenceId: string, request: MavenAGI.KnowledgeDocumentGetRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeDocumentResponse>;
293
293
  private __getKnowledgeDocument;
294
+ /**
295
+ * Update mutable knowledge document fields that can be set independently of a knowledge base version.
296
+ *
297
+ * For any changes in document content see the `createKnowledgeBaseVersion` and `createKnowledgeDocument` endpoints.
298
+ *
299
+ * The `knowledgeBaseAppId` field can be provided to update a knowledge document in a knowledge base owned by a different app.
300
+ * All other fields will overwrite the existing value on the knowledge document only if provided.
301
+ *
302
+ * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
303
+ * @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to patch.
304
+ * @param {MavenAGI.KnowledgeDocumentPatchRequest} request
305
+ * @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
306
+ *
307
+ * @throws {@link MavenAGI.NotFoundError}
308
+ * @throws {@link MavenAGI.BadRequestError}
309
+ * @throws {@link MavenAGI.ServerError}
310
+ *
311
+ * @example
312
+ * await client.knowledge.patchKnowledgeDocument("help-center", "how-it-works", {
313
+ * llmInclusionStatus: "ALWAYS"
314
+ * })
315
+ */
316
+ patchKnowledgeDocument(knowledgeBaseReferenceId: string, knowledgeDocumentReferenceId: string, request?: MavenAGI.KnowledgeDocumentPatchRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeDocumentResponse>;
317
+ private __patchKnowledgeDocument;
294
318
  protected _getAuthorizationHeader(): Promise<string | undefined>;
295
319
  }
@@ -1259,6 +1259,110 @@ class Knowledge {
1259
1259
  }
1260
1260
  });
1261
1261
  }
1262
+ /**
1263
+ * Update mutable knowledge document fields that can be set independently of a knowledge base version.
1264
+ *
1265
+ * For any changes in document content see the `createKnowledgeBaseVersion` and `createKnowledgeDocument` endpoints.
1266
+ *
1267
+ * The `knowledgeBaseAppId` field can be provided to update a knowledge document in a knowledge base owned by a different app.
1268
+ * All other fields will overwrite the existing value on the knowledge document only if provided.
1269
+ *
1270
+ * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
1271
+ * @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to patch.
1272
+ * @param {MavenAGI.KnowledgeDocumentPatchRequest} request
1273
+ * @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
1274
+ *
1275
+ * @throws {@link MavenAGI.NotFoundError}
1276
+ * @throws {@link MavenAGI.BadRequestError}
1277
+ * @throws {@link MavenAGI.ServerError}
1278
+ *
1279
+ * @example
1280
+ * await client.knowledge.patchKnowledgeDocument("help-center", "how-it-works", {
1281
+ * llmInclusionStatus: "ALWAYS"
1282
+ * })
1283
+ */
1284
+ patchKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request = {}, requestOptions) {
1285
+ return core.HttpResponsePromise.fromPromise(this.__patchKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request, requestOptions));
1286
+ }
1287
+ __patchKnowledgeDocument(knowledgeBaseReferenceId_1, knowledgeDocumentReferenceId_1) {
1288
+ return __awaiter(this, arguments, void 0, function* (knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request = {}, requestOptions) {
1289
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1290
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
1291
+ Authorization: yield this._getAuthorizationHeader(),
1292
+ "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,
1293
+ "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,
1294
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1295
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1296
+ 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/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/${encodeURIComponent(knowledgeDocumentReferenceId)}/document`),
1297
+ method: "PATCH",
1298
+ headers: _headers,
1299
+ contentType: "application/merge-patch+json",
1300
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1301
+ requestType: "json",
1302
+ body: serializers.KnowledgeDocumentPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1303
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1304
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1305
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1306
+ });
1307
+ if (_response.ok) {
1308
+ return {
1309
+ data: serializers.KnowledgeDocumentResponse.parseOrThrow(_response.body, {
1310
+ unrecognizedObjectKeys: "passthrough",
1311
+ allowUnrecognizedUnionMembers: true,
1312
+ allowUnrecognizedEnumValues: true,
1313
+ breadcrumbsPrefix: ["response"],
1314
+ }),
1315
+ rawResponse: _response.rawResponse,
1316
+ };
1317
+ }
1318
+ if (_response.error.reason === "status-code") {
1319
+ switch (_response.error.statusCode) {
1320
+ case 404:
1321
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1322
+ unrecognizedObjectKeys: "passthrough",
1323
+ allowUnrecognizedUnionMembers: true,
1324
+ allowUnrecognizedEnumValues: true,
1325
+ breadcrumbsPrefix: ["response"],
1326
+ }), _response.rawResponse);
1327
+ case 400:
1328
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1329
+ unrecognizedObjectKeys: "passthrough",
1330
+ allowUnrecognizedUnionMembers: true,
1331
+ allowUnrecognizedEnumValues: true,
1332
+ breadcrumbsPrefix: ["response"],
1333
+ }), _response.rawResponse);
1334
+ case 500:
1335
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
1336
+ unrecognizedObjectKeys: "passthrough",
1337
+ allowUnrecognizedUnionMembers: true,
1338
+ allowUnrecognizedEnumValues: true,
1339
+ breadcrumbsPrefix: ["response"],
1340
+ }), _response.rawResponse);
1341
+ default:
1342
+ throw new errors.MavenAGIError({
1343
+ statusCode: _response.error.statusCode,
1344
+ body: _response.error.body,
1345
+ rawResponse: _response.rawResponse,
1346
+ });
1347
+ }
1348
+ }
1349
+ switch (_response.error.reason) {
1350
+ case "non-json":
1351
+ throw new errors.MavenAGIError({
1352
+ statusCode: _response.error.statusCode,
1353
+ body: _response.error.rawBody,
1354
+ rawResponse: _response.rawResponse,
1355
+ });
1356
+ case "timeout":
1357
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/knowledge/{knowledgeBaseReferenceId}/{knowledgeDocumentReferenceId}/document.");
1358
+ case "unknown":
1359
+ throw new errors.MavenAGIError({
1360
+ message: _response.error.errorMessage,
1361
+ rawResponse: _response.rawResponse,
1362
+ });
1363
+ }
1364
+ });
1365
+ }
1262
1366
  _getAuthorizationHeader() {
1263
1367
  return __awaiter(this, void 0, void 0, function* () {
1264
1368
  var _a, _b;
@@ -0,0 +1,13 @@
1
+ import * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * llmInclusionStatus: "ALWAYS"
6
+ * }
7
+ */
8
+ export interface KnowledgeDocumentPatchRequest {
9
+ /** The App ID of the knowledge base that contains the knowledge document to patch. If not provided the ID of the calling app will be used. */
10
+ knowledgeBaseAppId?: string;
11
+ /** Determines whether this document is sent to the LLM as part of a conversation. */
12
+ llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
13
+ }
@@ -2,3 +2,4 @@ export { type KnowledgeBaseGetRequest } from "./KnowledgeBaseGetRequest";
2
2
  export { type KnowledgeBasePatchRequest } from "./KnowledgeBasePatchRequest";
3
3
  export { type KnowledgeBaseVersionsListRequest } from "./KnowledgeBaseVersionsListRequest";
4
4
  export { type KnowledgeDocumentGetRequest } from "./KnowledgeDocumentGetRequest";
5
+ export { type KnowledgeDocumentPatchRequest } from "./KnowledgeDocumentPatchRequest";
@@ -3,10 +3,6 @@ export interface BaseKnowledgeDocument {
3
3
  url?: string;
4
4
  /** The document language. Must be a valid ISO 639-1 language code. */
5
5
  language?: string;
6
- /** The time at which this document was created. */
7
- createdAt?: Date;
8
- /** The time at which this document was last modified. */
9
- updatedAt?: Date;
10
6
  /** The name of the author who created this document. */
11
7
  author?: string;
12
8
  }
@@ -58,7 +58,7 @@ export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties
58
58
  /** The tags of the knowledge base. */
59
59
  tags: Set<string>;
60
60
  /** Determines whether documents in the knowledge base are sent to the LLM as part of a conversation. */
61
- llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
61
+ llmInclusionStatus: MavenAGI.LlmInclusionStatus;
62
62
  /** How often the knowledge base should be refreshed. */
63
63
  refreshFrequency: MavenAGI.KnowledgeBaseRefreshFrequency;
64
64
  /**
@@ -10,7 +10,9 @@ import * as MavenAGI from "../../../index";
10
10
  * agentId: "support"
11
11
  * },
12
12
  * type: MavenAGI.KnowledgeBaseVersionType.Full,
13
- * status: MavenAGI.KnowledgeBaseVersionStatus.InProgress
13
+ * status: MavenAGI.KnowledgeBaseVersionStatus.InProgress,
14
+ * createdAt: new Date("2024-01-01T00:00:00.000Z"),
15
+ * updatedAt: new Date("2024-02-02T00:00:00.000Z")
14
16
  * }
15
17
  */
16
18
  export interface KnowledgeBaseVersion extends MavenAGI.KnowledgeBaseVersionRequest {
@@ -20,4 +22,8 @@ export interface KnowledgeBaseVersion extends MavenAGI.KnowledgeBaseVersionReque
20
22
  status: MavenAGI.KnowledgeBaseVersionStatus;
21
23
  /** A user-facing error message that provides more details about a version failure. */
22
24
  errorMessage?: string;
25
+ /** The date and time the knowledge base version was created. */
26
+ createdAt: Date;
27
+ /** The date and time the knowledge base version was last updated. */
28
+ updatedAt: Date;
23
29
  }
@@ -17,6 +17,8 @@ export interface KnowledgeDocumentFilter {
17
17
  search?: string;
18
18
  /** Filter by title */
19
19
  title?: string;
20
+ /** Filter by url */
21
+ url?: string;
20
22
  /** Filter knowledge documents created on or after this timestamp */
21
23
  createdAfter?: Date;
22
24
  /** Filter knowledge documents created on or before this timestamp */
@@ -28,4 +30,6 @@ export interface KnowledgeDocumentFilter {
28
30
  * If not provided all active knowledge base versions within the agent will be searched.
29
31
  */
30
32
  knowledgeBaseVersionId?: MavenAGI.EntityIdWithoutAgent;
33
+ /** Filter by the LLM inclusion status */
34
+ llmInclusionStatus?: MavenAGI.LlmInclusionStatus[];
31
35
  }
@@ -30,4 +30,8 @@ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument
30
30
  content: string;
31
31
  /** Metadata for the knowledge document. */
32
32
  metadata?: Record<string, string>;
33
+ /** The time at which this document was created. */
34
+ createdAt?: Date;
35
+ /** The time at which this document was last modified. */
36
+ updatedAt?: Date;
33
37
  }
@@ -20,7 +20,10 @@ import * as MavenAGI from "../../../index";
20
20
  * title: "Getting started",
21
21
  * metadata: {
22
22
  * "category": "getting-started"
23
- * }
23
+ * },
24
+ * createdAt: new Date("2024-01-01T00:00:00.000Z"),
25
+ * updatedAt: new Date("2024-02-02T00:00:00.000Z"),
26
+ * llmInclusionStatus: MavenAGI.LlmInclusionStatus.WhenRelevant
24
27
  * }
25
28
  */
26
29
  export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSearchResponse {
@@ -1,4 +1,28 @@
1
1
  import * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * knowledgeDocumentId: {
6
+ * referenceId: "how-it-works",
7
+ * appId: "help-center",
8
+ * organizationId: "acme",
9
+ * agentId: "support",
10
+ * type: MavenAGI.EntityType.KnowledgeDocument
11
+ * },
12
+ * knowledgeBaseVersionId: {
13
+ * referenceId: "version-1",
14
+ * appId: "help-center",
15
+ * organizationId: "acme",
16
+ * agentId: "support",
17
+ * type: MavenAGI.EntityType.KnowledgeBaseVersion
18
+ * },
19
+ * title: "How it works",
20
+ * llmInclusionStatus: MavenAGI.LlmInclusionStatus.WhenRelevant,
21
+ * url: "https://help-center.acme.com/how-it-works",
22
+ * createdAt: new Date("2024-01-01T00:00:00.000Z"),
23
+ * updatedAt: new Date("2024-02-02T00:00:00.000Z")
24
+ * }
25
+ */
2
26
  export interface KnowledgeDocumentSearchResponse extends MavenAGI.BaseKnowledgeDocument {
3
27
  /** ID that uniquely identifies this knowledge document within its knowledge base */
4
28
  knowledgeDocumentId: MavenAGI.EntityId;
@@ -9,4 +33,10 @@ export interface KnowledgeDocumentSearchResponse extends MavenAGI.BaseKnowledgeD
9
33
  knowledgeBaseVersionId?: MavenAGI.EntityId;
10
34
  /** The title of the document. Will be shown as part of answers. May be missing on legacy documents. */
11
35
  title?: string;
36
+ /** Whether the document is included in the agent's knowledge. */
37
+ llmInclusionStatus: MavenAGI.LlmInclusionStatus;
38
+ /** The time at which this document was created. */
39
+ createdAt: Date;
40
+ /** The time at which this document was last modified. */
41
+ updatedAt: Date;
12
42
  }
@@ -0,0 +1 @@
1
+ export * from "./file/exports";
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
- __exportStar(require("./client"), exports);
17
+ __exportStar(require("./file/exports"), exports);
@@ -0,0 +1 @@
1
+ export type { Uploadable } from "./types";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { Uploadable } from "./types";
2
+ export declare function toBinaryUploadRequest(file: Uploadable): Promise<{
3
+ body: Uploadable.FileLike;
4
+ headers?: Record<string, string>;
5
+ }>;