vellum-ai 0.0.45 → 0.1.0

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 (349) hide show
  1. package/Client.d.ts +23 -26
  2. package/Client.js +288 -242
  3. package/api/resources/deployments/client/Client.d.ts +8 -4
  4. package/api/resources/deployments/client/Client.js +52 -34
  5. package/api/resources/documentIndexes/client/Client.d.ts +9 -5
  6. package/api/resources/documentIndexes/client/Client.js +97 -69
  7. package/api/resources/documents/client/Client.d.ts +14 -10
  8. package/api/resources/documents/client/Client.js +222 -176
  9. package/api/resources/modelVersions/client/Client.d.ts +9 -5
  10. package/api/resources/modelVersions/client/Client.js +96 -68
  11. package/api/resources/registeredPrompts/client/Client.d.ts +11 -7
  12. package/api/resources/registeredPrompts/client/Client.js +72 -53
  13. package/api/resources/sandboxes/client/Client.d.ts +9 -5
  14. package/api/resources/sandboxes/client/Client.js +92 -65
  15. package/api/resources/testSuites/client/Client.d.ts +9 -5
  16. package/api/resources/testSuites/client/Client.js +90 -63
  17. package/core/fetcher/Fetcher.d.ts +5 -3
  18. package/core/fetcher/Fetcher.js +104 -62
  19. package/core/fetcher/Supplier.js +11 -2
  20. package/core/fetcher/index.d.ts +3 -2
  21. package/core/form-data-utils/getFormDataContentLength.d.ts +1 -1
  22. package/core/form-data-utils/getFormDataContentLength.js +20 -9
  23. package/core/index.d.ts +1 -2
  24. package/core/index.js +4 -5
  25. package/core/schemas/Schema.d.ts +19 -0
  26. package/core/schemas/Schema.js +1 -0
  27. package/core/schemas/builders/date/date.js +22 -14
  28. package/core/schemas/builders/enum/enum.js +17 -7
  29. package/core/schemas/builders/lazy/index.d.ts +2 -1
  30. package/core/schemas/builders/lazy/lazy.js +21 -13
  31. package/core/schemas/builders/lazy/lazyObject.js +11 -11
  32. package/core/schemas/builders/list/list.js +53 -38
  33. package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  34. package/core/schemas/builders/literals/booleanLiteral.js +29 -0
  35. package/core/schemas/builders/literals/index.d.ts +1 -0
  36. package/core/schemas/builders/literals/index.js +3 -1
  37. package/core/schemas/builders/literals/stringLiteral.js +4 -3
  38. package/core/schemas/builders/object/index.d.ts +5 -2
  39. package/core/schemas/builders/object/index.js +3 -1
  40. package/core/schemas/builders/object/object.js +150 -129
  41. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  42. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  43. package/core/schemas/builders/object-like/getObjectLikeUtils.js +19 -18
  44. package/core/schemas/builders/object-like/index.d.ts +1 -1
  45. package/core/schemas/builders/primitives/boolean.js +4 -3
  46. package/core/schemas/builders/primitives/number.js +4 -3
  47. package/core/schemas/builders/primitives/string.js +4 -3
  48. package/core/schemas/builders/record/index.d.ts +1 -1
  49. package/core/schemas/builders/record/record.js +82 -67
  50. package/core/schemas/builders/schema-utils/JsonError.js +0 -1
  51. package/core/schemas/builders/schema-utils/ParseError.js +0 -1
  52. package/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
  53. package/core/schemas/builders/schema-utils/index.d.ts +2 -1
  54. package/core/schemas/builders/set/set.js +21 -12
  55. package/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
  56. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +38 -24
  57. package/core/schemas/builders/union/index.d.ts +3 -2
  58. package/core/schemas/builders/union/union.js +95 -74
  59. package/core/schemas/index.d.ts +1 -1
  60. package/core/schemas/utils/createIdentitySchemaCreator.js +2 -4
  61. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  62. package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
  63. package/core/schemas/utils/isPlainObject.d.ts +0 -1
  64. package/core/schemas/utils/isPlainObject.js +1 -2
  65. package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  66. package/core/schemas/utils/maybeSkipValidation.js +37 -0
  67. package/core/streaming-fetcher/Stream.d.ts +14 -0
  68. package/core/streaming-fetcher/Stream.js +75 -0
  69. package/core/streaming-fetcher/StreamingFetcher.d.ts +10 -8
  70. package/core/streaming-fetcher/StreamingFetcher.js +38 -44
  71. package/core/streaming-fetcher/getHeader.d.ts +2 -0
  72. package/core/streaming-fetcher/getHeader.js +12 -0
  73. package/core/streaming-fetcher/index.d.ts +4 -1
  74. package/core/streaming-fetcher/index.js +5 -1
  75. package/dist/Client.d.ts +23 -26
  76. package/dist/Client.js +288 -242
  77. package/dist/api/resources/deployments/client/Client.d.ts +8 -4
  78. package/dist/api/resources/deployments/client/Client.js +52 -34
  79. package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -5
  80. package/dist/api/resources/documentIndexes/client/Client.js +97 -69
  81. package/dist/api/resources/documents/client/Client.d.ts +14 -10
  82. package/dist/api/resources/documents/client/Client.js +222 -176
  83. package/dist/api/resources/modelVersions/client/Client.d.ts +9 -5
  84. package/dist/api/resources/modelVersions/client/Client.js +96 -68
  85. package/dist/api/resources/registeredPrompts/client/Client.d.ts +11 -7
  86. package/dist/api/resources/registeredPrompts/client/Client.js +72 -53
  87. package/dist/api/resources/sandboxes/client/Client.d.ts +9 -5
  88. package/dist/api/resources/sandboxes/client/Client.js +92 -65
  89. package/dist/api/resources/testSuites/client/Client.d.ts +9 -5
  90. package/dist/api/resources/testSuites/client/Client.js +90 -63
  91. package/dist/core/fetcher/Fetcher.d.ts +5 -3
  92. package/dist/core/fetcher/Fetcher.js +104 -62
  93. package/dist/core/fetcher/Supplier.js +11 -2
  94. package/dist/core/fetcher/index.d.ts +3 -2
  95. package/dist/core/form-data-utils/getFormDataContentLength.d.ts +1 -1
  96. package/dist/core/form-data-utils/getFormDataContentLength.js +20 -9
  97. package/dist/core/index.d.ts +1 -2
  98. package/dist/core/index.js +4 -5
  99. package/dist/core/schemas/Schema.d.ts +19 -0
  100. package/dist/core/schemas/Schema.js +1 -0
  101. package/dist/core/schemas/builders/date/date.js +22 -14
  102. package/dist/core/schemas/builders/enum/enum.js +17 -7
  103. package/dist/core/schemas/builders/lazy/index.d.ts +2 -1
  104. package/dist/core/schemas/builders/lazy/lazy.js +21 -13
  105. package/dist/core/schemas/builders/lazy/lazyObject.js +11 -11
  106. package/dist/core/schemas/builders/list/list.js +53 -38
  107. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  108. package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
  109. package/dist/core/schemas/builders/literals/index.d.ts +1 -0
  110. package/dist/core/schemas/builders/literals/index.js +3 -1
  111. package/dist/core/schemas/builders/literals/stringLiteral.js +4 -3
  112. package/dist/core/schemas/builders/object/index.d.ts +5 -2
  113. package/dist/core/schemas/builders/object/index.js +3 -1
  114. package/dist/core/schemas/builders/object/object.js +150 -129
  115. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  116. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  117. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +19 -18
  118. package/dist/core/schemas/builders/object-like/index.d.ts +1 -1
  119. package/dist/core/schemas/builders/primitives/boolean.js +4 -3
  120. package/dist/core/schemas/builders/primitives/number.js +4 -3
  121. package/dist/core/schemas/builders/primitives/string.js +4 -3
  122. package/dist/core/schemas/builders/record/index.d.ts +1 -1
  123. package/dist/core/schemas/builders/record/record.js +82 -67
  124. package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -1
  125. package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -1
  126. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
  127. package/dist/core/schemas/builders/schema-utils/index.d.ts +2 -1
  128. package/dist/core/schemas/builders/set/set.js +21 -12
  129. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
  130. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +38 -24
  131. package/dist/core/schemas/builders/union/index.d.ts +3 -2
  132. package/dist/core/schemas/builders/union/union.js +95 -74
  133. package/dist/core/schemas/index.d.ts +1 -1
  134. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +2 -4
  135. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  136. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
  137. package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
  138. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  139. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  140. package/dist/core/schemas/utils/maybeSkipValidation.js +37 -0
  141. package/dist/core/streaming-fetcher/Stream.d.ts +14 -0
  142. package/dist/core/streaming-fetcher/Stream.js +75 -0
  143. package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +10 -8
  144. package/dist/core/streaming-fetcher/StreamingFetcher.js +38 -44
  145. package/dist/core/streaming-fetcher/getHeader.d.ts +2 -0
  146. package/dist/core/streaming-fetcher/getHeader.js +12 -0
  147. package/dist/core/streaming-fetcher/index.d.ts +4 -1
  148. package/dist/core/streaming-fetcher/index.js +5 -1
  149. package/dist/errors/VellumError.js +14 -3
  150. package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.js +11 -2
  151. package/dist/serialization/client/requests/GenerateBodyRequest.js +11 -2
  152. package/dist/serialization/client/requests/GenerateStreamBodyRequest.js +11 -2
  153. package/dist/serialization/client/requests/SearchRequestBodyRequest.js +10 -1
  154. package/dist/serialization/client/requests/SubmitCompletionActualsRequest.js +10 -1
  155. package/dist/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.js +10 -1
  156. package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +11 -2
  157. package/dist/serialization/resources/documents/client/requests/PatchedDocumentUpdateRequest.js +10 -1
  158. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +12 -3
  159. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +11 -2
  160. package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +10 -1
  161. package/dist/serialization/types/ApiNodeResult.js +10 -1
  162. package/dist/serialization/types/ChatMessage.js +10 -1
  163. package/dist/serialization/types/ChatMessageRequest.js +10 -1
  164. package/dist/serialization/types/ConditionalNodeResult.js +10 -1
  165. package/dist/serialization/types/DeploymentRead.js +12 -3
  166. package/dist/serialization/types/DocumentDocumentToDocumentIndex.js +10 -1
  167. package/dist/serialization/types/DocumentIndexRead.js +11 -2
  168. package/dist/serialization/types/DocumentRead.js +12 -3
  169. package/dist/serialization/types/EnrichedNormalizedCompletion.js +12 -3
  170. package/dist/serialization/types/GenerateOptionsRequest.js +10 -1
  171. package/dist/serialization/types/GenerateRequest.js +10 -1
  172. package/dist/serialization/types/GenerateResponse.js +10 -1
  173. package/dist/serialization/types/GenerateResult.js +11 -2
  174. package/dist/serialization/types/GenerateResultData.js +10 -1
  175. package/dist/serialization/types/GenerateStreamResponse.js +10 -1
  176. package/dist/serialization/types/GenerateStreamResult.js +11 -2
  177. package/dist/serialization/types/GenerateStreamResultData.js +10 -1
  178. package/dist/serialization/types/MetadataFilterConfigRequest.js +12 -3
  179. package/dist/serialization/types/MetadataFilterRuleRequest.js +12 -3
  180. package/dist/serialization/types/ModelVersionBuildConfig.js +10 -1
  181. package/dist/serialization/types/ModelVersionCompilePromptResponse.js +10 -1
  182. package/dist/serialization/types/ModelVersionExecConfig.js +12 -3
  183. package/dist/serialization/types/ModelVersionRead.js +13 -4
  184. package/dist/serialization/types/NodeInputCompiledChatHistoryValue.js +10 -1
  185. package/dist/serialization/types/NodeInputCompiledErrorValue.js +10 -1
  186. package/dist/serialization/types/NodeInputCompiledSearchResultsValue.js +10 -1
  187. package/dist/serialization/types/NodeInputVariableCompiledValue.js +15 -6
  188. package/dist/serialization/types/NormalizedLogProbs.js +10 -1
  189. package/dist/serialization/types/PaginatedSlimDocumentList.js +10 -1
  190. package/dist/serialization/types/PromptNodeResult.js +10 -1
  191. package/dist/serialization/types/PromptTemplateBlock.js +11 -2
  192. package/dist/serialization/types/PromptTemplateBlockData.js +10 -1
  193. package/dist/serialization/types/PromptTemplateBlockDataRequest.js +10 -1
  194. package/dist/serialization/types/PromptTemplateBlockProperties.js +12 -3
  195. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +12 -3
  196. package/dist/serialization/types/PromptTemplateBlockRequest.js +11 -2
  197. package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +11 -2
  198. package/dist/serialization/types/RegisterPromptResponse.js +14 -5
  199. package/dist/serialization/types/RegisteredPromptInputVariableRequest.js +10 -1
  200. package/dist/serialization/types/SandboxMetricInputParams.js +10 -1
  201. package/dist/serialization/types/SandboxMetricInputParamsRequest.js +10 -1
  202. package/dist/serialization/types/SandboxScenario.js +11 -2
  203. package/dist/serialization/types/ScenarioInput.js +11 -2
  204. package/dist/serialization/types/ScenarioInputRequest.js +11 -2
  205. package/dist/serialization/types/SearchFiltersRequest.js +10 -1
  206. package/dist/serialization/types/SearchNodeResult.js +10 -1
  207. package/dist/serialization/types/SearchNodeResultData.js +10 -1
  208. package/dist/serialization/types/SearchRequestOptionsRequest.js +12 -3
  209. package/dist/serialization/types/SearchResponse.js +10 -1
  210. package/dist/serialization/types/SearchResult.js +10 -1
  211. package/dist/serialization/types/SlimDocument.js +13 -4
  212. package/dist/serialization/types/SubmitWorkflowExecutionActualRequest.js +12 -3
  213. package/dist/serialization/types/TemplatingNodeChatHistoryResult.js +10 -1
  214. package/dist/serialization/types/TemplatingNodeErrorResult.js +10 -1
  215. package/dist/serialization/types/TemplatingNodeResult.js +10 -1
  216. package/dist/serialization/types/TemplatingNodeResultData.js +10 -1
  217. package/dist/serialization/types/TemplatingNodeResultOutput.js +15 -6
  218. package/dist/serialization/types/TemplatingNodeSearchResultsResult.js +10 -1
  219. package/dist/serialization/types/TerminalNodeChatHistoryResult.js +10 -1
  220. package/dist/serialization/types/TerminalNodeErrorResult.js +10 -1
  221. package/dist/serialization/types/TerminalNodeResult.js +10 -1
  222. package/dist/serialization/types/TerminalNodeResultData.js +10 -1
  223. package/dist/serialization/types/TerminalNodeResultOutput.js +15 -6
  224. package/dist/serialization/types/TerminalNodeSearchResultsResult.js +10 -1
  225. package/dist/serialization/types/TestSuiteTestCase.js +10 -1
  226. package/dist/serialization/types/VellumError.js +10 -1
  227. package/dist/serialization/types/VellumVariable.js +10 -1
  228. package/dist/serialization/types/WorkflowEventError.js +10 -1
  229. package/dist/serialization/types/WorkflowExecutionActualChatHistoryRequest.js +10 -1
  230. package/dist/serialization/types/WorkflowExecutionNodeResultEvent.js +10 -1
  231. package/dist/serialization/types/WorkflowExecutionWorkflowResultEvent.js +10 -1
  232. package/dist/serialization/types/WorkflowNodeResultData.js +15 -6
  233. package/dist/serialization/types/WorkflowNodeResultEvent.js +13 -4
  234. package/dist/serialization/types/WorkflowRequestChatHistoryInputRequest.js +10 -1
  235. package/dist/serialization/types/WorkflowRequestInputRequest.js +12 -3
  236. package/dist/serialization/types/WorkflowResultEvent.js +12 -3
  237. package/dist/serialization/types/WorkflowResultEventOutputData.js +15 -6
  238. package/dist/serialization/types/WorkflowResultEventOutputDataChatHistory.js +11 -2
  239. package/dist/serialization/types/WorkflowResultEventOutputDataError.js +11 -2
  240. package/dist/serialization/types/WorkflowResultEventOutputDataJson.js +10 -1
  241. package/dist/serialization/types/WorkflowResultEventOutputDataNumber.js +10 -1
  242. package/dist/serialization/types/WorkflowResultEventOutputDataSearchResults.js +11 -2
  243. package/dist/serialization/types/WorkflowResultEventOutputDataString.js +10 -1
  244. package/dist/serialization/types/WorkflowStreamEvent.js +11 -2
  245. package/errors/VellumError.js +14 -3
  246. package/package.json +4 -3
  247. package/serialization/client/requests/ExecuteWorkflowStreamRequest.js +11 -2
  248. package/serialization/client/requests/GenerateBodyRequest.js +11 -2
  249. package/serialization/client/requests/GenerateStreamBodyRequest.js +11 -2
  250. package/serialization/client/requests/SearchRequestBodyRequest.js +10 -1
  251. package/serialization/client/requests/SubmitCompletionActualsRequest.js +10 -1
  252. package/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.js +10 -1
  253. package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +11 -2
  254. package/serialization/resources/documents/client/requests/PatchedDocumentUpdateRequest.js +10 -1
  255. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +12 -3
  256. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +11 -2
  257. package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +10 -1
  258. package/serialization/types/ApiNodeResult.js +10 -1
  259. package/serialization/types/ChatMessage.js +10 -1
  260. package/serialization/types/ChatMessageRequest.js +10 -1
  261. package/serialization/types/ConditionalNodeResult.js +10 -1
  262. package/serialization/types/DeploymentRead.js +12 -3
  263. package/serialization/types/DocumentDocumentToDocumentIndex.js +10 -1
  264. package/serialization/types/DocumentIndexRead.js +11 -2
  265. package/serialization/types/DocumentRead.js +12 -3
  266. package/serialization/types/EnrichedNormalizedCompletion.js +12 -3
  267. package/serialization/types/GenerateOptionsRequest.js +10 -1
  268. package/serialization/types/GenerateRequest.js +10 -1
  269. package/serialization/types/GenerateResponse.js +10 -1
  270. package/serialization/types/GenerateResult.js +11 -2
  271. package/serialization/types/GenerateResultData.js +10 -1
  272. package/serialization/types/GenerateStreamResponse.js +10 -1
  273. package/serialization/types/GenerateStreamResult.js +11 -2
  274. package/serialization/types/GenerateStreamResultData.js +10 -1
  275. package/serialization/types/MetadataFilterConfigRequest.js +12 -3
  276. package/serialization/types/MetadataFilterRuleRequest.js +12 -3
  277. package/serialization/types/ModelVersionBuildConfig.js +10 -1
  278. package/serialization/types/ModelVersionCompilePromptResponse.js +10 -1
  279. package/serialization/types/ModelVersionExecConfig.js +12 -3
  280. package/serialization/types/ModelVersionRead.js +13 -4
  281. package/serialization/types/NodeInputCompiledChatHistoryValue.js +10 -1
  282. package/serialization/types/NodeInputCompiledErrorValue.js +10 -1
  283. package/serialization/types/NodeInputCompiledSearchResultsValue.js +10 -1
  284. package/serialization/types/NodeInputVariableCompiledValue.js +15 -6
  285. package/serialization/types/NormalizedLogProbs.js +10 -1
  286. package/serialization/types/PaginatedSlimDocumentList.js +10 -1
  287. package/serialization/types/PromptNodeResult.js +10 -1
  288. package/serialization/types/PromptTemplateBlock.js +11 -2
  289. package/serialization/types/PromptTemplateBlockData.js +10 -1
  290. package/serialization/types/PromptTemplateBlockDataRequest.js +10 -1
  291. package/serialization/types/PromptTemplateBlockProperties.js +12 -3
  292. package/serialization/types/PromptTemplateBlockPropertiesRequest.js +12 -3
  293. package/serialization/types/PromptTemplateBlockRequest.js +11 -2
  294. package/serialization/types/RegisterPromptPromptInfoRequest.js +11 -2
  295. package/serialization/types/RegisterPromptResponse.js +14 -5
  296. package/serialization/types/RegisteredPromptInputVariableRequest.js +10 -1
  297. package/serialization/types/SandboxMetricInputParams.js +10 -1
  298. package/serialization/types/SandboxMetricInputParamsRequest.js +10 -1
  299. package/serialization/types/SandboxScenario.js +11 -2
  300. package/serialization/types/ScenarioInput.js +11 -2
  301. package/serialization/types/ScenarioInputRequest.js +11 -2
  302. package/serialization/types/SearchFiltersRequest.js +10 -1
  303. package/serialization/types/SearchNodeResult.js +10 -1
  304. package/serialization/types/SearchNodeResultData.js +10 -1
  305. package/serialization/types/SearchRequestOptionsRequest.js +12 -3
  306. package/serialization/types/SearchResponse.js +10 -1
  307. package/serialization/types/SearchResult.js +10 -1
  308. package/serialization/types/SlimDocument.js +13 -4
  309. package/serialization/types/SubmitWorkflowExecutionActualRequest.js +12 -3
  310. package/serialization/types/TemplatingNodeChatHistoryResult.js +10 -1
  311. package/serialization/types/TemplatingNodeErrorResult.js +10 -1
  312. package/serialization/types/TemplatingNodeResult.js +10 -1
  313. package/serialization/types/TemplatingNodeResultData.js +10 -1
  314. package/serialization/types/TemplatingNodeResultOutput.js +15 -6
  315. package/serialization/types/TemplatingNodeSearchResultsResult.js +10 -1
  316. package/serialization/types/TerminalNodeChatHistoryResult.js +10 -1
  317. package/serialization/types/TerminalNodeErrorResult.js +10 -1
  318. package/serialization/types/TerminalNodeResult.js +10 -1
  319. package/serialization/types/TerminalNodeResultData.js +10 -1
  320. package/serialization/types/TerminalNodeResultOutput.js +15 -6
  321. package/serialization/types/TerminalNodeSearchResultsResult.js +10 -1
  322. package/serialization/types/TestSuiteTestCase.js +10 -1
  323. package/serialization/types/VellumError.js +10 -1
  324. package/serialization/types/VellumVariable.js +10 -1
  325. package/serialization/types/WorkflowEventError.js +10 -1
  326. package/serialization/types/WorkflowExecutionActualChatHistoryRequest.js +10 -1
  327. package/serialization/types/WorkflowExecutionNodeResultEvent.js +10 -1
  328. package/serialization/types/WorkflowExecutionWorkflowResultEvent.js +10 -1
  329. package/serialization/types/WorkflowNodeResultData.js +15 -6
  330. package/serialization/types/WorkflowNodeResultEvent.js +13 -4
  331. package/serialization/types/WorkflowRequestChatHistoryInputRequest.js +10 -1
  332. package/serialization/types/WorkflowRequestInputRequest.js +12 -3
  333. package/serialization/types/WorkflowResultEvent.js +12 -3
  334. package/serialization/types/WorkflowResultEventOutputData.js +15 -6
  335. package/serialization/types/WorkflowResultEventOutputDataChatHistory.js +11 -2
  336. package/serialization/types/WorkflowResultEventOutputDataError.js +11 -2
  337. package/serialization/types/WorkflowResultEventOutputDataJson.js +10 -1
  338. package/serialization/types/WorkflowResultEventOutputDataNumber.js +10 -1
  339. package/serialization/types/WorkflowResultEventOutputDataSearchResults.js +11 -2
  340. package/serialization/types/WorkflowResultEventOutputDataString.js +10 -1
  341. package/serialization/types/WorkflowStreamEvent.js +11 -2
  342. package/core/callback-queue/CallbackQueue.d.ts +0 -6
  343. package/core/callback-queue/CallbackQueue.js +0 -20
  344. package/core/callback-queue/index.d.ts +0 -1
  345. package/core/callback-queue/index.js +0 -5
  346. package/dist/core/callback-queue/CallbackQueue.d.ts +0 -6
  347. package/dist/core/callback-queue/CallbackQueue.js +0 -20
  348. package/dist/core/callback-queue/index.d.ts +0 -1
  349. package/dist/core/callback-queue/index.js +0 -5
