mavenagi 1.2.6 → 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 (242) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +28 -33
  3. package/api/resources/commons/types/ConversationResponse.d.ts +2 -1
  4. package/api/resources/commons/types/ConversationSummary.d.ts +2 -0
  5. package/api/resources/conversation/client/Client.d.ts +19 -0
  6. package/api/resources/conversation/client/Client.js +94 -0
  7. package/api/resources/conversation/client/requests/SimulationImportRequest.d.ts +5 -0
  8. package/api/resources/conversation/client/requests/index.d.ts +1 -0
  9. package/api/resources/index.d.ts +0 -2
  10. package/api/resources/index.js +1 -3
  11. package/api/resources/knowledge/client/Client.d.ts +24 -0
  12. package/api/resources/knowledge/client/Client.js +104 -0
  13. package/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +13 -0
  14. package/api/resources/knowledge/client/requests/index.d.ts +1 -0
  15. package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -4
  16. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  17. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +7 -1
  18. package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +4 -0
  19. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -0
  20. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +4 -1
  21. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +30 -0
  22. package/core/exports.d.ts +1 -0
  23. package/{api/resources/agentCapabilities/index.js → core/exports.js} +1 -2
  24. package/core/file/exports.d.ts +1 -0
  25. package/core/file/file.d.ts +5 -0
  26. package/core/file/file.js +203 -0
  27. package/{dist/serialization/resources/agentCapabilities → core/file}/index.d.ts +1 -0
  28. package/{dist/serialization/resources/agentCapabilities → core/file}/index.js +1 -0
  29. package/core/file/types.d.ts +66 -0
  30. package/core/form-data-utils/FormDataWrapper.d.ts +16 -0
  31. package/core/form-data-utils/FormDataWrapper.js +208 -0
  32. package/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  33. package/core/form-data-utils/encodeAsFormParameter.js +12 -0
  34. package/core/form-data-utils/index.d.ts +2 -0
  35. package/core/form-data-utils/index.js +20 -0
  36. package/core/index.d.ts +2 -0
  37. package/core/index.js +3 -1
  38. package/dist/Client.d.ts +0 -3
  39. package/dist/Client.js +28 -33
  40. package/dist/api/resources/commons/types/ConversationResponse.d.ts +2 -1
  41. package/dist/api/resources/commons/types/ConversationSummary.d.ts +2 -0
  42. package/dist/api/resources/conversation/client/Client.d.ts +19 -0
  43. package/dist/api/resources/conversation/client/Client.js +94 -0
  44. package/dist/api/resources/conversation/client/requests/SimulationImportRequest.d.ts +5 -0
  45. package/dist/api/resources/conversation/client/requests/index.d.ts +1 -0
  46. package/dist/api/resources/index.d.ts +0 -2
  47. package/dist/api/resources/index.js +1 -3
  48. package/dist/api/resources/knowledge/client/Client.d.ts +24 -0
  49. package/dist/api/resources/knowledge/client/Client.js +104 -0
  50. package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +13 -0
  51. package/dist/api/resources/knowledge/client/requests/index.d.ts +1 -0
  52. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -4
  53. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  54. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +7 -1
  55. package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +4 -0
  56. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -0
  57. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +4 -1
  58. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +30 -0
  59. package/dist/core/exports.d.ts +1 -0
  60. package/dist/{api/resources/agentCapabilities/index.js → core/exports.js} +1 -2
  61. package/dist/core/file/exports.d.ts +1 -0
  62. package/dist/core/file/exports.js +2 -0
  63. package/dist/core/file/file.d.ts +5 -0
  64. package/dist/core/file/file.js +203 -0
  65. package/{serialization/resources/agentCapabilities → dist/core/file}/index.d.ts +1 -0
  66. package/{serialization/resources/agentCapabilities → dist/core/file}/index.js +1 -0
  67. package/dist/core/file/types.d.ts +66 -0
  68. package/dist/core/file/types.js +2 -0
  69. package/dist/core/form-data-utils/FormDataWrapper.d.ts +16 -0
  70. package/dist/core/form-data-utils/FormDataWrapper.js +208 -0
  71. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  72. package/dist/core/form-data-utils/encodeAsFormParameter.js +12 -0
  73. package/dist/core/form-data-utils/index.d.ts +2 -0
  74. package/dist/core/form-data-utils/index.js +20 -0
  75. package/dist/core/index.d.ts +2 -0
  76. package/dist/core/index.js +3 -1
  77. package/dist/exports.d.ts +1 -0
  78. package/dist/exports.js +17 -0
  79. package/dist/index.d.ts +1 -0
  80. package/dist/index.js +4 -0
  81. package/dist/serialization/resources/commons/types/ConversationSummary.d.ts +1 -0
  82. package/dist/serialization/resources/commons/types/ConversationSummary.js +1 -0
  83. package/dist/serialization/resources/index.d.ts +0 -2
  84. package/dist/serialization/resources/index.js +1 -3
  85. package/dist/serialization/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +11 -0
  86. package/dist/serialization/resources/{agentCapabilities/types/ExecuteCapabilityRequest.js → knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +6 -4
  87. package/dist/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
  88. package/dist/serialization/resources/knowledge/client/requests/index.js +3 -1
  89. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  90. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -2
  91. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  92. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -1
  93. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  94. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
  95. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
  96. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
  97. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  98. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -0
  99. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
  100. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +4 -0
  101. package/dist/version.d.ts +1 -1
  102. package/dist/version.js +1 -1
  103. package/exports.d.ts +1 -0
  104. package/exports.js +17 -0
  105. package/index.d.ts +1 -0
  106. package/index.js +4 -0
  107. package/package.json +1 -1
  108. package/reference.md +86 -264
  109. package/serialization/resources/commons/types/ConversationSummary.d.ts +1 -0
  110. package/serialization/resources/commons/types/ConversationSummary.js +1 -0
  111. package/serialization/resources/index.d.ts +0 -2
  112. package/serialization/resources/index.js +1 -3
  113. package/serialization/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +11 -0
  114. package/{dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js → serialization/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +6 -6
  115. package/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
  116. package/serialization/resources/knowledge/client/requests/index.js +3 -1
  117. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  118. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -2
  119. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  120. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -1
  121. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  122. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
  123. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
  124. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
  125. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  126. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -0
  127. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
  128. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +4 -0
  129. package/version.d.ts +1 -1
  130. package/version.js +1 -1
  131. package/api/resources/agentCapabilities/client/Client.d.ts +0 -101
  132. package/api/resources/agentCapabilities/client/Client.js +0 -450
  133. package/api/resources/agentCapabilities/client/index.d.ts +0 -1
  134. package/api/resources/agentCapabilities/index.d.ts +0 -2
  135. package/api/resources/agentCapabilities/types/ActionCapability.d.ts +0 -13
  136. package/api/resources/agentCapabilities/types/AgentCapability.d.ts +0 -10
  137. package/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -12
  138. package/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -8
  139. package/api/resources/agentCapabilities/types/AgentCapabilityField.js +0 -11
  140. package/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -11
  141. package/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -5
  142. package/api/resources/agentCapabilities/types/AgentCapabilityType.js +0 -8
  143. package/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -4
  144. package/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.js +0 -3
  145. package/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -4
  146. package/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -3
  147. package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -5
  148. package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -3
  149. package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -8
  150. package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -3
  151. package/api/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -4
  152. package/api/resources/agentCapabilities/types/TriggerCapability.js +0 -3
  153. package/api/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  154. package/api/resources/agentCapabilities/types/TriggerType.js +0 -10
  155. package/api/resources/agentCapabilities/types/index.d.ts +0 -12
  156. package/api/resources/agentCapabilities/types/index.js +0 -28
  157. package/dist/api/resources/agentCapabilities/client/Client.d.ts +0 -101
  158. package/dist/api/resources/agentCapabilities/client/Client.js +0 -450
  159. package/dist/api/resources/agentCapabilities/client/index.d.ts +0 -1
  160. package/dist/api/resources/agentCapabilities/index.d.ts +0 -2
  161. package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +0 -13
  162. package/dist/api/resources/agentCapabilities/types/ActionCapability.js +0 -3
  163. package/dist/api/resources/agentCapabilities/types/AgentCapability.d.ts +0 -10
  164. package/dist/api/resources/agentCapabilities/types/AgentCapability.js +0 -3
  165. package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -12
  166. package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -3
  167. package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -8
  168. package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.js +0 -11
  169. package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -11
  170. package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -3
  171. package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -5
  172. package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.js +0 -8
  173. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -4
  174. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.js +0 -3
  175. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -4
  176. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -3
  177. package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -5
  178. package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -3
  179. package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -8
  180. package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -3
  181. package/dist/api/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -4
  182. package/dist/api/resources/agentCapabilities/types/TriggerCapability.js +0 -3
  183. package/dist/api/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  184. package/dist/api/resources/agentCapabilities/types/TriggerType.js +0 -10
  185. package/dist/api/resources/agentCapabilities/types/index.d.ts +0 -12
  186. package/dist/api/resources/agentCapabilities/types/index.js +0 -28
  187. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +0 -17
  188. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +0 -52
  189. package/dist/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +0 -15
  190. package/dist/serialization/resources/agentCapabilities/types/AgentCapability.js +0 -49
  191. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -15
  192. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -47
  193. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -7
  194. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +0 -39
  195. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -18
  196. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -52
  197. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -7
  198. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +0 -39
  199. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -9
  200. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -10
  201. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -42
  202. package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -12
  203. package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -46
  204. package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -11
  205. package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -11
  206. package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.js +0 -45
  207. package/dist/serialization/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  208. package/dist/serialization/resources/agentCapabilities/types/TriggerType.js +0 -39
  209. package/dist/serialization/resources/agentCapabilities/types/index.d.ts +0 -12
  210. package/dist/serialization/resources/agentCapabilities/types/index.js +0 -28
  211. package/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +0 -17
  212. package/serialization/resources/agentCapabilities/types/ActionCapability.js +0 -52
  213. package/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +0 -15
  214. package/serialization/resources/agentCapabilities/types/AgentCapability.js +0 -49
  215. package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -15
  216. package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -47
  217. package/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -7
  218. package/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +0 -39
  219. package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -18
  220. package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -52
  221. package/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -7
  222. package/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +0 -39
  223. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -9
  224. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityRequest.js +0 -41
  225. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -10
  226. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -42
  227. package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -12
  228. package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -46
  229. package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -11
  230. package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -43
  231. package/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -11
  232. package/serialization/resources/agentCapabilities/types/TriggerCapability.js +0 -45
  233. package/serialization/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  234. package/serialization/resources/agentCapabilities/types/TriggerType.js +0 -39
  235. package/serialization/resources/agentCapabilities/types/index.d.ts +0 -12
  236. package/serialization/resources/agentCapabilities/types/index.js +0 -28
  237. /package/api/resources/{agentCapabilities/types/ActionCapability.js → conversation/client/requests/SimulationImportRequest.js} +0 -0
  238. /package/api/resources/{agentCapabilities/types/AgentCapability.js → knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +0 -0
  239. /package/{api/resources/agentCapabilities/client/index.js → core/file/exports.js} +0 -0
  240. /package/{dist/api/resources/agentCapabilities/client/index.js → core/file/types.js} +0 -0
  241. /package/{api/resources/agentCapabilities/types/AgentCapabilityBase.js → dist/api/resources/conversation/client/requests/SimulationImportRequest.js} +0 -0
  242. /package/{api/resources/agentCapabilities/types/AgentCapabilityListRequest.js → dist/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +0 -0
@@ -0,0 +1,203 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.toBinaryUploadRequest = toBinaryUploadRequest;
46
+ function toBinaryUploadRequest(file) {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ const { data, filename, contentLength, contentType } = yield getFileWithMetadata(file);
49
+ const request = {
50
+ body: data,
51
+ headers: {},
52
+ };
53
+ if (filename) {
54
+ request.headers["Content-Disposition"] = `attachment; filename="${filename}"`;
55
+ }
56
+ if (contentType) {
57
+ request.headers["Content-Type"] = contentType;
58
+ }
59
+ if (contentLength != null) {
60
+ request.headers["Content-Length"] = contentLength.toString();
61
+ }
62
+ return request;
63
+ });
64
+ }
65
+ function getFileWithMetadata(file) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ var _a, _b, _c, _d, _e;
68
+ if (isFileLike(file)) {
69
+ return getFileWithMetadata({
70
+ data: file,
71
+ });
72
+ }
73
+ if ("path" in file) {
74
+ const fs = yield Promise.resolve().then(() => __importStar(require("fs")));
75
+ if (!fs || !fs.createReadStream) {
76
+ throw new Error("File path uploads are not supported in this environment.");
77
+ }
78
+ const data = fs.createReadStream(file.path);
79
+ const contentLength = (_a = file.contentLength) !== null && _a !== void 0 ? _a : (yield tryGetFileSizeFromPath(file.path));
80
+ const filename = (_b = file.filename) !== null && _b !== void 0 ? _b : getNameFromPath(file.path);
81
+ return {
82
+ data,
83
+ filename,
84
+ contentType: file.contentType,
85
+ contentLength,
86
+ };
87
+ }
88
+ if ("data" in file) {
89
+ const data = file.data;
90
+ const contentLength = (_c = file.contentLength) !== null && _c !== void 0 ? _c : (yield tryGetContentLengthFromFileLike(data));
91
+ const filename = (_d = file.filename) !== null && _d !== void 0 ? _d : tryGetNameFromFileLike(data);
92
+ return {
93
+ data,
94
+ filename,
95
+ contentType: (_e = file.contentType) !== null && _e !== void 0 ? _e : tryGetContentTypeFromFileLike(data),
96
+ contentLength,
97
+ };
98
+ }
99
+ throw new Error(`Invalid FileUpload of type ${typeof file}: ${JSON.stringify(file)}`);
100
+ });
101
+ }
102
+ function isFileLike(value) {
103
+ return (isBuffer(value) ||
104
+ isArrayBufferView(value) ||
105
+ isArrayBuffer(value) ||
106
+ isUint8Array(value) ||
107
+ isBlob(value) ||
108
+ isFile(value) ||
109
+ isStreamLike(value) ||
110
+ isReadableStream(value));
111
+ }
112
+ function tryGetFileSizeFromPath(path) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ try {
115
+ const fs = yield Promise.resolve().then(() => __importStar(require("fs")));
116
+ if (!fs || !fs.promises || !fs.promises.stat) {
117
+ return undefined;
118
+ }
119
+ const fileStat = yield fs.promises.stat(path);
120
+ return fileStat.size;
121
+ }
122
+ catch (fallbackError) {
123
+ return undefined;
124
+ }
125
+ });
126
+ }
127
+ function tryGetNameFromFileLike(data) {
128
+ if (isNamedValue(data)) {
129
+ return data.name;
130
+ }
131
+ if (isPathedValue(data)) {
132
+ return getNameFromPath(data.path.toString());
133
+ }
134
+ return undefined;
135
+ }
136
+ function tryGetContentLengthFromFileLike(data) {
137
+ return __awaiter(this, void 0, void 0, function* () {
138
+ if (isBuffer(data)) {
139
+ return data.length;
140
+ }
141
+ if (isArrayBufferView(data)) {
142
+ return data.byteLength;
143
+ }
144
+ if (isArrayBuffer(data)) {
145
+ return data.byteLength;
146
+ }
147
+ if (isBlob(data)) {
148
+ return data.size;
149
+ }
150
+ if (isFile(data)) {
151
+ return data.size;
152
+ }
153
+ if (isPathedValue(data)) {
154
+ return yield tryGetFileSizeFromPath(data.path.toString());
155
+ }
156
+ return undefined;
157
+ });
158
+ }
159
+ function tryGetContentTypeFromFileLike(data) {
160
+ if (isBlob(data)) {
161
+ return data.type;
162
+ }
163
+ if (isFile(data)) {
164
+ return data.type;
165
+ }
166
+ return undefined;
167
+ }
168
+ function getNameFromPath(path) {
169
+ const lastForwardSlash = path.lastIndexOf("/");
170
+ const lastBackSlash = path.lastIndexOf("\\");
171
+ const lastSlashIndex = Math.max(lastForwardSlash, lastBackSlash);
172
+ return lastSlashIndex >= 0 ? path.substring(lastSlashIndex + 1) : path;
173
+ }
174
+ function isNamedValue(value) {
175
+ return typeof value === "object" && value != null && "name" in value;
176
+ }
177
+ function isPathedValue(value) {
178
+ return typeof value === "object" && value != null && "path" in value;
179
+ }
180
+ function isStreamLike(value) {
181
+ return typeof value === "object" && value != null && ("read" in value || "pipe" in value);
182
+ }
183
+ function isReadableStream(value) {
184
+ return typeof value === "object" && value != null && "getReader" in value;
185
+ }
186
+ function isBuffer(value) {
187
+ return typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(value);
188
+ }
189
+ function isArrayBufferView(value) {
190
+ return typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView(value);
191
+ }
192
+ function isArrayBuffer(value) {
193
+ return typeof ArrayBuffer !== "undefined" && value instanceof ArrayBuffer;
194
+ }
195
+ function isUint8Array(value) {
196
+ return typeof Uint8Array !== "undefined" && value instanceof Uint8Array;
197
+ }
198
+ function isBlob(value) {
199
+ return typeof Blob !== "undefined" && value instanceof Blob;
200
+ }
201
+ function isFile(value) {
202
+ return typeof File !== "undefined" && value instanceof File;
203
+ }
@@ -1 +1,2 @@
1
+ export * from "./file";
1
2
  export * from "./types";
