mavenagi 0.0.0-alpha.11 → 0.0.0-alpha.14

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 (289) hide show
  1. package/Client.d.ts +9 -0
  2. package/README.md +49 -5
  3. package/api/resources/actions/client/Client.d.ts +9 -0
  4. package/api/resources/actions/client/Client.js +18 -15
  5. package/api/resources/commons/types/AppUser.d.ts +3 -2
  6. package/api/resources/commons/types/AppUserIdentifier.d.ts +1 -1
  7. package/api/resources/commons/types/AppUserRequest.d.ts +19 -1
  8. package/api/resources/commons/types/AppUserResponse.d.ts +34 -2
  9. package/api/resources/commons/types/EntityType.d.ts +2 -1
  10. package/api/resources/commons/types/EntityType.js +1 -0
  11. package/api/resources/commons/types/Feedback.d.ts +4 -8
  12. package/api/resources/commons/types/FeedbackBase.d.ts +10 -0
  13. package/api/resources/commons/types/UserData.d.ts +1 -1
  14. package/api/resources/commons/types/index.d.ts +4 -2
  15. package/api/resources/commons/types/index.js +4 -2
  16. package/api/resources/conversation/client/Client.d.ts +39 -22
  17. package/api/resources/conversation/client/Client.js +97 -77
  18. package/api/resources/conversation/types/AskRequest.d.ts +2 -4
  19. package/api/resources/conversation/types/ConversationBase.d.ts +12 -0
  20. package/api/resources/conversation/types/ConversationMessageBase.d.ts +4 -3
  21. package/api/resources/conversation/types/ConversationRequest.d.ts +0 -2
  22. package/api/resources/conversation/types/ConversationResponse.d.ts +0 -2
  23. package/api/resources/conversation/types/FeedbackRequest.d.ts +8 -1
  24. package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -3
  25. package/api/resources/conversation/types/UserMessageBase.d.ts +2 -0
  26. package/api/resources/conversation/types/index.d.ts +0 -2
  27. package/api/resources/conversation/types/index.js +0 -2
  28. package/api/resources/knowledge/client/Client.d.ts +9 -0
  29. package/api/resources/knowledge/client/Client.js +44 -37
  30. package/api/resources/triggers/client/Client.d.ts +9 -0
  31. package/api/resources/triggers/client/Client.js +18 -15
  32. package/api/resources/triggers/types/index.d.ts +0 -3
  33. package/api/resources/triggers/types/index.js +0 -3
  34. package/api/resources/users/client/Client.d.ts +27 -14
  35. package/api/resources/users/client/Client.js +32 -26
  36. package/core/fetcher/Fetcher.d.ts +4 -1
  37. package/core/fetcher/Fetcher.js +18 -159
  38. package/core/fetcher/createRequestUrl.d.ts +1 -0
  39. package/core/fetcher/createRequestUrl.js +6 -0
  40. package/core/fetcher/getFetchFn.d.ts +4 -0
  41. package/core/fetcher/getFetchFn.js +32 -0
  42. package/core/fetcher/getRequestBody.d.ts +7 -0
  43. package/core/fetcher/getRequestBody.js +19 -0
  44. package/core/fetcher/getResponseBody.d.ts +1 -0
  45. package/core/fetcher/getResponseBody.js +48 -0
  46. package/core/fetcher/makeRequest.d.ts +1 -0
  47. package/core/fetcher/makeRequest.js +38 -0
  48. package/core/fetcher/requestWithRetries.d.ts +1 -0
  49. package/core/fetcher/requestWithRetries.js +28 -0
  50. package/core/fetcher/signals.d.ts +12 -0
  51. package/core/fetcher/signals.js +32 -0
  52. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  53. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +222 -0
  54. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  55. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +104 -0
  56. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +30 -0
  57. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +204 -0
  58. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +17 -0
  59. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +23 -0
  60. package/core/runtime/runtime.d.ts +1 -0
  61. package/core/runtime/runtime.js +1 -0
  62. package/core/schemas/Schema.d.ts +7 -4
  63. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  64. package/core/schemas/builders/lazy/lazy.js +8 -19
  65. package/core/schemas/builders/lazy/lazyObject.js +1 -10
  66. package/core/schemas/builders/list/list.js +31 -44
  67. package/core/schemas/builders/object/object.js +90 -111
  68. package/core/schemas/builders/object/types.d.ts +2 -2
  69. package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  70. package/core/schemas/builders/record/record.js +49 -60
  71. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  72. package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  73. package/core/schemas/builders/set/set.js +6 -15
  74. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  75. package/core/schemas/builders/union/union.js +51 -62
  76. package/core/schemas/utils/maybeSkipValidation.js +3 -12
  77. package/dist/Client.d.ts +9 -0
  78. package/dist/api/resources/actions/client/Client.d.ts +9 -0
  79. package/dist/api/resources/actions/client/Client.js +18 -15
  80. package/dist/api/resources/commons/types/AppUser.d.ts +3 -2
  81. package/dist/api/resources/commons/types/AppUserIdentifier.d.ts +1 -1
  82. package/dist/api/resources/commons/types/AppUserRequest.d.ts +19 -1
  83. package/dist/api/resources/commons/types/AppUserResponse.d.ts +34 -2
  84. package/dist/api/resources/commons/types/EntityType.d.ts +2 -1
  85. package/dist/api/resources/commons/types/EntityType.js +1 -0
  86. package/dist/api/resources/commons/types/Feedback.d.ts +4 -8
  87. package/dist/api/resources/commons/types/FeedbackBase.d.ts +10 -0
  88. package/dist/api/resources/commons/types/UserData.d.ts +1 -1
  89. package/dist/api/resources/commons/types/index.d.ts +4 -2
  90. package/dist/api/resources/commons/types/index.js +4 -2
  91. package/dist/api/resources/conversation/client/Client.d.ts +39 -22
  92. package/dist/api/resources/conversation/client/Client.js +97 -77
  93. package/dist/api/resources/conversation/types/AskRequest.d.ts +2 -4
  94. package/dist/api/resources/conversation/types/ConversationBase.d.ts +12 -0
  95. package/dist/api/resources/conversation/types/ConversationMessageBase.d.ts +4 -3
  96. package/dist/api/resources/conversation/types/ConversationRequest.d.ts +0 -2
  97. package/dist/api/resources/conversation/types/ConversationResponse.d.ts +0 -2
  98. package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +8 -1
  99. package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -3
  100. package/dist/api/resources/conversation/types/UserMessageBase.d.ts +2 -0
  101. package/dist/api/resources/conversation/types/index.d.ts +0 -2
  102. package/dist/api/resources/conversation/types/index.js +0 -2
  103. package/dist/api/resources/knowledge/client/Client.d.ts +9 -0
  104. package/dist/api/resources/knowledge/client/Client.js +44 -37
  105. package/dist/api/resources/triggers/client/Client.d.ts +9 -0
  106. package/dist/api/resources/triggers/client/Client.js +18 -15
  107. package/dist/api/resources/triggers/types/index.d.ts +0 -3
  108. package/dist/api/resources/triggers/types/index.js +0 -3
  109. package/dist/api/resources/users/client/Client.d.ts +27 -14
  110. package/dist/api/resources/users/client/Client.js +32 -26
  111. package/dist/core/fetcher/Fetcher.d.ts +4 -1
  112. package/dist/core/fetcher/Fetcher.js +18 -159
  113. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  114. package/dist/core/fetcher/createRequestUrl.js +6 -0
  115. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  116. package/dist/core/fetcher/getFetchFn.js +32 -0
  117. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  118. package/dist/core/fetcher/getRequestBody.js +19 -0
  119. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  120. package/dist/core/fetcher/getResponseBody.js +48 -0
  121. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  122. package/dist/core/fetcher/makeRequest.js +38 -0
  123. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  124. package/dist/core/fetcher/requestWithRetries.js +28 -0
  125. package/dist/core/fetcher/signals.d.ts +12 -0
  126. package/dist/core/fetcher/signals.js +32 -0
  127. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  128. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +222 -0
  129. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  130. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +104 -0
  131. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +30 -0
  132. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +204 -0
  133. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +17 -0
  134. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +23 -0
  135. package/dist/core/runtime/runtime.d.ts +1 -0
  136. package/dist/core/runtime/runtime.js +1 -0
  137. package/dist/core/schemas/Schema.d.ts +7 -4
  138. package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
  139. package/dist/core/schemas/builders/lazy/lazy.js +8 -19
  140. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
  141. package/dist/core/schemas/builders/list/list.js +31 -44
  142. package/dist/core/schemas/builders/object/object.js +90 -111
  143. package/dist/core/schemas/builders/object/types.d.ts +2 -2
  144. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  145. package/dist/core/schemas/builders/record/record.js +49 -60
  146. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  147. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  148. package/dist/core/schemas/builders/set/set.js +6 -15
  149. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  150. package/dist/core/schemas/builders/union/union.js +51 -62
  151. package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
  152. package/dist/serialization/resources/commons/types/AppUser.d.ts +3 -3
  153. package/dist/serialization/resources/commons/types/AppUser.js +3 -3
  154. package/dist/serialization/resources/commons/types/AppUserIdentifier.d.ts +1 -1
  155. package/dist/serialization/resources/commons/types/AppUserIdentifier.js +1 -1
  156. package/dist/serialization/resources/commons/types/AppUserRequest.d.ts +1 -1
  157. package/dist/serialization/resources/commons/types/AppUserRequest.js +1 -1
  158. package/dist/serialization/resources/commons/types/AppUserResponse.d.ts +2 -1
  159. package/dist/serialization/resources/commons/types/AppUserResponse.js +2 -1
  160. package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
  161. package/dist/serialization/resources/commons/types/EntityType.js +1 -0
  162. package/{serialization/resources/triggers → dist/serialization/resources/commons}/types/EventTriggerResponse.d.ts +1 -1
  163. package/{serialization/resources/triggers → dist/serialization/resources/commons}/types/EventTriggerResponse.js +1 -1
  164. package/dist/serialization/resources/commons/types/Feedback.d.ts +6 -7
  165. package/dist/serialization/resources/commons/types/Feedback.js +9 -8
  166. package/dist/serialization/resources/commons/types/FeedbackBase.d.ts +14 -0
  167. package/dist/serialization/resources/commons/types/FeedbackBase.js +9 -0
  168. package/dist/serialization/resources/commons/types/UserData.d.ts +1 -1
  169. package/dist/serialization/resources/commons/types/UserData.js +1 -1
  170. package/dist/serialization/resources/commons/types/index.d.ts +4 -2
  171. package/dist/serialization/resources/commons/types/index.js +4 -2
  172. package/dist/serialization/resources/conversation/types/AskRequest.d.ts +1 -4
  173. package/dist/serialization/resources/conversation/types/AskRequest.js +1 -4
  174. package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +6 -0
  175. package/dist/serialization/resources/conversation/types/ConversationBase.js +6 -0
  176. package/dist/serialization/resources/conversation/types/ConversationMessageBase.d.ts +2 -2
  177. package/dist/serialization/resources/conversation/types/ConversationMessageBase.js +2 -2
  178. package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +0 -2
  179. package/dist/serialization/resources/conversation/types/ConversationRequest.js +0 -2
  180. package/dist/serialization/resources/conversation/types/ConversationResponse.d.ts +0 -2
  181. package/dist/serialization/resources/conversation/types/ConversationResponse.js +0 -2
  182. package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +7 -2
  183. package/dist/serialization/resources/conversation/types/FeedbackRequest.js +10 -2
  184. package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +0 -2
  185. package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +0 -2
  186. package/dist/serialization/resources/conversation/types/UserMessageBase.d.ts +2 -0
  187. package/dist/serialization/resources/conversation/types/UserMessageBase.js +2 -0
  188. package/dist/serialization/resources/conversation/types/index.d.ts +0 -2
  189. package/dist/serialization/resources/conversation/types/index.js +0 -2
  190. package/dist/serialization/resources/triggers/types/EventTriggerRequest.d.ts +1 -1
  191. package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +1 -1
  192. package/dist/serialization/resources/triggers/types/index.d.ts +0 -3
  193. package/dist/serialization/resources/triggers/types/index.js +0 -3
  194. package/package.json +7 -2
  195. package/reference.md +1732 -0
  196. package/serialization/resources/commons/types/AppUser.d.ts +3 -3
  197. package/serialization/resources/commons/types/AppUser.js +3 -3
  198. package/serialization/resources/commons/types/AppUserIdentifier.d.ts +1 -1
  199. package/serialization/resources/commons/types/AppUserIdentifier.js +1 -1
  200. package/serialization/resources/commons/types/AppUserRequest.d.ts +1 -1
  201. package/serialization/resources/commons/types/AppUserRequest.js +1 -1
  202. package/serialization/resources/commons/types/AppUserResponse.d.ts +2 -1
  203. package/serialization/resources/commons/types/AppUserResponse.js +2 -1
  204. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  205. package/serialization/resources/commons/types/EntityType.js +1 -0
  206. package/{dist/serialization/resources/triggers → serialization/resources/commons}/types/EventTriggerResponse.d.ts +1 -1
  207. package/{dist/serialization/resources/triggers → serialization/resources/commons}/types/EventTriggerResponse.js +1 -1
  208. package/serialization/resources/commons/types/Feedback.d.ts +6 -7
  209. package/serialization/resources/commons/types/Feedback.js +9 -8
  210. package/serialization/resources/commons/types/FeedbackBase.d.ts +14 -0
  211. package/serialization/resources/commons/types/FeedbackBase.js +9 -0
  212. package/serialization/resources/commons/types/UserData.d.ts +1 -1
  213. package/serialization/resources/commons/types/UserData.js +1 -1
  214. package/serialization/resources/commons/types/index.d.ts +4 -2
  215. package/serialization/resources/commons/types/index.js +4 -2
  216. package/serialization/resources/conversation/types/AskRequest.d.ts +1 -4
  217. package/serialization/resources/conversation/types/AskRequest.js +1 -4
  218. package/serialization/resources/conversation/types/ConversationBase.d.ts +6 -0
  219. package/serialization/resources/conversation/types/ConversationBase.js +6 -0
  220. package/serialization/resources/conversation/types/ConversationMessageBase.d.ts +2 -2
  221. package/serialization/resources/conversation/types/ConversationMessageBase.js +2 -2
  222. package/serialization/resources/conversation/types/ConversationRequest.d.ts +0 -2
  223. package/serialization/resources/conversation/types/ConversationRequest.js +0 -2
  224. package/serialization/resources/conversation/types/ConversationResponse.d.ts +0 -2
  225. package/serialization/resources/conversation/types/ConversationResponse.js +0 -2
  226. package/serialization/resources/conversation/types/FeedbackRequest.d.ts +7 -2
  227. package/serialization/resources/conversation/types/FeedbackRequest.js +10 -2
  228. package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +0 -2
  229. package/serialization/resources/conversation/types/SubmitActionFormRequest.js +0 -2
  230. package/serialization/resources/conversation/types/UserMessageBase.d.ts +2 -0
  231. package/serialization/resources/conversation/types/UserMessageBase.js +2 -0
  232. package/serialization/resources/conversation/types/index.d.ts +0 -2
  233. package/serialization/resources/conversation/types/index.js +0 -2
  234. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +1 -1
  235. package/serialization/resources/triggers/types/EventTriggerRequest.js +1 -1
  236. package/serialization/resources/triggers/types/index.d.ts +0 -3
  237. package/serialization/resources/triggers/types/index.js +0 -3
  238. package/api/resources/commons/types/AppUserIdentification.d.ts +0 -8
  239. package/api/resources/commons/types/User.d.ts +0 -10
  240. package/api/resources/conversation/types/ConversationContext.d.ts +0 -20
  241. package/api/resources/conversation/types/ConversationContext.js +0 -4
  242. package/api/resources/conversation/types/ConversationMessageContext.d.ts +0 -12
  243. package/api/resources/conversation/types/ConversationMessageContext.js +0 -4
  244. package/dist/api/resources/commons/types/AppUserIdentification.d.ts +0 -8
  245. package/dist/api/resources/commons/types/AppUserIdentification.js +0 -4
  246. package/dist/api/resources/commons/types/User.d.ts +0 -10
  247. package/dist/api/resources/commons/types/User.js +0 -4
  248. package/dist/api/resources/conversation/types/ConversationContext.d.ts +0 -20
  249. package/dist/api/resources/conversation/types/ConversationContext.js +0 -4
  250. package/dist/api/resources/conversation/types/ConversationMessageContext.d.ts +0 -12
  251. package/dist/api/resources/conversation/types/ConversationMessageContext.js +0 -4
  252. package/dist/serialization/resources/commons/types/AppUserIdentification.d.ts +0 -13
  253. package/dist/serialization/resources/commons/types/AppUserIdentification.js +0 -8
  254. package/dist/serialization/resources/commons/types/User.d.ts +0 -15
  255. package/dist/serialization/resources/commons/types/User.js +0 -10
  256. package/dist/serialization/resources/conversation/types/ConversationContext.d.ts +0 -20
  257. package/dist/serialization/resources/conversation/types/ConversationContext.js +0 -15
  258. package/dist/serialization/resources/conversation/types/ConversationMessageContext.d.ts +0 -16
  259. package/dist/serialization/resources/conversation/types/ConversationMessageContext.js +0 -11
  260. package/serialization/resources/commons/types/AppUserIdentification.d.ts +0 -13
  261. package/serialization/resources/commons/types/AppUserIdentification.js +0 -8
  262. package/serialization/resources/commons/types/User.d.ts +0 -15
  263. package/serialization/resources/commons/types/User.js +0 -10
  264. package/serialization/resources/conversation/types/ConversationContext.d.ts +0 -20
  265. package/serialization/resources/conversation/types/ConversationContext.js +0 -15
  266. package/serialization/resources/conversation/types/ConversationMessageContext.d.ts +0 -16
  267. package/serialization/resources/conversation/types/ConversationMessageContext.js +0 -11
  268. /package/api/resources/{triggers → commons}/types/EventTriggerBase.d.ts +0 -0
  269. /package/api/resources/{triggers → commons}/types/EventTriggerBase.js +0 -0
  270. /package/api/resources/{triggers → commons}/types/EventTriggerResponse.d.ts +0 -0
  271. /package/api/resources/{triggers → commons}/types/EventTriggerResponse.js +0 -0
  272. /package/api/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
  273. /package/api/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
  274. /package/api/resources/commons/types/{AppUserIdentification.js → FeedbackBase.js} +0 -0
  275. /package/dist/api/resources/{triggers → commons}/types/EventTriggerBase.d.ts +0 -0
  276. /package/dist/api/resources/{triggers → commons}/types/EventTriggerBase.js +0 -0
  277. /package/dist/api/resources/{triggers → commons}/types/EventTriggerResponse.d.ts +0 -0
  278. /package/dist/api/resources/{triggers → commons}/types/EventTriggerResponse.js +0 -0
  279. /package/dist/api/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
  280. /package/dist/api/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
  281. /package/{api/resources/commons/types/User.js → dist/api/resources/commons/types/FeedbackBase.js} +0 -0
  282. /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerBase.d.ts +0 -0
  283. /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerBase.js +0 -0
  284. /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
  285. /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
  286. /package/serialization/resources/{triggers → commons}/types/EventTriggerBase.d.ts +0 -0
  287. /package/serialization/resources/{triggers → commons}/types/EventTriggerBase.js +0 -0
  288. /package/serialization/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
  289. /package/serialization/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { SchemaType } from "../../Schema";
