mavenagi 1.0.4 → 1.0.5

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 (989) hide show
  1. package/Client.d.ts +9 -7
  2. package/Client.js +19 -15
  3. package/README.md +29 -13
  4. package/api/index.js +17 -1
  5. package/api/resources/actions/client/Client.d.ts +2 -0
  6. package/api/resources/actions/client/Client.js +46 -46
  7. package/api/resources/actions/client/index.js +2 -1
  8. package/api/resources/actions/index.js +18 -2
  9. package/api/resources/actions/types/ActionRequest.js +2 -1
  10. package/api/resources/actions/types/index.d.ts +0 -12
  11. package/api/resources/actions/types/index.js +17 -13
  12. package/api/resources/appSettings/client/Client.d.ts +2 -0
  13. package/api/resources/appSettings/client/Client.js +40 -20
  14. package/api/resources/appSettings/client/index.js +2 -1
  15. package/api/resources/appSettings/index.js +17 -1
  16. package/api/resources/commons/errors/BadRequestError.js +29 -2
  17. package/api/resources/commons/errors/NotFoundError.js +29 -2
  18. package/api/resources/commons/errors/ServerError.js +29 -2
  19. package/api/resources/commons/errors/index.js +19 -3
  20. package/api/resources/commons/index.js +18 -2
  21. package/api/resources/commons/types/ActionBase.js +5 -0
  22. package/api/resources/commons/types/ActionEnumOption.d.ts +9 -0
  23. package/api/resources/commons/types/ActionEnumOption.js +5 -0
  24. package/api/resources/commons/types/ActionFormField.d.ts +20 -0
  25. package/api/resources/commons/types/ActionFormField.js +5 -0
  26. package/api/resources/commons/types/ActionParameter.d.ts +18 -0
  27. package/api/resources/commons/types/ActionParameter.js +5 -0
  28. package/api/resources/commons/types/ActionParameterType.js +4 -1
  29. package/api/resources/commons/types/ActionResponse.js +5 -0
  30. package/api/resources/commons/types/AppUser.js +2 -1
  31. package/api/resources/commons/types/AppUserIdentifier.js +2 -1
  32. package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +4 -1
  33. package/api/resources/commons/types/AppUserRequest.js +2 -1
  34. package/api/resources/commons/types/AppUserResponse.js +2 -1
  35. package/api/resources/commons/types/BotActionFormResponse.js +5 -0
  36. package/api/resources/commons/types/BotChartResponse.js +5 -0
  37. package/api/resources/{conversation → commons}/types/BotConversationMessageType.d.ts +1 -2
  38. package/api/resources/commons/types/BotConversationMessageType.js +10 -0
  39. package/api/resources/commons/types/BotMessage.js +5 -0
  40. package/api/resources/{conversation → commons}/types/BotResponse.d.ts +1 -4
  41. package/api/resources/commons/types/BotResponse.js +5 -0
  42. package/api/resources/commons/types/BotResponseMetadata.js +5 -0
  43. package/api/resources/commons/types/BotTextResponse.js +5 -0
  44. package/{dist/api/resources/conversation → api/resources/commons}/types/Capability.js +4 -1
  45. package/api/resources/commons/types/ChartSpecSchema.js +9 -0
  46. package/api/resources/commons/types/ConversationAnalysis.js +5 -0
  47. package/api/resources/commons/types/ConversationBase.js +5 -0
  48. package/api/resources/commons/types/ConversationExecutedActionPrecondition.js +5 -0
  49. package/api/resources/commons/types/ConversationMessageBase.js +5 -0
  50. package/api/resources/commons/types/ConversationMessageResponse.js +5 -0
  51. package/api/resources/commons/types/ConversationPrecondition.js +5 -0
  52. package/api/resources/commons/types/ConversationResponse.js +5 -0
  53. package/api/resources/commons/types/EntityId.js +2 -1
  54. package/api/resources/commons/types/EntityIdBase.js +2 -1
  55. package/api/resources/commons/types/EntityType.js +4 -1
  56. package/api/resources/commons/types/ErrorMessage.js +2 -1
  57. package/api/resources/commons/types/EventTriggerBase.js +2 -1
  58. package/api/resources/commons/types/EventTriggerResponse.js +2 -1
  59. package/api/resources/commons/types/EventTriggerType.js +4 -1
  60. package/api/resources/commons/types/Feedback.js +2 -1
  61. package/api/resources/commons/types/FeedbackBase.js +2 -1
  62. package/api/resources/commons/types/FeedbackType.js +4 -1
  63. package/api/resources/commons/types/MetadataPrecondition.js +5 -0
  64. package/api/resources/commons/types/Precondition.js +5 -0
  65. package/api/resources/commons/types/PreconditionBase.js +5 -0
  66. package/api/resources/commons/types/PreconditionGroup.js +5 -0
  67. package/api/resources/commons/types/PreconditionGroupOperator.js +10 -0
  68. package/api/resources/commons/types/PreconditionOperator.js +9 -0
  69. package/api/resources/commons/types/ResponseConfig.js +5 -0
  70. package/api/resources/commons/types/ResponseLength.js +11 -0
  71. package/api/resources/{conversation → commons}/types/Sentiment.js +4 -1
  72. package/api/resources/commons/types/Source.js +5 -0
  73. package/api/resources/commons/types/TagsPrecondition.js +5 -0
  74. package/api/resources/{conversation → commons}/types/UserConversationMessageType.js +4 -1
  75. package/api/resources/commons/types/UserData.js +2 -1
  76. package/api/resources/commons/types/UserMessage.js +5 -0
  77. package/api/resources/commons/types/UserMessageAttachment.js +5 -0
  78. package/api/resources/commons/types/UserMessageBase.js +5 -0
  79. package/api/resources/commons/types/VisibilityType.js +4 -1
  80. package/api/resources/commons/types/index.d.ts +36 -0
  81. package/api/resources/commons/types/index.js +70 -18
  82. package/api/resources/conversation/client/Client.d.ts +7 -1
  83. package/api/resources/conversation/client/Client.js +72 -138
  84. package/api/resources/conversation/client/index.js +17 -1
  85. package/api/resources/conversation/client/requests/ConversationGetRequest.js +2 -1
  86. package/api/resources/conversation/client/requests/index.js +2 -1
  87. package/api/resources/conversation/index.js +18 -2
  88. package/api/resources/conversation/types/AskRequest.d.ts +7 -1
  89. package/api/resources/conversation/types/AskRequest.js +2 -1
  90. package/api/resources/conversation/types/AskStreamActionEvent.js +2 -1
  91. package/api/resources/conversation/types/AskStreamChartEvent.js +2 -1
  92. package/api/resources/conversation/types/AskStreamEndEvent.js +2 -1
  93. package/api/resources/conversation/types/AskStreamMetadataEvent.js +2 -1
  94. package/api/resources/conversation/types/AskStreamStartEvent.js +2 -1
  95. package/api/resources/conversation/types/AskStreamTextEvent.js +2 -1
  96. package/api/resources/conversation/types/Attachment.d.ts +1 -1
  97. package/api/resources/conversation/types/Attachment.js +2 -1
  98. package/api/resources/conversation/types/CategorizationResponse.js +2 -1
  99. package/api/resources/conversation/types/ConversationMessageRequest.js +2 -1
  100. package/api/resources/conversation/types/ConversationRequest.js +2 -1
  101. package/api/resources/conversation/types/FeedbackRequest.js +2 -1
  102. package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +2 -1
  103. package/api/resources/conversation/types/StreamResponse.js +2 -1
  104. package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -0
  105. package/api/resources/conversation/types/SubmitActionFormRequest.js +2 -1
  106. package/api/resources/conversation/types/index.d.ts +0 -24
  107. package/api/resources/conversation/types/index.js +31 -39
  108. package/api/resources/index.d.ts +1 -0
  109. package/api/resources/index.js +46 -16
  110. package/api/resources/knowledge/client/Client.d.ts +2 -0
  111. package/api/resources/knowledge/client/Client.js +58 -98
  112. package/api/resources/knowledge/client/index.js +2 -1
  113. package/api/resources/knowledge/index.js +18 -2
  114. package/api/resources/knowledge/types/BaseKnowledgeDocument.js +2 -1
  115. package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +2 -0
  116. package/api/resources/knowledge/types/KnowledgeBaseProperties.js +2 -1
  117. package/api/resources/knowledge/types/KnowledgeBaseRequest.js +2 -1
  118. package/api/resources/knowledge/types/KnowledgeBaseResponse.js +2 -1
  119. package/api/resources/knowledge/types/KnowledgeBaseType.js +4 -1
  120. package/api/resources/knowledge/types/KnowledgeBaseVersion.js +2 -1
  121. package/api/resources/knowledge/types/KnowledgeBaseVersionType.js +4 -1
  122. package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +4 -1
  123. package/api/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
  124. package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
  125. package/api/resources/knowledge/types/index.js +26 -10
  126. package/api/resources/translations/client/Client.d.ts +2 -0
  127. package/api/resources/translations/client/Client.js +40 -20
  128. package/api/resources/translations/client/index.js +2 -1
  129. package/api/resources/translations/index.js +18 -2
  130. package/api/resources/translations/types/TranslationRequest.js +2 -1
  131. package/api/resources/translations/types/TranslationResponse.js +2 -1
  132. package/api/resources/translations/types/index.js +18 -2
  133. package/api/resources/triggers/client/Client.d.ts +2 -0
  134. package/api/resources/triggers/client/Client.js +46 -46
  135. package/api/resources/triggers/client/index.js +2 -1
  136. package/api/resources/triggers/index.js +18 -2
  137. package/api/resources/triggers/types/EventTriggerRequest.js +2 -1
  138. package/api/resources/triggers/types/index.js +17 -1
  139. package/api/resources/users/client/Client.d.ts +4 -1
  140. package/api/resources/users/client/Client.js +51 -34
  141. package/api/resources/users/client/index.d.ts +1 -1
  142. package/api/resources/users/client/index.js +17 -1
  143. package/api/resources/users/client/requests/UserGetRequest.d.ts +13 -0
  144. package/api/resources/users/client/requests/UserGetRequest.js +5 -0
  145. package/api/resources/users/client/requests/index.d.ts +1 -0
  146. package/api/resources/users/client/requests/index.js +2 -0
  147. package/api/resources/users/index.js +17 -1
  148. package/core/auth/BasicAuth.js +7 -4
  149. package/core/auth/BearerToken.js +4 -1
  150. package/core/auth/index.js +7 -2
  151. package/core/fetcher/APIResponse.js +2 -1
  152. package/core/fetcher/Fetcher.d.ts +1 -1
  153. package/core/fetcher/Fetcher.js +18 -14
  154. package/core/fetcher/Supplier.js +4 -1
  155. package/core/fetcher/createRequestUrl.js +10 -3
  156. package/core/fetcher/getFetchFn.js +33 -6
  157. package/core/fetcher/getHeader.js +5 -1
  158. package/core/fetcher/getRequestBody.js +5 -1
  159. package/core/fetcher/getResponseBody.js +10 -3
  160. package/core/fetcher/index.js +9 -3
  161. package/core/fetcher/makeRequest.js +8 -4
  162. package/core/fetcher/requestWithRetries.js +18 -5
  163. package/core/fetcher/signals.js +7 -2
  164. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +5 -1
  165. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +5 -1
  166. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +5 -1
  167. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +34 -7
  168. package/core/index.js +34 -5
  169. package/core/runtime/index.js +5 -1
  170. package/core/runtime/runtime.js +4 -1
  171. package/core/schemas/Schema.js +4 -1
  172. package/core/schemas/builders/bigint/bigint.js +13 -9
  173. package/core/schemas/builders/bigint/index.js +5 -1
  174. package/core/schemas/builders/date/date.js +14 -10
  175. package/core/schemas/builders/date/index.js +5 -1
  176. package/core/schemas/builders/enum/enum.js +11 -7
  177. package/core/schemas/builders/enum/index.js +5 -1
  178. package/core/schemas/builders/index.js +30 -14
  179. package/core/schemas/builders/lazy/index.js +7 -2
  180. package/core/schemas/builders/lazy/lazy.js +11 -5
  181. package/core/schemas/builders/lazy/lazyObject.js +11 -7
  182. package/core/schemas/builders/list/index.js +5 -1
  183. package/core/schemas/builders/list/list.js +12 -8
  184. package/core/schemas/builders/literals/booleanLiteral.js +10 -6
  185. package/core/schemas/builders/literals/index.js +7 -2
  186. package/core/schemas/builders/literals/stringLiteral.js +10 -6
  187. package/core/schemas/builders/object/index.js +11 -3
  188. package/core/schemas/builders/object/object.js +66 -33
  189. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -3
  190. package/core/schemas/builders/object/property.js +7 -2
  191. package/core/schemas/builders/object/types.d.ts +5 -0
  192. package/core/schemas/builders/object/types.js +2 -1
  193. package/core/schemas/builders/object-like/getObjectLikeUtils.js +15 -10
  194. package/core/schemas/builders/object-like/index.js +6 -1
  195. package/core/schemas/builders/object-like/types.js +2 -1
  196. package/core/schemas/builders/primitives/any.js +6 -3
  197. package/core/schemas/builders/primitives/boolean.js +8 -5
  198. package/core/schemas/builders/primitives/index.js +13 -5
  199. package/core/schemas/builders/primitives/number.js +8 -5
  200. package/core/schemas/builders/primitives/string.js +8 -5
  201. package/core/schemas/builders/primitives/unknown.js +6 -3
  202. package/core/schemas/builders/record/index.js +5 -1
  203. package/core/schemas/builders/record/record.js +18 -14
  204. package/core/schemas/builders/record/types.js +2 -1
  205. package/core/schemas/builders/schema-utils/JsonError.js +7 -3
  206. package/core/schemas/builders/schema-utils/ParseError.js +7 -3
  207. package/core/schemas/builders/schema-utils/getSchemaUtils.js +15 -9
  208. package/core/schemas/builders/schema-utils/index.js +11 -3
  209. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +5 -1
  210. package/core/schemas/builders/set/index.js +5 -1
  211. package/core/schemas/builders/set/set.js +14 -10
  212. package/core/schemas/builders/undiscriminated-union/index.js +5 -1
  213. package/core/schemas/builders/undiscriminated-union/types.js +2 -1
  214. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +10 -6
  215. package/core/schemas/builders/union/discriminant.js +5 -1
  216. package/core/schemas/builders/union/index.js +7 -2
  217. package/core/schemas/builders/union/types.js +2 -1
  218. package/core/schemas/builders/union/union.js +18 -14
  219. package/core/schemas/index.js +17 -1
  220. package/core/schemas/utils/MaybePromise.js +2 -1
  221. package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -1
  222. package/core/schemas/utils/createIdentitySchemaCreator.js +8 -4
  223. package/core/schemas/utils/entries.js +5 -1
  224. package/core/schemas/utils/filterObject.js +5 -1
  225. package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -1
  226. package/core/schemas/utils/isPlainObject.js +5 -1
  227. package/core/schemas/utils/keys.js +5 -1
  228. package/core/schemas/utils/maybeSkipValidation.js +5 -1
  229. package/core/schemas/utils/partition.js +5 -1
  230. package/core/streaming-fetcher/Stream.js +9 -4
  231. package/core/streaming-fetcher/index.js +5 -1
  232. package/dist/Client.d.ts +9 -7
  233. package/dist/Client.js +19 -15
  234. package/dist/api/index.js +17 -1
  235. package/dist/api/resources/actions/client/Client.d.ts +2 -0
  236. package/dist/api/resources/actions/client/Client.js +46 -46
  237. package/dist/api/resources/actions/client/index.js +2 -1
  238. package/dist/api/resources/actions/index.js +18 -2
  239. package/dist/api/resources/actions/types/ActionRequest.js +2 -1
  240. package/dist/api/resources/actions/types/index.d.ts +0 -12
  241. package/dist/api/resources/actions/types/index.js +17 -13
  242. package/dist/api/resources/appSettings/client/Client.d.ts +2 -0
  243. package/dist/api/resources/appSettings/client/Client.js +40 -20
  244. package/dist/api/resources/appSettings/client/index.js +2 -1
  245. package/dist/api/resources/appSettings/index.js +17 -1
  246. package/dist/api/resources/commons/errors/BadRequestError.js +29 -2
  247. package/dist/api/resources/commons/errors/NotFoundError.js +29 -2
  248. package/dist/api/resources/commons/errors/ServerError.js +29 -2
  249. package/dist/api/resources/commons/errors/index.js +19 -3
  250. package/dist/api/resources/commons/index.js +18 -2
  251. package/dist/api/resources/commons/types/ActionBase.js +5 -0
  252. package/dist/api/resources/commons/types/ActionEnumOption.d.ts +9 -0
  253. package/dist/api/resources/commons/types/ActionEnumOption.js +5 -0
  254. package/dist/api/resources/commons/types/ActionFormField.d.ts +20 -0
  255. package/dist/api/resources/commons/types/ActionFormField.js +5 -0
  256. package/dist/api/resources/commons/types/ActionParameter.d.ts +18 -0
  257. package/dist/api/resources/commons/types/ActionParameter.js +5 -0
  258. package/dist/api/resources/commons/types/ActionParameterType.js +4 -1
  259. package/dist/api/resources/commons/types/ActionResponse.js +5 -0
  260. package/dist/api/resources/commons/types/AppUser.js +2 -1
  261. package/dist/api/resources/commons/types/AppUserIdentifier.js +2 -1
  262. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +4 -1
  263. package/dist/api/resources/commons/types/AppUserRequest.js +2 -1
  264. package/dist/api/resources/commons/types/AppUserResponse.js +2 -1
  265. package/dist/api/resources/commons/types/BotActionFormResponse.js +5 -0
  266. package/dist/api/resources/commons/types/BotChartResponse.js +5 -0
  267. package/dist/api/resources/{conversation → commons}/types/BotConversationMessageType.d.ts +1 -2
  268. package/dist/api/resources/commons/types/BotConversationMessageType.js +10 -0
  269. package/dist/api/resources/commons/types/BotMessage.js +5 -0
  270. package/dist/api/resources/{conversation → commons}/types/BotResponse.d.ts +1 -4
  271. package/dist/api/resources/commons/types/BotResponse.js +5 -0
  272. package/dist/api/resources/commons/types/BotResponseMetadata.js +5 -0
  273. package/dist/api/resources/commons/types/BotTextResponse.js +5 -0
  274. package/{api/resources/conversation → dist/api/resources/commons}/types/Capability.js +4 -1
  275. package/dist/api/resources/commons/types/ChartSpecSchema.js +9 -0
  276. package/dist/api/resources/commons/types/ConversationAnalysis.js +5 -0
  277. package/dist/api/resources/commons/types/ConversationBase.js +5 -0
  278. package/dist/api/resources/commons/types/ConversationExecutedActionPrecondition.js +5 -0
  279. package/dist/api/resources/commons/types/ConversationMessageBase.js +5 -0
  280. package/dist/api/resources/commons/types/ConversationMessageResponse.js +5 -0
  281. package/dist/api/resources/commons/types/ConversationPrecondition.js +5 -0
  282. package/dist/api/resources/commons/types/ConversationResponse.js +5 -0
  283. package/dist/api/resources/commons/types/EntityId.js +2 -1
  284. package/dist/api/resources/commons/types/EntityIdBase.js +2 -1
  285. package/dist/api/resources/commons/types/EntityType.js +4 -1
  286. package/dist/api/resources/commons/types/ErrorMessage.js +2 -1
  287. package/dist/api/resources/commons/types/EventTriggerBase.js +2 -1
  288. package/dist/api/resources/commons/types/EventTriggerResponse.js +2 -1
  289. package/dist/api/resources/commons/types/EventTriggerType.js +4 -1
  290. package/dist/api/resources/commons/types/Feedback.js +2 -1
  291. package/dist/api/resources/commons/types/FeedbackBase.js +2 -1
  292. package/dist/api/resources/commons/types/FeedbackType.js +4 -1
  293. package/dist/api/resources/commons/types/MetadataPrecondition.js +5 -0
  294. package/dist/api/resources/commons/types/Precondition.js +5 -0
  295. package/dist/api/resources/commons/types/PreconditionBase.js +5 -0
  296. package/dist/api/resources/commons/types/PreconditionGroup.js +5 -0
  297. package/dist/api/resources/commons/types/PreconditionGroupOperator.js +10 -0
  298. package/dist/api/resources/commons/types/PreconditionOperator.js +9 -0
  299. package/dist/api/resources/commons/types/ResponseConfig.js +5 -0
  300. package/dist/api/resources/commons/types/ResponseLength.js +11 -0
  301. package/dist/api/resources/{conversation → commons}/types/Sentiment.js +4 -1
  302. package/dist/api/resources/commons/types/Source.js +5 -0
  303. package/dist/api/resources/commons/types/TagsPrecondition.js +5 -0
  304. package/dist/api/resources/{conversation → commons}/types/UserConversationMessageType.js +4 -1
  305. package/dist/api/resources/commons/types/UserData.js +2 -1
  306. package/dist/api/resources/commons/types/UserMessage.js +5 -0
  307. package/dist/api/resources/commons/types/UserMessageAttachment.js +5 -0
  308. package/dist/api/resources/commons/types/UserMessageBase.js +5 -0
  309. package/dist/api/resources/commons/types/VisibilityType.js +4 -1
  310. package/dist/api/resources/commons/types/index.d.ts +36 -0
  311. package/dist/api/resources/commons/types/index.js +70 -18
  312. package/dist/api/resources/conversation/client/Client.d.ts +7 -1
  313. package/dist/api/resources/conversation/client/Client.js +72 -138
  314. package/dist/api/resources/conversation/client/index.js +17 -1
  315. package/dist/api/resources/conversation/client/requests/ConversationGetRequest.js +2 -1
  316. package/dist/api/resources/conversation/client/requests/index.js +2 -1
  317. package/dist/api/resources/conversation/index.js +18 -2
  318. package/dist/api/resources/conversation/types/AskRequest.d.ts +7 -1
  319. package/dist/api/resources/conversation/types/AskRequest.js +2 -1
  320. package/dist/api/resources/conversation/types/AskStreamActionEvent.js +2 -1
  321. package/dist/api/resources/conversation/types/AskStreamChartEvent.js +2 -1
  322. package/dist/api/resources/conversation/types/AskStreamEndEvent.js +2 -1
  323. package/dist/api/resources/conversation/types/AskStreamMetadataEvent.js +2 -1
  324. package/dist/api/resources/conversation/types/AskStreamStartEvent.js +2 -1
  325. package/dist/api/resources/conversation/types/AskStreamTextEvent.js +2 -1
  326. package/dist/api/resources/conversation/types/Attachment.d.ts +1 -1
  327. package/dist/api/resources/conversation/types/Attachment.js +2 -1
  328. package/dist/api/resources/conversation/types/CategorizationResponse.js +2 -1
  329. package/dist/api/resources/conversation/types/ConversationMessageRequest.js +2 -1
  330. package/dist/api/resources/conversation/types/ConversationRequest.js +2 -1
  331. package/dist/api/resources/conversation/types/FeedbackRequest.js +2 -1
  332. package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +2 -1
  333. package/dist/api/resources/conversation/types/StreamResponse.js +2 -1
  334. package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -0
  335. package/dist/api/resources/conversation/types/SubmitActionFormRequest.js +2 -1
  336. package/dist/api/resources/conversation/types/index.d.ts +0 -24
  337. package/dist/api/resources/conversation/types/index.js +31 -39
  338. package/dist/api/resources/index.d.ts +1 -0
  339. package/dist/api/resources/index.js +46 -16
  340. package/dist/api/resources/knowledge/client/Client.d.ts +2 -0
  341. package/dist/api/resources/knowledge/client/Client.js +58 -98
  342. package/dist/api/resources/knowledge/client/index.js +2 -1
  343. package/dist/api/resources/knowledge/index.js +18 -2
  344. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +2 -1
  345. package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +2 -0
  346. package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.js +2 -1
  347. package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.js +2 -1
  348. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.js +2 -1
  349. package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +4 -1
  350. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.js +2 -1
  351. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionType.js +4 -1
  352. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +4 -1
  353. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
  354. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
  355. package/dist/api/resources/knowledge/types/index.js +26 -10
  356. package/dist/api/resources/translations/client/Client.d.ts +2 -0
  357. package/dist/api/resources/translations/client/Client.js +40 -20
  358. package/dist/api/resources/translations/client/index.js +2 -1
  359. package/dist/api/resources/translations/index.js +18 -2
  360. package/dist/api/resources/translations/types/TranslationRequest.js +2 -1
  361. package/dist/api/resources/translations/types/TranslationResponse.js +2 -1
  362. package/dist/api/resources/translations/types/index.js +18 -2
  363. package/dist/api/resources/triggers/client/Client.d.ts +2 -0
  364. package/dist/api/resources/triggers/client/Client.js +46 -46
  365. package/dist/api/resources/triggers/client/index.js +2 -1
  366. package/dist/api/resources/triggers/index.js +18 -2
  367. package/dist/api/resources/triggers/types/EventTriggerRequest.js +2 -1
  368. package/dist/api/resources/triggers/types/index.js +17 -1
  369. package/dist/api/resources/users/client/Client.d.ts +4 -1
  370. package/dist/api/resources/users/client/Client.js +51 -34
  371. package/dist/api/resources/users/client/index.d.ts +1 -1
  372. package/dist/api/resources/users/client/index.js +17 -1
  373. package/dist/api/resources/users/client/requests/UserGetRequest.d.ts +13 -0
  374. package/dist/api/resources/users/client/requests/UserGetRequest.js +5 -0
  375. package/dist/api/resources/users/client/requests/index.d.ts +1 -0
  376. package/dist/api/resources/users/client/requests/index.js +2 -0
  377. package/dist/api/resources/users/index.js +17 -1
  378. package/dist/core/auth/BasicAuth.js +7 -4
  379. package/dist/core/auth/BearerToken.js +4 -1
  380. package/dist/core/auth/index.js +7 -2
  381. package/dist/core/fetcher/APIResponse.js +2 -1
  382. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  383. package/dist/core/fetcher/Fetcher.js +18 -14
  384. package/dist/core/fetcher/Supplier.js +4 -1
  385. package/dist/core/fetcher/createRequestUrl.js +10 -3
  386. package/dist/core/fetcher/getFetchFn.js +33 -6
  387. package/dist/core/fetcher/getHeader.js +5 -1
  388. package/dist/core/fetcher/getRequestBody.js +5 -1
  389. package/dist/core/fetcher/getResponseBody.js +10 -3
  390. package/dist/core/fetcher/index.js +9 -3
  391. package/dist/core/fetcher/makeRequest.js +8 -4
  392. package/dist/core/fetcher/requestWithRetries.js +18 -5
  393. package/dist/core/fetcher/signals.js +7 -2
  394. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +5 -1
  395. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +5 -1
  396. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +5 -1
  397. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +34 -7
  398. package/dist/core/index.js +34 -5
  399. package/dist/core/runtime/index.js +5 -1
  400. package/dist/core/runtime/runtime.js +4 -1
  401. package/dist/core/schemas/Schema.js +4 -1
  402. package/dist/core/schemas/builders/bigint/bigint.js +13 -9
  403. package/dist/core/schemas/builders/bigint/index.js +5 -1
  404. package/dist/core/schemas/builders/date/date.js +14 -10
  405. package/dist/core/schemas/builders/date/index.js +5 -1
  406. package/dist/core/schemas/builders/enum/enum.js +11 -7
  407. package/dist/core/schemas/builders/enum/index.js +5 -1
  408. package/dist/core/schemas/builders/index.js +30 -14
  409. package/dist/core/schemas/builders/lazy/index.js +7 -2
  410. package/dist/core/schemas/builders/lazy/lazy.js +11 -5
  411. package/dist/core/schemas/builders/lazy/lazyObject.js +11 -7
  412. package/dist/core/schemas/builders/list/index.js +5 -1
  413. package/dist/core/schemas/builders/list/list.js +12 -8
  414. package/dist/core/schemas/builders/literals/booleanLiteral.js +10 -6
  415. package/dist/core/schemas/builders/literals/index.js +7 -2
  416. package/dist/core/schemas/builders/literals/stringLiteral.js +10 -6
  417. package/dist/core/schemas/builders/object/index.js +11 -3
  418. package/dist/core/schemas/builders/object/object.js +66 -33
  419. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -3
  420. package/dist/core/schemas/builders/object/property.js +7 -2
  421. package/dist/core/schemas/builders/object/types.d.ts +5 -0
  422. package/dist/core/schemas/builders/object/types.js +2 -1
  423. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +15 -10
  424. package/dist/core/schemas/builders/object-like/index.js +6 -1
  425. package/dist/core/schemas/builders/object-like/types.js +2 -1
  426. package/dist/core/schemas/builders/primitives/any.js +6 -3
  427. package/dist/core/schemas/builders/primitives/boolean.js +8 -5
  428. package/dist/core/schemas/builders/primitives/index.js +13 -5
  429. package/dist/core/schemas/builders/primitives/number.js +8 -5
  430. package/dist/core/schemas/builders/primitives/string.js +8 -5
  431. package/dist/core/schemas/builders/primitives/unknown.js +6 -3
  432. package/dist/core/schemas/builders/record/index.js +5 -1
  433. package/dist/core/schemas/builders/record/record.js +18 -14
  434. package/dist/core/schemas/builders/record/types.js +2 -1
  435. package/dist/core/schemas/builders/schema-utils/JsonError.js +7 -3
  436. package/dist/core/schemas/builders/schema-utils/ParseError.js +7 -3
  437. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +15 -9
  438. package/dist/core/schemas/builders/schema-utils/index.js +11 -3
  439. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +5 -1
  440. package/dist/core/schemas/builders/set/index.js +5 -1
  441. package/dist/core/schemas/builders/set/set.js +14 -10
  442. package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -1
  443. package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -1
  444. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +10 -6
  445. package/dist/core/schemas/builders/union/discriminant.js +5 -1
  446. package/dist/core/schemas/builders/union/index.js +7 -2
  447. package/dist/core/schemas/builders/union/types.js +2 -1
  448. package/dist/core/schemas/builders/union/union.js +18 -14
  449. package/dist/core/schemas/index.js +17 -1
  450. package/dist/core/schemas/utils/MaybePromise.js +2 -1
  451. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -1
  452. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +8 -4
  453. package/dist/core/schemas/utils/entries.js +5 -1
  454. package/dist/core/schemas/utils/filterObject.js +5 -1
  455. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -1
  456. package/dist/core/schemas/utils/isPlainObject.js +5 -1
  457. package/dist/core/schemas/utils/keys.js +5 -1
  458. package/dist/core/schemas/utils/maybeSkipValidation.js +5 -1
  459. package/dist/core/schemas/utils/partition.js +5 -1
  460. package/dist/core/streaming-fetcher/Stream.js +9 -4
  461. package/dist/core/streaming-fetcher/index.js +5 -1
  462. package/dist/environments.js +4 -1
  463. package/dist/errors/MavenAGIError.js +5 -1
  464. package/dist/errors/MavenAGITimeoutError.d.ts +1 -1
  465. package/dist/errors/MavenAGITimeoutError.js +7 -3
  466. package/dist/errors/index.js +7 -2
  467. package/dist/index.js +34 -4
  468. package/dist/serialization/index.js +17 -1
  469. package/dist/serialization/resources/actions/index.js +17 -1
  470. package/dist/serialization/resources/actions/types/ActionRequest.d.ts +1 -1
  471. package/dist/serialization/resources/actions/types/ActionRequest.js +32 -6
  472. package/dist/serialization/resources/actions/types/index.d.ts +0 -12
  473. package/dist/serialization/resources/actions/types/index.js +17 -13
  474. package/dist/serialization/resources/appSettings/client/get.js +28 -2
  475. package/dist/serialization/resources/appSettings/client/index.js +27 -1
  476. package/dist/serialization/resources/appSettings/index.js +17 -1
  477. package/dist/serialization/resources/commons/index.js +17 -1
  478. package/dist/serialization/resources/commons/types/ActionBase.js +40 -0
  479. package/dist/serialization/resources/commons/types/ActionEnumOption.d.ts +13 -0
  480. package/dist/serialization/resources/commons/types/ActionEnumOption.js +34 -0
  481. package/dist/serialization/resources/{conversation → commons}/types/ActionFormField.d.ts +3 -1
  482. package/dist/serialization/resources/commons/types/ActionFormField.js +41 -0
  483. package/{serialization/resources/actions → dist/serialization/resources/commons}/types/ActionParameter.d.ts +3 -1
  484. package/dist/serialization/resources/commons/types/ActionParameter.js +40 -0
  485. package/dist/serialization/resources/commons/types/ActionParameterType.js +28 -2
  486. package/{serialization/resources/actions → dist/serialization/resources/commons}/types/ActionResponse.d.ts +1 -1
  487. package/dist/serialization/resources/commons/types/ActionResponse.js +37 -0
  488. package/dist/serialization/resources/commons/types/AppUser.js +32 -6
  489. package/dist/serialization/resources/commons/types/AppUserIdentifier.js +30 -4
  490. package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +28 -2
  491. package/dist/serialization/resources/commons/types/AppUserRequest.js +32 -6
  492. package/dist/serialization/resources/commons/types/AppUserResponse.js +32 -6
  493. package/dist/serialization/resources/commons/types/BotActionFormResponse.js +37 -0
  494. package/dist/serialization/resources/commons/types/BotChartResponse.js +36 -0
  495. package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/BotConversationMessageType.d.ts +1 -1
  496. package/dist/serialization/resources/commons/types/BotConversationMessageType.js +31 -0
  497. package/dist/serialization/resources/{conversation → commons}/types/BotMessage.d.ts +1 -1
  498. package/dist/serialization/resources/commons/types/BotMessage.js +43 -0
  499. package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/BotResponse.d.ts +1 -5
  500. package/dist/serialization/resources/commons/types/BotResponse.js +43 -0
  501. package/dist/serialization/resources/commons/types/BotResponseMetadata.js +36 -0
  502. package/dist/serialization/resources/commons/types/BotTextResponse.js +33 -0
  503. package/dist/serialization/resources/commons/types/Capability.js +31 -0
  504. package/dist/serialization/resources/commons/types/ChartSpecSchema.js +31 -0
  505. package/dist/serialization/resources/commons/types/ConversationAnalysis.js +38 -0
  506. package/dist/serialization/resources/commons/types/ConversationBase.js +40 -0
  507. package/dist/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +37 -0
  508. package/dist/serialization/resources/commons/types/ConversationMessageBase.js +34 -0
  509. package/dist/serialization/resources/commons/types/ConversationMessageResponse.js +41 -0
  510. package/dist/serialization/resources/commons/types/ConversationPrecondition.js +43 -0
  511. package/dist/serialization/resources/{conversation → commons}/types/ConversationResponse.d.ts +1 -1
  512. package/dist/serialization/resources/commons/types/ConversationResponse.js +41 -0
  513. package/dist/serialization/resources/commons/types/EntityId.js +32 -6
  514. package/dist/serialization/resources/commons/types/EntityIdBase.js +28 -2
  515. package/dist/serialization/resources/commons/types/EntityType.js +28 -2
  516. package/dist/serialization/resources/commons/types/ErrorMessage.js +28 -2
  517. package/dist/serialization/resources/commons/types/EventTriggerBase.js +30 -4
  518. package/dist/serialization/resources/commons/types/EventTriggerResponse.js +32 -6
  519. package/dist/serialization/resources/commons/types/EventTriggerType.js +28 -2
  520. package/dist/serialization/resources/commons/types/Feedback.js +35 -9
  521. package/dist/serialization/resources/commons/types/FeedbackBase.js +30 -4
  522. package/dist/serialization/resources/commons/types/FeedbackType.js +28 -2
  523. package/dist/serialization/resources/commons/types/MetadataPrecondition.js +37 -0
  524. package/dist/serialization/resources/commons/types/Precondition.js +45 -0
  525. package/dist/serialization/resources/commons/types/PreconditionBase.js +34 -0
  526. package/dist/serialization/resources/commons/types/PreconditionGroup.js +36 -0
  527. package/dist/serialization/resources/commons/types/PreconditionGroupOperator.js +31 -0
  528. package/dist/serialization/resources/commons/types/PreconditionOperator.js +31 -0
  529. package/dist/serialization/resources/commons/types/ResponseConfig.js +37 -0
  530. package/dist/serialization/resources/commons/types/ResponseLength.js +31 -0
  531. package/dist/serialization/resources/commons/types/Sentiment.js +31 -0
  532. package/dist/serialization/resources/commons/types/Source.js +34 -0
  533. package/dist/serialization/resources/commons/types/TagsPrecondition.js +36 -0
  534. package/dist/serialization/resources/commons/types/UserConversationMessageType.js +31 -0
  535. package/dist/serialization/resources/commons/types/UserData.js +30 -4
  536. package/dist/serialization/resources/{conversation → commons}/types/UserMessage.d.ts +1 -1
  537. package/dist/serialization/resources/commons/types/UserMessage.js +40 -0
  538. package/dist/serialization/resources/commons/types/UserMessageAttachment.js +33 -0
  539. package/dist/serialization/resources/{conversation → commons}/types/UserMessageBase.d.ts +1 -1
  540. package/dist/serialization/resources/commons/types/UserMessageBase.js +40 -0
  541. package/dist/serialization/resources/commons/types/VisibilityType.js +28 -2
  542. package/dist/serialization/resources/commons/types/index.d.ts +36 -0
  543. package/dist/serialization/resources/commons/types/index.js +70 -18
  544. package/dist/serialization/resources/conversation/client/addConversationMetadata.js +29 -3
  545. package/dist/serialization/resources/conversation/client/appendNewMessages.js +29 -3
  546. package/dist/serialization/resources/conversation/client/index.js +28 -2
  547. package/dist/serialization/resources/conversation/index.js +18 -2
  548. package/dist/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
  549. package/dist/serialization/resources/conversation/types/AskRequest.js +34 -7
  550. package/dist/serialization/resources/conversation/types/AskStreamActionEvent.d.ts +1 -1
  551. package/dist/serialization/resources/conversation/types/AskStreamActionEvent.js +29 -3
  552. package/dist/serialization/resources/conversation/types/AskStreamChartEvent.d.ts +1 -1
  553. package/dist/serialization/resources/conversation/types/AskStreamChartEvent.js +29 -3
  554. package/dist/serialization/resources/conversation/types/AskStreamEndEvent.js +30 -4
  555. package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +1 -1
  556. package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.js +29 -3
  557. package/dist/serialization/resources/conversation/types/AskStreamStartEvent.js +30 -4
  558. package/dist/serialization/resources/conversation/types/AskStreamTextEvent.js +28 -2
  559. package/dist/serialization/resources/conversation/types/Attachment.js +28 -2
  560. package/dist/serialization/resources/conversation/types/CategorizationResponse.js +28 -2
  561. package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +1 -1
  562. package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +32 -6
  563. package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +1 -1
  564. package/dist/serialization/resources/conversation/types/ConversationRequest.js +34 -8
  565. package/dist/serialization/resources/conversation/types/FeedbackRequest.js +35 -9
  566. package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +30 -4
  567. package/dist/serialization/resources/conversation/types/StreamResponse.js +40 -14
  568. package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -0
  569. package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +29 -2
  570. package/dist/serialization/resources/conversation/types/index.d.ts +0 -24
  571. package/dist/serialization/resources/conversation/types/index.js +31 -39
  572. package/dist/serialization/resources/index.js +42 -13
  573. package/dist/serialization/resources/knowledge/index.js +17 -1
  574. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +28 -2
  575. package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -0
  576. package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +32 -4
  577. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +32 -6
  578. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +32 -6
  579. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +28 -2
  580. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +30 -4
  581. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +28 -2
  582. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +28 -2
  583. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +34 -8
  584. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +32 -6
  585. package/dist/serialization/resources/knowledge/types/index.js +26 -10
  586. package/dist/serialization/resources/translations/index.js +17 -1
  587. package/dist/serialization/resources/translations/types/TranslationRequest.js +28 -2
  588. package/dist/serialization/resources/translations/types/TranslationResponse.js +28 -2
  589. package/dist/serialization/resources/translations/types/index.js +18 -2
  590. package/dist/serialization/resources/triggers/index.js +17 -1
  591. package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +32 -6
  592. package/dist/serialization/resources/triggers/types/index.js +17 -1
  593. package/dist/version.d.ts +1 -1
  594. package/dist/version.js +4 -1
  595. package/environments.js +4 -1
  596. package/errors/MavenAGIError.js +5 -1
  597. package/errors/MavenAGITimeoutError.d.ts +1 -1
  598. package/errors/MavenAGITimeoutError.js +7 -3
  599. package/errors/index.js +7 -2
  600. package/index.js +34 -4
  601. package/package.json +1 -2
  602. package/reference.md +21 -2
  603. package/serialization/index.js +17 -1
  604. package/serialization/resources/actions/index.js +17 -1
  605. package/serialization/resources/actions/types/ActionRequest.d.ts +1 -1
  606. package/serialization/resources/actions/types/ActionRequest.js +32 -6
  607. package/serialization/resources/actions/types/index.d.ts +0 -12
  608. package/serialization/resources/actions/types/index.js +17 -13
  609. package/serialization/resources/appSettings/client/get.js +28 -2
  610. package/serialization/resources/appSettings/client/index.js +27 -1
  611. package/serialization/resources/appSettings/index.js +17 -1
  612. package/serialization/resources/commons/index.js +17 -1
  613. package/serialization/resources/commons/types/ActionBase.js +40 -0
  614. package/serialization/resources/commons/types/ActionEnumOption.d.ts +13 -0
  615. package/serialization/resources/commons/types/ActionEnumOption.js +34 -0
  616. package/serialization/resources/{conversation → commons}/types/ActionFormField.d.ts +3 -1
  617. package/serialization/resources/commons/types/ActionFormField.js +41 -0
  618. package/{dist/serialization/resources/actions → serialization/resources/commons}/types/ActionParameter.d.ts +3 -1
  619. package/serialization/resources/commons/types/ActionParameter.js +40 -0
  620. package/serialization/resources/commons/types/ActionParameterType.js +28 -2
  621. package/{dist/serialization/resources/actions → serialization/resources/commons}/types/ActionResponse.d.ts +1 -1
  622. package/serialization/resources/commons/types/ActionResponse.js +37 -0
  623. package/serialization/resources/commons/types/AppUser.js +32 -6
  624. package/serialization/resources/commons/types/AppUserIdentifier.js +30 -4
  625. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +28 -2
  626. package/serialization/resources/commons/types/AppUserRequest.js +32 -6
  627. package/serialization/resources/commons/types/AppUserResponse.js +32 -6
  628. package/serialization/resources/commons/types/BotActionFormResponse.js +37 -0
  629. package/serialization/resources/commons/types/BotChartResponse.js +36 -0
  630. package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/BotConversationMessageType.d.ts +1 -1
  631. package/serialization/resources/commons/types/BotConversationMessageType.js +31 -0
  632. package/serialization/resources/{conversation → commons}/types/BotMessage.d.ts +1 -1
  633. package/serialization/resources/commons/types/BotMessage.js +43 -0
  634. package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/BotResponse.d.ts +1 -5
  635. package/serialization/resources/commons/types/BotResponse.js +43 -0
  636. package/serialization/resources/commons/types/BotResponseMetadata.js +36 -0
  637. package/serialization/resources/commons/types/BotTextResponse.js +33 -0
  638. package/serialization/resources/commons/types/Capability.js +31 -0
  639. package/serialization/resources/commons/types/ChartSpecSchema.js +31 -0
  640. package/serialization/resources/commons/types/ConversationAnalysis.js +38 -0
  641. package/serialization/resources/commons/types/ConversationBase.js +40 -0
  642. package/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +37 -0
  643. package/serialization/resources/commons/types/ConversationMessageBase.js +34 -0
  644. package/serialization/resources/commons/types/ConversationMessageResponse.js +41 -0
  645. package/serialization/resources/commons/types/ConversationPrecondition.js +43 -0
  646. package/serialization/resources/{conversation → commons}/types/ConversationResponse.d.ts +1 -1
  647. package/serialization/resources/commons/types/ConversationResponse.js +41 -0
  648. package/serialization/resources/commons/types/EntityId.js +32 -6
  649. package/serialization/resources/commons/types/EntityIdBase.js +28 -2
  650. package/serialization/resources/commons/types/EntityType.js +28 -2
  651. package/serialization/resources/commons/types/ErrorMessage.js +28 -2
  652. package/serialization/resources/commons/types/EventTriggerBase.js +30 -4
  653. package/serialization/resources/commons/types/EventTriggerResponse.js +32 -6
  654. package/serialization/resources/commons/types/EventTriggerType.js +28 -2
  655. package/serialization/resources/commons/types/Feedback.js +35 -9
  656. package/serialization/resources/commons/types/FeedbackBase.js +30 -4
  657. package/serialization/resources/commons/types/FeedbackType.js +28 -2
  658. package/serialization/resources/commons/types/MetadataPrecondition.js +37 -0
  659. package/serialization/resources/commons/types/Precondition.js +45 -0
  660. package/serialization/resources/commons/types/PreconditionBase.js +34 -0
  661. package/serialization/resources/commons/types/PreconditionGroup.js +36 -0
  662. package/serialization/resources/commons/types/PreconditionGroupOperator.js +31 -0
  663. package/serialization/resources/commons/types/PreconditionOperator.js +31 -0
  664. package/serialization/resources/commons/types/ResponseConfig.js +37 -0
  665. package/serialization/resources/commons/types/ResponseLength.js +31 -0
  666. package/serialization/resources/commons/types/Sentiment.js +31 -0
  667. package/serialization/resources/commons/types/Source.js +34 -0
  668. package/serialization/resources/commons/types/TagsPrecondition.js +36 -0
  669. package/serialization/resources/commons/types/UserConversationMessageType.js +31 -0
  670. package/serialization/resources/commons/types/UserData.js +30 -4
  671. package/serialization/resources/{conversation → commons}/types/UserMessage.d.ts +1 -1
  672. package/serialization/resources/commons/types/UserMessage.js +40 -0
  673. package/serialization/resources/commons/types/UserMessageAttachment.js +33 -0
  674. package/serialization/resources/{conversation → commons}/types/UserMessageBase.d.ts +1 -1
  675. package/serialization/resources/commons/types/UserMessageBase.js +40 -0
  676. package/serialization/resources/commons/types/VisibilityType.js +28 -2
  677. package/serialization/resources/commons/types/index.d.ts +36 -0
  678. package/serialization/resources/commons/types/index.js +70 -18
  679. package/serialization/resources/conversation/client/addConversationMetadata.js +29 -3
  680. package/serialization/resources/conversation/client/appendNewMessages.js +29 -3
  681. package/serialization/resources/conversation/client/index.js +28 -2
  682. package/serialization/resources/conversation/index.js +18 -2
  683. package/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
  684. package/serialization/resources/conversation/types/AskRequest.js +34 -7
  685. package/serialization/resources/conversation/types/AskStreamActionEvent.d.ts +1 -1
  686. package/serialization/resources/conversation/types/AskStreamActionEvent.js +29 -3
  687. package/serialization/resources/conversation/types/AskStreamChartEvent.d.ts +1 -1
  688. package/serialization/resources/conversation/types/AskStreamChartEvent.js +29 -3
  689. package/serialization/resources/conversation/types/AskStreamEndEvent.js +30 -4
  690. package/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +1 -1
  691. package/serialization/resources/conversation/types/AskStreamMetadataEvent.js +29 -3
  692. package/serialization/resources/conversation/types/AskStreamStartEvent.js +30 -4
  693. package/serialization/resources/conversation/types/AskStreamTextEvent.js +28 -2
  694. package/serialization/resources/conversation/types/Attachment.js +28 -2
  695. package/serialization/resources/conversation/types/CategorizationResponse.js +28 -2
  696. package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +1 -1
  697. package/serialization/resources/conversation/types/ConversationMessageRequest.js +32 -6
  698. package/serialization/resources/conversation/types/ConversationRequest.d.ts +1 -1
  699. package/serialization/resources/conversation/types/ConversationRequest.js +34 -8
  700. package/serialization/resources/conversation/types/FeedbackRequest.js +35 -9
  701. package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +30 -4
  702. package/serialization/resources/conversation/types/StreamResponse.js +40 -14
  703. package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -0
  704. package/serialization/resources/conversation/types/SubmitActionFormRequest.js +29 -2
  705. package/serialization/resources/conversation/types/index.d.ts +0 -24
  706. package/serialization/resources/conversation/types/index.js +31 -39
  707. package/serialization/resources/index.js +42 -13
  708. package/serialization/resources/knowledge/index.js +17 -1
  709. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +28 -2
  710. package/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -0
  711. package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +32 -4
  712. package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +32 -6
  713. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +32 -6
  714. package/serialization/resources/knowledge/types/KnowledgeBaseType.js +28 -2
  715. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +30 -4
  716. package/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +28 -2
  717. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +28 -2
  718. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +34 -8
  719. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +32 -6
  720. package/serialization/resources/knowledge/types/index.js +26 -10
  721. package/serialization/resources/translations/index.js +17 -1
  722. package/serialization/resources/translations/types/TranslationRequest.js +28 -2
  723. package/serialization/resources/translations/types/TranslationResponse.js +28 -2
  724. package/serialization/resources/translations/types/index.js +18 -2
  725. package/serialization/resources/triggers/index.js +17 -1
  726. package/serialization/resources/triggers/types/EventTriggerRequest.js +32 -6
  727. package/serialization/resources/triggers/types/index.js +17 -1
  728. package/version.d.ts +1 -1
  729. package/version.js +4 -1
  730. package/api/resources/actions/types/ActionBase.js +0 -4
  731. package/api/resources/actions/types/ActionParameter.d.ts +0 -12
  732. package/api/resources/actions/types/ActionParameter.js +0 -4
  733. package/api/resources/actions/types/ActionResponse.js +0 -4
  734. package/api/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -4
  735. package/api/resources/actions/types/ConversationPrecondition.js +0 -4
  736. package/api/resources/actions/types/MetadataPrecondition.js +0 -4
  737. package/api/resources/actions/types/Precondition.js +0 -4
  738. package/api/resources/actions/types/PreconditionBase.js +0 -4
  739. package/api/resources/actions/types/PreconditionGroup.js +0 -4
  740. package/api/resources/actions/types/PreconditionGroupOperator.js +0 -7
  741. package/api/resources/actions/types/PreconditionOperator.js +0 -6
  742. package/api/resources/actions/types/TagsPrecondition.js +0 -4
  743. package/api/resources/conversation/types/ActionFormField.d.ts +0 -12
  744. package/api/resources/conversation/types/ActionFormField.js +0 -4
  745. package/api/resources/conversation/types/BotActionFormResponse.js +0 -4
  746. package/api/resources/conversation/types/BotActionResponse.d.ts +0 -15
  747. package/api/resources/conversation/types/BotActionResponse.js +0 -4
  748. package/api/resources/conversation/types/BotChartResponse.js +0 -4
  749. package/api/resources/conversation/types/BotConversationMessageType.js +0 -8
  750. package/api/resources/conversation/types/BotMessage.js +0 -4
  751. package/api/resources/conversation/types/BotResponse.js +0 -4
  752. package/api/resources/conversation/types/BotResponseMetadata.js +0 -4
  753. package/api/resources/conversation/types/BotTextResponse.js +0 -4
  754. package/api/resources/conversation/types/ChartSpecSchema.js +0 -6
  755. package/api/resources/conversation/types/ConversationAnalysis.js +0 -4
  756. package/api/resources/conversation/types/ConversationBase.js +0 -4
  757. package/api/resources/conversation/types/ConversationMessageBase.js +0 -4
  758. package/api/resources/conversation/types/ConversationMessageResponse.js +0 -4
  759. package/api/resources/conversation/types/ConversationResponse.js +0 -4
  760. package/api/resources/conversation/types/ResponseConfig.js +0 -4
  761. package/api/resources/conversation/types/ResponseLength.js +0 -8
  762. package/api/resources/conversation/types/Source.js +0 -4
  763. package/api/resources/conversation/types/UserMessage.js +0 -4
  764. package/api/resources/conversation/types/UserMessageAttachment.js +0 -4
  765. package/api/resources/conversation/types/UserMessageBase.js +0 -4
  766. package/dist/api/resources/actions/types/ActionBase.js +0 -4
  767. package/dist/api/resources/actions/types/ActionParameter.d.ts +0 -12
  768. package/dist/api/resources/actions/types/ActionParameter.js +0 -4
  769. package/dist/api/resources/actions/types/ActionResponse.js +0 -4
  770. package/dist/api/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -4
  771. package/dist/api/resources/actions/types/ConversationPrecondition.js +0 -4
  772. package/dist/api/resources/actions/types/MetadataPrecondition.js +0 -4
  773. package/dist/api/resources/actions/types/Precondition.js +0 -4
  774. package/dist/api/resources/actions/types/PreconditionBase.js +0 -4
  775. package/dist/api/resources/actions/types/PreconditionGroup.js +0 -4
  776. package/dist/api/resources/actions/types/PreconditionGroupOperator.js +0 -7
  777. package/dist/api/resources/actions/types/PreconditionOperator.js +0 -6
  778. package/dist/api/resources/actions/types/TagsPrecondition.js +0 -4
  779. package/dist/api/resources/conversation/types/ActionFormField.d.ts +0 -12
  780. package/dist/api/resources/conversation/types/ActionFormField.js +0 -4
  781. package/dist/api/resources/conversation/types/BotActionFormResponse.js +0 -4
  782. package/dist/api/resources/conversation/types/BotActionResponse.d.ts +0 -15
  783. package/dist/api/resources/conversation/types/BotActionResponse.js +0 -4
  784. package/dist/api/resources/conversation/types/BotChartResponse.js +0 -4
  785. package/dist/api/resources/conversation/types/BotConversationMessageType.js +0 -8
  786. package/dist/api/resources/conversation/types/BotMessage.js +0 -4
  787. package/dist/api/resources/conversation/types/BotResponse.js +0 -4
  788. package/dist/api/resources/conversation/types/BotResponseMetadata.js +0 -4
  789. package/dist/api/resources/conversation/types/BotTextResponse.js +0 -4
  790. package/dist/api/resources/conversation/types/ChartSpecSchema.js +0 -6
  791. package/dist/api/resources/conversation/types/ConversationAnalysis.js +0 -4
  792. package/dist/api/resources/conversation/types/ConversationBase.js +0 -4
  793. package/dist/api/resources/conversation/types/ConversationMessageBase.js +0 -4
  794. package/dist/api/resources/conversation/types/ConversationMessageResponse.js +0 -4
  795. package/dist/api/resources/conversation/types/ConversationResponse.js +0 -4
  796. package/dist/api/resources/conversation/types/ResponseConfig.js +0 -4
  797. package/dist/api/resources/conversation/types/ResponseLength.js +0 -8
  798. package/dist/api/resources/conversation/types/Source.js +0 -4
  799. package/dist/api/resources/conversation/types/UserMessage.js +0 -4
  800. package/dist/api/resources/conversation/types/UserMessageAttachment.js +0 -4
  801. package/dist/api/resources/conversation/types/UserMessageBase.js +0 -4
  802. package/dist/serialization/resources/actions/types/ActionBase.js +0 -14
  803. package/dist/serialization/resources/actions/types/ActionParameter.js +0 -12
  804. package/dist/serialization/resources/actions/types/ActionResponse.js +0 -11
  805. package/dist/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -11
  806. package/dist/serialization/resources/actions/types/ConversationPrecondition.js +0 -17
  807. package/dist/serialization/resources/actions/types/MetadataPrecondition.js +0 -11
  808. package/dist/serialization/resources/actions/types/Precondition.js +0 -19
  809. package/dist/serialization/resources/actions/types/PreconditionBase.js +0 -8
  810. package/dist/serialization/resources/actions/types/PreconditionGroup.js +0 -10
  811. package/dist/serialization/resources/actions/types/PreconditionGroupOperator.js +0 -5
  812. package/dist/serialization/resources/actions/types/PreconditionOperator.js +0 -5
  813. package/dist/serialization/resources/actions/types/TagsPrecondition.js +0 -10
  814. package/dist/serialization/resources/conversation/types/ActionFormField.js +0 -13
  815. package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +0 -11
  816. package/dist/serialization/resources/conversation/types/BotActionResponse.d.ts +0 -17
  817. package/dist/serialization/resources/conversation/types/BotActionResponse.js +0 -12
  818. package/dist/serialization/resources/conversation/types/BotChartResponse.js +0 -10
  819. package/dist/serialization/resources/conversation/types/BotConversationMessageType.js +0 -5
  820. package/dist/serialization/resources/conversation/types/BotMessage.js +0 -17
  821. package/dist/serialization/resources/conversation/types/BotResponse.js +0 -19
  822. package/dist/serialization/resources/conversation/types/BotResponseMetadata.js +0 -10
  823. package/dist/serialization/resources/conversation/types/BotTextResponse.js +0 -7
  824. package/dist/serialization/resources/conversation/types/Capability.js +0 -5
  825. package/dist/serialization/resources/conversation/types/ChartSpecSchema.js +0 -5
  826. package/dist/serialization/resources/conversation/types/ConversationAnalysis.js +0 -12
  827. package/dist/serialization/resources/conversation/types/ConversationBase.js +0 -14
  828. package/dist/serialization/resources/conversation/types/ConversationMessageBase.js +0 -8
  829. package/dist/serialization/resources/conversation/types/ConversationMessageResponse.js +0 -15
  830. package/dist/serialization/resources/conversation/types/ConversationResponse.js +0 -15
  831. package/dist/serialization/resources/conversation/types/ResponseConfig.js +0 -11
  832. package/dist/serialization/resources/conversation/types/ResponseLength.js +0 -5
  833. package/dist/serialization/resources/conversation/types/Sentiment.js +0 -5
  834. package/dist/serialization/resources/conversation/types/Source.js +0 -8
  835. package/dist/serialization/resources/conversation/types/UserConversationMessageType.js +0 -5
  836. package/dist/serialization/resources/conversation/types/UserMessage.js +0 -14
  837. package/dist/serialization/resources/conversation/types/UserMessageAttachment.js +0 -7
  838. package/dist/serialization/resources/conversation/types/UserMessageBase.js +0 -14
  839. package/serialization/resources/actions/types/ActionBase.js +0 -14
  840. package/serialization/resources/actions/types/ActionParameter.js +0 -12
  841. package/serialization/resources/actions/types/ActionResponse.js +0 -11
  842. package/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -11
  843. package/serialization/resources/actions/types/ConversationPrecondition.js +0 -17
  844. package/serialization/resources/actions/types/MetadataPrecondition.js +0 -11
  845. package/serialization/resources/actions/types/Precondition.js +0 -19
  846. package/serialization/resources/actions/types/PreconditionBase.js +0 -8
  847. package/serialization/resources/actions/types/PreconditionGroup.js +0 -10
  848. package/serialization/resources/actions/types/PreconditionGroupOperator.js +0 -5
  849. package/serialization/resources/actions/types/PreconditionOperator.js +0 -5
  850. package/serialization/resources/actions/types/TagsPrecondition.js +0 -10
  851. package/serialization/resources/conversation/types/ActionFormField.js +0 -13
  852. package/serialization/resources/conversation/types/BotActionFormResponse.js +0 -11
  853. package/serialization/resources/conversation/types/BotActionResponse.d.ts +0 -17
  854. package/serialization/resources/conversation/types/BotActionResponse.js +0 -12
  855. package/serialization/resources/conversation/types/BotChartResponse.js +0 -10
  856. package/serialization/resources/conversation/types/BotConversationMessageType.js +0 -5
  857. package/serialization/resources/conversation/types/BotMessage.js +0 -17
  858. package/serialization/resources/conversation/types/BotResponse.js +0 -19
  859. package/serialization/resources/conversation/types/BotResponseMetadata.js +0 -10
  860. package/serialization/resources/conversation/types/BotTextResponse.js +0 -7
  861. package/serialization/resources/conversation/types/Capability.js +0 -5
  862. package/serialization/resources/conversation/types/ChartSpecSchema.js +0 -5
  863. package/serialization/resources/conversation/types/ConversationAnalysis.js +0 -12
  864. package/serialization/resources/conversation/types/ConversationBase.js +0 -14
  865. package/serialization/resources/conversation/types/ConversationMessageBase.js +0 -8
  866. package/serialization/resources/conversation/types/ConversationMessageResponse.js +0 -15
  867. package/serialization/resources/conversation/types/ConversationResponse.js +0 -15
  868. package/serialization/resources/conversation/types/ResponseConfig.js +0 -11
  869. package/serialization/resources/conversation/types/ResponseLength.js +0 -5
  870. package/serialization/resources/conversation/types/Sentiment.js +0 -5
  871. package/serialization/resources/conversation/types/Source.js +0 -8
  872. package/serialization/resources/conversation/types/UserConversationMessageType.js +0 -5
  873. package/serialization/resources/conversation/types/UserMessage.js +0 -14
  874. package/serialization/resources/conversation/types/UserMessageAttachment.js +0 -7
  875. package/serialization/resources/conversation/types/UserMessageBase.js +0 -14
  876. /package/api/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
  877. /package/api/resources/{actions → commons}/types/ActionResponse.d.ts +0 -0
  878. /package/api/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
  879. /package/api/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
  880. /package/api/resources/{conversation → commons}/types/BotMessage.d.ts +0 -0
  881. /package/api/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
  882. /package/api/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
  883. /package/api/resources/{conversation → commons}/types/Capability.d.ts +0 -0
  884. /package/api/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
  885. /package/api/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
  886. /package/api/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
  887. /package/api/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
  888. /package/api/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
  889. /package/api/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
  890. /package/api/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
  891. /package/api/resources/{conversation → commons}/types/ConversationResponse.d.ts +0 -0
  892. /package/api/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
  893. /package/api/resources/{actions → commons}/types/Precondition.d.ts +0 -0
  894. /package/api/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
  895. /package/api/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
  896. /package/api/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
  897. /package/api/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
  898. /package/api/resources/{conversation → commons}/types/ResponseConfig.d.ts +0 -0
  899. /package/api/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
  900. /package/api/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
  901. /package/api/resources/{conversation → commons}/types/Source.d.ts +0 -0
  902. /package/api/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
  903. /package/api/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
  904. /package/api/resources/{conversation → commons}/types/UserMessage.d.ts +0 -0
  905. /package/api/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
  906. /package/api/resources/{conversation → commons}/types/UserMessageBase.d.ts +0 -0
  907. /package/dist/api/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
  908. /package/dist/api/resources/{actions → commons}/types/ActionResponse.d.ts +0 -0
  909. /package/dist/api/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
  910. /package/dist/api/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
  911. /package/dist/api/resources/{conversation → commons}/types/BotMessage.d.ts +0 -0
  912. /package/dist/api/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
  913. /package/dist/api/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
  914. /package/dist/api/resources/{conversation → commons}/types/Capability.d.ts +0 -0
  915. /package/dist/api/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
  916. /package/dist/api/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
  917. /package/dist/api/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
  918. /package/dist/api/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
  919. /package/dist/api/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
  920. /package/dist/api/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
  921. /package/dist/api/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
  922. /package/dist/api/resources/{conversation → commons}/types/ConversationResponse.d.ts +0 -0
  923. /package/dist/api/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
  924. /package/dist/api/resources/{actions → commons}/types/Precondition.d.ts +0 -0
  925. /package/dist/api/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
  926. /package/dist/api/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
  927. /package/dist/api/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
  928. /package/dist/api/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
  929. /package/dist/api/resources/{conversation → commons}/types/ResponseConfig.d.ts +0 -0
  930. /package/dist/api/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
  931. /package/dist/api/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
  932. /package/dist/api/resources/{conversation → commons}/types/Source.d.ts +0 -0
  933. /package/dist/api/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
  934. /package/dist/api/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
  935. /package/dist/api/resources/{conversation → commons}/types/UserMessage.d.ts +0 -0
  936. /package/dist/api/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
  937. /package/dist/api/resources/{conversation → commons}/types/UserMessageBase.d.ts +0 -0
  938. /package/dist/serialization/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
  939. /package/dist/serialization/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
  940. /package/dist/serialization/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
  941. /package/dist/serialization/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
  942. /package/dist/serialization/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
  943. /package/dist/serialization/resources/{conversation → commons}/types/Capability.d.ts +0 -0
  944. /package/dist/serialization/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
  945. /package/dist/serialization/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
  946. /package/dist/serialization/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
  947. /package/dist/serialization/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
  948. /package/dist/serialization/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
  949. /package/dist/serialization/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
  950. /package/dist/serialization/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
  951. /package/dist/serialization/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
  952. /package/dist/serialization/resources/{actions → commons}/types/Precondition.d.ts +0 -0
  953. /package/dist/serialization/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
  954. /package/dist/serialization/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
  955. /package/dist/serialization/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
  956. /package/dist/serialization/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
  957. /package/dist/serialization/resources/{conversation → commons}/types/ResponseConfig.d.ts +0 -0
  958. /package/dist/serialization/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
  959. /package/dist/serialization/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
  960. /package/dist/serialization/resources/{conversation → commons}/types/Source.d.ts +0 -0
  961. /package/dist/serialization/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
  962. /package/dist/serialization/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
  963. /package/dist/serialization/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
  964. /package/serialization/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
  965. /package/serialization/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
  966. /package/serialization/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
  967. /package/serialization/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
  968. /package/serialization/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
  969. /package/serialization/resources/{conversation → commons}/types/Capability.d.ts +0 -0
  970. /package/serialization/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
  971. /package/serialization/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
  972. /package/serialization/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
  973. /package/serialization/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
  974. /package/serialization/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
  975. /package/serialization/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
  976. /package/serialization/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
  977. /package/serialization/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
  978. /package/serialization/resources/{actions → commons}/types/Precondition.d.ts +0 -0
  979. /package/serialization/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
  980. /package/serialization/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
  981. /package/serialization/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
  982. /package/serialization/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
  983. /package/serialization/resources/{conversation → commons}/types/ResponseConfig.d.ts +0 -0
  984. /package/serialization/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
  985. /package/serialization/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
  986. /package/serialization/resources/{conversation → commons}/types/Source.d.ts +0 -0
  987. /package/serialization/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
  988. /package/serialization/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
  989. /package/serialization/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