@@ -14,4 +14,5 @@ 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("./file"), exports);
17
18
  __exportStar(require("./types"), exports);
@@ -0,0 +1,66 @@
1
+ /**
2
+ * A file that can be uploaded. Can be a file-like object (stream, buffer, blob, etc.),
3
+ * a path to a file, or an object with a file-like object and metadata.
4
+ */
5
+ export type Uploadable = Uploadable.FileLike | Uploadable.FromPath | Uploadable.WithMetadata;
6
+ export declare namespace Uploadable {
7
+ /**
8
+ * Various file-like objects that can be used to upload a file.
9
+ */
10
+ type FileLike = ArrayBuffer | ArrayBufferLike | ArrayBufferView | Uint8Array | import("buffer").Buffer | import("buffer").Blob | import("buffer").File | import("stream").Readable | import("stream/web").ReadableStream | globalThis.Blob | globalThis.File | ReadableStream;
11
+ /**
12
+ * A file path with optional metadata, used for uploading a file from the file system.
13
+ */
14
+ type FromPath = {
15
+ /** The path to the file to upload */
16
+ path: string;
17
+ /**
18
+ * Optional override for the file name (defaults to basename of path).
19
+ * This is used to set the `Content-Disposition` header in upload requests.
20
+ */
21
+ filename?: string;
22
+ /**
23
+ * Optional MIME type of the file (e.g., 'image/jpeg', 'text/plain').
24
+ * This is used to set the `Content-Type` header in upload requests.
25
+ */
26
+ contentType?: string;
27
+ /**
28
+ * Optional file size in bytes.
29
+ * If not provided, the file size will be determined from the file system.
30
+ * The content length is used to set the `Content-Length` header in upload requests.
31
+ */
32
+ contentLength?: number;
33
+ };
34
+ /**
35
+ * A file-like object with metadata, used for uploading files.
36
+ */
37
+ type WithMetadata = {
38
+ /** The file data */
39
+ data: FileLike;
40
+ /**
41
+ * Optional override for the file name (defaults to basename of path).
42
+ * This is used to set the `Content-Disposition` header in upload requests.
43
+ */
44
+ filename?: string;
45
+ /**
46
+ * Optional MIME type of the file (e.g., 'image/jpeg', 'text/plain').
47
+ * This is used to set the `Content-Type` header in upload requests.
48
+ *
49
+ * If not provided, the content type may be determined from the data itself.
50
+ * * If the data is a `File`, `Blob`, or similar, the content type will be determined from the file itself, if the type is set.
51
+ * * Any other data type will not have a content type set, and the upload request will use `Content-Type: application/octet-stream` instead.
52
+ */
53
+ contentType?: string;
54
+ /**
55
+ * Optional file size in bytes.
56
+ * The content length is used to set the `Content-Length` header in upload requests.
57
+ * If the content length is not provided and cannot be determined, the upload request will not include the `Content-Length` header, but will use `Transfer-Encoding: chunked` instead.
58
+ *
59
+ * If not provided, the file size will be determined depending on the data type.
60
+ * * If the data is of type `fs.ReadStream` (`createReadStream`), the size will be determined from the file system.
61
+ * * If the data is a `Buffer`, `ArrayBuffer`, `Uint8Array`, `Blob`, `File`, or similar, the size will be determined from the data itself.
62
+ * * If the data is a `Readable` or `ReadableStream`, the size will not be determined.
63
+ */
64
+ contentLength?: number;
65
+ };
66
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ interface FormDataRequest<Body> {
2
+ body: Body;
3
+ headers: Record<string, string>;
4
+ duplex?: "half";
5
+ }
6
+ export declare function newFormData(): Promise<FormDataWrapper>;
7
+ export declare class FormDataWrapper {
8
+ private fd;
9
+ setup(): Promise<void>;
10
+ append(key: string, value: unknown): void;
11
+ private getFileName;
12
+ private convertToBlob;
13
+ appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
14
+ getRequest(): FormDataRequest<FormData>;
15
+ }
16
+ export {};
@@ -0,0 +1,208 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
45
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
46
+ var m = o[Symbol.asyncIterator], i;
47
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
48
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
49
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
50
+ };
51
+ Object.defineProperty(exports, "__esModule", { value: true });
52
+ exports.FormDataWrapper = void 0;
53
+ exports.newFormData = newFormData;
54
+ const json_1 = require("../../core/json");
55
+ const index_1 = require("../runtime/index");
56
+ function isNamedValue(value) {
57
+ return typeof value === "object" && value != null && "name" in value;
58
+ }
59
+ function isPathedValue(value) {
60
+ return typeof value === "object" && value != null && "path" in value;
61
+ }
62
+ function isStreamLike(value) {
63
+ return typeof value === "object" && value != null && ("read" in value || "pipe" in value);
64
+ }
65
+ function isReadableStream(value) {
66
+ return typeof value === "object" && value != null && "getReader" in value;
67
+ }
68
+ function isBuffer(value) {
69
+ return typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(value);
70
+ }
71
+ function isArrayBufferView(value) {
72
+ return ArrayBuffer.isView(value);
73
+ }
74
+ function getLastPathSegment(pathStr) {
75
+ const lastForwardSlash = pathStr.lastIndexOf("/");
76
+ const lastBackSlash = pathStr.lastIndexOf("\\");
77
+ const lastSlashIndex = Math.max(lastForwardSlash, lastBackSlash);
78
+ return lastSlashIndex >= 0 ? pathStr.substring(lastSlashIndex + 1) : pathStr;
79
+ }
80
+ function streamToBuffer(stream) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ var _a, stream_1, stream_1_1;
83
+ var _b, e_1, _c, _d;
84
+ if (index_1.RUNTIME.type === "node") {
85
+ const { Readable } = yield Promise.resolve().then(() => __importStar(require("stream")));
86
+ if (stream instanceof Readable) {
87
+ const chunks = [];
88
+ try {
89
+ for (_a = true, stream_1 = __asyncValues(stream); stream_1_1 = yield stream_1.next(), _b = stream_1_1.done, !_b; _a = true) {
90
+ _d = stream_1_1.value;
91
+ _a = false;
92
+ const chunk = _d;
93
+ chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
94
+ }
95
+ }
96
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
97
+ finally {
98
+ try {
99
+ if (!_a && !_b && (_c = stream_1.return)) yield _c.call(stream_1);
100
+ }
101
+ finally { if (e_1) throw e_1.error; }
102
+ }
103
+ return Buffer.concat(chunks);
104
+ }
105
+ }
106
+ if (isReadableStream(stream)) {
107
+ const reader = stream.getReader();
108
+ const chunks = [];
109
+ try {
110
+ while (true) {
111
+ const { done, value } = yield reader.read();
112
+ if (done)
113
+ break;
114
+ chunks.push(value);
115
+ }
116
+ }
117
+ finally {
118
+ reader.releaseLock();
119
+ }
120
+ const totalLength = chunks.reduce((sum, chunk) => sum + chunk.length, 0);
121
+ const result = new Uint8Array(totalLength);
122
+ let offset = 0;
123
+ for (const chunk of chunks) {
124
+ result.set(chunk, offset);
125
+ offset += chunk.length;
126
+ }
127
+ return Buffer.from(result);
128
+ }
129
+ throw new Error("Unsupported stream type: " + typeof stream + ". Expected Node.js Readable stream or Web ReadableStream.");
130
+ });
131
+ }
132
+ function newFormData() {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ return new FormDataWrapper();
135
+ });
136
+ }
137
+ class FormDataWrapper {
138
+ constructor() {
139
+ this.fd = new FormData();
140
+ }
141
+ setup() {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ // noop
144
+ });
145
+ }
146
+ append(key, value) {
147
+ this.fd.append(key, String(value));
148
+ }
149
+ getFileName(value, filename) {
150
+ if (filename != null) {
151
+ return filename;
152
+ }
153
+ if (isNamedValue(value)) {
154
+ return value.name;
155
+ }
156
+ if (isPathedValue(value) && value.path) {
157
+ return getLastPathSegment(value.path.toString());
158
+ }
159
+ return undefined;
160
+ }
161
+ convertToBlob(value) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ if (isStreamLike(value) || isReadableStream(value)) {
164
+ const buffer = yield streamToBuffer(value);
165
+ return new Blob([buffer]);
166
+ }
167
+ if (value instanceof Blob) {
168
+ return value;
169
+ }
170
+ if (isBuffer(value)) {
171
+ return new Blob([value]);
172
+ }
173
+ if (value instanceof ArrayBuffer) {
174
+ return new Blob([value]);
175
+ }
176
+ if (isArrayBufferView(value)) {
177
+ return new Blob([value]);
178
+ }
179
+ if (typeof value === "string") {
180
+ return new Blob([value]);
181
+ }
182
+ if (typeof value === "object" && value !== null) {
183
+ return new Blob([(0, json_1.toJson)(value)], { type: "application/json" });
184
+ }
185
+ return new Blob([String(value)]);
186
+ });
187
+ }
188
+ appendFile(key, value, fileName) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ fileName = this.getFileName(value, fileName);
191
+ const blob = yield this.convertToBlob(value);
192
+ if (fileName) {
193
+ this.fd.append(key, blob, fileName);
194
+ }
195
+ else {
196
+ this.fd.append(key, blob);
197
+ }
198
+ });
199
+ }
200
+ getRequest() {
201
+ return {
202
+ body: this.fd,
203
+ headers: {},
204
+ duplex: "half",
205
+ };
206
+ }
207
+ }
208
+ exports.FormDataWrapper = FormDataWrapper;
@@ -0,0 +1 @@
1
+ export declare function encodeAsFormParameter(value: unknown): Record<string, string>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.encodeAsFormParameter = encodeAsFormParameter;
4
+ const qs_1 = require("../url/qs");
5
+ function encodeAsFormParameter(value) {
6
+ const stringified = (0, qs_1.toQueryString)(value, { encode: false });
7
+ const keyValuePairs = stringified.split("&").map((pair) => {
8
+ const [key, value] = pair.split("=");
9
+ return [key, value];
10
+ });
11
+ return Object.fromEntries(keyValuePairs);
12
+ }
@@ -0,0 +1,2 @@
1
+ export { encodeAsFormParameter } from "./encodeAsFormParameter";
2
+ export * from "./FormDataWrapper";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.encodeAsFormParameter = void 0;
18
+ var encodeAsFormParameter_1 = require("./encodeAsFormParameter");
19
+ Object.defineProperty(exports, "encodeAsFormParameter", { enumerable: true, get: function () { return encodeAsFormParameter_1.encodeAsFormParameter; } });
20
+ __exportStar(require("./FormDataWrapper"), exports);
@@ -4,4 +4,6 @@ export * as url from "./url";
4
4
  export * from "./auth";
