vellum-ai 0.1.3 → 0.1.5

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 (265) hide show
  1. package/Client.d.ts +8 -0
  2. package/Client.js +72 -12
  3. package/api/client/requests/ExecutePromptRequest.d.ts +14 -0
  4. package/api/client/requests/ExecutePromptRequest.js +5 -0
  5. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -0
  6. package/api/client/requests/index.d.ts +1 -0
  7. package/api/errors/ForbiddenError.d.ts +1 -2
  8. package/api/resources/deployments/client/Client.js +1 -1
  9. package/api/resources/documentIndexes/client/Client.js +2 -2
  10. package/api/resources/documents/client/Client.js +4 -4
  11. package/api/resources/modelVersions/client/Client.js +1 -1
  12. package/api/resources/registeredPrompts/client/Client.js +1 -1
  13. package/api/resources/sandboxes/client/Client.js +2 -2
  14. package/api/resources/testSuites/client/Client.js +2 -2
  15. package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -7
  16. package/api/types/ChatHistoryInputRequest.d.ts +9 -0
  17. package/api/types/ChatHistoryInputRequest.js +5 -0
  18. package/api/types/ErrorExecutePromptResponse.d.ts +8 -0
  19. package/api/types/ErrorExecutePromptResponse.js +5 -0
  20. package/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
  21. package/api/types/ExecutePromptApiErrorResponse.js +5 -0
  22. package/api/types/ExecutePromptResponse.d.ts +16 -0
  23. package/api/types/ExecutePromptResponse.js +5 -0
  24. package/api/types/JsonExecutePromptResponse.d.ts +7 -0
  25. package/api/types/JsonExecutePromptResponse.js +5 -0
  26. package/api/types/JsonInputRequest.d.ts +8 -0
  27. package/api/types/JsonInputRequest.js +5 -0
  28. package/api/types/PromptDeploymentInputRequest.d.ts +16 -0
  29. package/api/types/PromptDeploymentInputRequest.js +5 -0
  30. package/api/types/SearchResultDocumentRequest.d.ts +11 -0
  31. package/api/types/SearchResultDocumentRequest.js +5 -0
  32. package/api/types/SearchResultRequest.d.ts +13 -0
  33. package/api/types/SearchResultRequest.js +5 -0
  34. package/api/types/StringExecutePromptResponse.d.ts +7 -0
  35. package/api/types/StringExecutePromptResponse.js +5 -0
  36. package/api/types/StringInputRequest.d.ts +8 -0
  37. package/api/types/StringInputRequest.js +5 -0
  38. package/api/types/TestCaseChatHistoryVariableValue.d.ts +8 -0
  39. package/api/types/TestCaseChatHistoryVariableValue.js +5 -0
  40. package/api/types/TestCaseChatHistoryVariableValueRequest.d.ts +8 -0
  41. package/api/types/TestCaseChatHistoryVariableValueRequest.js +5 -0
  42. package/api/types/TestCaseErrorVariableValue.d.ts +8 -0
  43. package/api/types/TestCaseErrorVariableValue.js +5 -0
  44. package/api/types/TestCaseErrorVariableValueRequest.d.ts +8 -0
  45. package/api/types/TestCaseErrorVariableValueRequest.js +5 -0
  46. package/api/types/TestCaseJsonVariableValue.d.ts +7 -0
  47. package/api/types/TestCaseJsonVariableValue.js +5 -0
  48. package/api/types/TestCaseJsonVariableValueRequest.d.ts +7 -0
  49. package/api/types/TestCaseJsonVariableValueRequest.js +5 -0
  50. package/api/types/TestCaseNumberVariableValue.d.ts +7 -0
  51. package/api/types/TestCaseNumberVariableValue.js +5 -0
  52. package/api/types/TestCaseNumberVariableValueRequest.d.ts +7 -0
  53. package/api/types/TestCaseNumberVariableValueRequest.js +5 -0
  54. package/api/types/TestCaseSearchResultsVariableValue.d.ts +8 -0
  55. package/api/types/TestCaseSearchResultsVariableValue.js +5 -0
  56. package/api/types/TestCaseSearchResultsVariableValueRequest.d.ts +8 -0
  57. package/api/types/TestCaseSearchResultsVariableValueRequest.js +5 -0
  58. package/api/types/TestCaseStringVariableValue.d.ts +7 -0
  59. package/api/types/TestCaseStringVariableValue.js +5 -0
  60. package/api/types/TestCaseStringVariableValueRequest.d.ts +7 -0
  61. package/api/types/TestCaseStringVariableValueRequest.js +5 -0
  62. package/api/types/TestCaseVariableValue.d.ts +25 -0
  63. package/api/types/TestCaseVariableValue.js +5 -0
  64. package/api/types/TestCaseVariableValueRequest.d.ts +25 -0
  65. package/api/types/TestCaseVariableValueRequest.js +5 -0
  66. package/api/types/TestSuiteTestCase.d.ts +3 -7
  67. package/api/types/VellumErrorRequest.d.ts +8 -0
  68. package/api/types/VellumErrorRequest.js +5 -0
  69. package/api/types/index.d.ts +26 -0
  70. package/api/types/index.js +26 -0
  71. package/dist/Client.d.ts +8 -0
  72. package/dist/Client.js +72 -12
  73. package/dist/api/client/requests/ExecutePromptRequest.d.ts +14 -0
  74. package/dist/api/client/requests/ExecutePromptRequest.js +5 -0
  75. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -0
  76. package/dist/api/client/requests/index.d.ts +1 -0
  77. package/dist/api/errors/ForbiddenError.d.ts +1 -2
  78. package/dist/api/resources/deployments/client/Client.js +1 -1
  79. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  80. package/dist/api/resources/documents/client/Client.js +4 -4
  81. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  82. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  83. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  84. package/dist/api/resources/testSuites/client/Client.js +2 -2
  85. package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -7
  86. package/dist/api/types/ChatHistoryInputRequest.d.ts +9 -0
  87. package/dist/api/types/ChatHistoryInputRequest.js +5 -0
  88. package/dist/api/types/ErrorExecutePromptResponse.d.ts +8 -0
  89. package/dist/api/types/ErrorExecutePromptResponse.js +5 -0
  90. package/dist/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
  91. package/dist/api/types/ExecutePromptApiErrorResponse.js +5 -0
  92. package/dist/api/types/ExecutePromptResponse.d.ts +16 -0
  93. package/dist/api/types/ExecutePromptResponse.js +5 -0
  94. package/dist/api/types/JsonExecutePromptResponse.d.ts +7 -0
  95. package/dist/api/types/JsonExecutePromptResponse.js +5 -0
  96. package/dist/api/types/JsonInputRequest.d.ts +8 -0
  97. package/dist/api/types/JsonInputRequest.js +5 -0
  98. package/dist/api/types/PromptDeploymentInputRequest.d.ts +16 -0
  99. package/dist/api/types/PromptDeploymentInputRequest.js +5 -0
  100. package/dist/api/types/SearchResultDocumentRequest.d.ts +11 -0
  101. package/dist/api/types/SearchResultDocumentRequest.js +5 -0
  102. package/dist/api/types/SearchResultRequest.d.ts +13 -0
  103. package/dist/api/types/SearchResultRequest.js +5 -0
  104. package/dist/api/types/StringExecutePromptResponse.d.ts +7 -0
  105. package/dist/api/types/StringExecutePromptResponse.js +5 -0
  106. package/dist/api/types/StringInputRequest.d.ts +8 -0
  107. package/dist/api/types/StringInputRequest.js +5 -0
  108. package/dist/api/types/TestCaseChatHistoryVariableValue.d.ts +8 -0
  109. package/dist/api/types/TestCaseChatHistoryVariableValue.js +5 -0
  110. package/dist/api/types/TestCaseChatHistoryVariableValueRequest.d.ts +8 -0
  111. package/dist/api/types/TestCaseChatHistoryVariableValueRequest.js +5 -0
  112. package/dist/api/types/TestCaseErrorVariableValue.d.ts +8 -0
  113. package/dist/api/types/TestCaseErrorVariableValue.js +5 -0
  114. package/dist/api/types/TestCaseErrorVariableValueRequest.d.ts +8 -0
  115. package/dist/api/types/TestCaseErrorVariableValueRequest.js +5 -0
  116. package/dist/api/types/TestCaseJsonVariableValue.d.ts +7 -0
  117. package/dist/api/types/TestCaseJsonVariableValue.js +5 -0
  118. package/dist/api/types/TestCaseJsonVariableValueRequest.d.ts +7 -0
  119. package/dist/api/types/TestCaseJsonVariableValueRequest.js +5 -0
  120. package/dist/api/types/TestCaseNumberVariableValue.d.ts +7 -0
  121. package/dist/api/types/TestCaseNumberVariableValue.js +5 -0
  122. package/dist/api/types/TestCaseNumberVariableValueRequest.d.ts +7 -0
  123. package/dist/api/types/TestCaseNumberVariableValueRequest.js +5 -0
  124. package/dist/api/types/TestCaseSearchResultsVariableValue.d.ts +8 -0
  125. package/dist/api/types/TestCaseSearchResultsVariableValue.js +5 -0
  126. package/dist/api/types/TestCaseSearchResultsVariableValueRequest.d.ts +8 -0
  127. package/dist/api/types/TestCaseSearchResultsVariableValueRequest.js +5 -0
  128. package/dist/api/types/TestCaseStringVariableValue.d.ts +7 -0
  129. package/dist/api/types/TestCaseStringVariableValue.js +5 -0
  130. package/dist/api/types/TestCaseStringVariableValueRequest.d.ts +7 -0
  131. package/dist/api/types/TestCaseStringVariableValueRequest.js +5 -0
  132. package/dist/api/types/TestCaseVariableValue.d.ts +25 -0
  133. package/dist/api/types/TestCaseVariableValue.js +5 -0
  134. package/dist/api/types/TestCaseVariableValueRequest.d.ts +25 -0
  135. package/dist/api/types/TestCaseVariableValueRequest.js +5 -0
  136. package/dist/api/types/TestSuiteTestCase.d.ts +3 -7
  137. package/dist/api/types/VellumErrorRequest.d.ts +8 -0
  138. package/dist/api/types/VellumErrorRequest.js +5 -0
  139. package/dist/api/types/index.d.ts +26 -0
  140. package/dist/api/types/index.js +26 -0
  141. package/dist/serialization/client/requests/ExecutePromptRequest.d.ts +16 -0
  142. package/dist/serialization/client/requests/ExecutePromptRequest.js +46 -0
  143. package/dist/serialization/client/requests/index.d.ts +1 -0
  144. package/dist/serialization/client/requests/index.js +3 -1
  145. package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -3
  146. package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +3 -3
  147. package/dist/serialization/types/ChatHistoryInputRequest.d.ts +13 -0
  148. package/dist/serialization/types/ChatHistoryInputRequest.js +43 -0
  149. package/dist/serialization/types/ErrorExecutePromptResponse.d.ts +13 -0
  150. package/dist/serialization/types/ErrorExecutePromptResponse.js +43 -0
  151. package/dist/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
  152. package/dist/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
  153. package/dist/serialization/types/ExecutePromptResponse.d.ts +19 -0
  154. package/dist/serialization/types/ExecutePromptResponse.js +49 -0
  155. package/dist/serialization/types/JsonExecutePromptResponse.d.ts +13 -0
  156. package/dist/serialization/types/JsonExecutePromptResponse.js +34 -0
  157. package/dist/serialization/types/JsonInputRequest.d.ts +13 -0
  158. package/dist/serialization/types/JsonInputRequest.js +34 -0
  159. package/dist/serialization/types/PromptDeploymentInputRequest.d.ts +19 -0
  160. package/dist/serialization/types/PromptDeploymentInputRequest.js +49 -0
  161. package/dist/serialization/types/SearchResultDocumentRequest.d.ts +14 -0
  162. package/dist/serialization/types/SearchResultDocumentRequest.js +35 -0
  163. package/dist/serialization/types/SearchResultRequest.d.ts +15 -0
  164. package/dist/serialization/types/SearchResultRequest.js +45 -0
  165. package/dist/serialization/types/StringExecutePromptResponse.d.ts +13 -0
  166. package/dist/serialization/types/StringExecutePromptResponse.js +34 -0
  167. package/dist/serialization/types/StringInputRequest.d.ts +13 -0
  168. package/dist/serialization/types/StringInputRequest.js +34 -0
  169. package/dist/serialization/types/TestCaseChatHistoryVariableValue.d.ts +13 -0
  170. package/dist/serialization/types/TestCaseChatHistoryVariableValue.js +45 -0
  171. package/dist/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +13 -0
  172. package/dist/serialization/types/TestCaseChatHistoryVariableValueRequest.js +45 -0
  173. package/dist/serialization/types/TestCaseErrorVariableValue.d.ts +13 -0
  174. package/dist/serialization/types/TestCaseErrorVariableValue.js +43 -0
  175. package/dist/serialization/types/TestCaseErrorVariableValueRequest.d.ts +13 -0
  176. package/dist/serialization/types/TestCaseErrorVariableValueRequest.js +43 -0
  177. package/dist/serialization/types/TestCaseJsonVariableValue.d.ts +13 -0
  178. package/dist/serialization/types/TestCaseJsonVariableValue.js +34 -0
  179. package/dist/serialization/types/TestCaseJsonVariableValueRequest.d.ts +13 -0
  180. package/dist/serialization/types/TestCaseJsonVariableValueRequest.js +34 -0
  181. package/dist/serialization/types/TestCaseNumberVariableValue.d.ts +13 -0
  182. package/dist/serialization/types/TestCaseNumberVariableValue.js +34 -0
  183. package/dist/serialization/types/TestCaseNumberVariableValueRequest.d.ts +13 -0
  184. package/dist/serialization/types/TestCaseNumberVariableValueRequest.js +34 -0
  185. package/dist/serialization/types/TestCaseSearchResultsVariableValue.d.ts +13 -0
  186. package/dist/serialization/types/TestCaseSearchResultsVariableValue.js +45 -0
  187. package/dist/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +13 -0
  188. package/dist/serialization/types/TestCaseSearchResultsVariableValueRequest.js +45 -0
  189. package/dist/serialization/types/TestCaseStringVariableValue.d.ts +13 -0
  190. package/dist/serialization/types/TestCaseStringVariableValue.js +34 -0
  191. package/dist/serialization/types/TestCaseStringVariableValueRequest.d.ts +13 -0
  192. package/dist/serialization/types/TestCaseStringVariableValueRequest.js +34 -0
  193. package/dist/serialization/types/TestCaseVariableValue.d.ts +28 -0
  194. package/dist/serialization/types/TestCaseVariableValue.js +52 -0
  195. package/dist/serialization/types/TestCaseVariableValueRequest.d.ts +28 -0
  196. package/dist/serialization/types/TestCaseVariableValueRequest.js +52 -0
  197. package/dist/serialization/types/TestSuiteTestCase.d.ts +3 -3
  198. package/dist/serialization/types/TestSuiteTestCase.js +3 -3
  199. package/dist/serialization/types/VellumErrorRequest.d.ts +13 -0
  200. package/dist/serialization/types/VellumErrorRequest.js +43 -0
  201. package/dist/serialization/types/index.d.ts +26 -0
  202. package/dist/serialization/types/index.js +26 -0
  203. package/package.json +1 -1
  204. package/serialization/client/requests/ExecutePromptRequest.d.ts +16 -0
  205. package/serialization/client/requests/ExecutePromptRequest.js +46 -0
  206. package/serialization/client/requests/index.d.ts +1 -0
  207. package/serialization/client/requests/index.js +3 -1
  208. package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -3
  209. package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +3 -3
  210. package/serialization/types/ChatHistoryInputRequest.d.ts +13 -0
  211. package/serialization/types/ChatHistoryInputRequest.js +43 -0
  212. package/serialization/types/ErrorExecutePromptResponse.d.ts +13 -0
  213. package/serialization/types/ErrorExecutePromptResponse.js +43 -0
  214. package/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
  215. package/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
  216. package/serialization/types/ExecutePromptResponse.d.ts +19 -0
  217. package/serialization/types/ExecutePromptResponse.js +49 -0
  218. package/serialization/types/JsonExecutePromptResponse.d.ts +13 -0
  219. package/serialization/types/JsonExecutePromptResponse.js +34 -0
  220. package/serialization/types/JsonInputRequest.d.ts +13 -0
  221. package/serialization/types/JsonInputRequest.js +34 -0
  222. package/serialization/types/PromptDeploymentInputRequest.d.ts +19 -0
  223. package/serialization/types/PromptDeploymentInputRequest.js +49 -0
  224. package/serialization/types/SearchResultDocumentRequest.d.ts +14 -0
  225. package/serialization/types/SearchResultDocumentRequest.js +35 -0
  226. package/serialization/types/SearchResultRequest.d.ts +15 -0
  227. package/serialization/types/SearchResultRequest.js +45 -0
  228. package/serialization/types/StringExecutePromptResponse.d.ts +13 -0
  229. package/serialization/types/StringExecutePromptResponse.js +34 -0
  230. package/serialization/types/StringInputRequest.d.ts +13 -0
  231. package/serialization/types/StringInputRequest.js +34 -0
  232. package/serialization/types/TestCaseChatHistoryVariableValue.d.ts +13 -0
  233. package/serialization/types/TestCaseChatHistoryVariableValue.js +45 -0
  234. package/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +13 -0
  235. package/serialization/types/TestCaseChatHistoryVariableValueRequest.js +45 -0
  236. package/serialization/types/TestCaseErrorVariableValue.d.ts +13 -0
  237. package/serialization/types/TestCaseErrorVariableValue.js +43 -0
  238. package/serialization/types/TestCaseErrorVariableValueRequest.d.ts +13 -0
  239. package/serialization/types/TestCaseErrorVariableValueRequest.js +43 -0
  240. package/serialization/types/TestCaseJsonVariableValue.d.ts +13 -0
  241. package/serialization/types/TestCaseJsonVariableValue.js +34 -0
  242. package/serialization/types/TestCaseJsonVariableValueRequest.d.ts +13 -0
  243. package/serialization/types/TestCaseJsonVariableValueRequest.js +34 -0
  244. package/serialization/types/TestCaseNumberVariableValue.d.ts +13 -0
  245. package/serialization/types/TestCaseNumberVariableValue.js +34 -0
  246. package/serialization/types/TestCaseNumberVariableValueRequest.d.ts +13 -0
  247. package/serialization/types/TestCaseNumberVariableValueRequest.js +34 -0
  248. package/serialization/types/TestCaseSearchResultsVariableValue.d.ts +13 -0
  249. package/serialization/types/TestCaseSearchResultsVariableValue.js +45 -0
  250. package/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +13 -0
  251. package/serialization/types/TestCaseSearchResultsVariableValueRequest.js +45 -0
  252. package/serialization/types/TestCaseStringVariableValue.d.ts +13 -0
  253. package/serialization/types/TestCaseStringVariableValue.js +34 -0
  254. package/serialization/types/TestCaseStringVariableValueRequest.d.ts +13 -0
  255. package/serialization/types/TestCaseStringVariableValueRequest.js +34 -0
  256. package/serialization/types/TestCaseVariableValue.d.ts +28 -0
  257. package/serialization/types/TestCaseVariableValue.js +52 -0
  258. package/serialization/types/TestCaseVariableValueRequest.d.ts +28 -0
  259. package/serialization/types/TestCaseVariableValueRequest.js +52 -0
  260. package/serialization/types/TestSuiteTestCase.d.ts +3 -3
  261. package/serialization/types/TestSuiteTestCase.js +3 -3
  262. package/serialization/types/VellumErrorRequest.d.ts +13 -0
  263. package/serialization/types/VellumErrorRequest.js +43 -0
  264. package/serialization/types/index.d.ts +26 -0
  265. package/serialization/types/index.js +26 -0
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApiNodeResult"), exports);
18
18
  __exportStar(require("./ApiNodeResultData"), exports);