11
2
  import { JsonError } from "./JsonError";
12
3
  import { ParseError } from "./ParseError";
@@ -14,20 +5,20 @@ export function getSchemaUtils(schema) {
14
5
  return {
15
6
  optional: () => optional(schema),
16
7
  transform: (transformer) => transform(schema, transformer),
17
- parseOrThrow: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
18
- const parsed = yield schema.parse(raw, opts);
8
+ parseOrThrow: (raw, opts) => {
9
+ const parsed = schema.parse(raw, opts);
19
10
  if (parsed.ok) {
20
11
  return parsed.value;
21
12
  }
22
13
  throw new ParseError(parsed.errors);
23
- }),
24
- jsonOrThrow: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
25
- const raw = yield schema.json(parsed, opts);
14
+ },
15
+ jsonOrThrow: (parsed, opts) => {
16
+ const raw = schema.json(parsed, opts);
26
17
  if (raw.ok) {
27
18
  return raw.value;
28
19
  }
29
20
  throw new JsonError(raw.errors);
30
- }),
21
+ },
31
22
  };
32
23
  }
33
24
  /**
@@ -45,6 +36,12 @@ export function optional(schema) {
45
36
  return schema.parse(raw, opts);
46
37
  },
47
38
  json: (parsed, opts) => {
39
+ if ((opts === null || opts === void 0 ? void 0 : opts.omitUndefined) && parsed === undefined) {
40
+ return {
41
+ ok: true,
42
+ value: undefined,
43
+ };
44
+ }
48
45
  if (parsed == null) {
49
46
  return {
50
47
  ok: true,
@@ -59,8 +56,8 @@ export function optional(schema) {
59
56
  }
60
57
  export function transform(schema, transformer) {
61
58
  const baseSchema = {
62
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
63
- const parsed = yield schema.parse(raw, opts);
59
+ parse: (raw, opts) => {
60
+ const parsed = schema.parse(raw, opts);
64
61
  if (!parsed.ok) {
65
62
  return parsed;
66
63
  }
@@ -68,11 +65,11 @@ export function transform(schema, transformer) {
68
65
  ok: true,
69
66
  value: transformer.transform(parsed.value),
70
67
  };
71
- }),
72
- json: (transformed, opts) => __awaiter(this, void 0, void 0, function* () {
73
- const parsed = yield transformer.untransform(transformed);
68
+ },
69
+ json: (transformed, opts) => {
70
+ const parsed = transformer.untransform(transformed);
74
71
  return schema.json(parsed, opts);
75
- }),
72
+ },
76
73
  getType: () => schema.getType(),
77
74
  };
78
75
  return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { SchemaType } from "../../Schema";
11
2
  import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType";
12
3
  import { maybeSkipValidation } from "../../utils/maybeSkipValidation";
@@ -15,8 +6,8 @@ import { getSchemaUtils } from "../schema-utils";
15
6
  export function set(schema) {
16
7
  const listSchema = list(schema);
17
8
  const baseSchema = {
18
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
19
- const parsedList = yield listSchema.parse(raw, opts);
9
+ parse: (raw, opts) => {
10
+ const parsedList = listSchema.parse(raw, opts);
20
11
  if (parsedList.ok) {
21
12
  return {
22
13
  ok: true,
@@ -26,8 +17,8 @@ export function set(schema) {
26
17
  else {
27
18
  return parsedList;
28
19
  }
29
- }),
30
- json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
20
+ },
21
+ json: (parsed, opts) => {
31
22
  var _a;
32
23
  if (!(parsed instanceof Set)) {
33
24
  return {
@@ -40,9 +31,9 @@ export function set(schema) {
40
31
  ],
41
32
  };
42
33
  }
43
- const jsonList = yield listSchema.json([...parsed], opts);
34
+ const jsonList = listSchema.json([...parsed], opts);
44
35
  return jsonList;
45
- }),
36
+ },
46
37
  getType: () => SchemaType.SET,
47
38
  };
48
39
  return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
@@ -1,47 +1,36 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { SchemaType } from "../../Schema";
11
2
  import { maybeSkipValidation } from "../../utils/maybeSkipValidation";
12
3
  import { getSchemaUtils } from "../schema-utils";
13
4
  export function undiscriminatedUnion(schemas) {
14
5
  const baseSchema = {
15
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
6
+ parse: (raw, opts) => {
16
7
  return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.parse(raw, opts), schemas, opts);
17
- }),
18
- json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
8
+ },
9
+ json: (parsed, opts) => {
19
10
  return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.json(parsed, opts), schemas, opts);
20
- }),
11
+ },
21
12
  getType: () => SchemaType.UNDISCRIMINATED_UNION,
22
13
  };
23
14
  return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
24
15
  }
25
16
  function validateAndTransformUndiscriminatedUnion(transform, schemas, opts) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- const errors = [];
28
- for (const [index, schema] of schemas.entries()) {
29
- const transformed = yield transform(schema, Object.assign(Object.assign({}, opts), { skipValidation: false }));
30
- if (transformed.ok) {
31
- return transformed;
32
- }
33
- else {
34
- for (const error of transformed.errors) {
35
- errors.push({
36
- path: error.path,
37
- message: `[Variant ${index}] ${error.message}`,
38
- });
39
- }
17
+ const errors = [];
18
+ for (const [index, schema] of schemas.entries()) {
19
+ const transformed = transform(schema, Object.assign(Object.assign({}, opts), { skipValidation: false }));
20
+ if (transformed.ok) {
21
+ return transformed;
22
+ }
23
+ else {
24
+ for (const error of transformed.errors) {
25
+ errors.push({
26
+ path: error.path,
27
+ message: `[Variant ${index}] ${error.message}`,
28
+ });
40
29
  }
41
30
  }
42
- return {
43
- ok: false,
44
- errors,
45
- };
46
- });
31
+ }
32
+ return {
33
+ ok: false,
34
+ errors,
35
+ };
47
36
  }
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  var __rest = (this && this.__rest) || function (s, e) {
11
2
  var t = {};
12
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -33,7 +24,7 @@ export function union(discriminant, union) {
33
24
  : discriminant.parsedDiscriminant;
34
25
  const discriminantValueSchema = enum_(keys(union));
35
26
  const baseSchema = {
36
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
27
+ parse: (raw, opts) => {
37
28
  return transformAndValidateUnion({
38
29
  value: raw,
39
30
  discriminant: rawDiscriminant,
@@ -50,8 +41,8 @@ export function union(discriminant, union) {
50
41
  transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.parse(additionalProperties, opts),
51
42
  breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
52
43
  });
53
- }),
54
- json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
44
+ },
45
+ json: (parsed, opts) => {
55
46
  return transformAndValidateUnion({
56
47
  value: parsed,
57
48
  discriminant: parsedDiscriminant,
@@ -68,70 +59,68 @@ export function union(discriminant, union) {
68
59
  transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.json(additionalProperties, opts),
69
60
  breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
70
61
  });
71
- }),
62
+ },
72
63
  getType: () => SchemaType.UNION,
73
64
  };
74
65
  return Object.assign(Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema)), getObjectLikeUtils(baseSchema));
75
66
  }
76
67
  function transformAndValidateUnion({ value, discriminant, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [], }) {
77
- return __awaiter(this, void 0, void 0, function* () {
78
- if (!isPlainObject(value)) {
68
+ if (!isPlainObject(value)) {
69
+ return {
70
+ ok: false,
71
+ errors: [
72
+ {
73
+ path: breadcrumbsPrefix,
74
+ message: getErrorMessageForIncorrectType(value, "object"),
75
+ },
76
+ ],
77
+ };
78
+ }
79
+ const _a = value, _b = discriminant, discriminantValue = _a[_b], additionalProperties = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
80
+ if (discriminantValue == null) {
81
+ return {
82
+ ok: false,
83
+ errors: [
84
+ {
85
+ path: breadcrumbsPrefix,
86
+ message: `Missing discriminant ("${discriminant}")`,
87
+ },
88
+ ],
89
+ };
90
+ }
91
+ const transformedDiscriminantValue = transformDiscriminantValue(discriminantValue);
92
+ if (!transformedDiscriminantValue.ok) {
93
+ return {
94
+ ok: false,
95
+ errors: transformedDiscriminantValue.errors,
96
+ };
97
+ }
98
+ const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
99
+ if (additionalPropertiesSchema == null) {
100
+ if (allowUnrecognizedUnionMembers) {
79
101
  return {
80
- ok: false,
81
- errors: [
82
- {
83
- path: breadcrumbsPrefix,
84
- message: getErrorMessageForIncorrectType(value, "object"),
85
- },
86
- ],
102
+ ok: true,
103
+ value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties),
87
104
  };
88
105
  }
89
- const _a = value, _b = discriminant, discriminantValue = _a[_b], additionalProperties = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
90
- if (discriminantValue == null) {
106
+ else {
91
107
  return {
92
108
  ok: false,
93
109
  errors: [
94
110
  {
95
- path: breadcrumbsPrefix,
96
- message: `Missing discriminant ("${discriminant}")`,
111
+ path: [...breadcrumbsPrefix, discriminant],
112
+ message: "Unexpected discriminant value",
97
113
  },
98
114
  ],
99
115
  };
100
116
  }
101
- const transformedDiscriminantValue = yield transformDiscriminantValue(discriminantValue);
102
- if (!transformedDiscriminantValue.ok) {
103
- return {
104
- ok: false,
105
- errors: transformedDiscriminantValue.errors,
106
- };
107
- }
108
- const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
109
- if (additionalPropertiesSchema == null) {
110
- if (allowUnrecognizedUnionMembers) {
111
- return {
112
- ok: true,
113
- value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties),
114
- };
115
- }
116
- else {
117
- return {
118
- ok: false,
119
- errors: [
120
- {
121
- path: [...breadcrumbsPrefix, discriminant],
122
- message: "Unexpected discriminant value",
123
- },
124
- ],
125
- };
126
- }
127
- }
128
- const transformedAdditionalProperties = yield transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
129
- if (!transformedAdditionalProperties.ok) {
130
- return transformedAdditionalProperties;
131
- }
132
- return {
133
- ok: true,
134
- value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value),
135
- };
136
- });
117
+ }
118
+ const transformedAdditionalProperties = transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
119
+ if (!transformedAdditionalProperties.ok) {
120
+ return transformedAdditionalProperties;
121
+ }
122
+ return {
123
+ ok: true,
124
+ value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value),
125
+ };
137
126
  }
@@ -1,18 +1,9 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  export function maybeSkipValidation(schema) {
11
2
  return Object.assign(Object.assign({}, schema), { json: transformAndMaybeSkipValidation(schema.json), parse: transformAndMaybeSkipValidation(schema.parse) });
12
3
  }
13
4
  function transformAndMaybeSkipValidation(transform) {
14
- return (value, opts) => __awaiter(this, void 0, void 0, function* () {
15
- const transformed = yield transform(value, opts);
5
+ return (value, opts) => {
6
+ const transformed = transform(value, opts);
16
7
  const { skipValidation = false } = opts !== null && opts !== void 0 ? opts : {};
17
8
  if (!transformed.ok && skipValidation) {
18
9
  // eslint-disable-next-line no-console
@@ -29,5 +20,5 @@ function transformAndMaybeSkipValidation(transform) {
29
20
  else {
30
21
  return transformed;
31
22
  }
32
- });
23
+ };
33
24
  }
@@ -4,12 +4,12 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { AppUserIdentification } from "./AppUserIdentification";
7
+ import { AppUserIdentifier } from "./AppUserIdentifier";
8
8
  import { UserData } from "./UserData";
9
9
  export declare const AppUser: core.serialization.ObjectSchema<serializers.AppUser.Raw, MavenAGI.AppUser>;
10
10
  export declare namespace AppUser {
11
11
  interface Raw {
12
- userIdentifiers?: AppUserIdentification.Raw | null;
13
- metadata?: Record<string, UserData.Raw> | null;
12
+ identifiers: AppUserIdentifier.Raw[];
13
+ data: Record<string, UserData.Raw>;
14
14
  }
15
15
  }
@@ -2,9 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
- import { AppUserIdentification } from "./AppUserIdentification";
5
+ import { AppUserIdentifier } from "./AppUserIdentifier";
6
6
  import { UserData } from "./UserData";
7
7
  export const AppUser = core.serialization.object({
8
- userIdentifiers: AppUserIdentification.optional(),
9
- metadata: core.serialization.record(core.serialization.string(), UserData).optional(),
8
+ identifiers: core.serialization.list(AppUserIdentifier),
9
+ data: core.serialization.record(core.serialization.string(), UserData),
10
10
  });
@@ -9,6 +9,6 @@ export declare const AppUserIdentifier: core.serialization.ObjectSchema<serializ
9
9
  export declare namespace AppUserIdentifier {
10
10
  interface Raw {
11
11
  value: string;
12
- userIdentifyingPropertyType: AppUserIdentifyingPropertyType.Raw;
12
+ type: AppUserIdentifyingPropertyType.Raw;
13
13
  }
14
14
  }
@@ -5,5 +5,5 @@ import * as core from "../../../../core";
5
5
  import { AppUserIdentifyingPropertyType } from "./AppUserIdentifyingPropertyType";
6
6
  export const AppUserIdentifier = core.serialization.object({
7
7
  value: core.serialization.string(),
8
- userIdentifyingPropertyType: AppUserIdentifyingPropertyType,
8
+ type: AppUserIdentifyingPropertyType,
9
9
  });
@@ -9,6 +9,6 @@ import { AppUser } from "./AppUser";
9
9
  export declare const AppUserRequest: core.serialization.ObjectSchema<serializers.AppUserRequest.Raw, MavenAGI.AppUserRequest>;
10
10
  export declare namespace AppUserRequest {
11
11
  interface Raw extends AppUser.Raw {
12
- appUserId: EntityIdBase.Raw;
12
+ userId: EntityIdBase.Raw;
13
13
  }
14
14
  }
@@ -6,6 +6,6 @@ import { EntityIdBase } from "./EntityIdBase";
6
6
  import { AppUser } from "./AppUser";
7
7
  export const AppUserRequest = core.serialization
8
8
  .object({
9
- appUserId: EntityIdBase,
9
+ userId: EntityIdBase,
10
10
  })
11
11
  .extend(AppUser);
@@ -9,6 +9,7 @@ import { AppUser } from "./AppUser";
9
9
  export declare const AppUserResponse: core.serialization.ObjectSchema<serializers.AppUserResponse.Raw, MavenAGI.AppUserResponse>;
10
10
  export declare namespace AppUserResponse {
11
11
  interface Raw extends AppUser.Raw {
12
- appUserId: EntityId.Raw;
12
+ userId: EntityId.Raw;
13
+ allUserData: Record<string, Record<string, string>>;
13
14
  }
14
15
  }
@@ -6,6 +6,7 @@ import { EntityId } from "./EntityId";
6
6
  import { AppUser } from "./AppUser";
7
7
  export const AppUserResponse = core.serialization
8
8
  .object({
9
- appUserId: EntityId,
9
+ userId: EntityId,
10
+ allUserData: core.serialization.record(core.serialization.string(), core.serialization.record(core.serialization.string(), core.serialization.string())),
10
11
  })
11
12
  .extend(AppUser);
@@ -6,5 +6,5 @@ import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
8
8
  export declare namespace EntityType {
9
- type Raw = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER" | "USER_PROFILE";
9
+ type Raw = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
10
10
  }
@@ -12,4 +12,5 @@ export const EntityType = core.serialization.enum_([
12
12
  "USER_EVENT",
13
13
  "EVENT_TRIGGER",
14
14
  "USER_PROFILE",
15
+ "FEEDBACK",
15
16
  ]);
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { EntityId } from "../../commons/types/EntityId";
7
+ import { EntityId } from "./EntityId";
8
8
  import { EventTriggerBase } from "./EventTriggerBase";
9
9
  export declare const EventTriggerResponse: core.serialization.ObjectSchema<serializers.EventTriggerResponse.Raw, MavenAGI.EventTriggerResponse>;
10
10
  export declare namespace EventTriggerResponse {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
- import { EntityId } from "../../commons/types/EntityId";
5
+ import { EntityId } from "./EntityId";
6
6
  import { EventTriggerBase } from "./EventTriggerBase";
7
7
  export const EventTriggerResponse = core.serialization
8
8
  .object({
@@ -4,14 +4,13 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { FeedbackType } from "./FeedbackType";
7
+ import { EntityId } from "./EntityId";
8
+ import { FeedbackBase } from "./FeedbackBase";
8
9
  export declare const Feedback: core.serialization.ObjectSchema<serializers.Feedback.Raw, MavenAGI.Feedback>;
9
10
  export declare namespace Feedback {
10
- interface Raw {
11
- id: string;
12
- conversationId: string;
13
- conversationMessageId: string;
14
- type: FeedbackType.Raw;
15
- text?: string | null;
11
+ interface Raw extends FeedbackBase.Raw {
12
+ feedbackId: EntityId.Raw;
13
+ conversationId: EntityId.Raw;
14
+ conversationMessageId: EntityId.Raw;
16
15
  }
17
16
  }
@@ -2,11 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
- import { FeedbackType } from "./FeedbackType";
6
- export const Feedback = core.serialization.object({
7
- id: core.serialization.string(),
8
- conversationId: core.serialization.string(),
9
- conversationMessageId: core.serialization.string(),
10
- type: FeedbackType,
11
- text: core.serialization.string().optional(),
12
- });
5
+ import { EntityId } from "./EntityId";
6
+ import { FeedbackBase } from "./FeedbackBase";
7
+ export const Feedback = core.serialization
8
+ .object({
9
+ feedbackId: EntityId,
10
+ conversationId: EntityId,
11
+ conversationMessageId: EntityId,
12
+ })
13
+ .extend(FeedbackBase);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as MavenAGI from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { FeedbackType } from "./FeedbackType";
8
+ export declare const FeedbackBase: core.serialization.ObjectSchema<serializers.FeedbackBase.Raw, MavenAGI.FeedbackBase>;
9
+ export declare namespace FeedbackBase {
10
+ interface Raw {
11
+ type: FeedbackType.Raw;
12
+ text?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import { FeedbackType } from "./FeedbackType";
6
+ export const FeedbackBase = core.serialization.object({
7
+ type: FeedbackType,
8
+ text: core.serialization.string().optional(),
9
+ });
@@ -9,6 +9,6 @@ export declare const UserData: core.serialization.ObjectSchema<serializers.UserD
9
9
  export declare namespace UserData {
10
10
  interface Raw {
11
11
  value: string;
12
- visibility?: VisibilityType.Raw | null;
12
+ visibility: VisibilityType.Raw;
13
13
  }
14
14
  }
@@ -5,5 +5,5 @@ import * as core from "../../../../core";
5
5
  import { VisibilityType } from "./VisibilityType";
6
6
  export const UserData = core.serialization.object({
7
7
  value: core.serialization.string(),
8
- visibility: VisibilityType.optional(),
8
+ visibility: VisibilityType,
9
9
  });
@@ -2,10 +2,9 @@ export * from "./ErrorMessage";
2
2
  export * from "./EntityType";
3
3
  export * from "./EntityIdBase";
4
4
  export * from "./EntityId";
5
- export * from "./User";
5
+ export * from "./FeedbackBase";
6
6
  export * from "./FeedbackType";
7
7
  export * from "./Feedback";
8
- export * from "./AppUserIdentification";
9
8
  export * from "./AppUserIdentifier";
10
9
  export * from "./AppUserIdentifyingPropertyType";
11
10
  export * from "./AppUser";
@@ -13,3 +12,6 @@ export * from "./UserData";
13
12
  export * from "./VisibilityType";
14
13
  export * from "./AppUserRequest";
15
14
  export * from "./AppUserResponse";
15
+ export * from "./EventTriggerBase";
16
+ export * from "./EventTriggerResponse";
17
+ export * from "./EventTriggerType";
@@ -2,10 +2,9 @@ export * from "./ErrorMessage";
2
2
  export * from "./EntityType";
3
3
  export * from "./EntityIdBase";
4
4
  export * from "./EntityId";
5
- export * from "./User";
5
+ export * from "./FeedbackBase";
6
6
  export * from "./FeedbackType";
7
7
  export * from "./Feedback";
8
- export * from "./AppUserIdentification";
9
8
  export * from "./AppUserIdentifier";
10
9
  export * from "./AppUserIdentifyingPropertyType";
11
10
  export * from "./AppUser";
@@ -13,3 +12,6 @@ export * from "./UserData";
13
12
  export * from "./VisibilityType";
14
13
  export * from "./AppUserRequest";
15
14
  export * from "./AppUserResponse";
15
+ export * from "./EventTriggerBase";
16
+ export * from "./EventTriggerResponse";
17
+ export * from "./EventTriggerType";
@@ -5,14 +5,11 @@ import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { EntityIdBase } from "../../commons/types/EntityIdBase";
8
- import { ConversationMessageContext } from "./ConversationMessageContext";
9
- import { ResponseConfig } from "./ResponseConfig";
10
8
  export declare const AskRequest: core.serialization.ObjectSchema<serializers.AskRequest.Raw, MavenAGI.AskRequest>;
11
9
  export declare namespace AskRequest {
12
10
  interface Raw {
13
11
  conversationMessageId: EntityIdBase.Raw;
12
+ userId: EntityIdBase.Raw;
14
13
  text: string;
15
- context?: ConversationMessageContext.Raw | null;
16
- responseConfig?: ResponseConfig.Raw | null;
17
14
  }
18
15
  }