@@ -25,9 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.SearchNodeResult = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.SearchNodeResult = core.serialization.object({
32
- data: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchNodeResultData),
41
+ data: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchNodeResultData; })),
33
42
  });
@@ -25,12 +25,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.SearchNodeResultData = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.SearchNodeResultData = core.serialization.object({
32
41
  resultsOutputId: core.serialization.property("results_output_id", core.serialization.string()),
33
- results: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchResult)),
42
+ results: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; }))),
34
43
  textOutputId: core.serialization.property("text_output_id", core.serialization.string()),
35
44
  text: core.serialization.string().optional(),
36
45
  });
@@ -25,12 +25,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.SearchRequestOptionsRequest = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.SearchRequestOptionsRequest = core.serialization.object({
32
41
  limit: core.serialization.number().optional(),
33
- weights: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchWeightsRequest).optional(),
34
- resultMerging: core.serialization.property("result_merging", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchResultMergingRequest).optional()),
35
- filters: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchFiltersRequest).optional(),
42
+ weights: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchWeightsRequest; })).optional(),
43
+ resultMerging: core.serialization.property("result_merging", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResultMergingRequest; })).optional()),
44
+ filters: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchFiltersRequest; })).optional(),
36
45
  });
@@ -25,9 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.SearchResponse = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.SearchResponse = core.serialization.object({
32
- results: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchResult)),
41
+ results: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; }))),
33
42
  });
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.SearchResult = void 0;
30
39
  const core = __importStar(require("../../core"));