19
19
  __exportStar(require("./BlockTypeEnum"), exports);
20
+ __exportStar(require("./ChatHistoryInputRequest"), exports);
20
21
  __exportStar(require("./ChatMessage"), exports);
21
22
  __exportStar(require("./ChatMessageRequest"), exports);
22
23
  __exportStar(require("./ChatMessageRole"), exports);
@@ -31,8 +32,11 @@ __exportStar(require("./DocumentRead"), exports);
31
32
  __exportStar(require("./DocumentStatus"), exports);
32
33
  __exportStar(require("./EnrichedNormalizedCompletion"), exports);
33
34
  __exportStar(require("./EnvironmentEnum"), exports);
35
+ __exportStar(require("./ErrorExecutePromptResponse"), exports);
34
36
  __exportStar(require("./EvaluationParams"), exports);
35
37
  __exportStar(require("./EvaluationParamsRequest"), exports);
38
+ __exportStar(require("./ExecutePromptApiErrorResponse"), exports);
39
+ __exportStar(require("./ExecutePromptResponse"), exports);
36
40
  __exportStar(require("./ExecuteWorkflowStreamErrorResponse"), exports);
37
41
  __exportStar(require("./FinishReasonEnum"), exports);
38
42
  __exportStar(require("./GenerateErrorResponse"), exports);
