vellum-ai 0.4.0 → 0.4.2

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 (405) hide show
  1. package/Client.d.ts +0 -6
  2. package/Client.js +17 -27
  3. package/api/errors/index.d.ts +0 -1
  4. package/api/errors/index.js +0 -1
  5. package/api/resources/deployments/client/Client.js +3 -3
  6. package/api/resources/documentIndexes/client/Client.js +6 -6
  7. package/api/resources/documents/client/Client.js +5 -5
  8. package/api/resources/folderEntities/client/Client.js +1 -1
  9. package/api/resources/index.d.ts +0 -3
  10. package/api/resources/index.js +1 -4
  11. package/api/resources/sandboxes/client/Client.js +2 -2
  12. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  13. package/api/resources/testSuites/client/Client.js +3 -3
  14. package/api/resources/workflowDeployments/client/Client.js +2 -2
  15. package/api/types/index.d.ts +0 -39
  16. package/api/types/index.js +0 -39
  17. package/dist/Client.d.ts +0 -6
  18. package/dist/Client.js +17 -27
  19. package/dist/api/errors/index.d.ts +0 -1
  20. package/dist/api/errors/index.js +0 -1
  21. package/dist/api/resources/deployments/client/Client.js +3 -3
  22. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  23. package/dist/api/resources/documents/client/Client.js +5 -5
  24. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  25. package/dist/api/resources/index.d.ts +0 -3
  26. package/dist/api/resources/index.js +1 -4
  27. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  28. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  29. package/dist/api/resources/testSuites/client/Client.js +3 -3
  30. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  31. package/dist/api/types/index.d.ts +0 -39
  32. package/dist/api/types/index.js +0 -39
  33. package/dist/serialization/resources/index.d.ts +0 -2
  34. package/dist/serialization/resources/index.js +1 -3
  35. package/dist/serialization/types/index.d.ts +0 -39
  36. package/dist/serialization/types/index.js +0 -39
  37. package/package.json +1 -1
  38. package/serialization/resources/index.d.ts +0 -2
  39. package/serialization/resources/index.js +1 -3
  40. package/serialization/types/index.d.ts +0 -39
  41. package/serialization/types/index.js +0 -39
  42. package/api/errors/ConflictError.d.ts +0 -8
  43. package/api/errors/ConflictError.js +0 -41
  44. package/api/resources/modelVersions/client/Client.d.ts +0 -30
  45. package/api/resources/modelVersions/client/Client.js +0 -105
  46. package/api/resources/modelVersions/client/index.d.ts +0 -1
  47. package/api/resources/modelVersions/client/index.js +0 -2
  48. package/api/resources/modelVersions/index.d.ts +0 -1
  49. package/api/resources/modelVersions/index.js +0 -17
  50. package/api/resources/registeredPrompts/client/Client.d.ts +0 -56
  51. package/api/resources/registeredPrompts/client/Client.js +0 -149
  52. package/api/resources/registeredPrompts/client/index.d.ts +0 -1
  53. package/api/resources/registeredPrompts/client/index.js +0 -17
  54. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -60
  55. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -5
  56. package/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  57. package/api/resources/registeredPrompts/client/requests/index.js +0 -2
  58. package/api/resources/registeredPrompts/index.d.ts +0 -1
  59. package/api/resources/registeredPrompts/index.js +0 -17
  60. package/api/types/ChatHistoryPromptTemplateBlock.d.ts +0 -12
  61. package/api/types/ChatHistoryPromptTemplateBlock.js +0 -5
  62. package/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -12
  63. package/api/types/ChatHistoryPromptTemplateBlockRequest.js +0 -5
  64. package/api/types/ChatMessageEnum.d.ts +0 -4
  65. package/api/types/ChatMessageEnum.js +0 -5
  66. package/api/types/ChatMessagePromptTemplateBlock.d.ts +0 -12
  67. package/api/types/ChatMessagePromptTemplateBlock.js +0 -5
  68. package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -13
  69. package/api/types/ChatMessagePromptTemplateBlockProperties.js +0 -5
  70. package/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -13
  71. package/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -5
  72. package/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -12
  73. package/api/types/ChatMessagePromptTemplateBlockRequest.js +0 -5
  74. package/api/types/FunctionDefinitionEnum.d.ts +0 -4
  75. package/api/types/FunctionDefinitionEnum.js +0 -5
  76. package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -12
  77. package/api/types/FunctionDefinitionPromptTemplateBlock.js +0 -5
  78. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -13
  79. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -5
  80. package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -13
  81. package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -5
  82. package/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -12
  83. package/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -5
  84. package/api/types/JinjaEnum.d.ts +0 -4
  85. package/api/types/JinjaEnum.js +0 -5
  86. package/api/types/JinjaPromptTemplateBlock.d.ts +0 -12
  87. package/api/types/JinjaPromptTemplateBlock.js +0 -5
  88. package/api/types/JinjaPromptTemplateBlockProperties.d.ts +0 -8
  89. package/api/types/JinjaPromptTemplateBlockProperties.js +0 -5
  90. package/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -8
  91. package/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -5
  92. package/api/types/JinjaPromptTemplateBlockRequest.d.ts +0 -12
  93. package/api/types/JinjaPromptTemplateBlockRequest.js +0 -5
  94. package/api/types/ModelVersionBuildConfig.d.ts +0 -11
  95. package/api/types/ModelVersionBuildConfig.js +0 -5
  96. package/api/types/ModelVersionExecConfig.d.ts +0 -14
  97. package/api/types/ModelVersionExecConfig.js +0 -5
  98. package/api/types/ModelVersionExecConfigParameters.d.ts +0 -14
  99. package/api/types/ModelVersionExecConfigParameters.js +0 -5
  100. package/api/types/ModelVersionRead.d.ts +0 -37
  101. package/api/types/ModelVersionRead.js +0 -5
  102. package/api/types/ModelVersionReadStatusEnum.d.ts +0 -16
  103. package/api/types/ModelVersionReadStatusEnum.js +0 -12
  104. package/api/types/ModelVersionSandboxSnapshot.d.ts +0 -12
  105. package/api/types/ModelVersionSandboxSnapshot.js +0 -5
  106. package/api/types/PromptTemplateBlock.d.ts +0 -19
  107. package/api/types/PromptTemplateBlock.js +0 -5
  108. package/api/types/PromptTemplateBlockData.d.ts +0 -8
  109. package/api/types/PromptTemplateBlockData.js +0 -5
  110. package/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
  111. package/api/types/PromptTemplateBlockDataRequest.js +0 -5
  112. package/api/types/PromptTemplateBlockRequest.d.ts +0 -19
  113. package/api/types/PromptTemplateBlockRequest.js +0 -5
  114. package/api/types/PromptTemplateBlockState.d.ts +0 -12
  115. package/api/types/PromptTemplateBlockState.js +0 -10
  116. package/api/types/ProviderEnum.d.ts +0 -34
  117. package/api/types/ProviderEnum.js +0 -21
  118. package/api/types/RegisterPromptErrorResponse.d.ts +0 -7
  119. package/api/types/RegisterPromptErrorResponse.js +0 -5
  120. package/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
  121. package/api/types/RegisterPromptModelParametersRequest.js +0 -5
  122. package/api/types/RegisterPromptPrompt.d.ts +0 -9
  123. package/api/types/RegisterPromptPrompt.js +0 -5
  124. package/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
  125. package/api/types/RegisterPromptPromptInfoRequest.js +0 -5
  126. package/api/types/RegisterPromptResponse.d.ts +0 -18
  127. package/api/types/RegisterPromptResponse.js +0 -5
  128. package/api/types/RegisteredPromptDeployment.d.ts +0 -11
  129. package/api/types/RegisteredPromptDeployment.js +0 -5
  130. package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
  131. package/api/types/RegisteredPromptInputVariableRequest.js +0 -5
  132. package/api/types/RegisteredPromptModelVersion.d.ts +0 -9
  133. package/api/types/RegisteredPromptModelVersion.js +0 -5
  134. package/api/types/RegisteredPromptSandbox.d.ts +0 -9
  135. package/api/types/RegisteredPromptSandbox.js +0 -5
  136. package/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
  137. package/api/types/RegisteredPromptSandboxSnapshot.js +0 -5
  138. package/dist/api/errors/ConflictError.d.ts +0 -8
  139. package/dist/api/errors/ConflictError.js +0 -41
  140. package/dist/api/resources/modelVersions/client/Client.d.ts +0 -30
  141. package/dist/api/resources/modelVersions/client/Client.js +0 -105
  142. package/dist/api/resources/modelVersions/client/index.d.ts +0 -1
  143. package/dist/api/resources/modelVersions/client/index.js +0 -2
  144. package/dist/api/resources/modelVersions/index.d.ts +0 -1
  145. package/dist/api/resources/modelVersions/index.js +0 -17
  146. package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -56
  147. package/dist/api/resources/registeredPrompts/client/Client.js +0 -149
  148. package/dist/api/resources/registeredPrompts/client/index.d.ts +0 -1
  149. package/dist/api/resources/registeredPrompts/client/index.js +0 -17
  150. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -60
  151. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -5
  152. package/dist/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  153. package/dist/api/resources/registeredPrompts/client/requests/index.js +0 -2
  154. package/dist/api/resources/registeredPrompts/index.d.ts +0 -1
  155. package/dist/api/resources/registeredPrompts/index.js +0 -17
  156. package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +0 -12
  157. package/dist/api/types/ChatHistoryPromptTemplateBlock.js +0 -5
  158. package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -12
  159. package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.js +0 -5
  160. package/dist/api/types/ChatMessageEnum.d.ts +0 -4
  161. package/dist/api/types/ChatMessageEnum.js +0 -5
  162. package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +0 -12
  163. package/dist/api/types/ChatMessagePromptTemplateBlock.js +0 -5
  164. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -13
  165. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.js +0 -5
  166. package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -13
  167. package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -5
  168. package/dist/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -12
  169. package/dist/api/types/ChatMessagePromptTemplateBlockRequest.js +0 -5
  170. package/dist/api/types/FunctionDefinitionEnum.d.ts +0 -4
  171. package/dist/api/types/FunctionDefinitionEnum.js +0 -5
  172. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -12
  173. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.js +0 -5
  174. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -13
  175. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -5
  176. package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -13
  177. package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -5
  178. package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -12
  179. package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -5
  180. package/dist/api/types/JinjaEnum.d.ts +0 -4
  181. package/dist/api/types/JinjaEnum.js +0 -5
  182. package/dist/api/types/JinjaPromptTemplateBlock.d.ts +0 -12
  183. package/dist/api/types/JinjaPromptTemplateBlock.js +0 -5
  184. package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +0 -8
  185. package/dist/api/types/JinjaPromptTemplateBlockProperties.js +0 -5
  186. package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -8
  187. package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -5
  188. package/dist/api/types/JinjaPromptTemplateBlockRequest.d.ts +0 -12
  189. package/dist/api/types/JinjaPromptTemplateBlockRequest.js +0 -5
  190. package/dist/api/types/ModelVersionBuildConfig.d.ts +0 -11
  191. package/dist/api/types/ModelVersionBuildConfig.js +0 -5
  192. package/dist/api/types/ModelVersionExecConfig.d.ts +0 -14
  193. package/dist/api/types/ModelVersionExecConfig.js +0 -5
  194. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +0 -14
  195. package/dist/api/types/ModelVersionExecConfigParameters.js +0 -5
  196. package/dist/api/types/ModelVersionRead.d.ts +0 -37
  197. package/dist/api/types/ModelVersionRead.js +0 -5
  198. package/dist/api/types/ModelVersionReadStatusEnum.d.ts +0 -16
  199. package/dist/api/types/ModelVersionReadStatusEnum.js +0 -12
  200. package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +0 -12
  201. package/dist/api/types/ModelVersionSandboxSnapshot.js +0 -5
  202. package/dist/api/types/PromptTemplateBlock.d.ts +0 -19
  203. package/dist/api/types/PromptTemplateBlock.js +0 -5
  204. package/dist/api/types/PromptTemplateBlockData.d.ts +0 -8
  205. package/dist/api/types/PromptTemplateBlockData.js +0 -5
  206. package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
  207. package/dist/api/types/PromptTemplateBlockDataRequest.js +0 -5
  208. package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -19
  209. package/dist/api/types/PromptTemplateBlockRequest.js +0 -5
  210. package/dist/api/types/PromptTemplateBlockState.d.ts +0 -12
  211. package/dist/api/types/PromptTemplateBlockState.js +0 -10
  212. package/dist/api/types/ProviderEnum.d.ts +0 -34
  213. package/dist/api/types/ProviderEnum.js +0 -21
  214. package/dist/api/types/RegisterPromptErrorResponse.d.ts +0 -7
  215. package/dist/api/types/RegisterPromptErrorResponse.js +0 -5
  216. package/dist/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
  217. package/dist/api/types/RegisterPromptModelParametersRequest.js +0 -5
  218. package/dist/api/types/RegisterPromptPrompt.d.ts +0 -9
  219. package/dist/api/types/RegisterPromptPrompt.js +0 -5
  220. package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
  221. package/dist/api/types/RegisterPromptPromptInfoRequest.js +0 -5
  222. package/dist/api/types/RegisterPromptResponse.d.ts +0 -18
  223. package/dist/api/types/RegisterPromptResponse.js +0 -5
  224. package/dist/api/types/RegisteredPromptDeployment.d.ts +0 -11
  225. package/dist/api/types/RegisteredPromptDeployment.js +0 -5
  226. package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
  227. package/dist/api/types/RegisteredPromptInputVariableRequest.js +0 -5
  228. package/dist/api/types/RegisteredPromptModelVersion.d.ts +0 -9
  229. package/dist/api/types/RegisteredPromptModelVersion.js +0 -5
  230. package/dist/api/types/RegisteredPromptSandbox.d.ts +0 -9
  231. package/dist/api/types/RegisteredPromptSandbox.js +0 -5
  232. package/dist/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
  233. package/dist/api/types/RegisteredPromptSandboxSnapshot.js +0 -5
  234. package/dist/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
  235. package/dist/serialization/resources/registeredPrompts/client/index.js +0 -17
  236. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
  237. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
  238. package/dist/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  239. package/dist/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
  240. package/dist/serialization/resources/registeredPrompts/index.d.ts +0 -1
  241. package/dist/serialization/resources/registeredPrompts/index.js +0 -17
  242. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +0 -15
  243. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.js +0 -36
  244. package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -15
  245. package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +0 -36
  246. package/dist/serialization/types/ChatMessageEnum.d.ts +0 -10
  247. package/dist/serialization/types/ChatMessageEnum.js +0 -31
  248. package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +0 -15
  249. package/dist/serialization/types/ChatMessagePromptTemplateBlock.js +0 -45
  250. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -16
  251. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js +0 -46
  252. package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -16
  253. package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -46
  254. package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -15
  255. package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.js +0 -45
  256. package/dist/serialization/types/FunctionDefinitionEnum.d.ts +0 -10
  257. package/dist/serialization/types/FunctionDefinitionEnum.js +0 -31
  258. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -16
  259. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js +0 -37
  260. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -15
  261. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -36
  262. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -15
  263. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -36
  264. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -16
  265. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -37
  266. package/dist/serialization/types/JinjaEnum.d.ts +0 -10
  267. package/dist/serialization/types/JinjaEnum.js +0 -31
  268. package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +0 -16
  269. package/dist/serialization/types/JinjaPromptTemplateBlock.js +0 -37
  270. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +0 -14
  271. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.js +0 -35
  272. package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -14
  273. package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -35
  274. package/dist/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +0 -16
  275. package/dist/serialization/types/JinjaPromptTemplateBlockRequest.js +0 -37
  276. package/dist/serialization/types/ModelVersionBuildConfig.d.ts +0 -15
  277. package/dist/serialization/types/ModelVersionBuildConfig.js +0 -36
  278. package/dist/serialization/types/ModelVersionExecConfig.d.ts +0 -19
  279. package/dist/serialization/types/ModelVersionExecConfig.js +0 -40
  280. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +0 -20
  281. package/dist/serialization/types/ModelVersionExecConfigParameters.js +0 -41
  282. package/dist/serialization/types/ModelVersionRead.d.ts +0 -23
  283. package/dist/serialization/types/ModelVersionRead.js +0 -44
  284. package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +0 -10
  285. package/dist/serialization/types/ModelVersionReadStatusEnum.js +0 -31
  286. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +0 -15
  287. package/dist/serialization/types/ModelVersionSandboxSnapshot.js +0 -36
  288. package/dist/serialization/types/PromptTemplateBlock.d.ts +0 -25
  289. package/dist/serialization/types/PromptTemplateBlock.js +0 -53
  290. package/dist/serialization/types/PromptTemplateBlockData.d.ts +0 -13
  291. package/dist/serialization/types/PromptTemplateBlockData.js +0 -43
  292. package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
  293. package/dist/serialization/types/PromptTemplateBlockDataRequest.js +0 -43
  294. package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +0 -25
  295. package/dist/serialization/types/PromptTemplateBlockRequest.js +0 -53
  296. package/dist/serialization/types/PromptTemplateBlockState.d.ts +0 -10
  297. package/dist/serialization/types/PromptTemplateBlockState.js +0 -31
  298. package/dist/serialization/types/ProviderEnum.d.ts +0 -10
  299. package/dist/serialization/types/ProviderEnum.js +0 -45
  300. package/dist/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
  301. package/dist/serialization/types/RegisterPromptErrorResponse.js +0 -33
  302. package/dist/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
  303. package/dist/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
  304. package/dist/serialization/types/RegisterPromptPrompt.d.ts +0 -13
  305. package/dist/serialization/types/RegisterPromptPrompt.js +0 -34
  306. package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
  307. package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
  308. package/dist/serialization/types/RegisterPromptResponse.d.ts +0 -22
  309. package/dist/serialization/types/RegisterPromptResponse.js +0 -43
  310. package/dist/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
  311. package/dist/serialization/types/RegisteredPromptDeployment.js +0 -35
  312. package/dist/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
  313. package/dist/serialization/types/RegisteredPromptInputVariableRequest.js +0 -36
  314. package/dist/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
  315. package/dist/serialization/types/RegisteredPromptModelVersion.js +0 -34
  316. package/dist/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
  317. package/dist/serialization/types/RegisteredPromptSandbox.js +0 -34
  318. package/dist/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
  319. package/dist/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
  320. package/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
  321. package/serialization/resources/registeredPrompts/client/index.js +0 -17
  322. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
  323. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
  324. package/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  325. package/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
  326. package/serialization/resources/registeredPrompts/index.d.ts +0 -1
  327. package/serialization/resources/registeredPrompts/index.js +0 -17
  328. package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +0 -15
  329. package/serialization/types/ChatHistoryPromptTemplateBlock.js +0 -36
  330. package/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -15
  331. package/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +0 -36
  332. package/serialization/types/ChatMessageEnum.d.ts +0 -10
  333. package/serialization/types/ChatMessageEnum.js +0 -31
  334. package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +0 -15
  335. package/serialization/types/ChatMessagePromptTemplateBlock.js +0 -45
  336. package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -16
  337. package/serialization/types/ChatMessagePromptTemplateBlockProperties.js +0 -46
  338. package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -16
  339. package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -46
  340. package/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -15
  341. package/serialization/types/ChatMessagePromptTemplateBlockRequest.js +0 -45
  342. package/serialization/types/FunctionDefinitionEnum.d.ts +0 -10
  343. package/serialization/types/FunctionDefinitionEnum.js +0 -31
  344. package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -16
  345. package/serialization/types/FunctionDefinitionPromptTemplateBlock.js +0 -37
  346. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -15
  347. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -36
  348. package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -15
  349. package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -36
  350. package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -16
  351. package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -37
  352. package/serialization/types/JinjaEnum.d.ts +0 -10
  353. package/serialization/types/JinjaEnum.js +0 -31
  354. package/serialization/types/JinjaPromptTemplateBlock.d.ts +0 -16
  355. package/serialization/types/JinjaPromptTemplateBlock.js +0 -37
  356. package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +0 -14
  357. package/serialization/types/JinjaPromptTemplateBlockProperties.js +0 -35
  358. package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -14
  359. package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -35
  360. package/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +0 -16
  361. package/serialization/types/JinjaPromptTemplateBlockRequest.js +0 -37
  362. package/serialization/types/ModelVersionBuildConfig.d.ts +0 -15
  363. package/serialization/types/ModelVersionBuildConfig.js +0 -36
  364. package/serialization/types/ModelVersionExecConfig.d.ts +0 -19
  365. package/serialization/types/ModelVersionExecConfig.js +0 -40
  366. package/serialization/types/ModelVersionExecConfigParameters.d.ts +0 -20
  367. package/serialization/types/ModelVersionExecConfigParameters.js +0 -41
  368. package/serialization/types/ModelVersionRead.d.ts +0 -23
  369. package/serialization/types/ModelVersionRead.js +0 -44
  370. package/serialization/types/ModelVersionReadStatusEnum.d.ts +0 -10
  371. package/serialization/types/ModelVersionReadStatusEnum.js +0 -31
  372. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +0 -15
  373. package/serialization/types/ModelVersionSandboxSnapshot.js +0 -36
  374. package/serialization/types/PromptTemplateBlock.d.ts +0 -25
  375. package/serialization/types/PromptTemplateBlock.js +0 -53
  376. package/serialization/types/PromptTemplateBlockData.d.ts +0 -13
  377. package/serialization/types/PromptTemplateBlockData.js +0 -43
  378. package/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
  379. package/serialization/types/PromptTemplateBlockDataRequest.js +0 -43
  380. package/serialization/types/PromptTemplateBlockRequest.d.ts +0 -25
  381. package/serialization/types/PromptTemplateBlockRequest.js +0 -53
  382. package/serialization/types/PromptTemplateBlockState.d.ts +0 -10
  383. package/serialization/types/PromptTemplateBlockState.js +0 -31
  384. package/serialization/types/ProviderEnum.d.ts +0 -10
  385. package/serialization/types/ProviderEnum.js +0 -45
  386. package/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
  387. package/serialization/types/RegisterPromptErrorResponse.js +0 -33
  388. package/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
  389. package/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
  390. package/serialization/types/RegisterPromptPrompt.d.ts +0 -13
  391. package/serialization/types/RegisterPromptPrompt.js +0 -34
  392. package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
  393. package/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
  394. package/serialization/types/RegisterPromptResponse.d.ts +0 -22
  395. package/serialization/types/RegisterPromptResponse.js +0 -43
  396. package/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
  397. package/serialization/types/RegisteredPromptDeployment.js +0 -35
  398. package/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
  399. package/serialization/types/RegisteredPromptInputVariableRequest.js +0 -36
  400. package/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
  401. package/serialization/types/RegisteredPromptModelVersion.js +0 -34
  402. package/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
  403. package/serialization/types/RegisteredPromptSandbox.js +0 -34
  404. package/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
  405. package/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RegisteredPromptSandboxSnapshot {
5
- /** The ID of the generated sandbox snapshot. */
6
- id: string;
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,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as errors from "../../errors";
5
- import * as Vellum from "..";
6
- export declare class ConflictError extends errors.VellumError {
7
- constructor(body: Vellum.RegisterPromptErrorResponse);
8
- }
@@ -1,41 +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.ConflictError = void 0;
30
- const errors = __importStar(require("../../errors"));
31
- class ConflictError extends errors.VellumError {
32
- constructor(body) {
33
- super({
34
- message: "ConflictError",
35
- statusCode: 409,
36
- body: body,
37
- });
38
- Object.setPrototypeOf(this, ConflictError.prototype);
39
- }
40
- }
41
- exports.ConflictError = ConflictError;
@@ -1,30 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as Vellum from "../../..";
7
- export declare namespace ModelVersions {
8
- interface Options {
9
- environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
11
- }
12
- interface RequestOptions {
13
- timeoutInSeconds?: number;
14
- maxRetries?: number;
15
- }
16
- }
17
- export declare class ModelVersions {
18
- protected readonly _options: ModelVersions.Options;
19
- constructor(_options: ModelVersions.Options);
20
- /**
21
- * Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
22
- *
23
- * @example
24
- * await vellum.modelVersions.retrieve("id")
25
- */
26
- retrieve(id: string, requestOptions?: ModelVersions.RequestOptions): Promise<Vellum.ModelVersionRead>;
27
- protected _getCustomAuthorizationHeaders(): Promise<{
28
- X_API_KEY: string;
29
- }>;
30
- }
@@ -1,105 +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
- 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
- var __importDefault = (this && this.__importDefault) || function (mod) {
38
- return (mod && mod.__esModule) ? mod : { "default": mod };
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.ModelVersions = void 0;
42
- const environments = __importStar(require("../../../../environments"));
43
- const core = __importStar(require("../../../../core"));
44
- const url_join_1 = __importDefault(require("url-join"));
45
- const serializers = __importStar(require("../../../../serialization"));
46
- const errors = __importStar(require("../../../../errors"));
47
- class ModelVersions {
48
- constructor(_options) {
49
- this._options = _options;
50
- }
51
- /**
52
- * Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
53
- *
54
- * @example
55
- * await vellum.modelVersions.retrieve("id")
56
- */
57
- retrieve(id, requestOptions) {
58
- var _a;
59
- return __awaiter(this, void 0, void 0, function* () {
60
- const _response = yield core.fetcher({
61
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
62
- .default, `v1/model-versions/${id}`),
63
- method: "GET",
64
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
65
- contentType: "application/json",
66
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
67
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
68
- });
69
- if (_response.ok) {
70
- return yield serializers.ModelVersionRead.parseOrThrow(_response.body, {
71
- unrecognizedObjectKeys: "passthrough",
72
- allowUnrecognizedUnionMembers: true,
73
- allowUnrecognizedEnumValues: true,
74
- breadcrumbsPrefix: ["response"],
75
- });
76
- }
77
- if (_response.error.reason === "status-code") {
78
- throw new errors.VellumError({
79
- statusCode: _response.error.statusCode,
80
- body: _response.error.body,
81
- });
82
- }
83
- switch (_response.error.reason) {
84
- case "non-json":
85
- throw new errors.VellumError({
86
- statusCode: _response.error.statusCode,
87
- body: _response.error.rawBody,
88
- });
89
- case "timeout":
90
- throw new errors.VellumTimeoutError();
91
- case "unknown":
92
- throw new errors.VellumError({
93
- message: _response.error.errorMessage,
94
- });
95
- }
96
- });
97
- }
98
- _getCustomAuthorizationHeaders() {
99
- return __awaiter(this, void 0, void 0, function* () {
100
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
101
- return { X_API_KEY: apiKeyValue };
102
- });
103
- }
104
- }
105
- exports.ModelVersions = ModelVersions;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,56 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as Vellum from "../../..";
7
- export declare namespace RegisteredPrompts {
8
- interface Options {
9
- environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
11
- }
12
- interface RequestOptions {
13
- timeoutInSeconds?: number;
14
- maxRetries?: number;
15
- }
16
- }
17
- export declare class RegisteredPrompts {
18
- protected readonly _options: RegisteredPrompts.Options;
19
- constructor(_options: RegisteredPrompts.Options);
20
- /**
21
- * Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
22
- * partners, not directly by Vellum users.
23
- *
24
- * Under the hood, this endpoint creates a new sandbox, a new model version, and a new deployment.
25
- * @throws {@link Vellum.BadRequestError}
26
- * @throws {@link Vellum.NotFoundError}
27
- * @throws {@link Vellum.ConflictError}
28
- *
29
- * @example
30
- * await vellum.registeredPrompts.registerPrompt({
31
- * label: "label",
32
- * name: "name",
33
- * prompt: {
34
- * promptBlockData: {
35
- * blocks: [],
36
- * version: 1
37
- * },
38
- * inputVariables: [{
39
- * key: "key"
40
- * }]
41
- * },
42
- * model: "model",
43
- * parameters: {
44
- * temperature: 1.1,
45
- * maxTokens: 1,
46
- * topP: 1.1,
47
- * frequencyPenalty: 1.1,
48
- * presencePenalty: 1.1
49
- * }
50
- * })
51
- */
52
- registerPrompt(request: Vellum.RegisterPromptRequestRequest, requestOptions?: RegisteredPrompts.RequestOptions): Promise<Vellum.RegisterPromptResponse>;
53
- protected _getCustomAuthorizationHeaders(): Promise<{
54
- X_API_KEY: string;
55
- }>;
56
- }
@@ -1,149 +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
- 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
- var __importDefault = (this && this.__importDefault) || function (mod) {
38
- return (mod && mod.__esModule) ? mod : { "default": mod };
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.RegisteredPrompts = void 0;
42
- const environments = __importStar(require("../../../../environments"));
43
- const core = __importStar(require("../../../../core"));
44
- const Vellum = __importStar(require("../../.."));
45
- const serializers = __importStar(require("../../../../serialization"));
46
- const url_join_1 = __importDefault(require("url-join"));
47
- const errors = __importStar(require("../../../../errors"));
48
- class RegisteredPrompts {
49
- constructor(_options) {
50
- this._options = _options;
51
- }
52
- /**
53
- * Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
54
- * partners, not directly by Vellum users.
55
- *
56
- * Under the hood, this endpoint creates a new sandbox, a new model version, and a new deployment.
57
- * @throws {@link Vellum.BadRequestError}
58
- * @throws {@link Vellum.NotFoundError}
59
- * @throws {@link Vellum.ConflictError}
60
- *
61
- * @example
62
- * await vellum.registeredPrompts.registerPrompt({
63
- * label: "label",
64
- * name: "name",
65
- * prompt: {
66
- * promptBlockData: {
67
- * blocks: [],
68
- * version: 1
69
- * },
70
- * inputVariables: [{
71
- * key: "key"
72
- * }]
73
- * },
74
- * model: "model",
75
- * parameters: {
76
- * temperature: 1.1,
77
- * maxTokens: 1,
78
- * topP: 1.1,
79
- * frequencyPenalty: 1.1,
80
- * presencePenalty: 1.1
81
- * }
82
- * })
83
- */
84
- registerPrompt(request, requestOptions) {
85
- var _a;
86
- return __awaiter(this, void 0, void 0, function* () {
87
- const _response = yield core.fetcher({
88
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
89
- .default, "v1/registered-prompts/register"),
90
- method: "POST",
91
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
92
- contentType: "application/json",
93
- body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
94
- unrecognizedObjectKeys: "strip",
95
- }),
96
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
97
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
98
- });
99
- if (_response.ok) {
100
- return yield serializers.RegisterPromptResponse.parseOrThrow(_response.body, {
101
- unrecognizedObjectKeys: "passthrough",
102
- allowUnrecognizedUnionMembers: true,
103
- allowUnrecognizedEnumValues: true,
104
- breadcrumbsPrefix: ["response"],
105
- });
106
- }
107
- if (_response.error.reason === "status-code") {
108
- switch (_response.error.statusCode) {
109
- case 400:
110
- throw new Vellum.BadRequestError(_response.error.body);
111
- case 404:
112
- throw new Vellum.NotFoundError(_response.error.body);
113
- case 409:
114
- throw new Vellum.ConflictError(yield serializers.RegisterPromptErrorResponse.parseOrThrow(_response.error.body, {
115
- unrecognizedObjectKeys: "passthrough",
116
- allowUnrecognizedUnionMembers: true,
117
- allowUnrecognizedEnumValues: true,
118
- breadcrumbsPrefix: ["response"],
119
- }));
120
- default:
121
- throw new errors.VellumError({
122
- statusCode: _response.error.statusCode,
123
- body: _response.error.body,
124
- });
125
- }
126
- }
127
- switch (_response.error.reason) {
128
- case "non-json":
129
- throw new errors.VellumError({
130
- statusCode: _response.error.statusCode,
131
- body: _response.error.rawBody,
132
- });
133
- case "timeout":
134
- throw new errors.VellumTimeoutError();
135
- case "unknown":
136
- throw new errors.VellumError({
137
- message: _response.error.errorMessage,
138
- });
139
- }
140
- });
141
- }
142
- _getCustomAuthorizationHeaders() {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
145
- return { X_API_KEY: apiKeyValue };
146
- });
147
- }
148
- }
149
- exports.RegisteredPrompts = RegisteredPrompts;
@@ -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,60 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../../../..";
5
- /**
6
- * @example
7
- * {
8
- * label: "label",
9
- * name: "name",
10
- * prompt: {
11
- * promptBlockData: {
12
- * blocks: [],
13
- * version: 1
14
- * },
15
- * inputVariables: [{
16
- * key: "key"
17
- * }]
18
- * },
19
- * model: "model",
20
- * parameters: {
21
- * temperature: 1.1,
22
- * maxTokens: 1,
23
- * topP: 1.1,
24
- * frequencyPenalty: 1.1,
25
- * presencePenalty: 1.1
26
- * }
27
- * }
28
- */
29
- export interface RegisterPromptRequestRequest {
30
- /** A human-friendly label for corresponding entities created in Vellum. */
31
- label: string;
32
- /** A uniquely-identifying name for corresponding entities created in Vellum. */
33
- name: string;
34
- /** Information about how to execute the prompt template. */
35
- prompt: Vellum.RegisterPromptPromptInfoRequest;
36
- /**
37
- * The initial LLM provider to use for this prompt
38
- *
39
- * * `ANTHROPIC` - Anthropic
40
- * * `AWS_BEDROCK` - AWS Bedrock
41
- * * `AZURE_OPENAI` - Azure OpenAI
42
- * * `COHERE` - Cohere
43
- * * `GOOGLE` - Google
44
- * * `HOSTED` - Hosted
45
- * * `MOSAICML` - MosaicML
46
- * * `OPENAI` - OpenAI
47
- * * `FIREWORKS_AI` - Fireworks AI
48
- * * `HUGGINGFACE` - HuggingFace
49
- * * `MYSTIC` - Mystic
50
- * * `PYQ` - Pyq
51
- * * `REPLICATE` - Replicate
52
- */
53
- provider?: Vellum.ProviderEnum;
54
- /** The initial model to use for this prompt */
55
- model: string;
56
- /** The initial model parameters to use for this prompt */
57
- parameters: Vellum.RegisterPromptModelParametersRequest;
58
- /** Optionally include additional metadata to store along with the prompt. */
59
- meta?: Record<string, unknown>;
60
- }
@@ -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 { RegisterPromptRequestRequest } from "./RegisterPromptRequestRequest";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 Vellum from "..";
5
- /**
6
- * A block of that represents a chat history variable in a prompt template.
7
- */
8
- export interface ChatHistoryPromptTemplateBlock {
9
- properties: Record<string, unknown>;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -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,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of that represents a chat history variable in a prompt template.
7
- */
8
- export interface ChatHistoryPromptTemplateBlockRequest {
9
- properties: Record<string, unknown>;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -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,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type ChatMessageEnum = "CHAT_MESSAGE";
@@ -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,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of that represents a chat message in a prompt template.
7
- */
8
- export interface ChatMessagePromptTemplateBlock {
9
- properties: Vellum.ChatMessagePromptTemplateBlockProperties;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -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,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * The properties of a ChatMessagePromptTemplateBlock
7
- */
8
- export interface ChatMessagePromptTemplateBlockProperties {
9
- blocks: Vellum.PromptTemplateBlock[];
10
- chatRole?: Vellum.ChatMessageRole;
11
- chatSource?: string;
12
- chatMessageUnterminated?: boolean;
13
- }
@@ -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 });