@@ -32,5 +41,5 @@ exports.SearchResult = core.serialization.object({
32
41
  text: core.serialization.string(),
33
42
  score: core.serialization.number(),
34
43
  keywords: core.serialization.list(core.serialization.string()),
35
- document: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchResultDocument),
44
+ document: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResultDocument; })),
36
45
  });
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.SlimDocument = void 0;
30
39
  const core = __importStar(require("../../core"));
@@ -33,10 +42,10 @@ exports.SlimDocument = core.serialization.object({
33
42
  externalId: core.serialization.property("external_id", core.serialization.string().optional()),
34
43
  lastUploadedAt: core.serialization.property("last_uploaded_at", core.serialization.date()),
35
44
  label: core.serialization.string(),
36
- processingState: core.serialization.property("processing_state", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProcessingStateEnum).optional()),
37
- processingFailureReason: core.serialization.property("processing_failure_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProcessingFailureReasonEnum).optional()),
38
- status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentStatus).optional(),
45
+ processingState: core.serialization.property("processing_state", core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ProcessingStateEnum; })).optional()),
46
+ processingFailureReason: core.serialization.property("processing_failure_reason", core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ProcessingFailureReasonEnum; })).optional()),
47
+ status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).DocumentStatus; })).optional(),
39
48
  keywords: core.serialization.list(core.serialization.string()).optional(),