@@ -46,6 +50,8 @@ __exportStar(require("./GenerateStreamResponse"), exports);
46
50
  __exportStar(require("./GenerateStreamResult"), exports);
47
51
  __exportStar(require("./GenerateStreamResultData"), exports);
48
52
  __exportStar(require("./IndexingStateEnum"), exports);
53
+ __exportStar(require("./JsonExecutePromptResponse"), exports);
54
+ __exportStar(require("./JsonInputRequest"), exports);
49
55
  __exportStar(require("./LogicalOperator"), exports);
50
56
  __exportStar(require("./LogprobsEnum"), exports);
51
57
  __exportStar(require("./MetadataFilterConfigRequest"), exports);
@@ -69,6 +75,7 @@ __exportStar(require("./NormalizedTokenLogProbs"), exports);
69
75
  __exportStar(require("./PaginatedSlimDocumentList"), exports);
70
76
  __exportStar(require("./ProcessingFailureReasonEnum"), exports);
71
77
  __exportStar(require("./ProcessingStateEnum"), exports);
78
+ __exportStar(require("./PromptDeploymentInputRequest"), exports);
72
79
  __exportStar(require("./PromptNodeResult"), exports);
73
80
  __exportStar(require("./PromptNodeResultData"), exports);
74
81
  __exportStar(require("./PromptTemplateBlock"), exports);