@@ -1,7 +1,10 @@
1
- import { SchemaType } from "../../Schema";
2
- import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator";
3
- import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType";
4
- export const string = createIdentitySchemaCreator(SchemaType.STRING, (value, { breadcrumbsPrefix = [] } = {}) => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.string = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
7
+ exports.string = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.STRING, (value, { breadcrumbsPrefix = [] } = {}) => {
5
8
  if (typeof value === "string") {
6
9
  return {
7
10
  ok: true,
@@ -14,7 +17,7 @@ export const string = createIdentitySchemaCreator(SchemaType.STRING, (value, { b
14
17
  errors: [
15
18
  {
16
19
  path: breadcrumbsPrefix,
17
- message: getErrorMessageForIncorrectType(value, "string"),
20
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "string"),
18
21
  },
19
22
  ],
20
23
  };
@@ -1,3 +1,6 @@
1
- import { SchemaType } from "../../Schema";
2
- import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator";
3
- export const unknown = createIdentitySchemaCreator(SchemaType.UNKNOWN, (value) => ({ ok: true, value }));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unknown = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
+ exports.unknown = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.UNKNOWN, (value) => ({ ok: true, value }));
@@ -1 +1,5 @@
1
- export { record } from "./record";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.record = void 0;
4
+ var record_1 = require("./record");
5
+ Object.defineProperty(exports, "record", { enumerable: true, get: function () { return record_1.record; } });
@@ -1,15 +1,18 @@
1
- import { SchemaType } from "../../Schema";
2
- import { entries } from "../../utils/entries";
3
- import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType";
4
- import { isPlainObject } from "../../utils/isPlainObject";
5
- import { maybeSkipValidation } from "../../utils/maybeSkipValidation";
6
- import { getSchemaUtils } from "../schema-utils";
7
- export function record(keySchema, valueSchema) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.record = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const entries_1 = require("../../utils/entries");
6
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
7
+ const isPlainObject_1 = require("../../utils/isPlainObject");
8
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
9
+ const schema_utils_1 = require("../schema-utils");
10
+ function record(keySchema, valueSchema) {
8
11
  const baseSchema = {
9
12
  parse: (raw, opts) => {
10
13
  return validateAndTransformRecord({
11
14
  value: raw,
12
- isKeyNumeric: keySchema.getType() === SchemaType.NUMBER,
15
+ isKeyNumeric: keySchema.getType() === Schema_1.SchemaType.NUMBER,
13
16
  transformKey: (key) => {
14
17
  var _a;
15
18
  return keySchema.parse(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key} (key)`] }));
@@ -24,7 +27,7 @@ export function record(keySchema, valueSchema) {
24
27
  json: (parsed, opts) => {
25
28
  return validateAndTransformRecord({
26
29
  value: parsed,
27
- isKeyNumeric: keySchema.getType() === SchemaType.NUMBER,
30
+ isKeyNumeric: keySchema.getType() === Schema_1.SchemaType.NUMBER,
28
31
  transformKey: (key) => {
29
32
  var _a;
30
33
  return keySchema.json(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key} (key)`] }));
@@ -36,23 +39,24 @@ export function record(keySchema, valueSchema) {
36
39
  breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
37
40
  });
38
41
  },
39
- getType: () => SchemaType.RECORD,
42
+ getType: () => Schema_1.SchemaType.RECORD,
40
43
  };
41
- return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
44
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
42
45
  }
46
+ exports.record = record;
43
47
  function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [], }) {
44
- if (!isPlainObject(value)) {
48
+ if (!(0, isPlainObject_1.isPlainObject)(value)) {
45
49
  return {
46
50
  ok: false,
47
51
  errors: [
48
52
  {
49
53
  path: breadcrumbsPrefix,
50
- message: getErrorMessageForIncorrectType(value, "object"),
54
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
51
55
  },
52
56
  ],
53
57
  };
54
58
  }
55
- return entries(value).reduce((accPromise, [stringKey, value]) => {
59
+ return (0, entries_1.entries)(value).reduce((accPromise, [stringKey, value]) => {
56
60
  // skip nullish keys
57
61
  if (value == null) {
58
62
  return accPromise;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,12 @@
1
- import { stringifyValidationError } from "./stringifyValidationErrors";
2
- export class JsonError extends Error {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JsonError = void 0;
4
+ const stringifyValidationErrors_1 = require("./stringifyValidationErrors");
5
+ class JsonError extends Error {
3
6
  constructor(errors) {
4
- super(errors.map(stringifyValidationError).join("; "));
7
+ super(errors.map(stringifyValidationErrors_1.stringifyValidationError).join("; "));
5
8
  this.errors = errors;
6
9
  Object.setPrototypeOf(this, JsonError.prototype);
7
10
  }
8
11
  }
12
+ exports.JsonError = JsonError;
@@ -1,8 +1,12 @@
1
- import { stringifyValidationError } from "./stringifyValidationErrors";
2
- export class ParseError extends Error {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParseError = void 0;
4
+ const stringifyValidationErrors_1 = require("./stringifyValidationErrors");
5
+ class ParseError extends Error {
3
6
  constructor(errors) {
4
- super(errors.map(stringifyValidationError).join("; "));
7
+ super(errors.map(stringifyValidationErrors_1.stringifyValidationError).join("; "));
5
8
  this.errors = errors;
6
9
  Object.setPrototypeOf(this, ParseError.prototype);
7
10
  }
8
11
  }
12
+ exports.ParseError = ParseError;
@@ -1,7 +1,10 @@
1
- import { SchemaType } from "../../Schema";
2
- import { JsonError } from "./JsonError";
3
- import { ParseError } from "./ParseError";
4
- export function getSchemaUtils(schema) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transform = exports.optional = exports.getSchemaUtils = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const JsonError_1 = require("./JsonError");
6
+ const ParseError_1 = require("./ParseError");
7
+ function getSchemaUtils(schema) {
5
8
  return {
6
9
  optional: () => optional(schema),
7
10
  transform: (transformer) => transform(schema, transformer),
@@ -10,21 +13,22 @@ export function getSchemaUtils(schema) {
10
13
  if (parsed.ok) {
11
14
  return parsed.value;
12
15
  }
13
- throw new ParseError(parsed.errors);
16
+ throw new ParseError_1.ParseError(parsed.errors);
14
17
  },
15
18
  jsonOrThrow: (parsed, opts) => {
16
19
  const raw = schema.json(parsed, opts);
17
20
  if (raw.ok) {
18
21
  return raw.value;
19
22
  }
20
- throw new JsonError(raw.errors);
23
+ throw new JsonError_1.JsonError(raw.errors);
21
24
  },
22
25
  };
23
26
  }
27
+ exports.getSchemaUtils = getSchemaUtils;
24
28
  /**
25
29
  * schema utils are defined in one file to resolve issues with circular imports
26
30
  */
27
- export function optional(schema) {
31
+ function optional(schema) {
28
32
  const baseSchema = {
29
33
  parse: (raw, opts) => {
30
34
  if (raw == null) {
@@ -50,11 +54,12 @@ export function optional(schema) {
50
54
  }
51
55
  return schema.json(parsed, opts);
52
56
  },
53
- getType: () => SchemaType.OPTIONAL,
57
+ getType: () => Schema_1.SchemaType.OPTIONAL,
54
58
  };
55
59
  return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
56
60
  }
57
- export function transform(schema, transformer) {
61
+ exports.optional = optional;
62
+ function transform(schema, transformer) {
58
63
  const baseSchema = {
59
64
  parse: (raw, opts) => {
60
65
  const parsed = schema.parse(raw, opts);
@@ -74,3 +79,4 @@ export function transform(schema, transformer) {
74
79
  };
75
80
  return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
76
81
  }
82
+ exports.transform = transform;
@@ -1,3 +1,11 @@
1
- export { getSchemaUtils, optional, transform } from "./getSchemaUtils";
2
- export { JsonError } from "./JsonError";
3
- export { ParseError } from "./ParseError";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParseError = exports.JsonError = exports.transform = exports.optional = exports.getSchemaUtils = void 0;
4
+ var getSchemaUtils_1 = require("./getSchemaUtils");
5
+ Object.defineProperty(exports, "getSchemaUtils", { enumerable: true, get: function () { return getSchemaUtils_1.getSchemaUtils; } });
6
+ Object.defineProperty(exports, "optional", { enumerable: true, get: function () { return getSchemaUtils_1.optional; } });
7
+ Object.defineProperty(exports, "transform", { enumerable: true, get: function () { return getSchemaUtils_1.transform; } });
8
+ var JsonError_1 = require("./JsonError");
9
+ Object.defineProperty(exports, "JsonError", { enumerable: true, get: function () { return JsonError_1.JsonError; } });
10
+ var ParseError_1 = require("./ParseError");
11
+ Object.defineProperty(exports, "ParseError", { enumerable: true, get: function () { return ParseError_1.ParseError; } });
@@ -1,6 +1,10 @@
1
- export function stringifyValidationError(error) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stringifyValidationError = void 0;
4
+ function stringifyValidationError(error) {
2
5
  if (error.path.length === 0) {
3
6
  return error.message;
4
7
  }
5
8
  return `${error.path.join(" -> ")}: ${error.message}`;
6
9
  }
10
+ exports.stringifyValidationError = stringifyValidationError;
@@ -1 +1,5 @@
1
- export { set } from "./set";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.set = void 0;
4
+ var set_1 = require("./set");
5
+ Object.defineProperty(exports, "set", { enumerable: true, get: function () { return set_1.set; } });
@@ -1,10 +1,13 @@
1
- import { SchemaType } from "../../Schema";
2
- import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType";
3
- import { maybeSkipValidation } from "../../utils/maybeSkipValidation";
4
- import { list } from "../list";
5
- import { getSchemaUtils } from "../schema-utils";
6
- export function set(schema) {
7
- const listSchema = list(schema);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.set = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
7
+ const list_1 = require("../list");
8
+ const schema_utils_1 = require("../schema-utils");
9
+ function set(schema) {
10
+ const listSchema = (0, list_1.list)(schema);
8
11
  const baseSchema = {
9
12
  parse: (raw, opts) => {
10
13
  const parsedList = listSchema.parse(raw, opts);
@@ -26,7 +29,7 @@ export function set(schema) {
26
29
  errors: [
27
30
  {
28
31
  path: (_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : [],
29
- message: getErrorMessageForIncorrectType(parsed, "Set"),
32
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(parsed, "Set"),
30
33
  },
31
34
  ],
32
35
  };
@@ -34,7 +37,8 @@ export function set(schema) {
34
37
  const jsonList = listSchema.json([...parsed], opts);
35
38
  return jsonList;
36
39
  },
37
- getType: () => SchemaType.SET,
40
+ getType: () => Schema_1.SchemaType.SET,
38
41
  };
39
- return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
42
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
40
43
  }
44
+ exports.set = set;
@@ -1 +1,5 @@
1
- export { undiscriminatedUnion } from "./undiscriminatedUnion";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.undiscriminatedUnion = void 0;
4
+ var undiscriminatedUnion_1 = require("./undiscriminatedUnion");
5
+ Object.defineProperty(exports, "undiscriminatedUnion", { enumerable: true, get: function () { return undiscriminatedUnion_1.undiscriminatedUnion; } });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,10 @@
1
- import { SchemaType } from "../../Schema";
2
- import { maybeSkipValidation } from "../../utils/maybeSkipValidation";
3
- import { getSchemaUtils } from "../schema-utils";
4
- export function undiscriminatedUnion(schemas) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.undiscriminatedUnion = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
6
+ const schema_utils_1 = require("../schema-utils");
7
+ function undiscriminatedUnion(schemas) {
5
8
  const baseSchema = {
6
9
  parse: (raw, opts) => {
7
10
  return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.parse(raw, opts), schemas, opts);
@@ -9,10 +12,11 @@ export function undiscriminatedUnion(schemas) {
9
12
  json: (parsed, opts) => {
10
13
  return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.json(parsed, opts), schemas, opts);
11
14
  },
12
- getType: () => SchemaType.UNDISCRIMINATED_UNION,
15
+ getType: () => Schema_1.SchemaType.UNDISCRIMINATED_UNION,
13
16
  };
14
- return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
17
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
15
18
  }
19
+ exports.undiscriminatedUnion = undiscriminatedUnion;
16
20
  function validateAndTransformUndiscriminatedUnion(transform, schemas, opts) {
17
21
  const errors = [];
18
22
  for (const [index, schema] of schemas.entries()) {
@@ -1,6 +1,10 @@
1
- export function discriminant(parsedDiscriminant, rawDiscriminant) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.discriminant = void 0;
4
+ function discriminant(parsedDiscriminant, rawDiscriminant) {
2
5
  return {
3
6
  parsedDiscriminant,
4
7
  rawDiscriminant,
5
8
  };
6
9
  }
10
+ exports.discriminant = discriminant;
@@ -1,2 +1,7 @@
1
- export { discriminant } from "./discriminant";
2
- export { union } from "./union";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.union = exports.discriminant = void 0;
4
+ var discriminant_1 = require("./discriminant");
5
+ Object.defineProperty(exports, "discriminant", { enumerable: true, get: function () { return discriminant_1.discriminant; } });
6
+ var union_1 = require("./union");
7
+ Object.defineProperty(exports, "union", { enumerable: true, get: function () { return union_1.union; } });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __rest = (this && this.__rest) || function (s, e) {
2
3
  var t = {};
3
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -9,20 +10,22 @@ var __rest = (this && this.__rest) || function (s, e) {
9
10
  }
10
11
  return t;
11
12
  };
12
- import { SchemaType } from "../../Schema";
13
- import { getErrorMessageForIncorrectType } from "../../utils/getErrorMessageForIncorrectType";
14
- import { isPlainObject } from "../../utils/isPlainObject";
15
- import { keys } from "../../utils/keys";
16
- import { maybeSkipValidation } from "../../utils/maybeSkipValidation";
17
- import { enum_ } from "../enum";
18
- import { getObjectLikeUtils } from "../object-like";
19
- import { getSchemaUtils } from "../schema-utils";
20
- export function union(discriminant, union) {
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.union = void 0;
15
+ const Schema_1 = require("../../Schema");
16
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
17
+ const isPlainObject_1 = require("../../utils/isPlainObject");
18
+ const keys_1 = require("../../utils/keys");
19
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
20
+ const enum_1 = require("../enum");
21
+ const object_like_1 = require("../object-like");
22
+ const schema_utils_1 = require("../schema-utils");
23
+ function union(discriminant, union) {
21
24
  const rawDiscriminant = typeof discriminant === "string" ? discriminant : discriminant.rawDiscriminant;
22
25
  const parsedDiscriminant = typeof discriminant === "string"
23
26
  ? discriminant
24
27
  : discriminant.parsedDiscriminant;
25
- const discriminantValueSchema = enum_(keys(union));
28
+ const discriminantValueSchema = (0, enum_1.enum_)((0, keys_1.keys)(union));
26
29
  const baseSchema = {
27
30
  parse: (raw, opts) => {
28
31
  return transformAndValidateUnion({
@@ -60,18 +63,19 @@ export function union(discriminant, union) {
60
63
  breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
61
64
  });
62
65
  },
63
- getType: () => SchemaType.UNION,
66
+ getType: () => Schema_1.SchemaType.UNION,
64
67
  };
65
- return Object.assign(Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema)), getObjectLikeUtils(baseSchema));
68
+ return Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema));
66
69
  }
70
+ exports.union = union;
67
71
  function transformAndValidateUnion({ value, discriminant, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [], }) {
68
- if (!isPlainObject(value)) {
72
+ if (!(0, isPlainObject_1.isPlainObject)(value)) {
69
73
  return {
70
74
  ok: false,
71
75
  errors: [
72
76
  {
73
77
  path: breadcrumbsPrefix,
74
- message: getErrorMessageForIncorrectType(value, "object"),
78
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
75
79
  },
76
80
  ],
77
81
  };
@@ -1 +1,17 @@
1
- export * from "./builders";
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("./builders"), exports);
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,16 @@
1
- import { getSchemaUtils } from "../builders/schema-utils";
2
- import { maybeSkipValidation } from "./maybeSkipValidation";
3
- export function createIdentitySchemaCreator(schemaType, validate) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createIdentitySchemaCreator = void 0;
4
+ const schema_utils_1 = require("../builders/schema-utils");
5
+ const maybeSkipValidation_1 = require("./maybeSkipValidation");
6
+ function createIdentitySchemaCreator(schemaType, validate) {
4
7
  return () => {
5
8
  const baseSchema = {
6
9
  parse: validate,
7
10
  json: validate,
8
11
  getType: () => schemaType,
9
12
  };
10
- return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
13
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
11
14
  };
12
15
  }
16
+ exports.createIdentitySchemaCreator = createIdentitySchemaCreator;
@@ -1,3 +1,7 @@
1
- export function entries(object) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entries = void 0;
4
+ function entries(object) {
2
5
  return Object.entries(object);
3
6
  }
7
+ exports.entries = entries;
@@ -1,4 +1,7 @@
1
- export function filterObject(obj, keysToInclude) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.filterObject = void 0;
4
+ function filterObject(obj, keysToInclude) {
2
5
  const keysToIncludeSet = new Set(keysToInclude);
3
6
  return Object.entries(obj).reduce((acc, [key, value]) => {
4
7
  if (keysToIncludeSet.has(key)) {
@@ -8,3 +11,4 @@ export function filterObject(obj, keysToInclude) {
8
11
  // eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter
9
12
  }, {});
10
13
  }
14
+ exports.filterObject = filterObject;
@@ -1,6 +1,10 @@
1
- export function getErrorMessageForIncorrectType(value, expectedType) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getErrorMessageForIncorrectType = void 0;
4
+ function getErrorMessageForIncorrectType(value, expectedType) {
2
5
  return `Expected ${expectedType}. Received ${getTypeAsString(value)}.`;
3
6
  }
7
+ exports.getErrorMessageForIncorrectType = getErrorMessageForIncorrectType;
4
8
  function getTypeAsString(value) {
5
9
  if (Array.isArray(value)) {
6
10
  return "list";
@@ -1,5 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPlainObject = void 0;
1
4
  // borrowed from https://github.com/lodash/lodash/blob/master/isPlainObject.js
2
- export function isPlainObject(value) {
5
+ function isPlainObject(value) {
3
6
  if (typeof value !== "object" || value === null) {
4
7
  return false;
5
8
  }
@@ -12,3 +15,4 @@ export function isPlainObject(value) {
12
15
  }
13
16
  return Object.getPrototypeOf(value) === proto;
14
17
  }
18
+ exports.isPlainObject = isPlainObject;
@@ -1,3 +1,7 @@
1
- export function keys(object) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.keys = void 0;
4
+ function keys(object) {
2
5
  return Object.keys(object);
3
6
  }
7
+ exports.keys = keys;
@@ -1,6 +1,10 @@
1
- export function maybeSkipValidation(schema) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.maybeSkipValidation = void 0;
4
+ function maybeSkipValidation(schema) {
2
5
  return Object.assign(Object.assign({}, schema), { json: transformAndMaybeSkipValidation(schema.json), parse: transformAndMaybeSkipValidation(schema.parse) });
3
6
  }
7
+ exports.maybeSkipValidation = maybeSkipValidation;
4
8
  function transformAndMaybeSkipValidation(transform) {
5
9
  return (value, opts) => {
6
10
  const transformed = transform(value, opts);
@@ -1,4 +1,7 @@
1
- export function partition(items, predicate) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.partition = void 0;
4
+ function partition(items, predicate) {
2
5
  const trueItems = [], falseItems = [];
3
6
  for (const item of items) {
4
7
  if (predicate(item)) {
@@ -10,3 +13,4 @@ export function partition(items, predicate) {
10
13
  }
11
14
  return [trueItems, falseItems];
12
15
  }
16
+ exports.partition = partition;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26,9 +27,11 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
26
27
  function reject(value) { resume("throw", value); }
27
28
  function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
28
29
  };
29
- import { RUNTIME } from "../runtime";
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.readableStreamAsyncIterable = exports.Stream = void 0;
32
+ const runtime_1 = require("../runtime");
30
33
  const DATA_PREFIX = "data:";
31
- export class Stream {
34
+ class Stream {
32
35
  constructor({ stream, parse, eventShape, signal }) {
33
36
  this.controller = new AbortController();
34
37
  this.stream = stream;
@@ -119,17 +122,18 @@ export class Stream {
119
122
  decoded += decoder.decode(chunk);
120
123
  }
121
124
  // Buffer is present in Node.js environment
122
- else if (RUNTIME.type === "node" && typeof chunk != "undefined") {
125
+ else if (runtime_1.RUNTIME.type === "node" && typeof chunk != "undefined") {
123
126
  decoded += Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
124
127
  }
125
128
  return decoded;
126
129
  }
127
130
  }
131
+ exports.Stream = Stream;
128
132
  /**
129
133
  * Browser polyfill for ReadableStream
130
134
  */
131
135
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
132
- export function readableStreamAsyncIterable(stream) {
136
+ function readableStreamAsyncIterable(stream) {
133
137
  if (stream[Symbol.asyncIterator]) {
134
138
  return stream;
135
139
  }
@@ -163,3 +167,4 @@ export function readableStreamAsyncIterable(stream) {
163
167
  },
164
168
  };
165
169
  }
170
+ exports.readableStreamAsyncIterable = readableStreamAsyncIterable;
@@ -1 +1,5 @@
1
- export { Stream } from "./Stream";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Stream = void 0;
4
+ var Stream_1 = require("./Stream");
5
+ Object.defineProperty(exports, "Stream", { enumerable: true, get: function () { return Stream_1.Stream; } });