40
49
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
41
- documentToDocumentIndexes: core.serialization.property("document_to_document_indexes", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentDocumentToDocumentIndex))),
50
+ documentToDocumentIndexes: core.serialization.property("document_to_document_indexes", core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).DocumentDocumentToDocumentIndex; })))),
42
51
  });
@@ -25,14 +25,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.SubmitWorkflowExecutionActualRequest = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.SubmitWorkflowExecutionActualRequest = core.serialization
32
41
  .union(core.serialization.discriminant("outputType", "output_type"), {
33
- STRING: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualStringRequest),
34
- JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualJsonRequest),
35
- CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualChatHistoryRequest),
42
+ STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualStringRequest; })),
43
+ JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualJsonRequest; })),
44
+ CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualChatHistoryRequest; })),
36
45
  })
37
46
  .transform({
38
47
  transform: (value) => value,
@@ -25,12 +25,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TemplatingNodeChatHistoryResult = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TemplatingNodeChatHistoryResult = core.serialization.object({
32
41
  id: core.serialization.string(),
33
42
  value: core.serialization
34
- .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage))
43
+ .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessage; })))
35
44
  .optional(),
36
45
  });
@@ -25,10 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TemplatingNodeErrorResult = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TemplatingNodeErrorResult = core.serialization.object({
32
41
  id: core.serialization.string(),
33
- value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
42
+ value: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumError; })).optional(),
34
43
  });