@@ -102,9 +109,13 @@ __exportStar(require("./SearchRequestOptionsRequest"), exports);
102
109
  __exportStar(require("./SearchResponse"), exports);
103
110
  __exportStar(require("./SearchResult"), exports);
104
111
  __exportStar(require("./SearchResultDocument"), exports);
112
+ __exportStar(require("./SearchResultDocumentRequest"), exports);
105
113
  __exportStar(require("./SearchResultMergingRequest"), exports);
114
+ __exportStar(require("./SearchResultRequest"), exports);
106
115
  __exportStar(require("./SearchWeightsRequest"), exports);
107
116
  __exportStar(require("./SlimDocument"), exports);
117
+ __exportStar(require("./StringExecutePromptResponse"), exports);
118
+ __exportStar(require("./StringInputRequest"), exports);
108
119
  __exportStar(require("./SubmitCompletionActualRequest"), exports);
109
120
  __exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
110
121
  __exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
@@ -126,11 +137,26 @@ __exportStar(require("./TerminalNodeResultData"), exports);
126
137
  __exportStar(require("./TerminalNodeResultOutput"), exports);
127
138
  __exportStar(require("./TerminalNodeSearchResultsResult"), exports);
128
139
  __exportStar(require("./TerminalNodeStringResult"), exports);
