mavenagi 0.0.0-alpha.11

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 (991) hide show
  1. package/Client.d.ts +39 -0
  2. package/Client.js +33 -0
  3. package/README.md +139 -0
  4. package/api/index.d.ts +1 -0
  5. package/api/index.js +1 -0
  6. package/api/resources/actions/client/Client.d.ts +79 -0
  7. package/api/resources/actions/client/Client.js +305 -0
  8. package/api/resources/actions/client/index.d.ts +1 -0
  9. package/api/resources/actions/client/index.js +1 -0
  10. package/api/resources/actions/index.d.ts +2 -0
  11. package/api/resources/actions/index.js +2 -0
  12. package/api/resources/actions/types/ActionBase.d.ts +18 -0
  13. package/api/resources/actions/types/ActionBase.js +4 -0
  14. package/api/resources/actions/types/ActionParameter.d.ts +9 -0
  15. package/api/resources/actions/types/ActionParameter.js +4 -0
  16. package/api/resources/actions/types/ActionRequest.d.ts +23 -0
  17. package/api/resources/actions/types/ActionRequest.js +4 -0
  18. package/api/resources/actions/types/ActionResponse.d.ts +27 -0
  19. package/api/resources/actions/types/ActionResponse.js +4 -0
  20. package/api/resources/actions/types/Preconditions.d.ts +7 -0
  21. package/api/resources/actions/types/Preconditions.js +4 -0
  22. package/api/resources/actions/types/index.d.ts +5 -0
  23. package/api/resources/actions/types/index.js +5 -0
  24. package/api/resources/commons/errors/BadRequestError.d.ts +8 -0
  25. package/api/resources/commons/errors/BadRequestError.js +14 -0
  26. package/api/resources/commons/errors/NotFoundError.d.ts +8 -0
  27. package/api/resources/commons/errors/NotFoundError.js +14 -0
  28. package/api/resources/commons/errors/ServerError.d.ts +8 -0
  29. package/api/resources/commons/errors/ServerError.js +14 -0
  30. package/api/resources/commons/errors/index.d.ts +3 -0
  31. package/api/resources/commons/errors/index.js +3 -0
  32. package/api/resources/commons/index.d.ts +2 -0
  33. package/api/resources/commons/index.js +2 -0
  34. package/api/resources/commons/types/AppUser.d.ts +8 -0
  35. package/api/resources/commons/types/AppUser.js +4 -0
  36. package/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
  37. package/api/resources/commons/types/AppUserIdentification.js +4 -0
  38. package/api/resources/commons/types/AppUserIdentifier.d.ts +9 -0
  39. package/api/resources/commons/types/AppUserIdentifier.js +4 -0
  40. package/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
  41. package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
  42. package/api/resources/commons/types/AppUserRequest.d.ts +8 -0
  43. package/api/resources/commons/types/AppUserRequest.js +4 -0
  44. package/api/resources/commons/types/AppUserResponse.d.ts +8 -0
  45. package/api/resources/commons/types/AppUserResponse.js +4 -0
  46. package/api/resources/commons/types/EntityId.d.ts +14 -0
  47. package/api/resources/commons/types/EntityId.js +4 -0
  48. package/api/resources/commons/types/EntityIdBase.d.ts +10 -0
  49. package/api/resources/commons/types/EntityIdBase.js +4 -0
  50. package/api/resources/commons/types/EntityType.d.ts +15 -0
  51. package/api/resources/commons/types/EntityType.js +14 -0
  52. package/api/resources/commons/types/ErrorMessage.d.ts +6 -0
  53. package/api/resources/commons/types/ErrorMessage.js +4 -0
  54. package/api/resources/commons/types/Feedback.d.ts +16 -0
  55. package/api/resources/commons/types/Feedback.js +4 -0
  56. package/api/resources/commons/types/FeedbackType.d.ts +13 -0
  57. package/api/resources/commons/types/FeedbackType.js +9 -0
  58. package/api/resources/commons/types/User.d.ts +10 -0
  59. package/api/resources/commons/types/User.js +4 -0
  60. package/api/resources/commons/types/UserData.d.ts +10 -0
  61. package/api/resources/commons/types/UserData.js +4 -0
  62. package/api/resources/commons/types/VisibilityType.d.ts +9 -0
  63. package/api/resources/commons/types/VisibilityType.js +8 -0
  64. package/api/resources/commons/types/index.d.ts +15 -0
  65. package/api/resources/commons/types/index.js +15 -0
  66. package/api/resources/conversation/client/Client.d.ts +201 -0
  67. package/api/resources/conversation/client/Client.js +889 -0
  68. package/api/resources/conversation/client/index.d.ts +1 -0
  69. package/api/resources/conversation/client/index.js +1 -0
  70. package/api/resources/conversation/index.d.ts +2 -0
  71. package/api/resources/conversation/index.js +2 -0
  72. package/api/resources/conversation/types/ActionFormField.d.ts +10 -0
  73. package/api/resources/conversation/types/ActionFormField.js +4 -0
  74. package/api/resources/conversation/types/AskRequest.d.ts +14 -0
  75. package/api/resources/conversation/types/AskRequest.js +4 -0
  76. package/api/resources/conversation/types/AskStreamEndEvent.d.ts +7 -0
  77. package/api/resources/conversation/types/AskStreamEndEvent.js +4 -0
  78. package/api/resources/conversation/types/AskStreamMetadataEvent.d.ts +6 -0
  79. package/api/resources/conversation/types/AskStreamMetadataEvent.js +4 -0
  80. package/api/resources/conversation/types/AskStreamStartEvent.d.ts +7 -0
  81. package/api/resources/conversation/types/AskStreamStartEvent.js +4 -0
  82. package/api/resources/conversation/types/AskStreamTextEvent.d.ts +6 -0
  83. package/api/resources/conversation/types/AskStreamTextEvent.js +4 -0
  84. package/api/resources/conversation/types/BotActionFormResponse.d.ts +10 -0
  85. package/api/resources/conversation/types/BotActionFormResponse.js +4 -0
  86. package/api/resources/conversation/types/BotConversationMessageType.d.ts +9 -0
  87. package/api/resources/conversation/types/BotConversationMessageType.js +8 -0
  88. package/api/resources/conversation/types/BotMessage.d.ts +11 -0
  89. package/api/resources/conversation/types/BotMessage.js +4 -0
  90. package/api/resources/conversation/types/BotResponse.d.ts +13 -0
  91. package/api/resources/conversation/types/BotResponse.js +4 -0
  92. package/api/resources/conversation/types/BotResponseMetadata.d.ts +8 -0
  93. package/api/resources/conversation/types/BotResponseMetadata.js +4 -0
  94. package/api/resources/conversation/types/BotTextResponse.d.ts +6 -0
  95. package/api/resources/conversation/types/BotTextResponse.js +4 -0
  96. package/api/resources/conversation/types/Capability.d.ts +8 -0
  97. package/api/resources/conversation/types/Capability.js +7 -0
  98. package/api/resources/conversation/types/ConversationBase.d.ts +8 -0
  99. package/api/resources/conversation/types/ConversationBase.js +4 -0
  100. package/api/resources/conversation/types/ConversationContext.d.ts +20 -0
  101. package/api/resources/conversation/types/ConversationContext.js +4 -0
  102. package/api/resources/conversation/types/ConversationMessageBase.d.ts +8 -0
  103. package/api/resources/conversation/types/ConversationMessageBase.js +4 -0
  104. package/api/resources/conversation/types/ConversationMessageContext.d.ts +12 -0
  105. package/api/resources/conversation/types/ConversationMessageContext.js +4 -0
  106. package/api/resources/conversation/types/ConversationMessageRequest.d.ts +8 -0
  107. package/api/resources/conversation/types/ConversationMessageRequest.js +4 -0
  108. package/api/resources/conversation/types/ConversationMessageResponse.d.ts +13 -0
  109. package/api/resources/conversation/types/ConversationMessageResponse.js +4 -0
  110. package/api/resources/conversation/types/ConversationRequest.d.ts +12 -0
  111. package/api/resources/conversation/types/ConversationRequest.js +4 -0
  112. package/api/resources/conversation/types/ConversationResponse.d.ts +12 -0
  113. package/api/resources/conversation/types/ConversationResponse.js +4 -0
  114. package/api/resources/conversation/types/FeedbackRequest.d.ts +5 -0
  115. package/api/resources/conversation/types/FeedbackRequest.js +4 -0
  116. package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +8 -0
  117. package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +4 -0
  118. package/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
  119. package/api/resources/conversation/types/ResponseConfig.js +4 -0
  120. package/api/resources/conversation/types/ResponseLength.d.ts +9 -0
  121. package/api/resources/conversation/types/ResponseLength.js +8 -0
  122. package/api/resources/conversation/types/Source.d.ts +7 -0
  123. package/api/resources/conversation/types/Source.js +4 -0
  124. package/api/resources/conversation/types/StreamResponse.d.ts +19 -0
  125. package/api/resources/conversation/types/StreamResponse.js +4 -0
  126. package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +10 -0
  127. package/api/resources/conversation/types/SubmitActionFormRequest.js +4 -0
  128. package/api/resources/conversation/types/UserConversationMessageType.d.ts +12 -0
  129. package/api/resources/conversation/types/UserConversationMessageType.js +8 -0
  130. package/api/resources/conversation/types/UserMessage.d.ts +8 -0
  131. package/api/resources/conversation/types/UserMessage.js +4 -0
  132. package/api/resources/conversation/types/UserMessageBase.d.ts +9 -0
  133. package/api/resources/conversation/types/UserMessageBase.js +4 -0
  134. package/api/resources/conversation/types/index.d.ts +31 -0
  135. package/api/resources/conversation/types/index.js +31 -0
  136. package/api/resources/index.d.ts +12 -0
  137. package/api/resources/index.js +12 -0
  138. package/api/resources/knowledge/client/Client.d.ts +150 -0
  139. package/api/resources/knowledge/client/Client.js +666 -0
  140. package/api/resources/knowledge/client/index.d.ts +1 -0
  141. package/api/resources/knowledge/client/index.js +1 -0
  142. package/api/resources/knowledge/index.d.ts +2 -0
  143. package/api/resources/knowledge/index.js +2 -0
  144. package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +17 -0
  145. package/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
  146. package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +12 -0
  147. package/api/resources/knowledge/types/KnowledgeBaseProperties.js +4 -0
  148. package/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +18 -0
  149. package/api/resources/knowledge/types/KnowledgeBaseRequest.js +4 -0
  150. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +22 -0
  151. package/api/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
  152. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +12 -0
  153. package/api/resources/knowledge/types/KnowledgeBaseType.js +8 -0
  154. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +14 -0
  155. package/api/resources/knowledge/types/KnowledgeBaseVersion.js +4 -0
  156. package/api/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +11 -0
  157. package/api/resources/knowledge/types/KnowledgeBaseVersionType.js +7 -0
  158. package/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
  159. package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
  160. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +22 -0
  161. package/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
  162. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +24 -0
  163. package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  164. package/api/resources/knowledge/types/index.d.ts +10 -0
  165. package/api/resources/knowledge/types/index.js +10 -0
  166. package/api/resources/triggers/client/Client.d.ts +74 -0
  167. package/api/resources/triggers/client/Client.js +300 -0
  168. package/api/resources/triggers/client/index.d.ts +1 -0
  169. package/api/resources/triggers/client/index.js +1 -0
  170. package/api/resources/triggers/index.d.ts +2 -0
  171. package/api/resources/triggers/index.js +2 -0
  172. package/api/resources/triggers/types/EventTriggerBase.d.ts +10 -0
  173. package/api/resources/triggers/types/EventTriggerBase.js +4 -0
  174. package/api/resources/triggers/types/EventTriggerRequest.d.ts +18 -0
  175. package/api/resources/triggers/types/EventTriggerRequest.js +4 -0
  176. package/api/resources/triggers/types/EventTriggerResponse.d.ts +22 -0
  177. package/api/resources/triggers/types/EventTriggerResponse.js +4 -0
  178. package/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
  179. package/api/resources/triggers/types/EventTriggerType.js +7 -0
  180. package/api/resources/triggers/types/index.d.ts +4 -0
  181. package/api/resources/triggers/types/index.js +4 -0
  182. package/api/resources/users/client/Client.d.ts +64 -0
  183. package/api/resources/users/client/Client.js +222 -0
  184. package/api/resources/users/client/index.d.ts +1 -0
  185. package/api/resources/users/client/index.js +1 -0
  186. package/api/resources/users/index.d.ts +1 -0
  187. package/api/resources/users/index.js +1 -0
  188. package/core/auth/BasicAuth.d.ts +8 -0
  189. package/core/auth/BasicAuth.js +23 -0
  190. package/core/auth/BearerToken.d.ts +5 -0
  191. package/core/auth/BearerToken.js +12 -0
  192. package/core/auth/index.d.ts +2 -0
  193. package/core/auth/index.js +2 -0
  194. package/core/fetcher/APIResponse.d.ts +10 -0
  195. package/core/fetcher/APIResponse.js +1 -0
  196. package/core/fetcher/Fetcher.d.ts +36 -0
  197. package/core/fetcher/Fetcher.js +236 -0
  198. package/core/fetcher/Supplier.d.ts +4 -0
  199. package/core/fetcher/Supplier.js +19 -0
  200. package/core/fetcher/getHeader.d.ts +1 -0
  201. package/core/fetcher/getHeader.js +8 -0
  202. package/core/fetcher/index.d.ts +5 -0
  203. package/core/fetcher/index.js +3 -0
  204. package/core/index.d.ts +5 -0
  205. package/core/index.js +5 -0
  206. package/core/runtime/index.d.ts +1 -0
  207. package/core/runtime/index.js +1 -0
  208. package/core/runtime/runtime.d.ts +8 -0
  209. package/core/runtime/runtime.js +89 -0
  210. package/core/schemas/Schema.d.ts +81 -0
  211. package/core/schemas/Schema.js +18 -0
  212. package/core/schemas/builders/date/date.d.ts +2 -0
  213. package/core/schemas/builders/date/date.js +59 -0
  214. package/core/schemas/builders/date/index.d.ts +1 -0
  215. package/core/schemas/builders/date/index.js +1 -0
  216. package/core/schemas/builders/enum/enum.d.ts +2 -0
  217. package/core/schemas/builders/enum/enum.js +35 -0
  218. package/core/schemas/builders/enum/index.d.ts +1 -0
  219. package/core/schemas/builders/enum/index.js +1 -0
  220. package/core/schemas/builders/index.d.ts +13 -0
  221. package/core/schemas/builders/index.js +13 -0
  222. package/core/schemas/builders/lazy/index.d.ts +3 -0
  223. package/core/schemas/builders/lazy/index.js +2 -0
  224. package/core/schemas/builders/lazy/lazy.d.ts +5 -0
  225. package/core/schemas/builders/lazy/lazy.js +30 -0
  226. package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  227. package/core/schemas/builders/lazy/lazyObject.js +17 -0
  228. package/core/schemas/builders/list/index.d.ts +1 -0
  229. package/core/schemas/builders/list/index.js +1 -0
  230. package/core/schemas/builders/list/list.d.ts +2 -0
  231. package/core/schemas/builders/list/list.js +64 -0
  232. package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  233. package/core/schemas/builders/literals/booleanLiteral.js +25 -0
  234. package/core/schemas/builders/literals/index.d.ts +2 -0
  235. package/core/schemas/builders/literals/index.js +2 -0
  236. package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  237. package/core/schemas/builders/literals/stringLiteral.js +25 -0
  238. package/core/schemas/builders/object/index.d.ts +6 -0
  239. package/core/schemas/builders/object/index.js +3 -0
  240. package/core/schemas/builders/object/object.d.ts +3 -0
  241. package/core/schemas/builders/object/object.js +249 -0
  242. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  243. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +4 -0
  244. package/core/schemas/builders/object/property.d.ts +8 -0
  245. package/core/schemas/builders/object/property.js +11 -0
  246. package/core/schemas/builders/object/types.d.ts +26 -0
  247. package/core/schemas/builders/object/types.js +1 -0
  248. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  249. package/core/schemas/builders/object-like/getObjectLikeUtils.js +58 -0
  250. package/core/schemas/builders/object-like/index.d.ts +2 -0
  251. package/core/schemas/builders/object-like/index.js +1 -0
  252. package/core/schemas/builders/object-like/types.d.ts +7 -0
  253. package/core/schemas/builders/object-like/types.js +1 -0
  254. package/core/schemas/builders/primitives/any.d.ts +1 -0
  255. package/core/schemas/builders/primitives/any.js +3 -0
  256. package/core/schemas/builders/primitives/boolean.d.ts +1 -0
  257. package/core/schemas/builders/primitives/boolean.js +22 -0
  258. package/core/schemas/builders/primitives/index.d.ts +5 -0
  259. package/core/schemas/builders/primitives/index.js +5 -0
  260. package/core/schemas/builders/primitives/number.d.ts +1 -0
  261. package/core/schemas/builders/primitives/number.js +22 -0
  262. package/core/schemas/builders/primitives/string.d.ts +1 -0
  263. package/core/schemas/builders/primitives/string.js +22 -0
  264. package/core/schemas/builders/primitives/unknown.d.ts +1 -0
  265. package/core/schemas/builders/primitives/unknown.js +3 -0
  266. package/core/schemas/builders/record/index.d.ts +2 -0
  267. package/core/schemas/builders/record/index.js +1 -0
  268. package/core/schemas/builders/record/record.d.ts +3 -0
  269. package/core/schemas/builders/record/record.js +102 -0
  270. package/core/schemas/builders/record/types.d.ts +4 -0
  271. package/core/schemas/builders/record/types.js +1 -0
  272. package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  273. package/core/schemas/builders/schema-utils/JsonError.js +8 -0
  274. package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  275. package/core/schemas/builders/schema-utils/ParseError.js +8 -0
  276. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  277. package/core/schemas/builders/schema-utils/getSchemaUtils.js +79 -0
  278. package/core/schemas/builders/schema-utils/index.d.ts +4 -0
  279. package/core/schemas/builders/schema-utils/index.js +3 -0
  280. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  281. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +6 -0
  282. package/core/schemas/builders/set/index.d.ts +1 -0
  283. package/core/schemas/builders/set/index.js +1 -0
  284. package/core/schemas/builders/set/set.d.ts +2 -0
  285. package/core/schemas/builders/set/set.js +49 -0
  286. package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  287. package/core/schemas/builders/undiscriminated-union/index.js +1 -0
  288. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  289. package/core/schemas/builders/undiscriminated-union/types.js +1 -0
  290. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  291. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +47 -0
  292. package/core/schemas/builders/union/discriminant.d.ts +5 -0
  293. package/core/schemas/builders/union/discriminant.js +6 -0
  294. package/core/schemas/builders/union/index.d.ts +4 -0
  295. package/core/schemas/builders/union/index.js +2 -0
  296. package/core/schemas/builders/union/types.d.ts +13 -0
  297. package/core/schemas/builders/union/types.js +1 -0
  298. package/core/schemas/builders/union/union.d.ts +4 -0
  299. package/core/schemas/builders/union/union.js +137 -0
  300. package/core/schemas/index.d.ts +2 -0
  301. package/core/schemas/index.js +1 -0
  302. package/core/schemas/utils/MaybePromise.d.ts +1 -0
  303. package/core/schemas/utils/MaybePromise.js +1 -0
  304. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  305. package/core/schemas/utils/addQuestionMarksToNullableProperties.js +1 -0
  306. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  307. package/core/schemas/utils/createIdentitySchemaCreator.js +12 -0
  308. package/core/schemas/utils/entries.d.ts +1 -0
  309. package/core/schemas/utils/entries.js +3 -0
  310. package/core/schemas/utils/filterObject.d.ts +1 -0
  311. package/core/schemas/utils/filterObject.js +10 -0
  312. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  313. package/core/schemas/utils/getErrorMessageForIncorrectType.js +20 -0
  314. package/core/schemas/utils/isPlainObject.d.ts +1 -0
  315. package/core/schemas/utils/isPlainObject.js +14 -0
  316. package/core/schemas/utils/keys.d.ts +1 -0
  317. package/core/schemas/utils/keys.js +3 -0
  318. package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  319. package/core/schemas/utils/maybeSkipValidation.js +33 -0
  320. package/core/schemas/utils/partition.d.ts +1 -0
  321. package/core/schemas/utils/partition.js +12 -0
  322. package/core/streaming-fetcher/Stream.d.ts +48 -0
  323. package/core/streaming-fetcher/Stream.js +165 -0
  324. package/core/streaming-fetcher/index.d.ts +1 -0
  325. package/core/streaming-fetcher/index.js +1 -0
  326. package/dist/Client.d.ts +39 -0
  327. package/dist/Client.js +33 -0
  328. package/dist/api/index.d.ts +1 -0
  329. package/dist/api/index.js +1 -0
  330. package/dist/api/resources/actions/client/Client.d.ts +79 -0
  331. package/dist/api/resources/actions/client/Client.js +305 -0
  332. package/dist/api/resources/actions/client/index.d.ts +1 -0
  333. package/dist/api/resources/actions/client/index.js +1 -0
  334. package/dist/api/resources/actions/index.d.ts +2 -0
  335. package/dist/api/resources/actions/index.js +2 -0
  336. package/dist/api/resources/actions/types/ActionBase.d.ts +18 -0
  337. package/dist/api/resources/actions/types/ActionBase.js +4 -0
  338. package/dist/api/resources/actions/types/ActionParameter.d.ts +9 -0
  339. package/dist/api/resources/actions/types/ActionParameter.js +4 -0
  340. package/dist/api/resources/actions/types/ActionRequest.d.ts +23 -0
  341. package/dist/api/resources/actions/types/ActionRequest.js +4 -0
  342. package/dist/api/resources/actions/types/ActionResponse.d.ts +27 -0
  343. package/dist/api/resources/actions/types/ActionResponse.js +4 -0
  344. package/dist/api/resources/actions/types/Preconditions.d.ts +7 -0
  345. package/dist/api/resources/actions/types/Preconditions.js +4 -0
  346. package/dist/api/resources/actions/types/index.d.ts +5 -0
  347. package/dist/api/resources/actions/types/index.js +5 -0
  348. package/dist/api/resources/commons/errors/BadRequestError.d.ts +8 -0
  349. package/dist/api/resources/commons/errors/BadRequestError.js +14 -0
  350. package/dist/api/resources/commons/errors/NotFoundError.d.ts +8 -0
  351. package/dist/api/resources/commons/errors/NotFoundError.js +14 -0
  352. package/dist/api/resources/commons/errors/ServerError.d.ts +8 -0
  353. package/dist/api/resources/commons/errors/ServerError.js +14 -0
  354. package/dist/api/resources/commons/errors/index.d.ts +3 -0
  355. package/dist/api/resources/commons/errors/index.js +3 -0
  356. package/dist/api/resources/commons/index.d.ts +2 -0
  357. package/dist/api/resources/commons/index.js +2 -0
  358. package/dist/api/resources/commons/types/AppUser.d.ts +8 -0
  359. package/dist/api/resources/commons/types/AppUser.js +4 -0
  360. package/dist/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
  361. package/dist/api/resources/commons/types/AppUserIdentification.js +4 -0
  362. package/dist/api/resources/commons/types/AppUserIdentifier.d.ts +9 -0
  363. package/dist/api/resources/commons/types/AppUserIdentifier.js +4 -0
  364. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
  365. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
  366. package/dist/api/resources/commons/types/AppUserRequest.d.ts +8 -0
  367. package/dist/api/resources/commons/types/AppUserRequest.js +4 -0
  368. package/dist/api/resources/commons/types/AppUserResponse.d.ts +8 -0
  369. package/dist/api/resources/commons/types/AppUserResponse.js +4 -0
  370. package/dist/api/resources/commons/types/EntityId.d.ts +14 -0
  371. package/dist/api/resources/commons/types/EntityId.js +4 -0
  372. package/dist/api/resources/commons/types/EntityIdBase.d.ts +10 -0
  373. package/dist/api/resources/commons/types/EntityIdBase.js +4 -0
  374. package/dist/api/resources/commons/types/EntityType.d.ts +15 -0
  375. package/dist/api/resources/commons/types/EntityType.js +14 -0
  376. package/dist/api/resources/commons/types/ErrorMessage.d.ts +6 -0
  377. package/dist/api/resources/commons/types/ErrorMessage.js +4 -0
  378. package/dist/api/resources/commons/types/Feedback.d.ts +16 -0
  379. package/dist/api/resources/commons/types/Feedback.js +4 -0
  380. package/dist/api/resources/commons/types/FeedbackType.d.ts +13 -0
  381. package/dist/api/resources/commons/types/FeedbackType.js +9 -0
  382. package/dist/api/resources/commons/types/User.d.ts +10 -0
  383. package/dist/api/resources/commons/types/User.js +4 -0
  384. package/dist/api/resources/commons/types/UserData.d.ts +10 -0
  385. package/dist/api/resources/commons/types/UserData.js +4 -0
  386. package/dist/api/resources/commons/types/VisibilityType.d.ts +9 -0
  387. package/dist/api/resources/commons/types/VisibilityType.js +8 -0
  388. package/dist/api/resources/commons/types/index.d.ts +15 -0
  389. package/dist/api/resources/commons/types/index.js +15 -0
  390. package/dist/api/resources/conversation/client/Client.d.ts +201 -0
  391. package/dist/api/resources/conversation/client/Client.js +889 -0
  392. package/dist/api/resources/conversation/client/index.d.ts +1 -0
  393. package/dist/api/resources/conversation/client/index.js +1 -0
  394. package/dist/api/resources/conversation/index.d.ts +2 -0
  395. package/dist/api/resources/conversation/index.js +2 -0
  396. package/dist/api/resources/conversation/types/ActionFormField.d.ts +10 -0
  397. package/dist/api/resources/conversation/types/ActionFormField.js +4 -0
  398. package/dist/api/resources/conversation/types/AskRequest.d.ts +14 -0
  399. package/dist/api/resources/conversation/types/AskRequest.js +4 -0
  400. package/dist/api/resources/conversation/types/AskStreamEndEvent.d.ts +7 -0
  401. package/dist/api/resources/conversation/types/AskStreamEndEvent.js +4 -0
  402. package/dist/api/resources/conversation/types/AskStreamMetadataEvent.d.ts +6 -0
  403. package/dist/api/resources/conversation/types/AskStreamMetadataEvent.js +4 -0
  404. package/dist/api/resources/conversation/types/AskStreamStartEvent.d.ts +7 -0
  405. package/dist/api/resources/conversation/types/AskStreamStartEvent.js +4 -0
  406. package/dist/api/resources/conversation/types/AskStreamTextEvent.d.ts +6 -0
  407. package/dist/api/resources/conversation/types/AskStreamTextEvent.js +4 -0
  408. package/dist/api/resources/conversation/types/BotActionFormResponse.d.ts +10 -0
  409. package/dist/api/resources/conversation/types/BotActionFormResponse.js +4 -0
  410. package/dist/api/resources/conversation/types/BotConversationMessageType.d.ts +9 -0
  411. package/dist/api/resources/conversation/types/BotConversationMessageType.js +8 -0
  412. package/dist/api/resources/conversation/types/BotMessage.d.ts +11 -0
  413. package/dist/api/resources/conversation/types/BotMessage.js +4 -0
  414. package/dist/api/resources/conversation/types/BotResponse.d.ts +13 -0
  415. package/dist/api/resources/conversation/types/BotResponse.js +4 -0
  416. package/dist/api/resources/conversation/types/BotResponseMetadata.d.ts +8 -0
  417. package/dist/api/resources/conversation/types/BotResponseMetadata.js +4 -0
  418. package/dist/api/resources/conversation/types/BotTextResponse.d.ts +6 -0
  419. package/dist/api/resources/conversation/types/BotTextResponse.js +4 -0
  420. package/dist/api/resources/conversation/types/Capability.d.ts +8 -0
  421. package/dist/api/resources/conversation/types/Capability.js +7 -0
  422. package/dist/api/resources/conversation/types/ConversationBase.d.ts +8 -0
  423. package/dist/api/resources/conversation/types/ConversationBase.js +4 -0
  424. package/dist/api/resources/conversation/types/ConversationContext.d.ts +20 -0
  425. package/dist/api/resources/conversation/types/ConversationContext.js +4 -0
  426. package/dist/api/resources/conversation/types/ConversationMessageBase.d.ts +8 -0
  427. package/dist/api/resources/conversation/types/ConversationMessageBase.js +4 -0
  428. package/dist/api/resources/conversation/types/ConversationMessageContext.d.ts +12 -0
  429. package/dist/api/resources/conversation/types/ConversationMessageContext.js +4 -0
  430. package/dist/api/resources/conversation/types/ConversationMessageRequest.d.ts +8 -0
  431. package/dist/api/resources/conversation/types/ConversationMessageRequest.js +4 -0
  432. package/dist/api/resources/conversation/types/ConversationMessageResponse.d.ts +13 -0
  433. package/dist/api/resources/conversation/types/ConversationMessageResponse.js +4 -0
  434. package/dist/api/resources/conversation/types/ConversationRequest.d.ts +12 -0
  435. package/dist/api/resources/conversation/types/ConversationRequest.js +4 -0
  436. package/dist/api/resources/conversation/types/ConversationResponse.d.ts +12 -0
  437. package/dist/api/resources/conversation/types/ConversationResponse.js +4 -0
  438. package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +5 -0
  439. package/dist/api/resources/conversation/types/FeedbackRequest.js +4 -0
  440. package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +8 -0
  441. package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +4 -0
  442. package/dist/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
  443. package/dist/api/resources/conversation/types/ResponseConfig.js +4 -0
  444. package/dist/api/resources/conversation/types/ResponseLength.d.ts +9 -0
  445. package/dist/api/resources/conversation/types/ResponseLength.js +8 -0
  446. package/dist/api/resources/conversation/types/Source.d.ts +7 -0
  447. package/dist/api/resources/conversation/types/Source.js +4 -0
  448. package/dist/api/resources/conversation/types/StreamResponse.d.ts +19 -0
  449. package/dist/api/resources/conversation/types/StreamResponse.js +4 -0
  450. package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +10 -0
  451. package/dist/api/resources/conversation/types/SubmitActionFormRequest.js +4 -0
  452. package/dist/api/resources/conversation/types/UserConversationMessageType.d.ts +12 -0
  453. package/dist/api/resources/conversation/types/UserConversationMessageType.js +8 -0
  454. package/dist/api/resources/conversation/types/UserMessage.d.ts +8 -0
  455. package/dist/api/resources/conversation/types/UserMessage.js +4 -0
  456. package/dist/api/resources/conversation/types/UserMessageBase.d.ts +9 -0
  457. package/dist/api/resources/conversation/types/UserMessageBase.js +4 -0
  458. package/dist/api/resources/conversation/types/index.d.ts +31 -0
  459. package/dist/api/resources/conversation/types/index.js +31 -0
  460. package/dist/api/resources/index.d.ts +12 -0
  461. package/dist/api/resources/index.js +12 -0
  462. package/dist/api/resources/knowledge/client/Client.d.ts +150 -0
  463. package/dist/api/resources/knowledge/client/Client.js +666 -0
  464. package/dist/api/resources/knowledge/client/index.d.ts +1 -0
  465. package/dist/api/resources/knowledge/client/index.js +1 -0
  466. package/dist/api/resources/knowledge/index.d.ts +2 -0
  467. package/dist/api/resources/knowledge/index.js +2 -0
  468. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +17 -0
  469. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
  470. package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +12 -0
  471. package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.js +4 -0
  472. package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +18 -0
  473. package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.js +4 -0
  474. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +22 -0
  475. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
  476. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +12 -0
  477. package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +8 -0
  478. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +14 -0
  479. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.js +4 -0
  480. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +11 -0
  481. package/dist/api/resources/knowledge/types/KnowledgeBaseVersionType.js +7 -0
  482. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
  483. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
  484. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +22 -0
  485. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
  486. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +24 -0
  487. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  488. package/dist/api/resources/knowledge/types/index.d.ts +10 -0
  489. package/dist/api/resources/knowledge/types/index.js +10 -0
  490. package/dist/api/resources/triggers/client/Client.d.ts +74 -0
  491. package/dist/api/resources/triggers/client/Client.js +300 -0
  492. package/dist/api/resources/triggers/client/index.d.ts +1 -0
  493. package/dist/api/resources/triggers/client/index.js +1 -0
  494. package/dist/api/resources/triggers/index.d.ts +2 -0
  495. package/dist/api/resources/triggers/index.js +2 -0
  496. package/dist/api/resources/triggers/types/EventTriggerBase.d.ts +10 -0
  497. package/dist/api/resources/triggers/types/EventTriggerBase.js +4 -0
  498. package/dist/api/resources/triggers/types/EventTriggerRequest.d.ts +18 -0
  499. package/dist/api/resources/triggers/types/EventTriggerRequest.js +4 -0
  500. package/dist/api/resources/triggers/types/EventTriggerResponse.d.ts +22 -0
  501. package/dist/api/resources/triggers/types/EventTriggerResponse.js +4 -0
  502. package/dist/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
  503. package/dist/api/resources/triggers/types/EventTriggerType.js +7 -0
  504. package/dist/api/resources/triggers/types/index.d.ts +4 -0
  505. package/dist/api/resources/triggers/types/index.js +4 -0
  506. package/dist/api/resources/users/client/Client.d.ts +64 -0
  507. package/dist/api/resources/users/client/Client.js +222 -0
  508. package/dist/api/resources/users/client/index.d.ts +1 -0
  509. package/dist/api/resources/users/client/index.js +1 -0
  510. package/dist/api/resources/users/index.d.ts +1 -0
  511. package/dist/api/resources/users/index.js +1 -0
  512. package/dist/core/auth/BasicAuth.d.ts +8 -0
  513. package/dist/core/auth/BasicAuth.js +23 -0
  514. package/dist/core/auth/BearerToken.d.ts +5 -0
  515. package/dist/core/auth/BearerToken.js +12 -0
  516. package/dist/core/auth/index.d.ts +2 -0
  517. package/dist/core/auth/index.js +2 -0
  518. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  519. package/dist/core/fetcher/APIResponse.js +1 -0
  520. package/dist/core/fetcher/Fetcher.d.ts +36 -0
  521. package/dist/core/fetcher/Fetcher.js +236 -0
  522. package/dist/core/fetcher/Supplier.d.ts +4 -0
  523. package/dist/core/fetcher/Supplier.js +19 -0
  524. package/dist/core/fetcher/getHeader.d.ts +1 -0
  525. package/dist/core/fetcher/getHeader.js +8 -0
  526. package/dist/core/fetcher/index.d.ts +5 -0
  527. package/dist/core/fetcher/index.js +3 -0
  528. package/dist/core/index.d.ts +5 -0
  529. package/dist/core/index.js +5 -0
  530. package/dist/core/runtime/index.d.ts +1 -0
  531. package/dist/core/runtime/index.js +1 -0
  532. package/dist/core/runtime/runtime.d.ts +8 -0
  533. package/dist/core/runtime/runtime.js +89 -0
  534. package/dist/core/schemas/Schema.d.ts +81 -0
  535. package/dist/core/schemas/Schema.js +18 -0
  536. package/dist/core/schemas/builders/date/date.d.ts +2 -0
  537. package/dist/core/schemas/builders/date/date.js +59 -0
  538. package/dist/core/schemas/builders/date/index.d.ts +1 -0
  539. package/dist/core/schemas/builders/date/index.js +1 -0
  540. package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
  541. package/dist/core/schemas/builders/enum/enum.js +35 -0
  542. package/dist/core/schemas/builders/enum/index.d.ts +1 -0
  543. package/dist/core/schemas/builders/enum/index.js +1 -0
  544. package/dist/core/schemas/builders/index.d.ts +13 -0
  545. package/dist/core/schemas/builders/index.js +13 -0
  546. package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
  547. package/dist/core/schemas/builders/lazy/index.js +2 -0
  548. package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
  549. package/dist/core/schemas/builders/lazy/lazy.js +30 -0
  550. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  551. package/dist/core/schemas/builders/lazy/lazyObject.js +17 -0
  552. package/dist/core/schemas/builders/list/index.d.ts +1 -0
  553. package/dist/core/schemas/builders/list/index.js +1 -0
  554. package/dist/core/schemas/builders/list/list.d.ts +2 -0
  555. package/dist/core/schemas/builders/list/list.js +64 -0
  556. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  557. package/dist/core/schemas/builders/literals/booleanLiteral.js +25 -0
  558. package/dist/core/schemas/builders/literals/index.d.ts +2 -0
  559. package/dist/core/schemas/builders/literals/index.js +2 -0
  560. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  561. package/dist/core/schemas/builders/literals/stringLiteral.js +25 -0
  562. package/dist/core/schemas/builders/object/index.d.ts +6 -0
  563. package/dist/core/schemas/builders/object/index.js +3 -0
  564. package/dist/core/schemas/builders/object/object.d.ts +3 -0
  565. package/dist/core/schemas/builders/object/object.js +249 -0
  566. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  567. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +4 -0
  568. package/dist/core/schemas/builders/object/property.d.ts +8 -0
  569. package/dist/core/schemas/builders/object/property.js +11 -0
  570. package/dist/core/schemas/builders/object/types.d.ts +26 -0
  571. package/dist/core/schemas/builders/object/types.js +1 -0
  572. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  573. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +58 -0
  574. package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
  575. package/dist/core/schemas/builders/object-like/index.js +1 -0
  576. package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
  577. package/dist/core/schemas/builders/object-like/types.js +1 -0
  578. package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
  579. package/dist/core/schemas/builders/primitives/any.js +3 -0
  580. package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
  581. package/dist/core/schemas/builders/primitives/boolean.js +22 -0
  582. package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
  583. package/dist/core/schemas/builders/primitives/index.js +5 -0
  584. package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
  585. package/dist/core/schemas/builders/primitives/number.js +22 -0
  586. package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
  587. package/dist/core/schemas/builders/primitives/string.js +22 -0
  588. package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
  589. package/dist/core/schemas/builders/primitives/unknown.js +3 -0
  590. package/dist/core/schemas/builders/record/index.d.ts +2 -0
  591. package/dist/core/schemas/builders/record/index.js +1 -0
  592. package/dist/core/schemas/builders/record/record.d.ts +3 -0
  593. package/dist/core/schemas/builders/record/record.js +102 -0
  594. package/dist/core/schemas/builders/record/types.d.ts +4 -0
  595. package/dist/core/schemas/builders/record/types.js +1 -0
  596. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  597. package/dist/core/schemas/builders/schema-utils/JsonError.js +8 -0
  598. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  599. package/dist/core/schemas/builders/schema-utils/ParseError.js +8 -0
  600. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  601. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +79 -0
  602. package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
  603. package/dist/core/schemas/builders/schema-utils/index.js +3 -0
  604. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  605. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +6 -0
  606. package/dist/core/schemas/builders/set/index.d.ts +1 -0
  607. package/dist/core/schemas/builders/set/index.js +1 -0
  608. package/dist/core/schemas/builders/set/set.d.ts +2 -0
  609. package/dist/core/schemas/builders/set/set.js +49 -0
  610. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  611. package/dist/core/schemas/builders/undiscriminated-union/index.js +1 -0
  612. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  613. package/dist/core/schemas/builders/undiscriminated-union/types.js +1 -0
  614. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  615. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +47 -0
  616. package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
  617. package/dist/core/schemas/builders/union/discriminant.js +6 -0
  618. package/dist/core/schemas/builders/union/index.d.ts +4 -0
  619. package/dist/core/schemas/builders/union/index.js +2 -0
  620. package/dist/core/schemas/builders/union/types.d.ts +13 -0
  621. package/dist/core/schemas/builders/union/types.js +1 -0
  622. package/dist/core/schemas/builders/union/union.d.ts +4 -0
  623. package/dist/core/schemas/builders/union/union.js +137 -0
  624. package/dist/core/schemas/index.d.ts +2 -0
  625. package/dist/core/schemas/index.js +1 -0
  626. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
  627. package/dist/core/schemas/utils/MaybePromise.js +1 -0
  628. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  629. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +1 -0
  630. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  631. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +12 -0
  632. package/dist/core/schemas/utils/entries.d.ts +1 -0
  633. package/dist/core/schemas/utils/entries.js +3 -0
  634. package/dist/core/schemas/utils/filterObject.d.ts +1 -0
  635. package/dist/core/schemas/utils/filterObject.js +10 -0
  636. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  637. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +20 -0
  638. package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
  639. package/dist/core/schemas/utils/isPlainObject.js +14 -0
  640. package/dist/core/schemas/utils/keys.d.ts +1 -0
  641. package/dist/core/schemas/utils/keys.js +3 -0
  642. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  643. package/dist/core/schemas/utils/maybeSkipValidation.js +33 -0
  644. package/dist/core/schemas/utils/partition.d.ts +1 -0
  645. package/dist/core/schemas/utils/partition.js +12 -0
  646. package/dist/core/streaming-fetcher/Stream.d.ts +48 -0
  647. package/dist/core/streaming-fetcher/Stream.js +165 -0
  648. package/dist/core/streaming-fetcher/index.d.ts +1 -0
  649. package/dist/core/streaming-fetcher/index.js +1 -0
  650. package/dist/environments.d.ts +8 -0
  651. package/dist/environments.js +7 -0
  652. package/dist/errors/MavenAGIError.d.ts +12 -0
  653. package/dist/errors/MavenAGIError.js +28 -0
  654. package/dist/errors/MavenAGITimeoutError.d.ts +6 -0
  655. package/dist/errors/MavenAGITimeoutError.js +9 -0
  656. package/dist/errors/index.d.ts +2 -0
  657. package/dist/errors/index.js +2 -0
  658. package/dist/index.d.ts +4 -0
  659. package/dist/index.js +4 -0
  660. package/dist/serialization/index.d.ts +1 -0
  661. package/dist/serialization/index.js +1 -0
  662. package/dist/serialization/resources/actions/index.d.ts +1 -0
  663. package/dist/serialization/resources/actions/index.js +1 -0
  664. package/dist/serialization/resources/actions/types/ActionBase.d.ts +19 -0
  665. package/dist/serialization/resources/actions/types/ActionBase.js +14 -0
  666. package/dist/serialization/resources/actions/types/ActionParameter.d.ts +15 -0
  667. package/dist/serialization/resources/actions/types/ActionParameter.js +10 -0
  668. package/dist/serialization/resources/actions/types/ActionRequest.d.ts +14 -0
  669. package/dist/serialization/resources/actions/types/ActionRequest.js +11 -0
  670. package/dist/serialization/resources/actions/types/ActionResponse.d.ts +14 -0
  671. package/dist/serialization/resources/actions/types/ActionResponse.js +11 -0
  672. package/dist/serialization/resources/actions/types/Preconditions.d.ts +12 -0
  673. package/dist/serialization/resources/actions/types/Preconditions.js +7 -0
  674. package/dist/serialization/resources/actions/types/index.d.ts +5 -0
  675. package/dist/serialization/resources/actions/types/index.js +5 -0
  676. package/dist/serialization/resources/commons/index.d.ts +1 -0
  677. package/dist/serialization/resources/commons/index.js +1 -0
  678. package/dist/serialization/resources/commons/types/AppUser.d.ts +15 -0
  679. package/dist/serialization/resources/commons/types/AppUser.js +10 -0
  680. package/dist/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
  681. package/dist/serialization/resources/commons/types/AppUserIdentification.js +8 -0
  682. package/dist/serialization/resources/commons/types/AppUserIdentifier.d.ts +14 -0
  683. package/dist/serialization/resources/commons/types/AppUserIdentifier.js +9 -0
  684. package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
  685. package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
  686. package/dist/serialization/resources/commons/types/AppUserRequest.d.ts +14 -0
  687. package/dist/serialization/resources/commons/types/AppUserRequest.js +11 -0
  688. package/dist/serialization/resources/commons/types/AppUserResponse.d.ts +14 -0
  689. package/dist/serialization/resources/commons/types/AppUserResponse.js +11 -0
  690. package/dist/serialization/resources/commons/types/EntityId.d.ts +17 -0
  691. package/dist/serialization/resources/commons/types/EntityId.js +14 -0
  692. package/dist/serialization/resources/commons/types/EntityIdBase.d.ts +12 -0
  693. package/dist/serialization/resources/commons/types/EntityIdBase.js +7 -0
  694. package/dist/serialization/resources/commons/types/EntityType.d.ts +10 -0
  695. package/dist/serialization/resources/commons/types/EntityType.js +15 -0
  696. package/dist/serialization/resources/commons/types/ErrorMessage.d.ts +12 -0
  697. package/dist/serialization/resources/commons/types/ErrorMessage.js +7 -0
  698. package/dist/serialization/resources/commons/types/Feedback.d.ts +17 -0
  699. package/dist/serialization/resources/commons/types/Feedback.js +12 -0
  700. package/dist/serialization/resources/commons/types/FeedbackType.d.ts +10 -0
  701. package/dist/serialization/resources/commons/types/FeedbackType.js +5 -0
  702. package/dist/serialization/resources/commons/types/User.d.ts +15 -0
  703. package/dist/serialization/resources/commons/types/User.js +10 -0
  704. package/dist/serialization/resources/commons/types/UserData.d.ts +14 -0
  705. package/dist/serialization/resources/commons/types/UserData.js +9 -0
  706. package/dist/serialization/resources/commons/types/VisibilityType.d.ts +10 -0
  707. package/dist/serialization/resources/commons/types/VisibilityType.js +5 -0
  708. package/dist/serialization/resources/commons/types/index.d.ts +15 -0
  709. package/dist/serialization/resources/commons/types/index.js +15 -0
  710. package/dist/serialization/resources/conversation/client/addConversationMetadata.d.ts +13 -0
  711. package/dist/serialization/resources/conversation/client/addConversationMetadata.js +6 -0
  712. package/dist/serialization/resources/conversation/client/appendNewMessages.d.ts +11 -0
  713. package/dist/serialization/resources/conversation/client/appendNewMessages.js +6 -0
  714. package/dist/serialization/resources/conversation/client/index.d.ts +2 -0
  715. package/dist/serialization/resources/conversation/client/index.js +2 -0
  716. package/dist/serialization/resources/conversation/index.d.ts +2 -0
  717. package/dist/serialization/resources/conversation/index.js +2 -0
  718. package/dist/serialization/resources/conversation/types/ActionFormField.d.ts +16 -0
  719. package/dist/serialization/resources/conversation/types/ActionFormField.js +11 -0
  720. package/dist/serialization/resources/conversation/types/AskRequest.d.ts +18 -0
  721. package/dist/serialization/resources/conversation/types/AskRequest.js +13 -0
  722. package/dist/serialization/resources/conversation/types/AskStreamEndEvent.d.ts +13 -0
  723. package/dist/serialization/resources/conversation/types/AskStreamEndEvent.js +8 -0
  724. package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +12 -0
  725. package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.js +6 -0
  726. package/dist/serialization/resources/conversation/types/AskStreamStartEvent.d.ts +13 -0
  727. package/dist/serialization/resources/conversation/types/AskStreamStartEvent.js +8 -0
  728. package/dist/serialization/resources/conversation/types/AskStreamTextEvent.d.ts +12 -0
  729. package/dist/serialization/resources/conversation/types/AskStreamTextEvent.js +7 -0
  730. package/dist/serialization/resources/conversation/types/BotActionFormResponse.d.ts +16 -0
  731. package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +11 -0
  732. package/dist/serialization/resources/conversation/types/BotConversationMessageType.d.ts +10 -0
  733. package/dist/serialization/resources/conversation/types/BotConversationMessageType.js +5 -0
  734. package/dist/serialization/resources/conversation/types/BotMessage.d.ts +20 -0
  735. package/dist/serialization/resources/conversation/types/BotMessage.js +17 -0
  736. package/dist/serialization/resources/conversation/types/BotResponse.d.ts +18 -0
  737. package/dist/serialization/resources/conversation/types/BotResponse.js +15 -0
  738. package/dist/serialization/resources/conversation/types/BotResponseMetadata.d.ts +14 -0
  739. package/dist/serialization/resources/conversation/types/BotResponseMetadata.js +9 -0
  740. package/dist/serialization/resources/conversation/types/BotTextResponse.d.ts +12 -0
  741. package/dist/serialization/resources/conversation/types/BotTextResponse.js +7 -0
  742. package/dist/serialization/resources/conversation/types/Capability.d.ts +10 -0
  743. package/dist/serialization/resources/conversation/types/Capability.js +5 -0
  744. package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +13 -0
  745. package/dist/serialization/resources/conversation/types/ConversationBase.js +8 -0
  746. package/dist/serialization/resources/conversation/types/ConversationContext.d.ts +20 -0
  747. package/dist/serialization/resources/conversation/types/ConversationContext.js +15 -0
  748. package/dist/serialization/resources/conversation/types/ConversationMessageBase.d.ts +13 -0
  749. package/dist/serialization/resources/conversation/types/ConversationMessageBase.js +8 -0
  750. package/dist/serialization/resources/conversation/types/ConversationMessageContext.d.ts +16 -0
  751. package/dist/serialization/resources/conversation/types/ConversationMessageContext.js +11 -0
  752. package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +14 -0
  753. package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +11 -0
  754. package/dist/serialization/resources/conversation/types/ConversationMessageResponse.d.ts +18 -0
  755. package/dist/serialization/resources/conversation/types/ConversationMessageResponse.js +15 -0
  756. package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +18 -0
  757. package/dist/serialization/resources/conversation/types/ConversationRequest.js +15 -0
  758. package/dist/serialization/resources/conversation/types/ConversationResponse.d.ts +18 -0
  759. package/dist/serialization/resources/conversation/types/ConversationResponse.js +15 -0
  760. package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +11 -0
  761. package/dist/serialization/resources/conversation/types/FeedbackRequest.js +5 -0
  762. package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +13 -0
  763. package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +8 -0
  764. package/dist/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
  765. package/dist/serialization/resources/conversation/types/ResponseConfig.js +11 -0
  766. package/dist/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
  767. package/dist/serialization/resources/conversation/types/ResponseLength.js +5 -0
  768. package/dist/serialization/resources/conversation/types/Source.d.ts +13 -0
  769. package/dist/serialization/resources/conversation/types/Source.js +8 -0
  770. package/dist/serialization/resources/conversation/types/StreamResponse.d.ts +26 -0
  771. package/dist/serialization/resources/conversation/types/StreamResponse.js +19 -0
  772. package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +15 -0
  773. package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +10 -0
  774. package/dist/serialization/resources/conversation/types/UserConversationMessageType.d.ts +10 -0
  775. package/dist/serialization/resources/conversation/types/UserConversationMessageType.js +5 -0
  776. package/dist/serialization/resources/conversation/types/UserMessage.d.ts +14 -0
  777. package/dist/serialization/resources/conversation/types/UserMessage.js +11 -0
  778. package/dist/serialization/resources/conversation/types/UserMessageBase.d.ts +15 -0
  779. package/dist/serialization/resources/conversation/types/UserMessageBase.js +12 -0
  780. package/dist/serialization/resources/conversation/types/index.d.ts +31 -0
  781. package/dist/serialization/resources/conversation/types/index.js +31 -0
  782. package/dist/serialization/resources/index.d.ts +10 -0
  783. package/dist/serialization/resources/index.js +10 -0
  784. package/dist/serialization/resources/knowledge/index.d.ts +1 -0
  785. package/dist/serialization/resources/knowledge/index.js +1 -0
  786. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +17 -0
  787. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +12 -0
  788. package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +15 -0
  789. package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +10 -0
  790. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.d.ts +14 -0
  791. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +11 -0
  792. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +14 -0
  793. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +11 -0
  794. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
  795. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +5 -0
  796. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +13 -0
  797. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +8 -0
  798. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +10 -0
  799. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +5 -0
  800. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
  801. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
  802. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +17 -0
  803. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +14 -0
  804. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +15 -0
  805. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +12 -0
  806. package/dist/serialization/resources/knowledge/types/index.d.ts +10 -0
  807. package/dist/serialization/resources/knowledge/types/index.js +10 -0
  808. package/dist/serialization/resources/triggers/index.d.ts +1 -0
  809. package/dist/serialization/resources/triggers/index.js +1 -0
  810. package/dist/serialization/resources/triggers/types/EventTriggerBase.d.ts +14 -0
  811. package/dist/serialization/resources/triggers/types/EventTriggerBase.js +9 -0
  812. package/dist/serialization/resources/triggers/types/EventTriggerRequest.d.ts +14 -0
  813. package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +11 -0
  814. package/dist/serialization/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
  815. package/dist/serialization/resources/triggers/types/EventTriggerResponse.js +11 -0
  816. package/dist/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
  817. package/dist/serialization/resources/triggers/types/EventTriggerType.js +5 -0
  818. package/dist/serialization/resources/triggers/types/index.d.ts +4 -0
  819. package/dist/serialization/resources/triggers/types/index.js +4 -0
  820. package/environments.d.ts +8 -0
  821. package/environments.js +7 -0
  822. package/errors/MavenAGIError.d.ts +12 -0
  823. package/errors/MavenAGIError.js +28 -0
  824. package/errors/MavenAGITimeoutError.d.ts +6 -0
  825. package/errors/MavenAGITimeoutError.js +9 -0
  826. package/errors/index.d.ts +2 -0
  827. package/errors/index.js +2 -0
  828. package/index.d.ts +4 -0
  829. package/index.js +4 -0
  830. package/jest.config.js +5 -0
  831. package/package.json +34 -0
  832. package/serialization/index.d.ts +1 -0
  833. package/serialization/index.js +1 -0
  834. package/serialization/resources/actions/index.d.ts +1 -0
  835. package/serialization/resources/actions/index.js +1 -0
  836. package/serialization/resources/actions/types/ActionBase.d.ts +19 -0
  837. package/serialization/resources/actions/types/ActionBase.js +14 -0
  838. package/serialization/resources/actions/types/ActionParameter.d.ts +15 -0
  839. package/serialization/resources/actions/types/ActionParameter.js +10 -0
  840. package/serialization/resources/actions/types/ActionRequest.d.ts +14 -0
  841. package/serialization/resources/actions/types/ActionRequest.js +11 -0
  842. package/serialization/resources/actions/types/ActionResponse.d.ts +14 -0
  843. package/serialization/resources/actions/types/ActionResponse.js +11 -0
  844. package/serialization/resources/actions/types/Preconditions.d.ts +12 -0
  845. package/serialization/resources/actions/types/Preconditions.js +7 -0
  846. package/serialization/resources/actions/types/index.d.ts +5 -0
  847. package/serialization/resources/actions/types/index.js +5 -0
  848. package/serialization/resources/commons/index.d.ts +1 -0
  849. package/serialization/resources/commons/index.js +1 -0
  850. package/serialization/resources/commons/types/AppUser.d.ts +15 -0
  851. package/serialization/resources/commons/types/AppUser.js +10 -0
  852. package/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
  853. package/serialization/resources/commons/types/AppUserIdentification.js +8 -0
  854. package/serialization/resources/commons/types/AppUserIdentifier.d.ts +14 -0
  855. package/serialization/resources/commons/types/AppUserIdentifier.js +9 -0
  856. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
  857. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
  858. package/serialization/resources/commons/types/AppUserRequest.d.ts +14 -0
  859. package/serialization/resources/commons/types/AppUserRequest.js +11 -0
  860. package/serialization/resources/commons/types/AppUserResponse.d.ts +14 -0
  861. package/serialization/resources/commons/types/AppUserResponse.js +11 -0
  862. package/serialization/resources/commons/types/EntityId.d.ts +17 -0
  863. package/serialization/resources/commons/types/EntityId.js +14 -0
  864. package/serialization/resources/commons/types/EntityIdBase.d.ts +12 -0
  865. package/serialization/resources/commons/types/EntityIdBase.js +7 -0
  866. package/serialization/resources/commons/types/EntityType.d.ts +10 -0
  867. package/serialization/resources/commons/types/EntityType.js +15 -0
  868. package/serialization/resources/commons/types/ErrorMessage.d.ts +12 -0
  869. package/serialization/resources/commons/types/ErrorMessage.js +7 -0
  870. package/serialization/resources/commons/types/Feedback.d.ts +17 -0
  871. package/serialization/resources/commons/types/Feedback.js +12 -0
  872. package/serialization/resources/commons/types/FeedbackType.d.ts +10 -0
  873. package/serialization/resources/commons/types/FeedbackType.js +5 -0
  874. package/serialization/resources/commons/types/User.d.ts +15 -0
  875. package/serialization/resources/commons/types/User.js +10 -0
  876. package/serialization/resources/commons/types/UserData.d.ts +14 -0
  877. package/serialization/resources/commons/types/UserData.js +9 -0
  878. package/serialization/resources/commons/types/VisibilityType.d.ts +10 -0
  879. package/serialization/resources/commons/types/VisibilityType.js +5 -0
  880. package/serialization/resources/commons/types/index.d.ts +15 -0
  881. package/serialization/resources/commons/types/index.js +15 -0
  882. package/serialization/resources/conversation/client/addConversationMetadata.d.ts +13 -0
  883. package/serialization/resources/conversation/client/addConversationMetadata.js +6 -0
  884. package/serialization/resources/conversation/client/appendNewMessages.d.ts +11 -0
  885. package/serialization/resources/conversation/client/appendNewMessages.js +6 -0
  886. package/serialization/resources/conversation/client/index.d.ts +2 -0
  887. package/serialization/resources/conversation/client/index.js +2 -0
  888. package/serialization/resources/conversation/index.d.ts +2 -0
  889. package/serialization/resources/conversation/index.js +2 -0
  890. package/serialization/resources/conversation/types/ActionFormField.d.ts +16 -0
  891. package/serialization/resources/conversation/types/ActionFormField.js +11 -0
  892. package/serialization/resources/conversation/types/AskRequest.d.ts +18 -0
  893. package/serialization/resources/conversation/types/AskRequest.js +13 -0
  894. package/serialization/resources/conversation/types/AskStreamEndEvent.d.ts +13 -0
  895. package/serialization/resources/conversation/types/AskStreamEndEvent.js +8 -0
  896. package/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +12 -0
  897. package/serialization/resources/conversation/types/AskStreamMetadataEvent.js +6 -0
  898. package/serialization/resources/conversation/types/AskStreamStartEvent.d.ts +13 -0
  899. package/serialization/resources/conversation/types/AskStreamStartEvent.js +8 -0
  900. package/serialization/resources/conversation/types/AskStreamTextEvent.d.ts +12 -0
  901. package/serialization/resources/conversation/types/AskStreamTextEvent.js +7 -0
  902. package/serialization/resources/conversation/types/BotActionFormResponse.d.ts +16 -0
  903. package/serialization/resources/conversation/types/BotActionFormResponse.js +11 -0
  904. package/serialization/resources/conversation/types/BotConversationMessageType.d.ts +10 -0
  905. package/serialization/resources/conversation/types/BotConversationMessageType.js +5 -0
  906. package/serialization/resources/conversation/types/BotMessage.d.ts +20 -0
  907. package/serialization/resources/conversation/types/BotMessage.js +17 -0
  908. package/serialization/resources/conversation/types/BotResponse.d.ts +18 -0
  909. package/serialization/resources/conversation/types/BotResponse.js +15 -0
  910. package/serialization/resources/conversation/types/BotResponseMetadata.d.ts +14 -0
  911. package/serialization/resources/conversation/types/BotResponseMetadata.js +9 -0
  912. package/serialization/resources/conversation/types/BotTextResponse.d.ts +12 -0
  913. package/serialization/resources/conversation/types/BotTextResponse.js +7 -0
  914. package/serialization/resources/conversation/types/Capability.d.ts +10 -0
  915. package/serialization/resources/conversation/types/Capability.js +5 -0
  916. package/serialization/resources/conversation/types/ConversationBase.d.ts +13 -0
  917. package/serialization/resources/conversation/types/ConversationBase.js +8 -0
  918. package/serialization/resources/conversation/types/ConversationContext.d.ts +20 -0
  919. package/serialization/resources/conversation/types/ConversationContext.js +15 -0
  920. package/serialization/resources/conversation/types/ConversationMessageBase.d.ts +13 -0
  921. package/serialization/resources/conversation/types/ConversationMessageBase.js +8 -0
  922. package/serialization/resources/conversation/types/ConversationMessageContext.d.ts +16 -0
  923. package/serialization/resources/conversation/types/ConversationMessageContext.js +11 -0
  924. package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +14 -0
  925. package/serialization/resources/conversation/types/ConversationMessageRequest.js +11 -0
  926. package/serialization/resources/conversation/types/ConversationMessageResponse.d.ts +18 -0
  927. package/serialization/resources/conversation/types/ConversationMessageResponse.js +15 -0
  928. package/serialization/resources/conversation/types/ConversationRequest.d.ts +18 -0
  929. package/serialization/resources/conversation/types/ConversationRequest.js +15 -0
  930. package/serialization/resources/conversation/types/ConversationResponse.d.ts +18 -0
  931. package/serialization/resources/conversation/types/ConversationResponse.js +15 -0
  932. package/serialization/resources/conversation/types/FeedbackRequest.d.ts +11 -0
  933. package/serialization/resources/conversation/types/FeedbackRequest.js +5 -0
  934. package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +13 -0
  935. package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +8 -0
  936. package/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
  937. package/serialization/resources/conversation/types/ResponseConfig.js +11 -0
  938. package/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
  939. package/serialization/resources/conversation/types/ResponseLength.js +5 -0
  940. package/serialization/resources/conversation/types/Source.d.ts +13 -0
  941. package/serialization/resources/conversation/types/Source.js +8 -0
  942. package/serialization/resources/conversation/types/StreamResponse.d.ts +26 -0
  943. package/serialization/resources/conversation/types/StreamResponse.js +19 -0
  944. package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +15 -0
  945. package/serialization/resources/conversation/types/SubmitActionFormRequest.js +10 -0
  946. package/serialization/resources/conversation/types/UserConversationMessageType.d.ts +10 -0
  947. package/serialization/resources/conversation/types/UserConversationMessageType.js +5 -0
  948. package/serialization/resources/conversation/types/UserMessage.d.ts +14 -0
  949. package/serialization/resources/conversation/types/UserMessage.js +11 -0
  950. package/serialization/resources/conversation/types/UserMessageBase.d.ts +15 -0
  951. package/serialization/resources/conversation/types/UserMessageBase.js +12 -0
  952. package/serialization/resources/conversation/types/index.d.ts +31 -0
  953. package/serialization/resources/conversation/types/index.js +31 -0
  954. package/serialization/resources/index.d.ts +10 -0
  955. package/serialization/resources/index.js +10 -0
  956. package/serialization/resources/knowledge/index.d.ts +1 -0
  957. package/serialization/resources/knowledge/index.js +1 -0
  958. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +17 -0
  959. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +12 -0
  960. package/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +15 -0
  961. package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +10 -0
  962. package/serialization/resources/knowledge/types/KnowledgeBaseRequest.d.ts +14 -0
  963. package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +11 -0
  964. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +14 -0
  965. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +11 -0
  966. package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
  967. package/serialization/resources/knowledge/types/KnowledgeBaseType.js +5 -0
  968. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +13 -0
  969. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +8 -0
  970. package/serialization/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +10 -0
  971. package/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +5 -0
  972. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
  973. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
  974. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +17 -0
  975. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +14 -0
  976. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +15 -0
  977. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +12 -0
  978. package/serialization/resources/knowledge/types/index.d.ts +10 -0
  979. package/serialization/resources/knowledge/types/index.js +10 -0
  980. package/serialization/resources/triggers/index.d.ts +1 -0
  981. package/serialization/resources/triggers/index.js +1 -0
  982. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +14 -0
  983. package/serialization/resources/triggers/types/EventTriggerBase.js +9 -0
  984. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +14 -0
  985. package/serialization/resources/triggers/types/EventTriggerRequest.js +11 -0
  986. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
  987. package/serialization/resources/triggers/types/EventTriggerResponse.js +11 -0
  988. package/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
  989. package/serialization/resources/triggers/types/EventTriggerType.js +5 -0
  990. package/serialization/resources/triggers/types/index.d.ts +4 -0
  991. package/serialization/resources/triggers/types/index.js +4 -0
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BaseKnowledgeDocument {
5
+ /** The title of the document. Will be shown as part of answers. */
6
+ title: string;
7
+ /** The URL of the document. Should be visible to end users. Will be shown as part of answers. Not used for crawling. */
8
+ url?: string;
9
+ /** The document language. Must be a valid ISO 639-1 language code. */
10
+ language?: string;
11
+ /** The time at which this document was created. */
12
+ createdAt?: Date;
13
+ /** The time at which this document was last modified. */
14
+ updatedAt?: Date;
15
+ /** The name of the author who created this document. */
16
+ author?: string;
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface KnowledgeBaseProperties {
6
+ /** The name of the knowledge base */
7
+ name: string;
8
+ /** The type of the knowledge base. Can not be changed once created. */
9
+ type: MavenAGI.KnowledgeBaseType;
10
+ /** The URL to pull content from for RSS and URL knowledge bases. */
11
+ url?: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * knowledgeBaseId: {
9
+ * referenceId: "help-center"
10
+ * },
11
+ * name: "Help center",
12
+ * type: MavenAGI.KnowledgeBaseType.Api
13
+ * }
14
+ */
15
+ export interface KnowledgeBaseRequest extends MavenAGI.KnowledgeBaseProperties {
16
+ /** ID that uniquely identifies this knowledge base */
17
+ knowledgeBaseId: MavenAGI.EntityIdBase;
18
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * knowledgeBaseId: {
9
+ * referenceId: "help-center",
10
+ * appId: "readme",
11
+ * organizationId: "acme",
12
+ * agentId: "support",
13
+ * type: MavenAGI.EntityType.KnowledgeBase
14
+ * },
15
+ * name: "Help center",
16
+ * type: MavenAGI.KnowledgeBaseType.Api
17
+ * }
18
+ */
19
+ export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties {
20
+ /** ID that uniquely identifies this knowledge base */
21
+ knowledgeBaseId: MavenAGI.EntityId;
22
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * API knowledge bases are managed by a Maven App. URL knowledge bases will start a web crawl of the provided URL. RSS knowledge bases will parse documents from the RSS returned from the provided URL.
6
+ */
7
+ export declare type KnowledgeBaseType = "API" | "URL" | "RSS";
8
+ export declare const KnowledgeBaseType: {
9
+ readonly Api: "API";
10
+ readonly Url: "URL";
11
+ readonly Rss: "RSS";
12
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const KnowledgeBaseType = {
5
+ Api: "API",
6
+ Url: "URL",
7
+ Rss: "RSS",
8
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * type: MavenAGI.KnowledgeBaseVersionType.Full
9
+ * }
10
+ */
11
+ export interface KnowledgeBaseVersion {
12
+ /** Indicates whether the completed version constitutes a full or partial refresh of the knowledge base. Deleting and updating documents is only supported for partial refreshes. */
13
+ type: MavenAGI.KnowledgeBaseVersionType;
14
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The type of knowledge base version
6
+ */
7
+ export declare type KnowledgeBaseVersionType = "FULL" | "PARTIAL";
8
+ export declare const KnowledgeBaseVersionType: {
9
+ readonly Full: "FULL";
10
+ readonly Partial: "PARTIAL";
11
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const KnowledgeBaseVersionType = {
5
+ Full: "FULL",
6
+ Partial: "PARTIAL",
7
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The type of the knowledge document content. Markdown preferred.
6
+ */
7
+ export declare type KnowledgeDocumentContentType = "HTML" | "MARKDOWN";
8
+ export declare const KnowledgeDocumentContentType: {
9
+ readonly Html: "HTML";
10
+ readonly Markdown: "MARKDOWN";
11
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const KnowledgeDocumentContentType = {
5
+ Html: "HTML",
6
+ Markdown: "MARKDOWN",
7
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * knowledgeDocumentId: {
9
+ * referenceId: "getting-started"
10
+ * },
11
+ * contentType: MavenAGI.KnowledgeDocumentContentType.Markdown,
12
+ * content: "## Getting started\\nThis is a getting started guide for the help center.",
13
+ * title: "Getting started"
14
+ * }
15
+ */
16
+ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument {
17
+ /** ID that uniquely identifies this knowledge document within its knowledge base */
18
+ knowledgeDocumentId: MavenAGI.EntityIdBase;
19
+ contentType: MavenAGI.KnowledgeDocumentContentType;
20
+ /** The content of the document. Not shown directly to users. May be provided in HTML or markdown. HTML will be converted to markdown automatically. Images are not currently supported and will be ignored. */
21
+ content: string;
22
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * knowledgeDocumentId: {
9
+ * referenceId: "getting-started",
10
+ * appId: "readme",
11
+ * organizationId: "acme",
12
+ * agentId: "support",
13
+ * type: MavenAGI.EntityType.KnowledgeDocument
14
+ * },
15
+ * content: "## Getting started This is a getting started guide for the help center.",
16
+ * title: "Getting started"
17
+ * }
18
+ */
19
+ export interface KnowledgeDocumentResponse extends MavenAGI.BaseKnowledgeDocument {
20
+ /** ID that uniquely identifies this knowledge document within its knowledge base */
21
+ knowledgeDocumentId: MavenAGI.EntityId;
22
+ /** The content of the document in markdown format. Not shown directly to users. */
23
+ content: string;
24
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ export * from "./KnowledgeBaseProperties";
2
+ export * from "./KnowledgeBaseType";
3
+ export * from "./KnowledgeBaseRequest";
4
+ export * from "./KnowledgeBaseResponse";
5
+ export * from "./KnowledgeBaseVersion";
6
+ export * from "./KnowledgeBaseVersionType";
7
+ export * from "./BaseKnowledgeDocument";
8
+ export * from "./KnowledgeDocumentContentType";
9
+ export * from "./KnowledgeDocumentRequest";
10
+ export * from "./KnowledgeDocumentResponse";
@@ -0,0 +1,10 @@
1
+ export * from "./KnowledgeBaseProperties";
2
+ export * from "./KnowledgeBaseType";
3
+ export * from "./KnowledgeBaseRequest";
4
+ export * from "./KnowledgeBaseResponse";
5
+ export * from "./KnowledgeBaseVersion";
6
+ export * from "./KnowledgeBaseVersionType";
7
+ export * from "./BaseKnowledgeDocument";
8
+ export * from "./KnowledgeDocumentContentType";
9
+ export * from "./KnowledgeDocumentRequest";
10
+ export * from "./KnowledgeDocumentResponse";
@@ -0,0 +1,74 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as MavenAGI from "../../../index";
7
+ export declare namespace Triggers {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
10
+ appId?: core.Supplier<string | undefined>;
11
+ appSecret?: core.Supplier<string | undefined>;
12
+ organizationId: core.Supplier<string>;
13
+ agentId: core.Supplier<string>;
14
+ fetcher?: core.FetchFunction;
15
+ }
16
+ interface RequestOptions {
17
+ timeoutInSeconds?: number;
18
+ maxRetries?: number;
19
+ abortSignal?: AbortSignal;
20
+ }
21
+ }
22
+ export declare class Triggers {
23
+ protected readonly _options: Triggers.Options;
24
+ constructor(_options: Triggers.Options);
25
+ /**
26
+ * Update an event trigger or create it if it doesn't exist.
27
+ *
28
+ * @param {MavenAGI.EventTriggerRequest} request
29
+ * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @throws {@link MavenAGI.NotFoundError}
32
+ * @throws {@link MavenAGI.BadRequestError}
33
+ * @throws {@link MavenAGI.ServerError}
34
+ *
35
+ * @example
36
+ * await client.triggers.createOrUpdate({
37
+ * triggerId: {
38
+ * referenceId: "store-in-snowflake"
39
+ * },
40
+ * description: "Stores conversation data in Snowflake",
41
+ * type: MavenAGI.EventTriggerType.ConversationCreated
42
+ * })
43
+ */
44
+ createOrUpdate(request: MavenAGI.EventTriggerRequest, requestOptions?: Triggers.RequestOptions): Promise<MavenAGI.EventTriggerResponse>;
45
+ /**
46
+ * Get an event trigger by its supplied ID
47
+ *
48
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
49
+ * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @throws {@link MavenAGI.NotFoundError}
52
+ * @throws {@link MavenAGI.BadRequestError}
53
+ * @throws {@link MavenAGI.ServerError}
54
+ *
55
+ * @example
56
+ * await client.triggers.get("store-in-snowflake")
57
+ */
58
+ get(triggerReferenceId: string, requestOptions?: Triggers.RequestOptions): Promise<MavenAGI.EventTriggerResponse>;
59
+ /**
60
+ * Delete an event trigger
61
+ *
62
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
63
+ * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link MavenAGI.NotFoundError}
66
+ * @throws {@link MavenAGI.BadRequestError}
67
+ * @throws {@link MavenAGI.ServerError}
68
+ *
69
+ * @example
70
+ * await client.triggers.delete("store-in-snowflake")
71
+ */
72
+ delete(triggerReferenceId: string, requestOptions?: Triggers.RequestOptions): Promise<void>;
73
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
74
+ }
@@ -0,0 +1,300 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../environments";
14
+ import * as core from "../../../../core";
15
+ import * as MavenAGI from "../../../index";
16
+ import * as serializers from "../../../../serialization/index";
17
+ import urlJoin from "url-join";
18
+ import * as errors from "../../../../errors/index";
19
+ export class Triggers {
20
+ constructor(_options) {
21
+ this._options = _options;
22
+ }
23
+ /**
24
+ * Update an event trigger or create it if it doesn't exist.
25
+ *
26
+ * @param {MavenAGI.EventTriggerRequest} request
27
+ * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link MavenAGI.NotFoundError}
30
+ * @throws {@link MavenAGI.BadRequestError}
31
+ * @throws {@link MavenAGI.ServerError}
32
+ *
33
+ * @example
34
+ * await client.triggers.createOrUpdate({
35
+ * triggerId: {
36
+ * referenceId: "store-in-snowflake"
37
+ * },
38
+ * description: "Stores conversation data in Snowflake",
39
+ * type: MavenAGI.EventTriggerType.ConversationCreated
40
+ * })
41
+ */
42
+ createOrUpdate(request, requestOptions) {
43
+ var _a, _b;
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
46
+ url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/triggers"),
47
+ method: "PUT",
48
+ headers: {
49
+ Authorization: yield this._getAuthorizationHeader(),
50
+ "X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
51
+ "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
+ "X-Fern-Language": "JavaScript",
53
+ "X-Fern-SDK-Name": "mavenagi",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.11",
55
+ "X-Fern-Runtime": core.RUNTIME.type,
56
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
57
+ },
58
+ contentType: "application/json",
59
+ body: yield serializers.EventTriggerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
60
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
61
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
62
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
63
+ });
64
+ if (_response.ok) {
65
+ return yield serializers.EventTriggerResponse.parseOrThrow(_response.body, {
66
+ unrecognizedObjectKeys: "passthrough",
67
+ allowUnrecognizedUnionMembers: true,
68
+ allowUnrecognizedEnumValues: true,
69
+ breadcrumbsPrefix: ["response"],
70
+ });
71
+ }
72
+ if (_response.error.reason === "status-code") {
73
+ switch (_response.error.statusCode) {
74
+ case 404:
75
+ throw new MavenAGI.NotFoundError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
76
+ unrecognizedObjectKeys: "passthrough",
77
+ allowUnrecognizedUnionMembers: true,
78
+ allowUnrecognizedEnumValues: true,
79
+ breadcrumbsPrefix: ["response"],
80
+ }));
81
+ case 400:
82
+ throw new MavenAGI.BadRequestError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
83
+ unrecognizedObjectKeys: "passthrough",
84
+ allowUnrecognizedUnionMembers: true,
85
+ allowUnrecognizedEnumValues: true,
86
+ breadcrumbsPrefix: ["response"],
87
+ }));
88
+ case 500:
89
+ throw new MavenAGI.ServerError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
90
+ unrecognizedObjectKeys: "passthrough",
91
+ allowUnrecognizedUnionMembers: true,
92
+ allowUnrecognizedEnumValues: true,
93
+ breadcrumbsPrefix: ["response"],
94
+ }));
95
+ default:
96
+ throw new errors.MavenAGIError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.body,
99
+ });
100
+ }
101
+ }
102
+ switch (_response.error.reason) {
103
+ case "non-json":
104
+ throw new errors.MavenAGIError({
105
+ statusCode: _response.error.statusCode,
106
+ body: _response.error.rawBody,
107
+ });
108
+ case "timeout":
109
+ throw new errors.MavenAGITimeoutError();
110
+ case "unknown":
111
+ throw new errors.MavenAGIError({
112
+ message: _response.error.errorMessage,
113
+ });
114
+ }
115
+ });
116
+ }
117
+ /**
118
+ * Get an event trigger by its supplied ID
119
+ *
120
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
121
+ * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
122
+ *
123
+ * @throws {@link MavenAGI.NotFoundError}
124
+ * @throws {@link MavenAGI.BadRequestError}
125
+ * @throws {@link MavenAGI.ServerError}
126
+ *
127
+ * @example
128
+ * await client.triggers.get("store-in-snowflake")
129
+ */
130
+ get(triggerReferenceId, requestOptions) {
131
+ var _a, _b;
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
134
+ url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/triggers/${encodeURIComponent(triggerReferenceId)}`),
135
+ method: "GET",
136
+ headers: {
137
+ Authorization: yield this._getAuthorizationHeader(),
138
+ "X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
139
+ "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
140
+ "X-Fern-Language": "JavaScript",
141
+ "X-Fern-SDK-Name": "mavenagi",
142
+ "X-Fern-SDK-Version": "0.0.0-alpha.11",
143
+ "X-Fern-Runtime": core.RUNTIME.type,
144
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
145
+ },
146
+ contentType: "application/json",
147
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
148
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
149
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
150
+ });
151
+ if (_response.ok) {
152
+ return yield serializers.EventTriggerResponse.parseOrThrow(_response.body, {
153
+ unrecognizedObjectKeys: "passthrough",
154
+ allowUnrecognizedUnionMembers: true,
155
+ allowUnrecognizedEnumValues: true,
156
+ breadcrumbsPrefix: ["response"],
157
+ });
158
+ }
159
+ if (_response.error.reason === "status-code") {
160
+ switch (_response.error.statusCode) {
161
+ case 404:
162
+ throw new MavenAGI.NotFoundError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
163
+ unrecognizedObjectKeys: "passthrough",
164
+ allowUnrecognizedUnionMembers: true,
165
+ allowUnrecognizedEnumValues: true,
166
+ breadcrumbsPrefix: ["response"],
167
+ }));
168
+ case 400:
169
+ throw new MavenAGI.BadRequestError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
170
+ unrecognizedObjectKeys: "passthrough",
171
+ allowUnrecognizedUnionMembers: true,
172
+ allowUnrecognizedEnumValues: true,
173
+ breadcrumbsPrefix: ["response"],
174
+ }));
175
+ case 500:
176
+ throw new MavenAGI.ServerError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
177
+ unrecognizedObjectKeys: "passthrough",
178
+ allowUnrecognizedUnionMembers: true,
179
+ allowUnrecognizedEnumValues: true,
180
+ breadcrumbsPrefix: ["response"],
181
+ }));
182
+ default:
183
+ throw new errors.MavenAGIError({
184
+ statusCode: _response.error.statusCode,
185
+ body: _response.error.body,
186
+ });
187
+ }
188
+ }
189
+ switch (_response.error.reason) {
190
+ case "non-json":
191
+ throw new errors.MavenAGIError({
192
+ statusCode: _response.error.statusCode,
193
+ body: _response.error.rawBody,
194
+ });
195
+ case "timeout":
196
+ throw new errors.MavenAGITimeoutError();
197
+ case "unknown":
198
+ throw new errors.MavenAGIError({
199
+ message: _response.error.errorMessage,
200
+ });
201
+ }
202
+ });
203
+ }
204
+ /**
205
+ * Delete an event trigger
206
+ *
207
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
208
+ * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
209
+ *
210
+ * @throws {@link MavenAGI.NotFoundError}
211
+ * @throws {@link MavenAGI.BadRequestError}
212
+ * @throws {@link MavenAGI.ServerError}
213
+ *
214
+ * @example
215
+ * await client.triggers.delete("store-in-snowflake")
216
+ */
217
+ delete(triggerReferenceId, requestOptions) {
218
+ var _a, _b;
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
221
+ url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/triggers/${encodeURIComponent(triggerReferenceId)}`),
222
+ method: "DELETE",
223
+ headers: {
224
+ Authorization: yield this._getAuthorizationHeader(),
225
+ "X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
226
+ "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
227
+ "X-Fern-Language": "JavaScript",
228
+ "X-Fern-SDK-Name": "mavenagi",
229
+ "X-Fern-SDK-Version": "0.0.0-alpha.11",
230
+ "X-Fern-Runtime": core.RUNTIME.type,
231
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
232
+ },
233
+ contentType: "application/json",
234
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
235
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
236
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
237
+ });
238
+ if (_response.ok) {
239
+ return;
240
+ }
241
+ if (_response.error.reason === "status-code") {
242
+ switch (_response.error.statusCode) {
243
+ case 404:
244
+ throw new MavenAGI.NotFoundError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
245
+ unrecognizedObjectKeys: "passthrough",
246
+ allowUnrecognizedUnionMembers: true,
247
+ allowUnrecognizedEnumValues: true,
248
+ breadcrumbsPrefix: ["response"],
249
+ }));
250
+ case 400:
251
+ throw new MavenAGI.BadRequestError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
252
+ unrecognizedObjectKeys: "passthrough",
253
+ allowUnrecognizedUnionMembers: true,
254
+ allowUnrecognizedEnumValues: true,
255
+ breadcrumbsPrefix: ["response"],
256
+ }));
257
+ case 500:
258
+ throw new MavenAGI.ServerError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
259
+ unrecognizedObjectKeys: "passthrough",
260
+ allowUnrecognizedUnionMembers: true,
261
+ allowUnrecognizedEnumValues: true,
262
+ breadcrumbsPrefix: ["response"],
263
+ }));
264
+ default:
265
+ throw new errors.MavenAGIError({
266
+ statusCode: _response.error.statusCode,
267
+ body: _response.error.body,
268
+ });
269
+ }
270
+ }
271
+ switch (_response.error.reason) {
272
+ case "non-json":
273
+ throw new errors.MavenAGIError({
274
+ statusCode: _response.error.statusCode,
275
+ body: _response.error.rawBody,
276
+ });
277
+ case "timeout":
278
+ throw new errors.MavenAGITimeoutError();
279
+ case "unknown":
280
+ throw new errors.MavenAGIError({
281
+ message: _response.error.errorMessage,
282
+ });
283
+ }
284
+ });
285
+ }
286
+ _getAuthorizationHeader() {
287
+ var _a, _b;
288
+ return __awaiter(this, void 0, void 0, function* () {
289
+ const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
290
+ const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
291
+ if (appId != null && appSecret != null) {
292
+ return core.BasicAuth.toAuthorizationHeader({
293
+ username: appId,
294
+ password: appSecret,
295
+ });
296
+ }
297
+ return undefined;
298
+ });
299
+ }
300
+ }
@@ -0,0 +1 @@
1
+ export {};