@@ -25,9 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TemplatingNodeResult = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TemplatingNodeResult = core.serialization.object({
32
- data: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeResultData),
41
+ data: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeResultData; })),
33
42
  });
@@ -25,9 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TemplatingNodeResultData = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TemplatingNodeResultData = core.serialization.object({
32
- output: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeResultOutput),
41
+ output: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeResultOutput; })),
33
42
  });
@@ -25,17 +25,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TemplatingNodeResultOutput = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TemplatingNodeResultOutput = core.serialization
32
41
  .union("type", {
33
- STRING: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeStringResult),
34
- NUMBER: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeNumberResult),
35
- JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeJsonResult),
36
- CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeChatHistoryResult),
37
- SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeSearchResultsResult),
38
- ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeErrorResult),
42
+ STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeStringResult; })),
43
+ NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeNumberResult; })),
44
+ JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeJsonResult; })),
45
+ CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeChatHistoryResult; })),
46
+ SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeSearchResultsResult; })),
47
+ ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeErrorResult; })),
39
48
  })
40
49
  .transform({
41
50
  transform: (value) => value,
@@ -25,12 +25,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TemplatingNodeSearchResultsResult = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TemplatingNodeSearchResultsResult = core.serialization.object({
32
41
  id: core.serialization.string(),
33
42
  value: core.serialization
34
- .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchResult))
43
+ .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; })))
35
44
  .optional(),