140
+ __exportStar(require("./TestCaseChatHistoryVariableValue"), exports);
141
+ __exportStar(require("./TestCaseChatHistoryVariableValueRequest"), exports);
142
+ __exportStar(require("./TestCaseErrorVariableValue"), exports);
143
+ __exportStar(require("./TestCaseErrorVariableValueRequest"), exports);
144
+ __exportStar(require("./TestCaseJsonVariableValue"), exports);
145
+ __exportStar(require("./TestCaseJsonVariableValueRequest"), exports);
146
+ __exportStar(require("./TestCaseNumberVariableValue"), exports);
147
+ __exportStar(require("./TestCaseNumberVariableValueRequest"), exports);
148
+ __exportStar(require("./TestCaseSearchResultsVariableValue"), exports);
149
+ __exportStar(require("./TestCaseSearchResultsVariableValueRequest"), exports);
150
+ __exportStar(require("./TestCaseStringVariableValue"), exports);
151
+ __exportStar(require("./TestCaseStringVariableValueRequest"), exports);
152
+ __exportStar(require("./TestCaseVariableValue"), exports);
153
+ __exportStar(require("./TestCaseVariableValueRequest"), exports);
129
154
  __exportStar(require("./TestSuiteTestCase"), exports);
130
155
  __exportStar(require("./UploadDocumentErrorResponse"), exports);
