vellum-ai 0.0.45 → 0.1.1

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 (433) 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/index.d.ts +0 -1
  10. package/api/resources/index.js +0 -1
  11. package/api/resources/modelVersions/client/Client.d.ts +8 -8
  12. package/api/resources/modelVersions/client/Client.js +51 -75
  13. package/api/resources/modelVersions/client/index.d.ts +1 -1
  14. package/api/resources/modelVersions/client/index.js +0 -15
  15. package/api/resources/registeredPrompts/client/Client.d.ts +11 -7
  16. package/api/resources/registeredPrompts/client/Client.js +72 -53
  17. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +4 -1
  18. package/api/resources/sandboxes/client/Client.d.ts +9 -5
  19. package/api/resources/sandboxes/client/Client.js +92 -65
  20. package/api/resources/testSuites/client/Client.d.ts +9 -5
  21. package/api/resources/testSuites/client/Client.js +90 -63
  22. package/api/types/EnrichedNormalizedCompletion.d.ts +3 -1
  23. package/api/types/ModelVersionRead.d.ts +3 -0
  24. package/api/types/ProviderEnum.d.ts +7 -1
  25. package/api/types/ProviderEnum.js +3 -0
  26. package/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -1
  27. package/api/types/RegisterPromptResponse.d.ts +2 -0
  28. package/api/types/index.d.ts +0 -2
  29. package/api/types/index.js +0 -2
  30. package/core/fetcher/Fetcher.d.ts +5 -3
  31. package/core/fetcher/Fetcher.js +104 -62
  32. package/core/fetcher/Supplier.js +11 -2
  33. package/core/fetcher/index.d.ts +3 -2
  34. package/core/form-data-utils/getFormDataContentLength.d.ts +1 -1
  35. package/core/form-data-utils/getFormDataContentLength.js +20 -9
  36. package/core/index.d.ts +1 -2
  37. package/core/index.js +4 -5
  38. package/core/schemas/Schema.d.ts +19 -0
  39. package/core/schemas/Schema.js +1 -0
  40. package/core/schemas/builders/date/date.js +22 -14
  41. package/core/schemas/builders/enum/enum.js +17 -7
  42. package/core/schemas/builders/lazy/index.d.ts +2 -1
  43. package/core/schemas/builders/lazy/lazy.js +21 -13
  44. package/core/schemas/builders/lazy/lazyObject.js +11 -11
  45. package/core/schemas/builders/list/list.js +53 -38
  46. package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  47. package/core/schemas/builders/literals/booleanLiteral.js +29 -0
  48. package/core/schemas/builders/literals/index.d.ts +1 -0
  49. package/core/schemas/builders/literals/index.js +3 -1
  50. package/core/schemas/builders/literals/stringLiteral.js +4 -3
  51. package/core/schemas/builders/object/index.d.ts +5 -2
  52. package/core/schemas/builders/object/index.js +3 -1
  53. package/core/schemas/builders/object/object.js +150 -129
  54. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  55. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  56. package/core/schemas/builders/object-like/getObjectLikeUtils.js +19 -18
  57. package/core/schemas/builders/object-like/index.d.ts +1 -1
  58. package/core/schemas/builders/primitives/boolean.js +4 -3
  59. package/core/schemas/builders/primitives/number.js +4 -3
  60. package/core/schemas/builders/primitives/string.js +4 -3
  61. package/core/schemas/builders/record/index.d.ts +1 -1
  62. package/core/schemas/builders/record/record.js +82 -67
  63. package/core/schemas/builders/schema-utils/JsonError.js +0 -1
  64. package/core/schemas/builders/schema-utils/ParseError.js +0 -1
  65. package/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
  66. package/core/schemas/builders/schema-utils/index.d.ts +2 -1
  67. package/core/schemas/builders/set/set.js +21 -12
  68. package/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
  69. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +38 -24
  70. package/core/schemas/builders/union/index.d.ts +3 -2
  71. package/core/schemas/builders/union/union.js +95 -74
  72. package/core/schemas/index.d.ts +1 -1
  73. package/core/schemas/utils/createIdentitySchemaCreator.js +2 -4
  74. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  75. package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
  76. package/core/schemas/utils/isPlainObject.d.ts +0 -1
  77. package/core/schemas/utils/isPlainObject.js +1 -2
  78. package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  79. package/core/schemas/utils/maybeSkipValidation.js +37 -0
  80. package/core/streaming-fetcher/Stream.d.ts +14 -0
  81. package/core/streaming-fetcher/Stream.js +75 -0
  82. package/core/streaming-fetcher/StreamingFetcher.d.ts +10 -8
  83. package/core/streaming-fetcher/StreamingFetcher.js +38 -44
  84. package/core/streaming-fetcher/getHeader.d.ts +2 -0
  85. package/core/streaming-fetcher/getHeader.js +12 -0
  86. package/core/streaming-fetcher/index.d.ts +4 -1
  87. package/core/streaming-fetcher/index.js +5 -1
  88. package/dist/Client.d.ts +23 -26
  89. package/dist/Client.js +288 -242
  90. package/dist/api/resources/deployments/client/Client.d.ts +8 -4
  91. package/dist/api/resources/deployments/client/Client.js +52 -34
  92. package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -5
  93. package/dist/api/resources/documentIndexes/client/Client.js +97 -69
  94. package/dist/api/resources/documents/client/Client.d.ts +14 -10
  95. package/dist/api/resources/documents/client/Client.js +222 -176
  96. package/dist/api/resources/index.d.ts +0 -1
  97. package/dist/api/resources/index.js +0 -1
  98. package/dist/api/resources/modelVersions/client/Client.d.ts +8 -8
  99. package/dist/api/resources/modelVersions/client/Client.js +51 -75
  100. package/dist/api/resources/modelVersions/client/index.d.ts +1 -1
  101. package/dist/api/resources/modelVersions/client/index.js +0 -15
  102. package/dist/api/resources/registeredPrompts/client/Client.d.ts +11 -7
  103. package/dist/api/resources/registeredPrompts/client/Client.js +72 -53
  104. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +4 -1
  105. package/dist/api/resources/sandboxes/client/Client.d.ts +9 -5
  106. package/dist/api/resources/sandboxes/client/Client.js +92 -65
  107. package/dist/api/resources/testSuites/client/Client.d.ts +9 -5
  108. package/dist/api/resources/testSuites/client/Client.js +90 -63
  109. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +3 -1
  110. package/dist/api/types/ModelVersionRead.d.ts +3 -0
  111. package/dist/api/types/ProviderEnum.d.ts +7 -1
  112. package/dist/api/types/ProviderEnum.js +3 -0
  113. package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -1
  114. package/dist/api/types/RegisterPromptResponse.d.ts +2 -0
  115. package/dist/api/types/index.d.ts +0 -2
  116. package/dist/api/types/index.js +0 -2
  117. package/dist/core/fetcher/Fetcher.d.ts +5 -3
  118. package/dist/core/fetcher/Fetcher.js +104 -62
  119. package/dist/core/fetcher/Supplier.js +11 -2
  120. package/dist/core/fetcher/index.d.ts +3 -2
  121. package/dist/core/form-data-utils/getFormDataContentLength.d.ts +1 -1
  122. package/dist/core/form-data-utils/getFormDataContentLength.js +20 -9
  123. package/dist/core/index.d.ts +1 -2
  124. package/dist/core/index.js +4 -5
  125. package/dist/core/schemas/Schema.d.ts +19 -0
  126. package/dist/core/schemas/Schema.js +1 -0
  127. package/dist/core/schemas/builders/date/date.js +22 -14
  128. package/dist/core/schemas/builders/enum/enum.js +17 -7
  129. package/dist/core/schemas/builders/lazy/index.d.ts +2 -1
  130. package/dist/core/schemas/builders/lazy/lazy.js +21 -13
  131. package/dist/core/schemas/builders/lazy/lazyObject.js +11 -11
  132. package/dist/core/schemas/builders/list/list.js +53 -38
  133. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  134. package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
  135. package/dist/core/schemas/builders/literals/index.d.ts +1 -0
  136. package/dist/core/schemas/builders/literals/index.js +3 -1
  137. package/dist/core/schemas/builders/literals/stringLiteral.js +4 -3
  138. package/dist/core/schemas/builders/object/index.d.ts +5 -2
  139. package/dist/core/schemas/builders/object/index.js +3 -1
  140. package/dist/core/schemas/builders/object/object.js +150 -129
  141. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  142. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  143. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +19 -18
  144. package/dist/core/schemas/builders/object-like/index.d.ts +1 -1
  145. package/dist/core/schemas/builders/primitives/boolean.js +4 -3
  146. package/dist/core/schemas/builders/primitives/number.js +4 -3
  147. package/dist/core/schemas/builders/primitives/string.js +4 -3
  148. package/dist/core/schemas/builders/record/index.d.ts +1 -1
  149. package/dist/core/schemas/builders/record/record.js +82 -67
  150. package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -1
  151. package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -1
  152. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
  153. package/dist/core/schemas/builders/schema-utils/index.d.ts +2 -1
  154. package/dist/core/schemas/builders/set/set.js +21 -12
  155. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
  156. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +38 -24
  157. package/dist/core/schemas/builders/union/index.d.ts +3 -2
  158. package/dist/core/schemas/builders/union/union.js +95 -74
  159. package/dist/core/schemas/index.d.ts +1 -1
  160. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +2 -4
  161. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  162. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
  163. package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
  164. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  165. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  166. package/dist/core/schemas/utils/maybeSkipValidation.js +37 -0
  167. package/dist/core/streaming-fetcher/Stream.d.ts +14 -0
  168. package/dist/core/streaming-fetcher/Stream.js +75 -0
  169. package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +10 -8
  170. package/dist/core/streaming-fetcher/StreamingFetcher.js +38 -44
  171. package/dist/core/streaming-fetcher/getHeader.d.ts +2 -0
  172. package/dist/core/streaming-fetcher/getHeader.js +12 -0
  173. package/dist/core/streaming-fetcher/index.d.ts +4 -1
  174. package/dist/core/streaming-fetcher/index.js +5 -1
  175. package/dist/errors/VellumError.js +14 -3
  176. package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.js +11 -2
  177. package/dist/serialization/client/requests/GenerateBodyRequest.js +11 -2
  178. package/dist/serialization/client/requests/GenerateStreamBodyRequest.js +11 -2
  179. package/dist/serialization/client/requests/SearchRequestBodyRequest.js +10 -1
  180. package/dist/serialization/client/requests/SubmitCompletionActualsRequest.js +10 -1
  181. package/dist/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.js +10 -1
  182. package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +11 -2
  183. package/dist/serialization/resources/documents/client/requests/PatchedDocumentUpdateRequest.js +10 -1
  184. package/dist/serialization/resources/index.d.ts +0 -2
  185. package/dist/serialization/resources/index.js +1 -3
  186. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -1
  187. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +12 -3
  188. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +11 -2
  189. package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +10 -1
  190. package/dist/serialization/types/ApiNodeResult.js +10 -1
  191. package/dist/serialization/types/ChatMessage.js +10 -1
  192. package/dist/serialization/types/ChatMessageRequest.js +10 -1
  193. package/dist/serialization/types/ConditionalNodeResult.js +10 -1
  194. package/dist/serialization/types/DeploymentRead.js +12 -3
  195. package/dist/serialization/types/DocumentDocumentToDocumentIndex.js +10 -1
  196. package/dist/serialization/types/DocumentIndexRead.js +11 -2
  197. package/dist/serialization/types/DocumentRead.js +12 -3
  198. package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +3 -1
  199. package/dist/serialization/types/EnrichedNormalizedCompletion.js +15 -4
  200. package/dist/serialization/types/GenerateOptionsRequest.js +10 -1
  201. package/dist/serialization/types/GenerateRequest.js +10 -1
  202. package/dist/serialization/types/GenerateResponse.js +10 -1
  203. package/dist/serialization/types/GenerateResult.js +11 -2
  204. package/dist/serialization/types/GenerateResultData.js +10 -1
  205. package/dist/serialization/types/GenerateStreamResponse.js +10 -1
  206. package/dist/serialization/types/GenerateStreamResult.js +11 -2
  207. package/dist/serialization/types/GenerateStreamResultData.js +10 -1
  208. package/dist/serialization/types/MetadataFilterConfigRequest.js +12 -3
  209. package/dist/serialization/types/MetadataFilterRuleRequest.js +12 -3
  210. package/dist/serialization/types/ModelVersionBuildConfig.js +10 -1
  211. package/dist/serialization/types/ModelVersionExecConfig.js +12 -3
  212. package/dist/serialization/types/ModelVersionRead.js +13 -4
  213. package/dist/serialization/types/NodeInputCompiledChatHistoryValue.js +10 -1
  214. package/dist/serialization/types/NodeInputCompiledErrorValue.js +10 -1
  215. package/dist/serialization/types/NodeInputCompiledSearchResultsValue.js +10 -1
  216. package/dist/serialization/types/NodeInputVariableCompiledValue.js +15 -6
  217. package/dist/serialization/types/NormalizedLogProbs.js +10 -1
  218. package/dist/serialization/types/PaginatedSlimDocumentList.js +10 -1
  219. package/dist/serialization/types/PromptNodeResult.js +10 -1
  220. package/dist/serialization/types/PromptTemplateBlock.js +11 -2
  221. package/dist/serialization/types/PromptTemplateBlockData.js +10 -1
  222. package/dist/serialization/types/PromptTemplateBlockDataRequest.js +10 -1
  223. package/dist/serialization/types/PromptTemplateBlockProperties.js +12 -3
  224. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +12 -3
  225. package/dist/serialization/types/PromptTemplateBlockRequest.js +11 -2
  226. package/dist/serialization/types/ProviderEnum.d.ts +1 -1
  227. package/dist/serialization/types/ProviderEnum.js +3 -0
  228. package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -1
  229. package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +11 -3
  230. package/dist/serialization/types/RegisterPromptResponse.d.ts +1 -0
  231. package/dist/serialization/types/RegisterPromptResponse.js +15 -5
  232. package/dist/serialization/types/RegisteredPromptInputVariableRequest.js +10 -1
  233. package/dist/serialization/types/SandboxMetricInputParams.js +10 -1
  234. package/dist/serialization/types/SandboxMetricInputParamsRequest.js +10 -1
  235. package/dist/serialization/types/SandboxScenario.js +11 -2
  236. package/dist/serialization/types/ScenarioInput.js +11 -2
  237. package/dist/serialization/types/ScenarioInputRequest.js +11 -2
  238. package/dist/serialization/types/SearchFiltersRequest.js +10 -1
  239. package/dist/serialization/types/SearchNodeResult.js +10 -1
  240. package/dist/serialization/types/SearchNodeResultData.js +10 -1
  241. package/dist/serialization/types/SearchRequestOptionsRequest.js +12 -3
  242. package/dist/serialization/types/SearchResponse.js +10 -1
  243. package/dist/serialization/types/SearchResult.js +10 -1
  244. package/dist/serialization/types/SlimDocument.js +13 -4
  245. package/dist/serialization/types/SubmitWorkflowExecutionActualRequest.js +12 -3
  246. package/dist/serialization/types/TemplatingNodeChatHistoryResult.js +10 -1
  247. package/dist/serialization/types/TemplatingNodeErrorResult.js +10 -1
  248. package/dist/serialization/types/TemplatingNodeResult.js +10 -1
  249. package/dist/serialization/types/TemplatingNodeResultData.js +10 -1
  250. package/dist/serialization/types/TemplatingNodeResultOutput.js +15 -6
  251. package/dist/serialization/types/TemplatingNodeSearchResultsResult.js +10 -1
  252. package/dist/serialization/types/TerminalNodeChatHistoryResult.js +10 -1
  253. package/dist/serialization/types/TerminalNodeErrorResult.js +10 -1
  254. package/dist/serialization/types/TerminalNodeResult.js +10 -1
  255. package/dist/serialization/types/TerminalNodeResultData.js +10 -1
  256. package/dist/serialization/types/TerminalNodeResultOutput.js +15 -6
  257. package/dist/serialization/types/TerminalNodeSearchResultsResult.js +10 -1
  258. package/dist/serialization/types/TestSuiteTestCase.js +10 -1
  259. package/dist/serialization/types/VellumError.js +10 -1
  260. package/dist/serialization/types/VellumVariable.js +10 -1
  261. package/dist/serialization/types/WorkflowEventError.js +10 -1
  262. package/dist/serialization/types/WorkflowExecutionActualChatHistoryRequest.js +10 -1
  263. package/dist/serialization/types/WorkflowExecutionNodeResultEvent.js +10 -1
  264. package/dist/serialization/types/WorkflowExecutionWorkflowResultEvent.js +10 -1
  265. package/dist/serialization/types/WorkflowNodeResultData.js +15 -6
  266. package/dist/serialization/types/WorkflowNodeResultEvent.js +13 -4
  267. package/dist/serialization/types/WorkflowRequestChatHistoryInputRequest.js +10 -1
  268. package/dist/serialization/types/WorkflowRequestInputRequest.js +12 -3
  269. package/dist/serialization/types/WorkflowResultEvent.js +12 -3
  270. package/dist/serialization/types/WorkflowResultEventOutputData.js +15 -6
  271. package/dist/serialization/types/WorkflowResultEventOutputDataChatHistory.js +11 -2
  272. package/dist/serialization/types/WorkflowResultEventOutputDataError.js +11 -2
  273. package/dist/serialization/types/WorkflowResultEventOutputDataJson.js +10 -1
  274. package/dist/serialization/types/WorkflowResultEventOutputDataNumber.js +10 -1
  275. package/dist/serialization/types/WorkflowResultEventOutputDataSearchResults.js +11 -2
  276. package/dist/serialization/types/WorkflowResultEventOutputDataString.js +10 -1
  277. package/dist/serialization/types/WorkflowStreamEvent.js +11 -2
  278. package/dist/serialization/types/index.d.ts +0 -2
  279. package/dist/serialization/types/index.js +0 -2
  280. package/errors/VellumError.js +14 -3
  281. package/package.json +4 -3
  282. package/serialization/client/requests/ExecuteWorkflowStreamRequest.js +11 -2
  283. package/serialization/client/requests/GenerateBodyRequest.js +11 -2
  284. package/serialization/client/requests/GenerateStreamBodyRequest.js +11 -2
  285. package/serialization/client/requests/SearchRequestBodyRequest.js +10 -1
  286. package/serialization/client/requests/SubmitCompletionActualsRequest.js +10 -1
  287. package/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.js +10 -1
  288. package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +11 -2
  289. package/serialization/resources/documents/client/requests/PatchedDocumentUpdateRequest.js +10 -1
  290. package/serialization/resources/index.d.ts +0 -2
  291. package/serialization/resources/index.js +1 -3
  292. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -1
  293. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +12 -3
  294. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +11 -2
  295. package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +10 -1
  296. package/serialization/types/ApiNodeResult.js +10 -1
  297. package/serialization/types/ChatMessage.js +10 -1
  298. package/serialization/types/ChatMessageRequest.js +10 -1
  299. package/serialization/types/ConditionalNodeResult.js +10 -1
  300. package/serialization/types/DeploymentRead.js +12 -3
  301. package/serialization/types/DocumentDocumentToDocumentIndex.js +10 -1
  302. package/serialization/types/DocumentIndexRead.js +11 -2
  303. package/serialization/types/DocumentRead.js +12 -3
  304. package/serialization/types/EnrichedNormalizedCompletion.d.ts +3 -1
  305. package/serialization/types/EnrichedNormalizedCompletion.js +15 -4
  306. package/serialization/types/GenerateOptionsRequest.js +10 -1
  307. package/serialization/types/GenerateRequest.js +10 -1
  308. package/serialization/types/GenerateResponse.js +10 -1
  309. package/serialization/types/GenerateResult.js +11 -2
  310. package/serialization/types/GenerateResultData.js +10 -1
  311. package/serialization/types/GenerateStreamResponse.js +10 -1
  312. package/serialization/types/GenerateStreamResult.js +11 -2
  313. package/serialization/types/GenerateStreamResultData.js +10 -1
  314. package/serialization/types/MetadataFilterConfigRequest.js +12 -3
  315. package/serialization/types/MetadataFilterRuleRequest.js +12 -3
  316. package/serialization/types/ModelVersionBuildConfig.js +10 -1
  317. package/serialization/types/ModelVersionExecConfig.js +12 -3
  318. package/serialization/types/ModelVersionRead.js +13 -4
  319. package/serialization/types/NodeInputCompiledChatHistoryValue.js +10 -1
  320. package/serialization/types/NodeInputCompiledErrorValue.js +10 -1
  321. package/serialization/types/NodeInputCompiledSearchResultsValue.js +10 -1
  322. package/serialization/types/NodeInputVariableCompiledValue.js +15 -6
  323. package/serialization/types/NormalizedLogProbs.js +10 -1
  324. package/serialization/types/PaginatedSlimDocumentList.js +10 -1
  325. package/serialization/types/PromptNodeResult.js +10 -1
  326. package/serialization/types/PromptTemplateBlock.js +11 -2
  327. package/serialization/types/PromptTemplateBlockData.js +10 -1
  328. package/serialization/types/PromptTemplateBlockDataRequest.js +10 -1
  329. package/serialization/types/PromptTemplateBlockProperties.js +12 -3
  330. package/serialization/types/PromptTemplateBlockPropertiesRequest.js +12 -3
  331. package/serialization/types/PromptTemplateBlockRequest.js +11 -2
  332. package/serialization/types/ProviderEnum.d.ts +1 -1
  333. package/serialization/types/ProviderEnum.js +3 -0
  334. package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -1
  335. package/serialization/types/RegisterPromptPromptInfoRequest.js +11 -3
  336. package/serialization/types/RegisterPromptResponse.d.ts +1 -0
  337. package/serialization/types/RegisterPromptResponse.js +15 -5
  338. package/serialization/types/RegisteredPromptInputVariableRequest.js +10 -1
  339. package/serialization/types/SandboxMetricInputParams.js +10 -1
  340. package/serialization/types/SandboxMetricInputParamsRequest.js +10 -1
  341. package/serialization/types/SandboxScenario.js +11 -2
  342. package/serialization/types/ScenarioInput.js +11 -2
  343. package/serialization/types/ScenarioInputRequest.js +11 -2
  344. package/serialization/types/SearchFiltersRequest.js +10 -1
  345. package/serialization/types/SearchNodeResult.js +10 -1
  346. package/serialization/types/SearchNodeResultData.js +10 -1
  347. package/serialization/types/SearchRequestOptionsRequest.js +12 -3
  348. package/serialization/types/SearchResponse.js +10 -1
  349. package/serialization/types/SearchResult.js +10 -1
  350. package/serialization/types/SlimDocument.js +13 -4
  351. package/serialization/types/SubmitWorkflowExecutionActualRequest.js +12 -3
  352. package/serialization/types/TemplatingNodeChatHistoryResult.js +10 -1
  353. package/serialization/types/TemplatingNodeErrorResult.js +10 -1
  354. package/serialization/types/TemplatingNodeResult.js +10 -1
  355. package/serialization/types/TemplatingNodeResultData.js +10 -1
  356. package/serialization/types/TemplatingNodeResultOutput.js +15 -6
  357. package/serialization/types/TemplatingNodeSearchResultsResult.js +10 -1
  358. package/serialization/types/TerminalNodeChatHistoryResult.js +10 -1
  359. package/serialization/types/TerminalNodeErrorResult.js +10 -1
  360. package/serialization/types/TerminalNodeResult.js +10 -1
  361. package/serialization/types/TerminalNodeResultData.js +10 -1
  362. package/serialization/types/TerminalNodeResultOutput.js +15 -6
  363. package/serialization/types/TerminalNodeSearchResultsResult.js +10 -1
  364. package/serialization/types/TestSuiteTestCase.js +10 -1
  365. package/serialization/types/VellumError.js +10 -1
  366. package/serialization/types/VellumVariable.js +10 -1
  367. package/serialization/types/WorkflowEventError.js +10 -1
  368. package/serialization/types/WorkflowExecutionActualChatHistoryRequest.js +10 -1
  369. package/serialization/types/WorkflowExecutionNodeResultEvent.js +10 -1
  370. package/serialization/types/WorkflowExecutionWorkflowResultEvent.js +10 -1
  371. package/serialization/types/WorkflowNodeResultData.js +15 -6
  372. package/serialization/types/WorkflowNodeResultEvent.js +13 -4
  373. package/serialization/types/WorkflowRequestChatHistoryInputRequest.js +10 -1
  374. package/serialization/types/WorkflowRequestInputRequest.js +12 -3
  375. package/serialization/types/WorkflowResultEvent.js +12 -3
  376. package/serialization/types/WorkflowResultEventOutputData.js +15 -6
  377. package/serialization/types/WorkflowResultEventOutputDataChatHistory.js +11 -2
  378. package/serialization/types/WorkflowResultEventOutputDataError.js +11 -2
  379. package/serialization/types/WorkflowResultEventOutputDataJson.js +10 -1
  380. package/serialization/types/WorkflowResultEventOutputDataNumber.js +10 -1
  381. package/serialization/types/WorkflowResultEventOutputDataSearchResults.js +11 -2
  382. package/serialization/types/WorkflowResultEventOutputDataString.js +10 -1
  383. package/serialization/types/WorkflowStreamEvent.js +11 -2
  384. package/serialization/types/index.d.ts +0 -2
  385. package/serialization/types/index.js +0 -2
  386. package/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +0 -7
  387. package/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +0 -5
  388. package/api/resources/modelVersions/client/requests/index.d.ts +0 -1
  389. package/api/resources/modelVersions/client/requests/index.js +0 -2
  390. package/api/types/ModelVersionCompilePromptResponse.d.ts +0 -8
  391. package/api/types/ModelVersionCompilePromptResponse.js +0 -5
  392. package/api/types/ModelVersionCompiledPrompt.d.ts +0 -9
  393. package/api/types/ModelVersionCompiledPrompt.js +0 -5
  394. package/core/callback-queue/CallbackQueue.d.ts +0 -6
  395. package/core/callback-queue/CallbackQueue.js +0 -20
  396. package/core/callback-queue/index.d.ts +0 -1
  397. package/core/callback-queue/index.js +0 -5
  398. package/dist/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +0 -7
  399. package/dist/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +0 -5
  400. package/dist/api/resources/modelVersions/client/requests/index.d.ts +0 -1
  401. package/dist/api/resources/modelVersions/client/requests/index.js +0 -2
  402. package/dist/api/types/ModelVersionCompilePromptResponse.d.ts +0 -8
  403. package/dist/api/types/ModelVersionCompilePromptResponse.js +0 -5
  404. package/dist/api/types/ModelVersionCompiledPrompt.d.ts +0 -9
  405. package/dist/api/types/ModelVersionCompiledPrompt.js +0 -5
  406. package/dist/core/callback-queue/CallbackQueue.d.ts +0 -6
  407. package/dist/core/callback-queue/CallbackQueue.js +0 -20
  408. package/dist/core/callback-queue/index.d.ts +0 -1
  409. package/dist/core/callback-queue/index.js +0 -5
  410. package/dist/serialization/resources/modelVersions/client/index.d.ts +0 -1
  411. package/dist/serialization/resources/modelVersions/client/index.js +0 -17
  412. package/dist/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +0 -12
  413. package/dist/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +0 -33
  414. package/dist/serialization/resources/modelVersions/client/requests/index.d.ts +0 -1
  415. package/dist/serialization/resources/modelVersions/client/requests/index.js +0 -5
  416. package/dist/serialization/resources/modelVersions/index.d.ts +0 -1
  417. package/dist/serialization/resources/modelVersions/index.js +0 -17
  418. package/dist/serialization/types/ModelVersionCompilePromptResponse.d.ts +0 -12
  419. package/dist/serialization/types/ModelVersionCompilePromptResponse.js +0 -33
  420. package/dist/serialization/types/ModelVersionCompiledPrompt.d.ts +0 -13
  421. package/dist/serialization/types/ModelVersionCompiledPrompt.js +0 -34
  422. package/serialization/resources/modelVersions/client/index.d.ts +0 -1
  423. package/serialization/resources/modelVersions/client/index.js +0 -17
  424. package/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +0 -12
  425. package/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +0 -33
  426. package/serialization/resources/modelVersions/client/requests/index.d.ts +0 -1
  427. package/serialization/resources/modelVersions/client/requests/index.js +0 -5
  428. package/serialization/resources/modelVersions/index.d.ts +0 -1
  429. package/serialization/resources/modelVersions/index.js +0 -17
  430. package/serialization/types/ModelVersionCompilePromptResponse.d.ts +0 -12
  431. package/serialization/types/ModelVersionCompilePromptResponse.js +0 -33
  432. package/serialization/types/ModelVersionCompiledPrompt.d.ts +0 -13
  433. package/serialization/types/ModelVersionCompiledPrompt.js +0 -34