36
45
  });
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TerminalNodeChatHistoryResult = void 0;
30
39
  const core = __importStar(require("../../core"));
@@ -32,6 +41,6 @@ exports.TerminalNodeChatHistoryResult = core.serialization.object({
32
41
  id: core.serialization.string().optional(),
33
42
  name: core.serialization.string(),
34
43
  value: core.serialization
35
- .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage))
44
+ .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessage; })))
36
45
  .optional(),
37
46
  });
@@ -25,11 +25,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TerminalNodeErrorResult = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TerminalNodeErrorResult = core.serialization.object({
32
41
  id: core.serialization.string().optional(),
33
42
  name: core.serialization.string(),
34
- value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
43
+ value: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumError; })).optional(),
35
44
  });
@@ -25,9 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TerminalNodeResult = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TerminalNodeResult = core.serialization.object({
32
- data: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeResultData),
41
+ data: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeResultData; })),
33
42
  });
@@ -25,9 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TerminalNodeResultData = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TerminalNodeResultData = core.serialization.object({
32
- output: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeResultOutput),
41
+ output: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeResultOutput; })),
33
42
  });
@@ -25,17 +25,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TerminalNodeResultOutput = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.TerminalNodeResultOutput = core.serialization
32
41
  .union("type", {
33
- STRING: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeStringResult),
34
- NUMBER: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeNumberResult),
35
- JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeJsonResult),
36
- CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeChatHistoryResult),
37
- SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeSearchResultsResult),
38
- ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeErrorResult),
42
+ STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeStringResult; })),
43
+ NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeNumberResult; })),
44
+ JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeJsonResult; })),
45
+ CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeChatHistoryResult; })),
46
+ SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeSearchResultsResult; })),
47
+ ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeErrorResult; })),
39
48
  })