131
156
  __exportStar(require("./UploadDocumentResponse"), exports);
132
157
  __exportStar(require("./VellumError"), exports);
133
158
  __exportStar(require("./VellumErrorCodeEnum"), exports);
159
+ __exportStar(require("./VellumErrorRequest"), exports);
134
160
  __exportStar(require("./VellumVariable"), exports);
135
161
  __exportStar(require("./VellumVariableType"), exports);
136
162
  __exportStar(require("./WorkflowEventError"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.1.3",
3
+ "version": "v0.1.5",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
@@ -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 ExecutePromptRequest: core.serialization.Schema<serializers.ExecutePromptRequest.Raw, Vellum.ExecutePromptRequest>;
8
+ export declare namespace ExecutePromptRequest {
9
+ interface Raw {
10
+ inputs: serializers.PromptDeploymentInputRequest.Raw[];
11
+ prompt_deployment_id?: string | null;
12
+ prompt_deployment_name?: string | null;
13
+ release_tag?: string | null;
14
+ external_id?: string | null;
15
+ }
16
+ }
@@ -0,0 +1,46 @@
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.ExecutePromptRequest = void 0;
39
+ const core = __importStar(require("../../../core"));
40
+ exports.ExecutePromptRequest = core.serialization.object({
41
+ inputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).PromptDeploymentInputRequest; }))),
42
+ promptDeploymentId: core.serialization.property("prompt_deployment_id", core.serialization.string().optional()),
43
+ promptDeploymentName: core.serialization.property("prompt_deployment_name", core.serialization.string().optional()),
44
+ releaseTag: core.serialization.property("release_tag", core.serialization.string().optional()),
45
+ externalId: core.serialization.property("external_id", core.serialization.string().optional()),
46
+ });
@@ -1,3 +1,4 @@
1
+ export { ExecutePromptRequest } from "./ExecutePromptRequest";
1
2
  export { ExecuteWorkflowStreamRequest } from "./ExecuteWorkflowStreamRequest";