5
5
  export * from "./base64";
6
6
  export * from "./stream";
7
+ export * as file from "./file";
8
+ export * from "./form-data-utils";
7
9
  export * as serialization from "./schemas";
@@ -36,11 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.serialization = exports.url = void 0;
39
+ exports.serialization = exports.file = exports.url = void 0;
40
40
  __exportStar(require("./fetcher"), exports);
41
41
  __exportStar(require("./runtime"), exports);
42
42
  exports.url = __importStar(require("./url"));
43
43
  __exportStar(require("./auth"), exports);
44
44
  __exportStar(require("./base64"), exports);
45
45
  __exportStar(require("./stream"), exports);
46
+ exports.file = __importStar(require("./file"));
47
+ __exportStar(require("./form-data-utils"), exports);
46
48
  exports.serialization = __importStar(require("./schemas"));
@@ -0,0 +1 @@
1
+ export * from "./core/exports";
@@ -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("./core/exports"), exports);
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export { MavenAGIError, MavenAGITimeoutError } from "./errors";
3
3
  export * as serialization from "./serialization";
4
4
  export { MavenAGIClient } from "./Client";
5
5
  export { MavenAGIEnvironment } from "./environments";
6
+ export * from "./exports";
package/dist/index.js CHANGED
@@ -32,6 +32,9 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
35
38
  Object.defineProperty(exports, "__esModule", { value: true });