40
49
  .transform({
41
50
  transform: (value) => value,
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TerminalNodeSearchResultsResult = void 0;
30
39
  const core = __importStar(require("../../core"));
@@ -32,6 +41,6 @@ exports.TerminalNodeSearchResultsResult = core.serialization.object({
32
41
  id: core.serialization.string().optional(),
33
42
  name: core.serialization.string(),
34
43
  value: core.serialization
35
- .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchResult))
44
+ .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; })))
36
45
  .optional(),
37
46
  });
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.TestSuiteTestCase = void 0;
30
39
  const core = __importStar(require("../../core"));
@@ -32,5 +41,5 @@ exports.TestSuiteTestCase = core.serialization.object({
32
41
  testCaseId: core.serialization.property("test_case_id", core.serialization.string().optional()),
33
42
  label: core.serialization.string().optional(),
34
43
  inputValues: core.serialization.property("input_values", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
35
- evaluationParams: core.serialization.property("evaluation_params", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).EvaluationParams)),
44
+ evaluationParams: core.serialization.property("evaluation_params", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EvaluationParams; }))),
36
45
  });
@@ -25,10 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.VellumError = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.VellumError = core.serialization.object({
32
41
  message: core.serialization.string(),
33
- code: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumErrorCodeEnum),
42
+ code: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumErrorCodeEnum; })),
34
43
  });
@@ -25,11 +25,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.VellumVariable = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.VellumVariable = core.serialization.object({
32
41
  id: core.serialization.string(),
33
42
  key: core.serialization.string(),
34
- type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType),
43
+ type: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType; })),
35
44
  });
@@ -25,10 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.WorkflowEventError = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.WorkflowEventError = core.serialization.object({
32
41
  message: core.serialization.string(),
33
- code: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionEventErrorCode),
42
+ code: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionEventErrorCode; })),
34
43
  });
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.WorkflowExecutionActualChatHistoryRequest = void 0;
30
39
  const core = __importStar(require("../../core"));
@@ -34,6 +43,6 @@ exports.WorkflowExecutionActualChatHistoryRequest = core.serialization.object({
34
43
  quality: core.serialization.number().optional(),
35
44
  timestamp: core.serialization.number().optional(),
36
45
  desiredOutputValue: core.serialization.property("desired_output_value", core.serialization
37
- .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest))
46
+ .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest; })))
38
47
  .optional()),
39
48
  });