2
3
  export { GenerateBodyRequest } from "./GenerateBodyRequest";
3
4
  export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = void 0;
3
+ exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = exports.ExecutePromptRequest = void 0;
4
+ var ExecutePromptRequest_1 = require("./ExecutePromptRequest");
5
+ Object.defineProperty(exports, "ExecutePromptRequest", { enumerable: true, get: function () { return ExecutePromptRequest_1.ExecutePromptRequest; } });
4
6
  var ExecuteWorkflowStreamRequest_1 = require("./ExecuteWorkflowStreamRequest");
5
7
  Object.defineProperty(exports, "ExecuteWorkflowStreamRequest", { enumerable: true, get: function () { return ExecuteWorkflowStreamRequest_1.ExecuteWorkflowStreamRequest; } });
6
8
  var GenerateBodyRequest_1 = require("./GenerateBodyRequest");
@@ -7,9 +7,9 @@ import * as core from "../../../../../core";
7
7
  export declare const TestSuiteTestCaseRequest: core.serialization.Schema<serializers.TestSuiteTestCaseRequest.Raw, Vellum.TestSuiteTestCaseRequest>;
8
8
  export declare namespace TestSuiteTestCaseRequest {
9
9
  interface Raw {
10
- test_case_id?: string | null;
10
+ id?: string | null;
11
11
  label?: string | null;
12
- input_values: Record<string, unknown>;
13
- evaluation_params: serializers.EvaluationParamsRequest.Raw;
12
+ input_values: serializers.TestCaseVariableValueRequest.Raw[];
13
+ evaluation_values: serializers.TestCaseVariableValueRequest.Raw[];
14
14
  }
15
15
  }
@@ -38,8 +38,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.TestSuiteTestCaseRequest = void 0;
39
39
  const core = __importStar(require("../../../../../core"));