36
39
  exports.MavenAGIEnvironment = exports.MavenAGIClient = exports.serialization = exports.MavenAGITimeoutError = exports.MavenAGIError = exports.MavenAGI = void 0;
37
40
  exports.MavenAGI = __importStar(require("./api"));
@@ -43,3 +46,4 @@ var Client_1 = require("./Client");
43
46
  Object.defineProperty(exports, "MavenAGIClient", { enumerable: true, get: function () { return Client_1.MavenAGIClient; } });
44
47
  var environments_1 = require("./environments");
45
48
  Object.defineProperty(exports, "MavenAGIEnvironment", { enumerable: true, get: function () { return environments_1.MavenAGIEnvironment; } });
49
+ __exportStar(require("./exports"), exports);
@@ -17,6 +17,7 @@ export declare namespace ConversationSummary {
17
17
  humanAgents: string[];
18
18
  humanAgentsWithInserts: string[];
19
19
  users: string[];
20
+ userIdentifiers: string[];
20
21
  lastUserMessage?: string | null;
21
22
  lastBotMessage?: string | null;
22
23
  }
@@ -50,6 +50,7 @@ exports.ConversationSummary = core.serialization.object({
50
50
  humanAgents: core.serialization.list(core.serialization.string()),
51
51
  humanAgentsWithInserts: core.serialization.list(core.serialization.string()),
52
52
  users: core.serialization.list(core.serialization.string()),
53
+ userIdentifiers: core.serialization.list(core.serialization.string()),
53
54
  lastUserMessage: core.serialization.string().optional(),
54
55
  lastBotMessage: core.serialization.string().optional(),
55
56
  });
@@ -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.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.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"));