@@ -25,16 +25,25 @@ 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.WorkflowResultEventOutputDataSearchResults = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.WorkflowResultEventOutputDataSearchResults = core.serialization.object({
32
41
  id: core.serialization.string().optional(),
33
42
  name: core.serialization.string(),
34
- state: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState),
43
+ state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
35
44
  nodeId: core.serialization.property("node_id", core.serialization.string()),
36
45
  delta: core.serialization.string().optional(),
37
46
  value: core.serialization
38
- .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchResult))
47
+ .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; })))
39
48
  .optional(),
40
49
  });
@@ -25,13 +25,22 @@ 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.WorkflowResultEventOutputDataString = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.WorkflowResultEventOutputDataString = core.serialization.object({
32
41
  id: core.serialization.string().optional(),
33
42
  name: core.serialization.string(),
34
- state: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState),
43
+ state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
35
44
  nodeId: core.serialization.property("node_id", core.serialization.string()),
36
45
  delta: core.serialization.string().optional(),
37
46
  value: core.serialization.string().optional(),
@@ -25,13 +25,22 @@ 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.WorkflowStreamEvent = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.WorkflowStreamEvent = core.serialization
32
41
  .union("type", {
33
- WORKFLOW: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionWorkflowResultEvent),
34
- NODE: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionNodeResultEvent),
42
+ WORKFLOW: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionWorkflowResultEvent; })),
43
+ NODE: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionNodeResultEvent; })),
35
44
  })
36
45
  .transform({
37
46
  transform: (value) => value,
@@ -36,8 +36,6 @@ export * from "./MetadataFilterConfigRequest";
36
36
  export * from "./MetadataFilterRuleCombinator";
37
37
  export * from "./MetadataFilterRuleRequest";
38
38
  export * from "./ModelVersionBuildConfig";
39
- export * from "./ModelVersionCompilePromptResponse";
40
- export * from "./ModelVersionCompiledPrompt";
41
39
  export * from "./ModelVersionExecConfig";
42
40
  export * from "./ModelVersionExecConfigParameters";
43
41
  export * from "./ModelVersionRead";
@@ -52,8 +52,6 @@ __exportStar(require("./MetadataFilterConfigRequest"), exports);
52
52
  __exportStar(require("./MetadataFilterRuleCombinator"), exports);
53
53
  __exportStar(require("./MetadataFilterRuleRequest"), exports);
54
54
  __exportStar(require("./ModelVersionBuildConfig"), exports);
55
- __exportStar(require("./ModelVersionCompilePromptResponse"), exports);
56
- __exportStar(require("./ModelVersionCompiledPrompt"), exports);
57
55
  __exportStar(require("./ModelVersionExecConfig"), exports);
58
56
  __exportStar(require("./ModelVersionExecConfigParameters"), exports);
59
57
  __exportStar(require("./ModelVersionRead"), exports);
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ModelVersionCompilePromptRequestRequest {
5
- /** Key/value pairs for each variable found within the model version's prompt template. */
6
- inputValues: Record<string, unknown>;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export { ModelVersionCompilePromptRequestRequest } from "./ModelVersionCompilePromptRequestRequest";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface ModelVersionCompilePromptResponse {
6
- /** Information about the compiled prompt. */
7
- prompt: Vellum.ModelVersionCompiledPrompt;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ModelVersionCompiledPrompt {
5
- /** The fully compiled prompt in normalized ChatML syntax after all variable substitutions and templating functions are applied. */
6
- text: string;
7
- /** The approximate number of tokens used by the compiled prompt. */
8
- numTokens: number;
9
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export declare class CallbackQueue {
2
- private queue;
3
- wrap<Args extends any[]>(callback: (...args: Args) => void | Promise<void>): (...args: Args) => void;
4
- wrap(callback: undefined): undefined;
5
- toPromise(): Promise<void>;
6
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CallbackQueue = void 0;
4
- class CallbackQueue {
5
- queue = Promise.resolve();
6
- wrap(callback) {
7
- if (callback == null) {
8
- return undefined;
9
- }
10
- return (...args) => {
11
- this.queue = this.queue.then(() => {
12
- return callback(...args);
13
- });
14
- };
15
- }
16
- toPromise() {
17
- return this.queue;
18
- }
19
- }
20
- exports.CallbackQueue = CallbackQueue;
@@ -1 +0,0 @@
1
- export { CallbackQueue } from "./CallbackQueue";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CallbackQueue = void 0;
4
- var CallbackQueue_1 = require("./CallbackQueue");
5
- Object.defineProperty(exports, "CallbackQueue", { enumerable: true, get: function () { return CallbackQueue_1.CallbackQueue; } });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ModelVersionCompilePromptRequestRequest {
5
- /** Key/value pairs for each variable found within the model version's prompt template. */
6
- inputValues: Record<string, unknown>;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export { ModelVersionCompilePromptRequestRequest } from "./ModelVersionCompilePromptRequestRequest";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface ModelVersionCompilePromptResponse {
6
- /** Information about the compiled prompt. */
7
- prompt: Vellum.ModelVersionCompiledPrompt;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ModelVersionCompiledPrompt {
5
- /** The fully compiled prompt in normalized ChatML syntax after all variable substitutions and templating functions are applied. */
6
- text: string;
7
- /** The approximate number of tokens used by the compiled prompt. */
8
- numTokens: number;
9
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export declare class CallbackQueue {
2
- private queue;
3
- wrap<Args extends any[]>(callback: (...args: Args) => void | Promise<void>): (...args: Args) => void;
4
- wrap(callback: undefined): undefined;
5
- toPromise(): Promise<void>;
6
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CallbackQueue = void 0;
4
- class CallbackQueue {
5
- queue = Promise.resolve();
6
- wrap(callback) {
7
- if (callback == null) {
8
- return undefined;
9
- }
10
- return (...args) => {
11
- this.queue = this.queue.then(() => {
12
- return callback(...args);
13
- });
14
- };
15
- }
16
- toPromise() {
17
- return this.queue;
18
- }
19
- }
20
- exports.CallbackQueue = CallbackQueue;
@@ -1 +0,0 @@
1
- export { CallbackQueue } from "./CallbackQueue";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CallbackQueue = void 0;
4
- var CallbackQueue_1 = require("./CallbackQueue");
5
- Object.defineProperty(exports, "CallbackQueue", { enumerable: true, get: function () { return CallbackQueue_1.CallbackQueue; } });
@@ -1 +0,0 @@
1
- export * from "./requests";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../..";
5
- import * as Vellum from "../../../../../api";
6
- import * as core from "../../../../../core";
7
- export declare const ModelVersionCompilePromptRequestRequest: core.serialization.Schema<serializers.ModelVersionCompilePromptRequestRequest.Raw, Vellum.ModelVersionCompilePromptRequestRequest>;
8
- export declare namespace ModelVersionCompilePromptRequestRequest {
9
- interface Raw {
10
- input_values: Record<string, unknown>;
11
- }
12
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ModelVersionCompilePromptRequestRequest = void 0;
30
- const core = __importStar(require("../../../../../core"));
31
- exports.ModelVersionCompilePromptRequestRequest = core.serialization.object({
32
- inputValues: core.serialization.property("input_values", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
33
- });
@@ -1 +0,0 @@
1
- export { ModelVersionCompilePromptRequestRequest } from "./ModelVersionCompilePromptRequestRequest";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelVersionCompilePromptRequestRequest = void 0;
4
- var ModelVersionCompilePromptRequestRequest_1 = require("./ModelVersionCompilePromptRequestRequest");
5
- Object.defineProperty(exports, "ModelVersionCompilePromptRequestRequest", { enumerable: true, get: function () { return ModelVersionCompilePromptRequestRequest_1.ModelVersionCompilePromptRequestRequest; } });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "..";
5
- import * as Vellum from "../../api";
6
- import * as core from "../../core";
7
- export declare const ModelVersionCompilePromptResponse: core.serialization.ObjectSchema<serializers.ModelVersionCompilePromptResponse.Raw, Vellum.ModelVersionCompilePromptResponse>;
8
- export declare namespace ModelVersionCompilePromptResponse {
9
- interface Raw {
10
- prompt: serializers.ModelVersionCompiledPrompt.Raw;
11
- }
12
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ModelVersionCompilePromptResponse = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.ModelVersionCompilePromptResponse = core.serialization.object({
32
- prompt: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionCompiledPrompt),
33
- });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "..";
5
- import * as Vellum from "../../api";
6
- import * as core from "../../core";
7
- export declare const ModelVersionCompiledPrompt: core.serialization.ObjectSchema<serializers.ModelVersionCompiledPrompt.Raw, Vellum.ModelVersionCompiledPrompt>;
8
- export declare namespace ModelVersionCompiledPrompt {
9
- interface Raw {
10
- text: string;
11
- num_tokens: number;
12
- }
13
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ModelVersionCompiledPrompt = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.ModelVersionCompiledPrompt = core.serialization.object({
32
- text: core.serialization.string(),
33
- numTokens: core.serialization.property("num_tokens", core.serialization.number()),
34
- });
@@ -1 +0,0 @@
1
- export * from "./requests";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../..";
5
- import * as Vellum from "../../../../../api";
6
- import * as core from "../../../../../core";
7
- export declare const ModelVersionCompilePromptRequestRequest: core.serialization.Schema<serializers.ModelVersionCompilePromptRequestRequest.Raw, Vellum.ModelVersionCompilePromptRequestRequest>;
8
- export declare namespace ModelVersionCompilePromptRequestRequest {
9
- interface Raw {
10
- input_values: Record<string, unknown>;
11
- }
12
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ModelVersionCompilePromptRequestRequest = void 0;
30
- const core = __importStar(require("../../../../../core"));
31
- exports.ModelVersionCompilePromptRequestRequest = core.serialization.object({
32
- inputValues: core.serialization.property("input_values", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
33
- });
@@ -1 +0,0 @@
1
- export { ModelVersionCompilePromptRequestRequest } from "./ModelVersionCompilePromptRequestRequest";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelVersionCompilePromptRequestRequest = void 0;
4
- var ModelVersionCompilePromptRequestRequest_1 = require("./ModelVersionCompilePromptRequestRequest");
5
- Object.defineProperty(exports, "ModelVersionCompilePromptRequestRequest", { enumerable: true, get: function () { return ModelVersionCompilePromptRequestRequest_1.ModelVersionCompilePromptRequestRequest; } });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "..";
5
- import * as Vellum from "../../api";
6
- import * as core from "../../core";
7
- export declare const ModelVersionCompilePromptResponse: core.serialization.ObjectSchema<serializers.ModelVersionCompilePromptResponse.Raw, Vellum.ModelVersionCompilePromptResponse>;
8
- export declare namespace ModelVersionCompilePromptResponse {
9
- interface Raw {
10
- prompt: serializers.ModelVersionCompiledPrompt.Raw;
11
- }
12
- }