40
40
  exports.TestSuiteTestCaseRequest = core.serialization.object({
41
- testCaseId: core.serialization.property("test_case_id", core.serialization.string().optional()),
41
+ testSuiteTestCaseRequestId: core.serialization.property("id", core.serialization.string().optional()),
42
42
  label: core.serialization.string().optional(),
43
- inputValues: core.serialization.property("input_values", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
44
- evaluationParams: core.serialization.property("evaluation_params", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).EvaluationParamsRequest; }))),
43
+ inputValues: core.serialization.property("input_values", core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).TestCaseVariableValueRequest; })))),
44
+ evaluationValues: core.serialization.property("evaluation_values", core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).TestCaseVariableValueRequest; })))),
45
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 ChatHistoryInputRequest: core.serialization.ObjectSchema<serializers.ChatHistoryInputRequest.Raw, Vellum.ChatHistoryInputRequest>;
8
+ export declare namespace ChatHistoryInputRequest {
9
+ interface Raw {
10
+ name: string;
11
+ value: serializers.ChatMessageRequest.Raw[];
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.ChatHistoryInputRequest = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ChatHistoryInputRequest = core.serialization.object({
41
+ name: core.serialization.string(),
42
+ value: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest; }))),
43
+ });
@@ -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 ErrorExecutePromptResponse: core.serialization.ObjectSchema<serializers.ErrorExecutePromptResponse.Raw, Vellum.ErrorExecutePromptResponse>;
8
+ export declare namespace ErrorExecutePromptResponse {
9
+ interface Raw {
10
+ value: serializers.VellumError.Raw;
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.ErrorExecutePromptResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ErrorExecutePromptResponse = core.serialization.object({
41
+ value: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumError; })),
42
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
43
+ });
@@ -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 ExecutePromptApiErrorResponse: core.serialization.ObjectSchema<serializers.ExecutePromptApiErrorResponse.Raw, Vellum.ExecutePromptApiErrorResponse>;
8
+ export declare namespace ExecutePromptApiErrorResponse {
9
+ interface Raw {
10
+ detail: string;
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.ExecutePromptApiErrorResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ExecutePromptApiErrorResponse = core.serialization.object({
32
+ detail: core.serialization.string(),
33
+ });
@@ -0,0 +1,19 @@
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.Error | ExecutePromptResponse.Json | ExecutePromptResponse.String;
10
+ interface Error extends serializers.ErrorExecutePromptResponse.Raw {
11
+ type: "ERROR";
12
+ }
13
+ interface Json extends serializers.JsonExecutePromptResponse.Raw {
14
+ type: "JSON";
15
+ }
16
+ interface String extends serializers.StringExecutePromptResponse.Raw {
17
+ type: "STRING";
18
+ }
19
+ }
@@ -0,0 +1,49 @@
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("type", {
42
+ ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ErrorExecutePromptResponse; })),
43
+ JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonExecutePromptResponse; })),
44
+ STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).StringExecutePromptResponse; })),
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -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 JsonExecutePromptResponse: core.serialization.ObjectSchema<serializers.JsonExecutePromptResponse.Raw, Vellum.JsonExecutePromptResponse>;
8
+ export declare namespace JsonExecutePromptResponse {
9
+ interface Raw {
10
+ value: Record<string, unknown>;
11
+ execution_id: string;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.JsonExecutePromptResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.JsonExecutePromptResponse = core.serialization.object({
32
+ value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
33
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
34
+ });
@@ -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 JsonInputRequest: core.serialization.ObjectSchema<serializers.JsonInputRequest.Raw, Vellum.JsonInputRequest>;
8
+ export declare namespace JsonInputRequest {
9
+ interface Raw {
10
+ name: string;
11
+ value: Record<string, unknown>;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.JsonInputRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.JsonInputRequest = core.serialization.object({
32
+ name: core.serialization.string(),
33
+ value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
34
+ });
@@ -0,0 +1,19 @@
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 PromptDeploymentInputRequest: core.serialization.Schema<serializers.PromptDeploymentInputRequest.Raw, Vellum.PromptDeploymentInputRequest>;
8
+ export declare namespace PromptDeploymentInputRequest {
9
+ type Raw = PromptDeploymentInputRequest.String | PromptDeploymentInputRequest.Json | PromptDeploymentInputRequest.ChatHistory;
10
+ interface String extends serializers.StringInputRequest.Raw {
11
+ type: "STRING";
12
+ }
13
+ interface Json extends serializers.JsonInputRequest.Raw {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends serializers.ChatHistoryInputRequest.Raw {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ }
@@ -0,0 +1,49 @@
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.PromptDeploymentInputRequest = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.PromptDeploymentInputRequest = core.serialization
41
+ .union("type", {
42
+ STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).StringInputRequest; })),
43
+ JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonInputRequest; })),
44
+ CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatHistoryInputRequest; })),
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -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 SearchResultDocumentRequest: core.serialization.ObjectSchema<serializers.SearchResultDocumentRequest.Raw, Vellum.SearchResultDocumentRequest>;
8
+ export declare namespace SearchResultDocumentRequest {
9
+ interface Raw {
10
+ label: string;
11
+ external_id?: string | null;
12
+ metadata?: Record<string, unknown> | null;
13
+ }
14
+ }