vellum-ai 0.2.0 → 0.2.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 (259) hide show
  1. package/Client.d.ts +7 -0
  2. package/Client.js +70 -8
  3. package/api/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
  4. package/api/client/requests/ExecuteWorkflowRequest.js +5 -0
  5. package/api/client/requests/index.d.ts +1 -0
  6. package/api/resources/deployments/client/Client.js +3 -3
  7. package/api/resources/documentIndexes/client/Client.js +2 -2
  8. package/api/resources/documents/client/Client.js +4 -4
  9. package/api/resources/modelVersions/client/Client.js +1 -1
  10. package/api/resources/registeredPrompts/client/Client.js +1 -1
  11. package/api/resources/sandboxes/client/Client.js +2 -2
  12. package/api/resources/testSuites/client/Client.js +2 -2
  13. package/api/resources/workflowDeployments/client/Client.js +1 -1
  14. package/api/types/ArrayEnum.d.ts +4 -0
  15. package/api/types/ArrayEnum.js +5 -0
  16. package/api/types/ArrayVariableValue.d.ts +7 -0
  17. package/api/types/ArrayVariableValue.js +5 -0
  18. package/api/types/ChatHistoryEnum.d.ts +4 -0
  19. package/api/types/ChatHistoryEnum.js +5 -0
  20. package/api/types/ChatHistoryVariableValue.d.ts +7 -0
  21. package/api/types/ChatHistoryVariableValue.js +5 -0
  22. package/api/types/ErrorEnum.d.ts +4 -0
  23. package/api/types/ErrorEnum.js +5 -0
  24. package/api/types/ExecuteWorkflowErrorResponse.d.ts +7 -0
  25. package/api/types/ExecuteWorkflowErrorResponse.js +5 -0
  26. package/api/types/ExecuteWorkflowResponse.d.ts +10 -0
  27. package/api/types/ExecuteWorkflowResponse.js +5 -0
  28. package/api/types/ExecuteWorkflowWorkflowResultEvent.d.ts +13 -0
  29. package/api/types/ExecuteWorkflowWorkflowResultEvent.js +5 -0
  30. package/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
  31. package/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +5 -0
  32. package/api/types/JsonEnum.d.ts +4 -0
  33. package/api/types/JsonEnum.js +5 -0
  34. package/api/types/NumberEnum.d.ts +4 -0
  35. package/api/types/NumberEnum.js +5 -0
  36. package/api/types/NumberVariableValue.d.ts +6 -0
  37. package/api/types/NumberVariableValue.js +5 -0
  38. package/api/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
  39. package/api/types/RejectedExecuteWorkflowWorkflowResultEvent.js +5 -0
  40. package/api/types/ScenarioInputTypeEnum.d.ts +2 -2
  41. package/api/types/SearchResultsEnum.d.ts +4 -0
  42. package/api/types/SearchResultsEnum.js +5 -0
  43. package/api/types/SearchResultsVariableValue.d.ts +7 -0
  44. package/api/types/SearchResultsVariableValue.js +5 -0
  45. package/api/types/VariableValue.d.ts +31 -0
  46. package/api/types/VariableValue.js +5 -0
  47. package/api/types/WorkflowOutput.d.ts +34 -0
  48. package/api/types/WorkflowOutput.js +5 -0
  49. package/api/types/WorkflowOutputArray.d.ts +13 -0
  50. package/api/types/WorkflowOutputArray.js +5 -0
  51. package/api/types/WorkflowOutputChatHistory.d.ts +13 -0
  52. package/api/types/WorkflowOutputChatHistory.js +5 -0
  53. package/api/types/WorkflowOutputError.d.ts +13 -0
  54. package/api/types/WorkflowOutputError.js +5 -0
  55. package/api/types/WorkflowOutputFunctionCall.d.ts +13 -0
  56. package/api/types/WorkflowOutputFunctionCall.js +5 -0
  57. package/api/types/WorkflowOutputImage.d.ts +13 -0
  58. package/api/types/WorkflowOutputImage.js +5 -0
  59. package/api/types/WorkflowOutputJson.d.ts +12 -0
  60. package/api/types/WorkflowOutputJson.js +5 -0
  61. package/api/types/WorkflowOutputNumber.d.ts +12 -0
  62. package/api/types/WorkflowOutputNumber.js +5 -0
  63. package/api/types/WorkflowOutputSearchResults.d.ts +13 -0
  64. package/api/types/WorkflowOutputSearchResults.js +5 -0
  65. package/api/types/WorkflowOutputString.d.ts +12 -0
  66. package/api/types/WorkflowOutputString.js +5 -0
  67. package/api/types/WorkflowResultEvent.d.ts +1 -0
  68. package/api/types/index.d.ts +26 -0
  69. package/api/types/index.js +26 -0
  70. package/dist/Client.d.ts +7 -0
  71. package/dist/Client.js +70 -8
  72. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
  73. package/dist/api/client/requests/ExecuteWorkflowRequest.js +5 -0
  74. package/dist/api/client/requests/index.d.ts +1 -0
  75. package/dist/api/resources/deployments/client/Client.js +3 -3
  76. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  77. package/dist/api/resources/documents/client/Client.js +4 -4
  78. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  79. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  80. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  81. package/dist/api/resources/testSuites/client/Client.js +2 -2
  82. package/dist/api/resources/workflowDeployments/client/Client.js +1 -1
  83. package/dist/api/types/ArrayEnum.d.ts +4 -0
  84. package/dist/api/types/ArrayEnum.js +5 -0
  85. package/dist/api/types/ArrayVariableValue.d.ts +7 -0
  86. package/dist/api/types/ArrayVariableValue.js +5 -0
  87. package/dist/api/types/ChatHistoryEnum.d.ts +4 -0
  88. package/dist/api/types/ChatHistoryEnum.js +5 -0
  89. package/dist/api/types/ChatHistoryVariableValue.d.ts +7 -0
  90. package/dist/api/types/ChatHistoryVariableValue.js +5 -0
  91. package/dist/api/types/ErrorEnum.d.ts +4 -0
  92. package/dist/api/types/ErrorEnum.js +5 -0
  93. package/dist/api/types/ExecuteWorkflowErrorResponse.d.ts +7 -0
  94. package/dist/api/types/ExecuteWorkflowErrorResponse.js +5 -0
  95. package/dist/api/types/ExecuteWorkflowResponse.d.ts +10 -0
  96. package/dist/api/types/ExecuteWorkflowResponse.js +5 -0
  97. package/dist/api/types/ExecuteWorkflowWorkflowResultEvent.d.ts +13 -0
  98. package/dist/api/types/ExecuteWorkflowWorkflowResultEvent.js +5 -0
  99. package/dist/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
  100. package/dist/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +5 -0
  101. package/dist/api/types/JsonEnum.d.ts +4 -0
  102. package/dist/api/types/JsonEnum.js +5 -0
  103. package/dist/api/types/NumberEnum.d.ts +4 -0
  104. package/dist/api/types/NumberEnum.js +5 -0
  105. package/dist/api/types/NumberVariableValue.d.ts +6 -0
  106. package/dist/api/types/NumberVariableValue.js +5 -0
  107. package/dist/api/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
  108. package/dist/api/types/RejectedExecuteWorkflowWorkflowResultEvent.js +5 -0
  109. package/dist/api/types/ScenarioInputTypeEnum.d.ts +2 -2
  110. package/dist/api/types/SearchResultsEnum.d.ts +4 -0
  111. package/dist/api/types/SearchResultsEnum.js +5 -0
  112. package/dist/api/types/SearchResultsVariableValue.d.ts +7 -0
  113. package/dist/api/types/SearchResultsVariableValue.js +5 -0
  114. package/dist/api/types/VariableValue.d.ts +31 -0
  115. package/dist/api/types/VariableValue.js +5 -0
  116. package/dist/api/types/WorkflowOutput.d.ts +34 -0
  117. package/dist/api/types/WorkflowOutput.js +5 -0
  118. package/dist/api/types/WorkflowOutputArray.d.ts +13 -0
  119. package/dist/api/types/WorkflowOutputArray.js +5 -0
  120. package/dist/api/types/WorkflowOutputChatHistory.d.ts +13 -0
  121. package/dist/api/types/WorkflowOutputChatHistory.js +5 -0
  122. package/dist/api/types/WorkflowOutputError.d.ts +13 -0
  123. package/dist/api/types/WorkflowOutputError.js +5 -0
  124. package/dist/api/types/WorkflowOutputFunctionCall.d.ts +13 -0
  125. package/dist/api/types/WorkflowOutputFunctionCall.js +5 -0
  126. package/dist/api/types/WorkflowOutputImage.d.ts +13 -0
  127. package/dist/api/types/WorkflowOutputImage.js +5 -0
  128. package/dist/api/types/WorkflowOutputJson.d.ts +12 -0
  129. package/dist/api/types/WorkflowOutputJson.js +5 -0
  130. package/dist/api/types/WorkflowOutputNumber.d.ts +12 -0
  131. package/dist/api/types/WorkflowOutputNumber.js +5 -0
  132. package/dist/api/types/WorkflowOutputSearchResults.d.ts +13 -0
  133. package/dist/api/types/WorkflowOutputSearchResults.js +5 -0
  134. package/dist/api/types/WorkflowOutputString.d.ts +12 -0
  135. package/dist/api/types/WorkflowOutputString.js +5 -0
  136. package/dist/api/types/WorkflowResultEvent.d.ts +1 -0
  137. package/dist/api/types/index.d.ts +26 -0
  138. package/dist/api/types/index.js +26 -0
  139. package/dist/serialization/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
  140. package/dist/serialization/client/requests/ExecuteWorkflowRequest.js +46 -0
  141. package/dist/serialization/client/requests/index.d.ts +1 -0
  142. package/dist/serialization/client/requests/index.js +3 -1
  143. package/dist/serialization/types/ArrayEnum.d.ts +10 -0
  144. package/dist/serialization/types/ArrayEnum.js +31 -0
  145. package/dist/serialization/types/ArrayVariableValue.d.ts +12 -0
  146. package/dist/serialization/types/ArrayVariableValue.js +42 -0
  147. package/dist/serialization/types/ChatHistoryEnum.d.ts +10 -0
  148. package/dist/serialization/types/ChatHistoryEnum.js +31 -0
  149. package/dist/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
  150. package/dist/serialization/types/ChatHistoryVariableValue.js +44 -0
  151. package/dist/serialization/types/ErrorEnum.d.ts +10 -0
  152. package/dist/serialization/types/ErrorEnum.js +31 -0
  153. package/dist/serialization/types/ExecuteWorkflowErrorResponse.d.ts +12 -0
  154. package/dist/serialization/types/ExecuteWorkflowErrorResponse.js +33 -0
  155. package/dist/serialization/types/ExecuteWorkflowResponse.d.ts +15 -0
  156. package/dist/serialization/types/ExecuteWorkflowResponse.js +45 -0
  157. package/dist/serialization/types/ExecuteWorkflowWorkflowResultEvent.d.ts +16 -0
  158. package/dist/serialization/types/ExecuteWorkflowWorkflowResultEvent.js +48 -0
  159. package/dist/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
  160. package/dist/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +44 -0
  161. package/dist/serialization/types/JsonEnum.d.ts +10 -0
  162. package/dist/serialization/types/JsonEnum.js +31 -0
  163. package/dist/serialization/types/NumberEnum.d.ts +10 -0
  164. package/dist/serialization/types/NumberEnum.js +31 -0
  165. package/dist/serialization/types/NumberVariableValue.d.ts +12 -0
  166. package/dist/serialization/types/NumberVariableValue.js +33 -0
  167. package/dist/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
  168. package/dist/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.js +44 -0
  169. package/dist/serialization/types/SearchResultsEnum.d.ts +10 -0
  170. package/dist/serialization/types/SearchResultsEnum.js +31 -0
  171. package/dist/serialization/types/SearchResultsVariableValue.d.ts +12 -0
  172. package/dist/serialization/types/SearchResultsVariableValue.js +44 -0
  173. package/dist/serialization/types/VariableValue.d.ts +34 -0
  174. package/dist/serialization/types/VariableValue.js +54 -0
  175. package/dist/serialization/types/WorkflowOutput.d.ts +37 -0
  176. package/dist/serialization/types/WorkflowOutput.js +55 -0
  177. package/dist/serialization/types/WorkflowOutputArray.d.ts +14 -0
  178. package/dist/serialization/types/WorkflowOutputArray.js +44 -0
  179. package/dist/serialization/types/WorkflowOutputChatHistory.d.ts +14 -0
  180. package/dist/serialization/types/WorkflowOutputChatHistory.js +44 -0
  181. package/dist/serialization/types/WorkflowOutputError.d.ts +14 -0
  182. package/dist/serialization/types/WorkflowOutputError.js +44 -0
  183. package/dist/serialization/types/WorkflowOutputFunctionCall.d.ts +14 -0
  184. package/dist/serialization/types/WorkflowOutputFunctionCall.js +44 -0
  185. package/dist/serialization/types/WorkflowOutputImage.d.ts +14 -0
  186. package/dist/serialization/types/WorkflowOutputImage.js +44 -0
  187. package/dist/serialization/types/WorkflowOutputJson.d.ts +14 -0
  188. package/dist/serialization/types/WorkflowOutputJson.js +35 -0
  189. package/dist/serialization/types/WorkflowOutputNumber.d.ts +14 -0
  190. package/dist/serialization/types/WorkflowOutputNumber.js +35 -0
  191. package/dist/serialization/types/WorkflowOutputSearchResults.d.ts +14 -0
  192. package/dist/serialization/types/WorkflowOutputSearchResults.js +44 -0
  193. package/dist/serialization/types/WorkflowOutputString.d.ts +14 -0
  194. package/dist/serialization/types/WorkflowOutputString.js +35 -0
  195. package/dist/serialization/types/WorkflowResultEvent.d.ts +1 -0
  196. package/dist/serialization/types/WorkflowResultEvent.js +3 -0
  197. package/dist/serialization/types/index.d.ts +26 -0
  198. package/dist/serialization/types/index.js +26 -0
  199. package/package.json +1 -1
  200. package/serialization/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
  201. package/serialization/client/requests/ExecuteWorkflowRequest.js +46 -0
  202. package/serialization/client/requests/index.d.ts +1 -0
  203. package/serialization/client/requests/index.js +3 -1
  204. package/serialization/types/ArrayEnum.d.ts +10 -0
  205. package/serialization/types/ArrayEnum.js +31 -0
  206. package/serialization/types/ArrayVariableValue.d.ts +12 -0
  207. package/serialization/types/ArrayVariableValue.js +42 -0
  208. package/serialization/types/ChatHistoryEnum.d.ts +10 -0
  209. package/serialization/types/ChatHistoryEnum.js +31 -0
  210. package/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
  211. package/serialization/types/ChatHistoryVariableValue.js +44 -0
  212. package/serialization/types/ErrorEnum.d.ts +10 -0
  213. package/serialization/types/ErrorEnum.js +31 -0
  214. package/serialization/types/ExecuteWorkflowErrorResponse.d.ts +12 -0
  215. package/serialization/types/ExecuteWorkflowErrorResponse.js +33 -0
  216. package/serialization/types/ExecuteWorkflowResponse.d.ts +15 -0
  217. package/serialization/types/ExecuteWorkflowResponse.js +45 -0
  218. package/serialization/types/ExecuteWorkflowWorkflowResultEvent.d.ts +16 -0
  219. package/serialization/types/ExecuteWorkflowWorkflowResultEvent.js +48 -0
  220. package/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
  221. package/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +44 -0
  222. package/serialization/types/JsonEnum.d.ts +10 -0
  223. package/serialization/types/JsonEnum.js +31 -0
  224. package/serialization/types/NumberEnum.d.ts +10 -0
  225. package/serialization/types/NumberEnum.js +31 -0
  226. package/serialization/types/NumberVariableValue.d.ts +12 -0
  227. package/serialization/types/NumberVariableValue.js +33 -0
  228. package/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
  229. package/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.js +44 -0
  230. package/serialization/types/SearchResultsEnum.d.ts +10 -0
  231. package/serialization/types/SearchResultsEnum.js +31 -0
  232. package/serialization/types/SearchResultsVariableValue.d.ts +12 -0
  233. package/serialization/types/SearchResultsVariableValue.js +44 -0
  234. package/serialization/types/VariableValue.d.ts +34 -0
  235. package/serialization/types/VariableValue.js +54 -0
  236. package/serialization/types/WorkflowOutput.d.ts +37 -0
  237. package/serialization/types/WorkflowOutput.js +55 -0
  238. package/serialization/types/WorkflowOutputArray.d.ts +14 -0
  239. package/serialization/types/WorkflowOutputArray.js +44 -0
  240. package/serialization/types/WorkflowOutputChatHistory.d.ts +14 -0
  241. package/serialization/types/WorkflowOutputChatHistory.js +44 -0
  242. package/serialization/types/WorkflowOutputError.d.ts +14 -0
  243. package/serialization/types/WorkflowOutputError.js +44 -0
  244. package/serialization/types/WorkflowOutputFunctionCall.d.ts +14 -0
  245. package/serialization/types/WorkflowOutputFunctionCall.js +44 -0
  246. package/serialization/types/WorkflowOutputImage.d.ts +14 -0
  247. package/serialization/types/WorkflowOutputImage.js +44 -0
  248. package/serialization/types/WorkflowOutputJson.d.ts +14 -0
  249. package/serialization/types/WorkflowOutputJson.js +35 -0
  250. package/serialization/types/WorkflowOutputNumber.d.ts +14 -0
  251. package/serialization/types/WorkflowOutputNumber.js +35 -0
  252. package/serialization/types/WorkflowOutputSearchResults.d.ts +14 -0
  253. package/serialization/types/WorkflowOutputSearchResults.js +44 -0
  254. package/serialization/types/WorkflowOutputString.d.ts +14 -0
  255. package/serialization/types/WorkflowOutputString.js +35 -0
  256. package/serialization/types/WorkflowResultEvent.d.ts +1 -0
  257. package/serialization/types/WorkflowResultEvent.js +3 -0
  258. package/serialization/types/index.d.ts +26 -0
  259. package/serialization/types/index.js +26 -0
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type WorkflowOutput = Vellum.WorkflowOutput.String | Vellum.WorkflowOutput.Number | Vellum.WorkflowOutput.Json | Vellum.WorkflowOutput.ChatHistory | Vellum.WorkflowOutput.SearchResults | Vellum.WorkflowOutput.Error_ | Vellum.WorkflowOutput.Array | Vellum.WorkflowOutput.FunctionCall | Vellum.WorkflowOutput.Image;
6
+ export declare namespace WorkflowOutput {
7
+ interface String extends Vellum.WorkflowOutputString {
8
+ type: "STRING";
9
+ }
10
+ interface Number extends Vellum.WorkflowOutputNumber {
11
+ type: "NUMBER";
12
+ }
13
+ interface Json extends Vellum.WorkflowOutputJson {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends Vellum.WorkflowOutputChatHistory {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ interface SearchResults extends Vellum.WorkflowOutputSearchResults {
20
+ type: "SEARCH_RESULTS";
21
+ }
22
+ interface Error_ extends Vellum.WorkflowOutputError {
23
+ type: "ERROR";
24
+ }
25
+ interface Array extends Vellum.WorkflowOutputArray {
26
+ type: "ARRAY";
27
+ }
28
+ interface FunctionCall extends Vellum.WorkflowOutputFunctionCall {
29
+ type: "FUNCTION_CALL";
30
+ }
31
+ interface Image extends Vellum.WorkflowOutputImage {
32
+ type: "IMAGE";
33
+ }
34
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * An array of outputs from a Workflow execution.
7
+ */
8
+ export interface WorkflowOutputArray {
9
+ id: string;
10
+ /** The output's name, as defined in the workflow */
11
+ name: string;
12
+ value: Vellum.VariableValue[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * A chat history output from a Workflow execution.
7
+ */
8
+ export interface WorkflowOutputChatHistory {
9
+ id: string;
10
+ /** The output's name, as defined in the workflow */
11
+ name: string;
12
+ value: Vellum.ChatMessage[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * An error output from a Workflow execution.
7
+ */
8
+ export interface WorkflowOutputError {
9
+ id: string;
10
+ /** The output's name, as defined in the workflow */
11
+ name: string;
12
+ value: Vellum.VellumError;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * A function call output from a Workflow execution.
7
+ */
8
+ export interface WorkflowOutputFunctionCall {
9
+ id: string;
10
+ /** The output's name, as defined in the workflow */
11
+ name: string;
12
+ value: Vellum.FunctionCall;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * An image output from a Workflow execution.
7
+ */
8
+ export interface WorkflowOutputImage {
9
+ id: string;
10
+ /** The output's name, as defined in the workflow */
11
+ name: string;
12
+ value: Vellum.VellumImage;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A JSON output from a Workflow execution.
6
+ */
7
+ export interface WorkflowOutputJson {
8
+ id: string;
9
+ /** The output's name, as defined in the workflow */
10
+ name: string;
11
+ value: Record<string, unknown>;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A number output from a Workflow execution.
6
+ */
7
+ export interface WorkflowOutputNumber {
8
+ id: string;
9
+ /** The output's name, as defined in the workflow */
10
+ name: string;
11
+ value: number;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * A search results output from a Workflow execution.
7
+ */
8
+ export interface WorkflowOutputSearchResults {
9
+ id: string;
10
+ /** The output's name, as defined in the workflow */
11
+ name: string;
12
+ value: Vellum.SearchResult[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A string output from a Workflow execution.
6
+ */
7
+ export interface WorkflowOutputString {
8
+ id: string;
9
+ /** The output's name, as defined in the workflow */
10
+ name: string;
11
+ value: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,4 +8,5 @@ export interface WorkflowResultEvent {
8
8
  ts: Date;
9
9
  output?: Vellum.WorkflowResultEventOutputData;
10
10
  error?: Vellum.WorkflowEventError;
11
+ outputs?: Vellum.WorkflowOutput[];
11
12
  }
@@ -4,8 +4,12 @@ export * from "./ArrayChatMessageContent";
4
4
  export * from "./ArrayChatMessageContentItem";
5
5
  export * from "./ArrayChatMessageContentItemRequest";
6
6
  export * from "./ArrayChatMessageContentRequest";
7
+ export * from "./ArrayEnum";
8
+ export * from "./ArrayVariableValue";
7
9
  export * from "./BlockTypeEnum";
10
+ export * from "./ChatHistoryEnum";
8
11
  export * from "./ChatHistoryInputRequest";
12
+ export * from "./ChatHistoryVariableValue";
9
13
  export * from "./ChatMessage";
10
14
  export * from "./ChatMessageContent";
11
15
  export * from "./ChatMessageContentRequest";
@@ -31,17 +35,22 @@ export * from "./DocumentStatus";
31
35
  export * from "./EnrichedNormalizedCompletion";
32
36
  export * from "./EntityStatus";
33
37
  export * from "./EnvironmentEnum";
38
+ export * from "./ErrorEnum";
34
39
  export * from "./ErrorVariableValue";
35
40
  export * from "./EvaluationParams";
36
41
  export * from "./EvaluationParamsRequest";
37
42
  export * from "./ExecutePromptApiErrorResponse";
38
43
  export * from "./ExecutePromptEvent";
39
44
  export * from "./ExecutePromptResponse";
45
+ export * from "./ExecuteWorkflowErrorResponse";
46
+ export * from "./ExecuteWorkflowResponse";
40
47
  export * from "./ExecuteWorkflowStreamErrorResponse";
48
+ export * from "./ExecuteWorkflowWorkflowResultEvent";
41
49
  export * from "./FinishReasonEnum";
42
50
  export * from "./FulfilledEnum";
43
51
  export * from "./FulfilledExecutePromptEvent";
44
52
  export * from "./FulfilledExecutePromptResponse";
53
+ export * from "./FulfilledExecuteWorkflowWorkflowResultEvent";
45
54
  export * from "./FulfilledFunctionCall";
46
55
  export * from "./FulfilledPromptExecutionMeta";
47
56
  export * from "./FunctionCall";
@@ -69,6 +78,7 @@ export * from "./InitiatedEnum";
69
78
  export * from "./InitiatedExecutePromptEvent";
70
79
  export * from "./InitiatedPromptExecutionMeta";
71
80
  export * from "./JsonInputRequest";
81
+ export * from "./JsonEnum";
72
82
  export * from "./JsonVariableValue";
73
83
  export * from "./LogicalOperator";
74
84
  export * from "./LogprobsEnum";
@@ -97,6 +107,8 @@ export * from "./NodeInputCompiledStringValue";
97
107
  export * from "./NodeInputVariableCompiledValue";
98
108
  export * from "./NormalizedLogProbs";
99
109
  export * from "./NormalizedTokenLogProbs";
110
+ export * from "./NumberEnum";
111
+ export * from "./NumberVariableValue";
100
112
  export * from "./PaginatedSlimDeploymentReadList";
101
113
  export * from "./PaginatedSlimDocumentList";
102
114
  export * from "./PaginatedSlimWorkflowDeploymentList";
@@ -129,6 +141,7 @@ export * from "./RegisteredPromptSandboxSnapshot";
129
141
  export * from "./RejectedEnum";
130
142
  export * from "./RejectedExecutePromptEvent";
131
143
  export * from "./RejectedExecutePromptResponse";
144
+ export * from "./RejectedExecuteWorkflowWorkflowResultEvent";
132
145
  export * from "./RejectedFunctionCall";
133
146
  export * from "./RejectedPromptExecutionMeta";
134
147
  export * from "./SandboxMetricInputParams";
@@ -148,6 +161,8 @@ export * from "./SearchResultDocument";
148
161
  export * from "./SearchResultDocumentRequest";
149
162
  export * from "./SearchResultMergingRequest";
150
163
  export * from "./SearchResultRequest";
164
+ export * from "./SearchResultsEnum";
165
+ export * from "./SearchResultsVariableValue";
151
166
  export * from "./SearchWeightsRequest";
152
167
  export * from "./SlimDeploymentRead";
153
168
  export * from "./SlimDocument";
@@ -191,6 +206,7 @@ export * from "./TestCaseVariableValue";
191
206
  export * from "./TestSuiteTestCase";
192
207
  export * from "./UploadDocumentErrorResponse";
193
208
  export * from "./UploadDocumentResponse";
209
+ export * from "./VariableValue";
194
210
  export * from "./VellumError";
195
211
  export * from "./VellumErrorCodeEnum";
196
212
  export * from "./VellumErrorRequest";
@@ -209,6 +225,16 @@ export * from "./WorkflowExecutionWorkflowResultEvent";
209
225
  export * from "./WorkflowNodeResultData";
210
226
  export * from "./WorkflowNodeResultEvent";
211
227
  export * from "./WorkflowNodeResultEventState";
228
+ export * from "./WorkflowOutput";
229
+ export * from "./WorkflowOutputArray";
230
+ export * from "./WorkflowOutputChatHistory";
231
+ export * from "./WorkflowOutputError";
232
+ export * from "./WorkflowOutputFunctionCall";
233
+ export * from "./WorkflowOutputImage";
234
+ export * from "./WorkflowOutputJson";
235
+ export * from "./WorkflowOutputNumber";
236
+ export * from "./WorkflowOutputSearchResults";
237
+ export * from "./WorkflowOutputString";
212
238
  export * from "./WorkflowRequestChatHistoryInputRequest";
213
239
  export * from "./WorkflowRequestInputRequest";
214
240
  export * from "./WorkflowRequestJsonInputRequest";
@@ -20,8 +20,12 @@ __exportStar(require("./ArrayChatMessageContent"), exports);
20
20
  __exportStar(require("./ArrayChatMessageContentItem"), exports);
21
21
  __exportStar(require("./ArrayChatMessageContentItemRequest"), exports);
22
22
  __exportStar(require("./ArrayChatMessageContentRequest"), exports);
23
+ __exportStar(require("./ArrayEnum"), exports);
24
+ __exportStar(require("./ArrayVariableValue"), exports);
23
25
  __exportStar(require("./BlockTypeEnum"), exports);
26
+ __exportStar(require("./ChatHistoryEnum"), exports);
24
27
  __exportStar(require("./ChatHistoryInputRequest"), exports);
28
+ __exportStar(require("./ChatHistoryVariableValue"), exports);
25
29
  __exportStar(require("./ChatMessage"), exports);
26
30
  __exportStar(require("./ChatMessageContent"), exports);
27
31
  __exportStar(require("./ChatMessageContentRequest"), exports);
@@ -47,17 +51,22 @@ __exportStar(require("./DocumentStatus"), exports);
47
51
  __exportStar(require("./EnrichedNormalizedCompletion"), exports);
48
52
  __exportStar(require("./EntityStatus"), exports);
49
53
  __exportStar(require("./EnvironmentEnum"), exports);
54
+ __exportStar(require("./ErrorEnum"), exports);
50
55
  __exportStar(require("./ErrorVariableValue"), exports);
51
56
  __exportStar(require("./EvaluationParams"), exports);
52
57
  __exportStar(require("./EvaluationParamsRequest"), exports);
53
58
  __exportStar(require("./ExecutePromptApiErrorResponse"), exports);
54
59
  __exportStar(require("./ExecutePromptEvent"), exports);
55
60
  __exportStar(require("./ExecutePromptResponse"), exports);
61
+ __exportStar(require("./ExecuteWorkflowErrorResponse"), exports);
62
+ __exportStar(require("./ExecuteWorkflowResponse"), exports);
56
63
  __exportStar(require("./ExecuteWorkflowStreamErrorResponse"), exports);
64
+ __exportStar(require("./ExecuteWorkflowWorkflowResultEvent"), exports);
57
65
  __exportStar(require("./FinishReasonEnum"), exports);
58
66
  __exportStar(require("./FulfilledEnum"), exports);
59
67
  __exportStar(require("./FulfilledExecutePromptEvent"), exports);
60
68
  __exportStar(require("./FulfilledExecutePromptResponse"), exports);
69
+ __exportStar(require("./FulfilledExecuteWorkflowWorkflowResultEvent"), exports);
61
70
  __exportStar(require("./FulfilledFunctionCall"), exports);
62
71
  __exportStar(require("./FulfilledPromptExecutionMeta"), exports);
63
72
  __exportStar(require("./FunctionCall"), exports);
@@ -85,6 +94,7 @@ __exportStar(require("./InitiatedEnum"), exports);
85
94
  __exportStar(require("./InitiatedExecutePromptEvent"), exports);
86
95
  __exportStar(require("./InitiatedPromptExecutionMeta"), exports);
87
96
  __exportStar(require("./JsonInputRequest"), exports);
97
+ __exportStar(require("./JsonEnum"), exports);
88
98
  __exportStar(require("./JsonVariableValue"), exports);
89
99
  __exportStar(require("./LogicalOperator"), exports);
90
100
  __exportStar(require("./LogprobsEnum"), exports);
@@ -113,6 +123,8 @@ __exportStar(require("./NodeInputCompiledStringValue"), exports);
113
123
  __exportStar(require("./NodeInputVariableCompiledValue"), exports);
114
124
  __exportStar(require("./NormalizedLogProbs"), exports);
115
125
  __exportStar(require("./NormalizedTokenLogProbs"), exports);
126
+ __exportStar(require("./NumberEnum"), exports);
127
+ __exportStar(require("./NumberVariableValue"), exports);
116
128
  __exportStar(require("./PaginatedSlimDeploymentReadList"), exports);
117
129
  __exportStar(require("./PaginatedSlimDocumentList"), exports);
118
130
  __exportStar(require("./PaginatedSlimWorkflowDeploymentList"), exports);
@@ -145,6 +157,7 @@ __exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
145
157
  __exportStar(require("./RejectedEnum"), exports);
146
158
  __exportStar(require("./RejectedExecutePromptEvent"), exports);
147
159
  __exportStar(require("./RejectedExecutePromptResponse"), exports);
160
+ __exportStar(require("./RejectedExecuteWorkflowWorkflowResultEvent"), exports);
148
161
  __exportStar(require("./RejectedFunctionCall"), exports);
149
162
  __exportStar(require("./RejectedPromptExecutionMeta"), exports);
150
163
  __exportStar(require("./SandboxMetricInputParams"), exports);
@@ -164,6 +177,8 @@ __exportStar(require("./SearchResultDocument"), exports);
164
177
  __exportStar(require("./SearchResultDocumentRequest"), exports);
165
178
  __exportStar(require("./SearchResultMergingRequest"), exports);
166
179
  __exportStar(require("./SearchResultRequest"), exports);
180
+ __exportStar(require("./SearchResultsEnum"), exports);
181
+ __exportStar(require("./SearchResultsVariableValue"), exports);
167
182
  __exportStar(require("./SearchWeightsRequest"), exports);
168
183
  __exportStar(require("./SlimDeploymentRead"), exports);
169
184
  __exportStar(require("./SlimDocument"), exports);
@@ -207,6 +222,7 @@ __exportStar(require("./TestCaseVariableValue"), exports);
207
222
  __exportStar(require("./TestSuiteTestCase"), exports);
208
223
  __exportStar(require("./UploadDocumentErrorResponse"), exports);
209
224
  __exportStar(require("./UploadDocumentResponse"), exports);
225
+ __exportStar(require("./VariableValue"), exports);
210
226
  __exportStar(require("./VellumError"), exports);
211
227
  __exportStar(require("./VellumErrorCodeEnum"), exports);
212
228
  __exportStar(require("./VellumErrorRequest"), exports);
@@ -225,6 +241,16 @@ __exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
225
241
  __exportStar(require("./WorkflowNodeResultData"), exports);
226
242
  __exportStar(require("./WorkflowNodeResultEvent"), exports);
227
243
  __exportStar(require("./WorkflowNodeResultEventState"), exports);
244
+ __exportStar(require("./WorkflowOutput"), exports);
245
+ __exportStar(require("./WorkflowOutputArray"), exports);
246
+ __exportStar(require("./WorkflowOutputChatHistory"), exports);
247
+ __exportStar(require("./WorkflowOutputError"), exports);
248
+ __exportStar(require("./WorkflowOutputFunctionCall"), exports);
249
+ __exportStar(require("./WorkflowOutputImage"), exports);
250
+ __exportStar(require("./WorkflowOutputJson"), exports);
251
+ __exportStar(require("./WorkflowOutputNumber"), exports);
252
+ __exportStar(require("./WorkflowOutputSearchResults"), exports);
253
+ __exportStar(require("./WorkflowOutputString"), exports);
228
254
  __exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
229
255
  __exportStar(require("./WorkflowRequestInputRequest"), exports);
230
256
  __exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
package/dist/Client.d.ts CHANGED
@@ -43,6 +43,13 @@ export declare class VellumClient {
43
43
  * In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
44
44
  */
45
45
  executePromptStream(request: Vellum.ExecutePromptStreamRequest, requestOptions?: VellumClient.RequestOptions): Promise<core.Stream<Vellum.ExecutePromptEvent>>;
46
+ /**
47
+ * Executes a deployed Workflow and returns its outputs.
48
+ * @throws {@link Vellum.BadRequestError}
49
+ * @throws {@link Vellum.NotFoundError}
50
+ * @throws {@link Vellum.InternalServerError}
51
+ */
52
+ executeWorkflow(request: Vellum.ExecuteWorkflowRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecuteWorkflowResponse>;
46
53
  /**
47
54
  * Executes a deployed Workflow and streams back its results.
48
55
  */
package/dist/Client.js CHANGED
@@ -78,7 +78,7 @@ class VellumClient {
78
78
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "vellum-ai",
81
- "X-Fern-SDK-Version": "v0.2.0",
81
+ "X-Fern-SDK-Version": "v0.2.2",
82
82
  },
83
83
  contentType: "application/json",
84
84
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -142,7 +142,7 @@ class VellumClient {
142
142
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
143
143
  "X-Fern-Language": "JavaScript",
144
144
  "X-Fern-SDK-Name": "vellum-ai",
145
- "X-Fern-SDK-Version": "v0.2.0",
145
+ "X-Fern-SDK-Version": "v0.2.2",
146
146
  },
147
147
  contentType: "application/json",
148
148
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
@@ -198,6 +198,68 @@ class VellumClient {
198
198
  }
199
199
  });
200
200
  }
201
+ /**
202
+ * Executes a deployed Workflow and returns its outputs.
203
+ * @throws {@link Vellum.BadRequestError}
204
+ * @throws {@link Vellum.NotFoundError}
205
+ * @throws {@link Vellum.InternalServerError}
206
+ */
207
+ executeWorkflow(request, requestOptions) {
208
+ var _a;
209
+ return __awaiter(this, void 0, void 0, function* () {
210
+ const _response = yield core.fetcher({
211
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
212
+ .predict, "v1/execute-workflow"),
213
+ method: "POST",
214
+ headers: {
215
+ X_API_KEY: yield core.Supplier.get(this._options.apiKey),
216
+ "X-Fern-Language": "JavaScript",
217
+ "X-Fern-SDK-Name": "vellum-ai",
218
+ "X-Fern-SDK-Version": "v0.2.2",
219
+ },
220
+ contentType: "application/json",
221
+ body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
222
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
223
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
224
+ });
225
+ if (_response.ok) {
226
+ return yield serializers.ExecuteWorkflowResponse.parseOrThrow(_response.body, {
227
+ unrecognizedObjectKeys: "passthrough",
228
+ allowUnrecognizedUnionMembers: true,
229
+ allowUnrecognizedEnumValues: true,
230
+ breadcrumbsPrefix: ["response"],
231
+ });
232
+ }
233
+ if (_response.error.reason === "status-code") {
234
+ switch (_response.error.statusCode) {
235
+ case 400:
236
+ throw new Vellum.BadRequestError(_response.error.body);
237
+ case 404:
238
+ throw new Vellum.NotFoundError(_response.error.body);
239
+ case 500:
240
+ throw new Vellum.InternalServerError(_response.error.body);
241
+ default:
242
+ throw new errors.VellumError({
243
+ statusCode: _response.error.statusCode,
244
+ body: _response.error.body,
245
+ });
246
+ }
247
+ }
248
+ switch (_response.error.reason) {
249
+ case "non-json":
250
+ throw new errors.VellumError({
251
+ statusCode: _response.error.statusCode,
252
+ body: _response.error.rawBody,
253
+ });
254
+ case "timeout":
255
+ throw new errors.VellumTimeoutError();
256
+ case "unknown":
257
+ throw new errors.VellumError({
258
+ message: _response.error.errorMessage,
259
+ });
260
+ }
261
+ });
262
+ }
201
263
  /**
202
264
  * Executes a deployed Workflow and streams back its results.
203
265
  */
@@ -212,7 +274,7 @@ class VellumClient {
212
274
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
213
275
  "X-Fern-Language": "JavaScript",
214
276
  "X-Fern-SDK-Name": "vellum-ai",
215
- "X-Fern-SDK-Version": "v0.2.0",
277
+ "X-Fern-SDK-Version": "v0.2.2",
216
278
  },
217
279
  contentType: "application/json",
218
280
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
@@ -301,7 +363,7 @@ class VellumClient {
301
363
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
302
364
  "X-Fern-Language": "JavaScript",
303
365
  "X-Fern-SDK-Name": "vellum-ai",
304
- "X-Fern-SDK-Version": "v0.2.0",
366
+ "X-Fern-SDK-Version": "v0.2.2",
305
367
  },
306
368
  contentType: "application/json",
307
369
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -364,7 +426,7 @@ class VellumClient {
364
426
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
365
427
  "X-Fern-Language": "JavaScript",
366
428
  "X-Fern-SDK-Name": "vellum-ai",
367
- "X-Fern-SDK-Version": "v0.2.0",
429
+ "X-Fern-SDK-Version": "v0.2.2",
368
430
  },
369
431
  contentType: "application/json",
370
432
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -456,7 +518,7 @@ class VellumClient {
456
518
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
457
519
  "X-Fern-Language": "JavaScript",
458
520
  "X-Fern-SDK-Name": "vellum-ai",
459
- "X-Fern-SDK-Version": "v0.2.0",
521
+ "X-Fern-SDK-Version": "v0.2.2",
460
522
  },
461
523
  contentType: "application/json",
462
524
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -525,7 +587,7 @@ class VellumClient {
525
587
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
526
588
  "X-Fern-Language": "JavaScript",
527
589
  "X-Fern-SDK-Name": "vellum-ai",
528
- "X-Fern-SDK-Version": "v0.2.0",
590
+ "X-Fern-SDK-Version": "v0.2.2",
529
591
  },
530
592
  contentType: "application/json",
531
593
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
@@ -588,7 +650,7 @@ class VellumClient {
588
650
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
589
651
  "X-Fern-Language": "JavaScript",
590
652
  "X-Fern-SDK-Name": "vellum-ai",
591
- "X-Fern-SDK-Version": "v0.2.0",
653
+ "X-Fern-SDK-Version": "v0.2.2",
592
654
  },
593
655
  contentType: "application/json",
594
656
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../..";
5
+ export interface ExecuteWorkflowRequest {
6
+ /** The ID of the Workflow Deployment. Must provide either this or workflow_deployment_name. */
7
+ workflowDeploymentId?: string;
8
+ /** The name of the Workflow Deployment. Must provide either this or workflow_deployment_id. */
9
+ workflowDeploymentName?: string;
10
+ /** Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment */
11
+ releaseTag?: string;
12
+ /** The list of inputs defined in the Workflow's Deployment with their corresponding values. */
13
+ inputs: Vellum.WorkflowRequestInputRequest[];
14
+ /** Optionally include a unique identifier for monitoring purposes. */
15
+ externalId?: string;
16
+ }
@@ -0,0 +1,5 @@
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,5 +1,6 @@
1
1
  export { ExecutePromptRequest } from "./ExecutePromptRequest";
2
2
  export { ExecutePromptStreamRequest } from "./ExecutePromptStreamRequest";
3
+ export { ExecuteWorkflowRequest } from "./ExecuteWorkflowRequest";
3
4
  export { ExecuteWorkflowStreamRequest } from "./ExecuteWorkflowStreamRequest";
4
5
  export { GenerateBodyRequest } from "./GenerateBodyRequest";
5
6
  export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
@@ -73,7 +73,7 @@ class Deployments {
73
73
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "vellum-ai",
76
- "X-Fern-SDK-Version": "v0.2.0",
76
+ "X-Fern-SDK-Version": "v0.2.2",
77
77
  },
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
@@ -126,7 +126,7 @@ class Deployments {
126
126
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
127
127
  "X-Fern-Language": "JavaScript",
128
128
  "X-Fern-SDK-Name": "vellum-ai",
129
- "X-Fern-SDK-Version": "v0.2.0",
129
+ "X-Fern-SDK-Version": "v0.2.2",
130
130
  },
131
131
  contentType: "application/json",
132
132
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -172,7 +172,7 @@ class Deployments {
172
172
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
173
173
  "X-Fern-Language": "JavaScript",
174
174
  "X-Fern-SDK-Name": "vellum-ai",
175
- "X-Fern-SDK-Version": "v0.2.0",
175
+ "X-Fern-SDK-Version": "v0.2.2",
176
176
  },
177
177
  contentType: "application/json",
178
178
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {