vellum-ai 0.1.8 → 0.1.9

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 (383) hide show
  1. package/Client.d.ts +32 -0
  2. package/Client.js +254 -36
  3. package/api/client/requests/ExecutePromptRequest.d.ts +20 -0
  4. package/api/client/requests/ExecutePromptRequest.js +5 -0
  5. package/api/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
  6. package/api/client/requests/ExecutePromptStreamRequest.js +5 -0
  7. package/api/client/requests/GenerateBodyRequest.d.ts +11 -0
  8. package/api/client/requests/SubmitCompletionActualsRequest.d.ts +6 -0
  9. package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +6 -0
  10. package/api/client/requests/index.d.ts +2 -0
  11. package/api/errors/ForbiddenError.d.ts +1 -2
  12. package/api/resources/deployments/client/Client.js +2 -2
  13. package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +6 -0
  14. package/api/resources/documentIndexes/client/Client.js +2 -2
  15. package/api/resources/documents/client/Client.d.ts +3 -0
  16. package/api/resources/documents/client/Client.js +7 -5
  17. package/api/resources/documents/client/requests/DocumentsListRequest.d.ts +4 -0
  18. package/api/resources/modelVersions/client/Client.js +1 -1
  19. package/api/resources/registeredPrompts/client/Client.js +1 -1
  20. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -0
  21. package/api/resources/sandboxes/client/Client.d.ts +3 -0
  22. package/api/resources/sandboxes/client/Client.js +5 -2
  23. package/api/resources/testSuites/client/Client.d.ts +8 -0
  24. package/api/resources/testSuites/client/Client.js +10 -2
  25. package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +7 -0
  26. package/api/types/BlockTypeEnum.d.ts +4 -4
  27. package/api/types/ChatMessageRole.d.ts +4 -4
  28. package/api/types/DeploymentRead.d.ts +6 -6
  29. package/api/types/DeploymentStatus.d.ts +3 -3
  30. package/api/types/DocumentDocumentToDocumentIndex.d.ts +5 -5
  31. package/api/types/DocumentIndexRead.d.ts +5 -5
  32. package/api/types/DocumentIndexStatus.d.ts +2 -2
  33. package/api/types/DocumentRead.d.ts +5 -5
  34. package/api/types/EnrichedNormalizedCompletion.d.ts +3 -3
  35. package/api/types/EnvironmentEnum.d.ts +3 -3
  36. package/api/types/ErrorVariableValue.d.ts +7 -0
  37. package/api/types/ErrorVariableValue.js +5 -0
  38. package/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
  39. package/api/types/ExecutePromptApiErrorResponse.js +5 -0
  40. package/api/types/ExecutePromptEvent.d.ts +19 -0
  41. package/api/types/ExecutePromptEvent.js +5 -0
  42. package/api/types/ExecutePromptResponse.d.ts +13 -0
  43. package/api/types/ExecutePromptResponse.js +5 -0
  44. package/api/types/FinishReasonEnum.d.ts +3 -3
  45. package/api/types/FulfilledEnum.d.ts +4 -0
  46. package/api/types/FulfilledEnum.js +5 -0
  47. package/api/types/FulfilledExecutePromptEvent.d.ts +12 -0
  48. package/api/types/FulfilledExecutePromptEvent.js +5 -0
  49. package/api/types/FulfilledExecutePromptResponse.d.ts +15 -0
  50. package/api/types/FulfilledExecutePromptResponse.js +5 -0
  51. package/api/types/FulfilledPromptExecutionMeta.d.ts +11 -0
  52. package/api/types/FulfilledPromptExecutionMeta.js +5 -0
  53. package/api/types/GenerateOptionsRequest.d.ts +2 -2
  54. package/api/types/IndexingStateEnum.d.ts +5 -5
  55. package/api/types/InitiatedEnum.d.ts +4 -0
  56. package/api/types/InitiatedEnum.js +5 -0
  57. package/api/types/InitiatedExecutePromptEvent.d.ts +11 -0
  58. package/api/types/InitiatedExecutePromptEvent.js +5 -0
  59. package/api/types/InitiatedPromptExecutionMeta.d.ts +12 -0
  60. package/api/types/InitiatedPromptExecutionMeta.js +5 -0
  61. package/api/types/JsonVariableValue.d.ts +6 -0
  62. package/api/types/JsonVariableValue.js +5 -0
  63. package/api/types/LogicalOperator.d.ts +18 -18
  64. package/api/types/LogprobsEnum.d.ts +2 -2
  65. package/api/types/MetadataFilterRuleCombinator.d.ts +2 -2
  66. package/api/types/ModelVersionRead.d.ts +13 -12
  67. package/api/types/ModelVersionReadStatusEnum.d.ts +4 -4
  68. package/api/types/ProcessingFailureReasonEnum.d.ts +2 -2
  69. package/api/types/ProcessingStateEnum.d.ts +4 -4
  70. package/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +15 -0
  71. package/api/types/PromptDeploymentExpandMetaRequestRequest.js +5 -0
  72. package/api/types/PromptExecutionMeta.d.ts +14 -0
  73. package/api/types/PromptExecutionMeta.js +5 -0
  74. package/api/types/PromptOutput.d.ts +16 -0
  75. package/api/types/PromptOutput.js +5 -0
  76. package/api/types/ProviderEnum.d.ts +15 -13
  77. package/api/types/ProviderEnum.js +1 -0
  78. package/api/types/RawPromptExecutionOverridesRequest.d.ts +10 -0
  79. package/api/types/RawPromptExecutionOverridesRequest.js +5 -0
  80. package/api/types/RejectedEnum.d.ts +4 -0
  81. package/api/types/RejectedEnum.js +5 -0
  82. package/api/types/RejectedExecutePromptEvent.d.ts +12 -0
  83. package/api/types/RejectedExecutePromptEvent.js +5 -0
  84. package/api/types/RejectedExecutePromptResponse.d.ts +15 -0
  85. package/api/types/RejectedExecutePromptResponse.js +5 -0
  86. package/api/types/RejectedPromptExecutionMeta.d.ts +11 -0
  87. package/api/types/RejectedPromptExecutionMeta.js +5 -0
  88. package/api/types/ScenarioInputTypeEnum.d.ts +2 -2
  89. package/api/types/SlimDocument.d.ts +7 -7
  90. package/api/types/StreamingEnum.d.ts +4 -0
  91. package/api/types/StreamingEnum.js +5 -0
  92. package/api/types/StreamingExecutePromptEvent.d.ts +15 -0
  93. package/api/types/StreamingExecutePromptEvent.js +5 -0
  94. package/api/types/StreamingPromptExecutionMeta.d.ts +9 -0
  95. package/api/types/StreamingPromptExecutionMeta.js +5 -0
  96. package/api/types/StringVariableValue.d.ts +6 -0
  97. package/api/types/StringVariableValue.js +5 -0
  98. package/api/types/VellumErrorCodeEnum.d.ts +3 -3
  99. package/api/types/VellumVariableType.d.ts +9 -7
  100. package/api/types/VellumVariableType.js +1 -0
  101. package/api/types/WorkflowExecutionEventErrorCode.d.ts +6 -6
  102. package/api/types/WorkflowExecutionEventType.d.ts +2 -2
  103. package/api/types/WorkflowNodeResultEventState.d.ts +4 -4
  104. package/api/types/WorkflowRequestInputRequest.d.ts +4 -1
  105. package/api/types/WorkflowRequestNumberInputRequest.d.ts +8 -0
  106. package/api/types/WorkflowRequestNumberInputRequest.js +5 -0
  107. package/api/types/index.d.ts +25 -0
  108. package/api/types/index.js +25 -0
  109. package/core/fetcher/APIResponse.d.ts +1 -0
  110. package/core/fetcher/Fetcher.d.ts +1 -4
  111. package/core/fetcher/Fetcher.js +52 -31
  112. package/core/fetcher/getHeader.d.ts +1 -0
  113. package/core/{streaming-fetcher → fetcher}/getHeader.js +2 -2
  114. package/core/fetcher/index.d.ts +1 -0
  115. package/core/fetcher/index.js +3 -1
  116. package/core/index.d.ts +0 -1
  117. package/core/index.js +0 -1
  118. package/core/streaming-fetcher/Stream.d.ts +3 -2
  119. package/core/streaming-fetcher/index.d.ts +0 -3
  120. package/core/streaming-fetcher/index.js +1 -5
  121. package/dist/Client.d.ts +32 -0
  122. package/dist/Client.js +254 -36
  123. package/dist/api/client/requests/ExecutePromptRequest.d.ts +20 -0
  124. package/dist/api/client/requests/ExecutePromptRequest.js +5 -0
  125. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
  126. package/dist/api/client/requests/ExecutePromptStreamRequest.js +5 -0
  127. package/dist/api/client/requests/GenerateBodyRequest.d.ts +11 -0
  128. package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +6 -0
  129. package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +6 -0
  130. package/dist/api/client/requests/index.d.ts +2 -0
  131. package/dist/api/errors/ForbiddenError.d.ts +1 -2
  132. package/dist/api/resources/deployments/client/Client.js +2 -2
  133. package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +6 -0
  134. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  135. package/dist/api/resources/documents/client/Client.d.ts +3 -0
  136. package/dist/api/resources/documents/client/Client.js +7 -5
  137. package/dist/api/resources/documents/client/requests/DocumentsListRequest.d.ts +4 -0
  138. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  139. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  140. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -0
  141. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -0
  142. package/dist/api/resources/sandboxes/client/Client.js +5 -2
  143. package/dist/api/resources/testSuites/client/Client.d.ts +8 -0
  144. package/dist/api/resources/testSuites/client/Client.js +10 -2
  145. package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +7 -0
  146. package/dist/api/types/BlockTypeEnum.d.ts +4 -4
  147. package/dist/api/types/ChatMessageRole.d.ts +4 -4
  148. package/dist/api/types/DeploymentRead.d.ts +6 -6
  149. package/dist/api/types/DeploymentStatus.d.ts +3 -3
  150. package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +5 -5
  151. package/dist/api/types/DocumentIndexRead.d.ts +5 -5
  152. package/dist/api/types/DocumentIndexStatus.d.ts +2 -2
  153. package/dist/api/types/DocumentRead.d.ts +5 -5
  154. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +3 -3
  155. package/dist/api/types/EnvironmentEnum.d.ts +3 -3
  156. package/dist/api/types/ErrorVariableValue.d.ts +7 -0
  157. package/dist/api/types/ErrorVariableValue.js +5 -0
  158. package/dist/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
  159. package/dist/api/types/ExecutePromptApiErrorResponse.js +5 -0
  160. package/dist/api/types/ExecutePromptEvent.d.ts +19 -0
  161. package/dist/api/types/ExecutePromptEvent.js +5 -0
  162. package/dist/api/types/ExecutePromptResponse.d.ts +13 -0
  163. package/dist/api/types/ExecutePromptResponse.js +5 -0
  164. package/dist/api/types/FinishReasonEnum.d.ts +3 -3
  165. package/dist/api/types/FulfilledEnum.d.ts +4 -0
  166. package/dist/api/types/FulfilledEnum.js +5 -0
  167. package/dist/api/types/FulfilledExecutePromptEvent.d.ts +12 -0
  168. package/dist/api/types/FulfilledExecutePromptEvent.js +5 -0
  169. package/dist/api/types/FulfilledExecutePromptResponse.d.ts +15 -0
  170. package/dist/api/types/FulfilledExecutePromptResponse.js +5 -0
  171. package/dist/api/types/FulfilledPromptExecutionMeta.d.ts +11 -0
  172. package/dist/api/types/FulfilledPromptExecutionMeta.js +5 -0
  173. package/dist/api/types/GenerateOptionsRequest.d.ts +2 -2
  174. package/dist/api/types/IndexingStateEnum.d.ts +5 -5
  175. package/dist/api/types/InitiatedEnum.d.ts +4 -0
  176. package/dist/api/types/InitiatedEnum.js +5 -0
  177. package/dist/api/types/InitiatedExecutePromptEvent.d.ts +11 -0
  178. package/dist/api/types/InitiatedExecutePromptEvent.js +5 -0
  179. package/dist/api/types/InitiatedPromptExecutionMeta.d.ts +12 -0
  180. package/dist/api/types/InitiatedPromptExecutionMeta.js +5 -0
  181. package/dist/api/types/JsonVariableValue.d.ts +6 -0
  182. package/dist/api/types/JsonVariableValue.js +5 -0
  183. package/dist/api/types/LogicalOperator.d.ts +18 -18
  184. package/dist/api/types/LogprobsEnum.d.ts +2 -2
  185. package/dist/api/types/MetadataFilterRuleCombinator.d.ts +2 -2
  186. package/dist/api/types/ModelVersionRead.d.ts +13 -12
  187. package/dist/api/types/ModelVersionReadStatusEnum.d.ts +4 -4
  188. package/dist/api/types/ProcessingFailureReasonEnum.d.ts +2 -2
  189. package/dist/api/types/ProcessingStateEnum.d.ts +4 -4
  190. package/dist/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +15 -0
  191. package/dist/api/types/PromptDeploymentExpandMetaRequestRequest.js +5 -0
  192. package/dist/api/types/PromptExecutionMeta.d.ts +14 -0
  193. package/dist/api/types/PromptExecutionMeta.js +5 -0
  194. package/dist/api/types/PromptOutput.d.ts +16 -0
  195. package/dist/api/types/PromptOutput.js +5 -0
  196. package/dist/api/types/ProviderEnum.d.ts +15 -13
  197. package/dist/api/types/ProviderEnum.js +1 -0
  198. package/dist/api/types/RawPromptExecutionOverridesRequest.d.ts +10 -0
  199. package/dist/api/types/RawPromptExecutionOverridesRequest.js +5 -0
  200. package/dist/api/types/RejectedEnum.d.ts +4 -0
  201. package/dist/api/types/RejectedEnum.js +5 -0
  202. package/dist/api/types/RejectedExecutePromptEvent.d.ts +12 -0
  203. package/dist/api/types/RejectedExecutePromptEvent.js +5 -0
  204. package/dist/api/types/RejectedExecutePromptResponse.d.ts +15 -0
  205. package/dist/api/types/RejectedExecutePromptResponse.js +5 -0
  206. package/dist/api/types/RejectedPromptExecutionMeta.d.ts +11 -0
  207. package/dist/api/types/RejectedPromptExecutionMeta.js +5 -0
  208. package/dist/api/types/ScenarioInputTypeEnum.d.ts +2 -2
  209. package/dist/api/types/SlimDocument.d.ts +7 -7
  210. package/dist/api/types/StreamingEnum.d.ts +4 -0
  211. package/dist/api/types/StreamingEnum.js +5 -0
  212. package/dist/api/types/StreamingExecutePromptEvent.d.ts +15 -0
  213. package/dist/api/types/StreamingExecutePromptEvent.js +5 -0
  214. package/dist/api/types/StreamingPromptExecutionMeta.d.ts +9 -0
  215. package/dist/api/types/StreamingPromptExecutionMeta.js +5 -0
  216. package/dist/api/types/StringVariableValue.d.ts +6 -0
  217. package/dist/api/types/StringVariableValue.js +5 -0
  218. package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -3
  219. package/dist/api/types/VellumVariableType.d.ts +9 -7
  220. package/dist/api/types/VellumVariableType.js +1 -0
  221. package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +6 -6
  222. package/dist/api/types/WorkflowExecutionEventType.d.ts +2 -2
  223. package/dist/api/types/WorkflowNodeResultEventState.d.ts +4 -4
  224. package/dist/api/types/WorkflowRequestInputRequest.d.ts +4 -1
  225. package/dist/api/types/WorkflowRequestNumberInputRequest.d.ts +8 -0
  226. package/dist/api/types/WorkflowRequestNumberInputRequest.js +5 -0
  227. package/dist/api/types/index.d.ts +25 -0
  228. package/dist/api/types/index.js +25 -0
  229. package/dist/core/fetcher/APIResponse.d.ts +1 -0
  230. package/dist/core/fetcher/Fetcher.d.ts +1 -4
  231. package/dist/core/fetcher/Fetcher.js +52 -31
  232. package/dist/core/fetcher/getHeader.d.ts +1 -0
  233. package/dist/core/{streaming-fetcher → fetcher}/getHeader.js +2 -2
  234. package/dist/core/fetcher/index.d.ts +1 -0
  235. package/dist/core/fetcher/index.js +3 -1
  236. package/dist/core/index.d.ts +0 -1
  237. package/dist/core/index.js +0 -1
  238. package/dist/core/streaming-fetcher/Stream.d.ts +3 -2
  239. package/dist/core/streaming-fetcher/index.d.ts +0 -3
  240. package/dist/core/streaming-fetcher/index.js +1 -5
  241. package/dist/serialization/client/requests/ExecutePromptRequest.d.ts +20 -0
  242. package/dist/serialization/client/requests/ExecutePromptRequest.js +52 -0
  243. package/dist/serialization/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
  244. package/dist/serialization/client/requests/ExecutePromptStreamRequest.js +52 -0
  245. package/dist/serialization/client/requests/index.d.ts +2 -0
  246. package/dist/serialization/client/requests/index.js +5 -1
  247. package/dist/serialization/types/ErrorVariableValue.d.ts +12 -0
  248. package/dist/serialization/types/ErrorVariableValue.js +42 -0
  249. package/dist/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
  250. package/dist/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
  251. package/dist/serialization/types/ExecutePromptEvent.d.ts +22 -0
  252. package/dist/serialization/types/ExecutePromptEvent.js +50 -0
  253. package/dist/serialization/types/ExecutePromptResponse.d.ts +16 -0
  254. package/dist/serialization/types/ExecutePromptResponse.js +48 -0
  255. package/dist/serialization/types/FulfilledEnum.d.ts +10 -0
  256. package/dist/serialization/types/FulfilledEnum.js +31 -0
  257. package/dist/serialization/types/FulfilledExecutePromptEvent.d.ts +14 -0
  258. package/dist/serialization/types/FulfilledExecutePromptEvent.js +44 -0
  259. package/dist/serialization/types/FulfilledExecutePromptResponse.d.ts +15 -0
  260. package/dist/serialization/types/FulfilledExecutePromptResponse.js +45 -0
  261. package/dist/serialization/types/FulfilledPromptExecutionMeta.d.ts +13 -0
  262. package/dist/serialization/types/FulfilledPromptExecutionMeta.js +43 -0
  263. package/dist/serialization/types/InitiatedEnum.d.ts +10 -0
  264. package/dist/serialization/types/InitiatedEnum.js +31 -0
  265. package/dist/serialization/types/InitiatedExecutePromptEvent.d.ts +13 -0
  266. package/dist/serialization/types/InitiatedExecutePromptEvent.js +43 -0
  267. package/dist/serialization/types/InitiatedPromptExecutionMeta.d.ts +15 -0
  268. package/dist/serialization/types/InitiatedPromptExecutionMeta.js +36 -0
  269. package/dist/serialization/types/JsonVariableValue.d.ts +12 -0
  270. package/dist/serialization/types/JsonVariableValue.js +33 -0
  271. package/dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.d.ts +16 -0
  272. package/dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.js +37 -0
  273. package/dist/serialization/types/PromptExecutionMeta.d.ts +16 -0
  274. package/dist/serialization/types/PromptExecutionMeta.js +46 -0
  275. package/dist/serialization/types/PromptOutput.d.ts +19 -0
  276. package/dist/serialization/types/PromptOutput.js +49 -0
  277. package/dist/serialization/types/ProviderEnum.d.ts +1 -1
  278. package/dist/serialization/types/ProviderEnum.js +1 -0
  279. package/dist/serialization/types/RawPromptExecutionOverridesRequest.d.ts +14 -0
  280. package/dist/serialization/types/RawPromptExecutionOverridesRequest.js +35 -0
  281. package/dist/serialization/types/RejectedEnum.d.ts +10 -0
  282. package/dist/serialization/types/RejectedEnum.js +31 -0
  283. package/dist/serialization/types/RejectedExecutePromptEvent.d.ts +14 -0
  284. package/dist/serialization/types/RejectedExecutePromptEvent.js +44 -0
  285. package/dist/serialization/types/RejectedExecutePromptResponse.d.ts +15 -0
  286. package/dist/serialization/types/RejectedExecutePromptResponse.js +45 -0
  287. package/dist/serialization/types/RejectedPromptExecutionMeta.d.ts +13 -0
  288. package/dist/serialization/types/RejectedPromptExecutionMeta.js +43 -0
  289. package/dist/serialization/types/StreamingEnum.d.ts +10 -0
  290. package/dist/serialization/types/StreamingEnum.js +31 -0
  291. package/dist/serialization/types/StreamingExecutePromptEvent.d.ts +16 -0
  292. package/dist/serialization/types/StreamingExecutePromptEvent.js +46 -0
  293. package/dist/serialization/types/StreamingPromptExecutionMeta.d.ts +12 -0
  294. package/dist/serialization/types/StreamingPromptExecutionMeta.js +33 -0
  295. package/dist/serialization/types/StringVariableValue.d.ts +12 -0
  296. package/dist/serialization/types/StringVariableValue.js +33 -0
  297. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  298. package/dist/serialization/types/VellumVariableType.js +1 -1
  299. package/dist/serialization/types/WorkflowRequestInputRequest.d.ts +4 -1
  300. package/dist/serialization/types/WorkflowRequestInputRequest.js +1 -0
  301. package/dist/serialization/types/WorkflowRequestNumberInputRequest.d.ts +13 -0
  302. package/dist/serialization/types/WorkflowRequestNumberInputRequest.js +34 -0
  303. package/dist/serialization/types/index.d.ts +25 -0
  304. package/dist/serialization/types/index.js +25 -0
  305. package/package.json +6 -5
  306. package/serialization/client/requests/ExecutePromptRequest.d.ts +20 -0
  307. package/serialization/client/requests/ExecutePromptRequest.js +52 -0
  308. package/serialization/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
  309. package/serialization/client/requests/ExecutePromptStreamRequest.js +52 -0
  310. package/serialization/client/requests/index.d.ts +2 -0
  311. package/serialization/client/requests/index.js +5 -1
  312. package/serialization/types/ErrorVariableValue.d.ts +12 -0
  313. package/serialization/types/ErrorVariableValue.js +42 -0
  314. package/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
  315. package/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
  316. package/serialization/types/ExecutePromptEvent.d.ts +22 -0
  317. package/serialization/types/ExecutePromptEvent.js +50 -0
  318. package/serialization/types/ExecutePromptResponse.d.ts +16 -0
  319. package/serialization/types/ExecutePromptResponse.js +48 -0
  320. package/serialization/types/FulfilledEnum.d.ts +10 -0
  321. package/serialization/types/FulfilledEnum.js +31 -0
  322. package/serialization/types/FulfilledExecutePromptEvent.d.ts +14 -0
  323. package/serialization/types/FulfilledExecutePromptEvent.js +44 -0
  324. package/serialization/types/FulfilledExecutePromptResponse.d.ts +15 -0
  325. package/serialization/types/FulfilledExecutePromptResponse.js +45 -0
  326. package/serialization/types/FulfilledPromptExecutionMeta.d.ts +13 -0
  327. package/serialization/types/FulfilledPromptExecutionMeta.js +43 -0
  328. package/serialization/types/InitiatedEnum.d.ts +10 -0
  329. package/serialization/types/InitiatedEnum.js +31 -0
  330. package/serialization/types/InitiatedExecutePromptEvent.d.ts +13 -0
  331. package/serialization/types/InitiatedExecutePromptEvent.js +43 -0
  332. package/serialization/types/InitiatedPromptExecutionMeta.d.ts +15 -0
  333. package/serialization/types/InitiatedPromptExecutionMeta.js +36 -0
  334. package/serialization/types/JsonVariableValue.d.ts +12 -0
  335. package/serialization/types/JsonVariableValue.js +33 -0
  336. package/serialization/types/PromptDeploymentExpandMetaRequestRequest.d.ts +16 -0
  337. package/serialization/types/PromptDeploymentExpandMetaRequestRequest.js +37 -0
  338. package/serialization/types/PromptExecutionMeta.d.ts +16 -0
  339. package/serialization/types/PromptExecutionMeta.js +46 -0
  340. package/serialization/types/PromptOutput.d.ts +19 -0
  341. package/serialization/types/PromptOutput.js +49 -0
  342. package/serialization/types/ProviderEnum.d.ts +1 -1
  343. package/serialization/types/ProviderEnum.js +1 -0
  344. package/serialization/types/RawPromptExecutionOverridesRequest.d.ts +14 -0
  345. package/serialization/types/RawPromptExecutionOverridesRequest.js +35 -0
  346. package/serialization/types/RejectedEnum.d.ts +10 -0
  347. package/serialization/types/RejectedEnum.js +31 -0
  348. package/serialization/types/RejectedExecutePromptEvent.d.ts +14 -0
  349. package/serialization/types/RejectedExecutePromptEvent.js +44 -0
  350. package/serialization/types/RejectedExecutePromptResponse.d.ts +15 -0
  351. package/serialization/types/RejectedExecutePromptResponse.js +45 -0
  352. package/serialization/types/RejectedPromptExecutionMeta.d.ts +13 -0
  353. package/serialization/types/RejectedPromptExecutionMeta.js +43 -0
  354. package/serialization/types/StreamingEnum.d.ts +10 -0
  355. package/serialization/types/StreamingEnum.js +31 -0
  356. package/serialization/types/StreamingExecutePromptEvent.d.ts +16 -0
  357. package/serialization/types/StreamingExecutePromptEvent.js +46 -0
  358. package/serialization/types/StreamingPromptExecutionMeta.d.ts +12 -0
  359. package/serialization/types/StreamingPromptExecutionMeta.js +33 -0
  360. package/serialization/types/StringVariableValue.d.ts +12 -0
  361. package/serialization/types/StringVariableValue.js +33 -0
  362. package/serialization/types/VellumVariableType.d.ts +1 -1
  363. package/serialization/types/VellumVariableType.js +1 -1
  364. package/serialization/types/WorkflowRequestInputRequest.d.ts +4 -1
  365. package/serialization/types/WorkflowRequestInputRequest.js +1 -0
  366. package/serialization/types/WorkflowRequestNumberInputRequest.d.ts +13 -0
  367. package/serialization/types/WorkflowRequestNumberInputRequest.js +34 -0
  368. package/serialization/types/index.d.ts +25 -0
  369. package/serialization/types/index.js +25 -0
  370. package/core/form-data-utils/getFormDataContentLength.d.ts +0 -2
  371. package/core/form-data-utils/getFormDataContentLength.js +0 -27
  372. package/core/form-data-utils/index.d.ts +0 -1
  373. package/core/form-data-utils/index.js +0 -5
  374. package/core/streaming-fetcher/StreamingFetcher.d.ts +0 -24
  375. package/core/streaming-fetcher/StreamingFetcher.js +0 -58
  376. package/core/streaming-fetcher/getHeader.d.ts +0 -2
  377. package/dist/core/form-data-utils/getFormDataContentLength.d.ts +0 -2
  378. package/dist/core/form-data-utils/getFormDataContentLength.js +0 -27
  379. package/dist/core/form-data-utils/index.d.ts +0 -1
  380. package/dist/core/form-data-utils/index.js +0 -5
  381. package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +0 -24
  382. package/dist/core/streaming-fetcher/StreamingFetcher.js +0 -58
  383. package/dist/core/streaming-fetcher/getHeader.d.ts +0 -2
@@ -0,0 +1,50 @@
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
+ 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
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.ExecutePromptEvent = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ExecutePromptEvent = core.serialization
41
+ .union("state", {
42
+ INITIATED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).InitiatedExecutePromptEvent; })),
43
+ STREAMING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).StreamingExecutePromptEvent; })),
44
+ FULFILLED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FulfilledExecutePromptEvent; })),
45
+ REJECTED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).RejectedExecutePromptEvent; })),
46
+ })
47
+ .transform({
48
+ transform: (value) => value,
49
+ untransform: (value) => value,
50
+ });
@@ -0,0 +1,16 @@
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 ExecutePromptResponse: core.serialization.Schema<serializers.ExecutePromptResponse.Raw, Vellum.ExecutePromptResponse>;
8
+ export declare namespace ExecutePromptResponse {
9
+ type Raw = ExecutePromptResponse.Fulfilled | ExecutePromptResponse.Rejected;
10
+ interface Fulfilled extends serializers.FulfilledExecutePromptResponse.Raw {
11
+ state: "FULFILLED";
12
+ }
13
+ interface Rejected extends serializers.RejectedExecutePromptResponse.Raw {
14
+ state: "REJECTED";
15
+ }
16
+ }
@@ -0,0 +1,48 @@
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
+ 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
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.ExecutePromptResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ExecutePromptResponse = core.serialization
41
+ .union("state", {
42
+ FULFILLED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FulfilledExecutePromptResponse; })),
43
+ REJECTED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).RejectedExecutePromptResponse; })),
44
+ })
45
+ .transform({
46
+ transform: (value) => value,
47
+ untransform: (value) => value,
48
+ });
@@ -0,0 +1,10 @@
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 FulfilledEnum: core.serialization.Schema<serializers.FulfilledEnum.Raw, Vellum.FulfilledEnum>;
8
+ export declare namespace FulfilledEnum {
9
+ type Raw = "FULFILLED";
10
+ }
@@ -0,0 +1,31 @@
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.FulfilledEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.FulfilledEnum = core.serialization.stringLiteral("FULFILLED");
@@ -0,0 +1,14 @@
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 FulfilledExecutePromptEvent: core.serialization.ObjectSchema<serializers.FulfilledExecutePromptEvent.Raw, Vellum.FulfilledExecutePromptEvent>;
8
+ export declare namespace FulfilledExecutePromptEvent {
9
+ interface Raw {
10
+ outputs: serializers.PromptOutput.Raw[];
11
+ execution_id: string;
12
+ meta?: serializers.FulfilledPromptExecutionMeta.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,44 @@
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
+ 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
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.FulfilledExecutePromptEvent = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.FulfilledExecutePromptEvent = core.serialization.object({
41
+ outputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PromptOutput; }))),
42
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
43
+ meta: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FulfilledPromptExecutionMeta; })).optional(),
44
+ });
@@ -0,0 +1,15 @@
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 FulfilledExecutePromptResponse: core.serialization.ObjectSchema<serializers.FulfilledExecutePromptResponse.Raw, Vellum.FulfilledExecutePromptResponse>;
8
+ export declare namespace FulfilledExecutePromptResponse {
9
+ interface Raw {
10
+ meta?: serializers.PromptExecutionMeta.Raw | null;
11
+ raw?: Record<string, unknown> | null;
12
+ execution_id: string;
13
+ outputs: serializers.PromptOutput.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,45 @@
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
+ 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
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.FulfilledExecutePromptResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.FulfilledExecutePromptResponse = core.serialization.object({
41
+ meta: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PromptExecutionMeta; })).optional(),
42
+ raw: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
43
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
44
+ outputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PromptOutput; }))),
45
+ });
@@ -0,0 +1,13 @@
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 FulfilledPromptExecutionMeta: core.serialization.ObjectSchema<serializers.FulfilledPromptExecutionMeta.Raw, Vellum.FulfilledPromptExecutionMeta>;
8
+ export declare namespace FulfilledPromptExecutionMeta {
9
+ interface Raw {
10
+ latency?: number | null;
11
+ finish_reason?: serializers.FinishReasonEnum.Raw | null;
12
+ }
13
+ }
@@ -0,0 +1,43 @@
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
+ 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
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.FulfilledPromptExecutionMeta = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.FulfilledPromptExecutionMeta = core.serialization.object({
41
+ latency: core.serialization.number().optional(),
42
+ finishReason: core.serialization.property("finish_reason", core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum; })).optional()),
43
+ });
@@ -0,0 +1,10 @@
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 InitiatedEnum: core.serialization.Schema<serializers.InitiatedEnum.Raw, Vellum.InitiatedEnum>;
8
+ export declare namespace InitiatedEnum {
9
+ type Raw = "INITIATED";
10
+ }
@@ -0,0 +1,31 @@
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.InitiatedEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.InitiatedEnum = core.serialization.stringLiteral("INITIATED");
@@ -0,0 +1,13 @@
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 InitiatedExecutePromptEvent: core.serialization.ObjectSchema<serializers.InitiatedExecutePromptEvent.Raw, Vellum.InitiatedExecutePromptEvent>;
8
+ export declare namespace InitiatedExecutePromptEvent {
9
+ interface Raw {
10
+ meta?: serializers.InitiatedPromptExecutionMeta.Raw | null;
11
+ execution_id: string;
12
+ }
13
+ }
@@ -0,0 +1,43 @@
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
+ 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
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.InitiatedExecutePromptEvent = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.InitiatedExecutePromptEvent = core.serialization.object({
41
+ meta: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).InitiatedPromptExecutionMeta; })).optional(),
42
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
43
+ });
@@ -0,0 +1,15 @@
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 InitiatedPromptExecutionMeta: core.serialization.ObjectSchema<serializers.InitiatedPromptExecutionMeta.Raw, Vellum.InitiatedPromptExecutionMeta>;
8
+ export declare namespace InitiatedPromptExecutionMeta {
9
+ interface Raw {
10
+ model_name?: string | null;
11
+ latency?: number | null;
12
+ deployment_release_tag?: string | null;
13
+ prompt_version_id?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.InitiatedPromptExecutionMeta = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.InitiatedPromptExecutionMeta = core.serialization.object({
32
+ modelName: core.serialization.property("model_name", core.serialization.string().optional()),
33
+ latency: core.serialization.number().optional(),
34
+ deploymentReleaseTag: core.serialization.property("deployment_release_tag", core.serialization.string().optional()),
35
+ promptVersionId: core.serialization.property("prompt_version_id", core.serialization.string().optional()),
36
+ });
@@ -0,0 +1,12 @@
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 JsonVariableValue: core.serialization.ObjectSchema<serializers.JsonVariableValue.Raw, Vellum.JsonVariableValue>;
8
+ export declare namespace JsonVariableValue {
9
+ interface Raw {
10
+ value?: Record<string, unknown> | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
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.JsonVariableValue = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.JsonVariableValue = core.serialization.object({
32
+ value: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
33
+ });
@@ -0,0 +1,16 @@
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 PromptDeploymentExpandMetaRequestRequest: core.serialization.ObjectSchema<serializers.PromptDeploymentExpandMetaRequestRequest.Raw, Vellum.PromptDeploymentExpandMetaRequestRequest>;
8
+ export declare namespace PromptDeploymentExpandMetaRequestRequest {
9
+ interface Raw {
10
+ model_name?: boolean | null;
11
+ latency?: boolean | null;
12
+ deployment_release_tag?: boolean | null;
13
+ prompt_version_id?: boolean | null;
14
+ finish_reason?: boolean | null;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
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.PromptDeploymentExpandMetaRequestRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.PromptDeploymentExpandMetaRequestRequest = core.serialization.object({
32
+ modelName: core.serialization.property("model_name", core.serialization.boolean().optional()),
33
+ latency: core.serialization.boolean().optional(),
34
+ deploymentReleaseTag: core.serialization.property("deployment_release_tag", core.serialization.boolean().optional()),
35
+ promptVersionId: core.serialization.property("prompt_version_id", core.serialization.boolean().optional()),
36
+ finishReason: core.serialization.property("finish_reason", core.serialization.boolean().optional()),
37
+ });
@@ -0,0 +1,16 @@
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 PromptExecutionMeta: core.serialization.ObjectSchema<serializers.PromptExecutionMeta.Raw, Vellum.PromptExecutionMeta>;
8
+ export declare namespace PromptExecutionMeta {
9
+ interface Raw {
10
+ model_name?: string | null;
11
+ latency?: number | null;
12
+ deployment_release_tag?: string | null;
13
+ prompt_version_id?: string | null;
14
+ finish_reason?: serializers.FinishReasonEnum.Raw | null;
15
+ }
16
+ }