vellum-ai 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/Client.d.ts +2 -2
  2. package/Client.js +10 -10
  3. package/api/client/requests/ExecutePromptRequest.d.ts +1 -0
  4. package/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -0
  5. package/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  6. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  7. package/api/resources/deployments/client/Client.d.ts +2 -2
  8. package/api/resources/deployments/client/Client.js +4 -4
  9. package/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -1
  10. package/api/resources/documentIndexes/client/Client.d.ts +2 -2
  11. package/api/resources/documentIndexes/client/Client.js +3 -3
  12. package/api/resources/documents/client/Client.d.ts +2 -2
  13. package/api/resources/documents/client/Client.js +5 -5
  14. package/api/resources/folderEntities/client/Client.d.ts +2 -2
  15. package/api/resources/folderEntities/client/Client.js +2 -2
  16. package/api/resources/modelVersions/client/Client.d.ts +2 -2
  17. package/api/resources/modelVersions/client/Client.js +2 -2
  18. package/api/resources/registeredPrompts/client/Client.d.ts +2 -2
  19. package/api/resources/registeredPrompts/client/Client.js +2 -2
  20. package/api/resources/sandboxes/client/Client.d.ts +2 -2
  21. package/api/resources/sandboxes/client/Client.js +3 -3
  22. package/api/resources/testSuites/client/Client.d.ts +2 -2
  23. package/api/resources/testSuites/client/Client.js +3 -3
  24. package/api/resources/workflowDeployments/client/Client.d.ts +9 -2
  25. package/api/resources/workflowDeployments/client/Client.js +56 -2
  26. package/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -4
  27. package/api/types/ArrayEnum.d.ts +4 -0
  28. package/api/types/ArrayEnum.js +5 -0
  29. package/api/types/ArrayVariableValueItem.d.ts +28 -0
  30. package/api/types/ArrayVariableValueItem.js +5 -0
  31. package/api/types/ChatHistoryVariableValue.d.ts +7 -0
  32. package/api/types/ChatHistoryVariableValue.js +5 -0
  33. package/api/types/CodeExecutionNodeResultData.d.ts +1 -0
  34. package/api/types/NodeInputCompiledArrayValue.d.ts +9 -0
  35. package/api/types/NodeInputCompiledArrayValue.js +5 -0
  36. package/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
  37. package/api/types/NodeOutputCompiledArrayValue.d.ts +8 -0
  38. package/api/types/NodeOutputCompiledArrayValue.js +5 -0
  39. package/api/types/NodeOutputCompiledFunctionValue.d.ts +8 -0
  40. package/api/types/NodeOutputCompiledFunctionValue.js +5 -0
  41. package/api/types/NodeOutputCompiledValue.d.ts +7 -1
  42. package/api/types/NumberVariableValue.d.ts +6 -0
  43. package/api/types/NumberVariableValue.js +5 -0
  44. package/api/types/PromptNodeResultData.d.ts +1 -0
  45. package/api/types/SearchResultsVariableValue.d.ts +7 -0
  46. package/api/types/SearchResultsVariableValue.js +5 -0
  47. package/api/types/SubworkflowEnum.d.ts +4 -0
  48. package/api/types/SubworkflowEnum.js +5 -0
  49. package/api/types/SubworkflowNodeResult.d.ts +8 -0
  50. package/api/types/SubworkflowNodeResult.js +5 -0
  51. package/api/types/TerminalNodeArrayResult.d.ts +10 -0
  52. package/api/types/TerminalNodeArrayResult.js +5 -0
  53. package/api/types/TerminalNodeFunctionCallResult.d.ts +10 -0
  54. package/api/types/TerminalNodeFunctionCallResult.js +5 -0
  55. package/api/types/TerminalNodeResultOutput.d.ts +7 -1
  56. package/api/types/VellumErrorCodeEnum.d.ts +3 -1
  57. package/api/types/VellumErrorCodeEnum.js +1 -0
  58. package/api/types/WorkflowDeploymentRead.d.ts +32 -0
  59. package/api/types/WorkflowDeploymentRead.js +5 -0
  60. package/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
  61. package/api/types/WorkflowExecutionEventErrorCode.js +1 -0
  62. package/api/types/WorkflowNodeResultData.d.ts +4 -1
  63. package/api/types/WorkflowOutput.d.ts +4 -1
  64. package/api/types/WorkflowOutputArray.d.ts +13 -0
  65. package/api/types/WorkflowOutputArray.js +5 -0
  66. package/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +3 -0
  67. package/api/types/WorkflowRequestJsonInputRequest.d.ts +3 -0
  68. package/api/types/WorkflowRequestNumberInputRequest.d.ts +3 -0
  69. package/api/types/WorkflowRequestStringInputRequest.d.ts +3 -0
  70. package/api/types/WorkflowResultEventOutputData.d.ts +7 -1
  71. package/api/types/WorkflowResultEventOutputDataArray.d.ts +16 -0
  72. package/api/types/WorkflowResultEventOutputDataArray.js +5 -0
  73. package/api/types/WorkflowResultEventOutputDataFunctionCall.d.ts +16 -0
  74. package/api/types/WorkflowResultEventOutputDataFunctionCall.js +5 -0
  75. package/api/types/index.d.ts +16 -0
  76. package/api/types/index.js +16 -0
  77. package/dist/Client.d.ts +2 -2
  78. package/dist/Client.js +10 -10
  79. package/dist/api/client/requests/ExecutePromptRequest.d.ts +1 -0
  80. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -0
  81. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  82. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  83. package/dist/api/resources/deployments/client/Client.d.ts +2 -2
  84. package/dist/api/resources/deployments/client/Client.js +4 -4
  85. package/dist/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -1
  86. package/dist/api/resources/documentIndexes/client/Client.d.ts +2 -2
  87. package/dist/api/resources/documentIndexes/client/Client.js +3 -3
  88. package/dist/api/resources/documents/client/Client.d.ts +2 -2
  89. package/dist/api/resources/documents/client/Client.js +5 -5
  90. package/dist/api/resources/folderEntities/client/Client.d.ts +2 -2
  91. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  92. package/dist/api/resources/modelVersions/client/Client.d.ts +2 -2
  93. package/dist/api/resources/modelVersions/client/Client.js +2 -2
  94. package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -2
  95. package/dist/api/resources/registeredPrompts/client/Client.js +2 -2
  96. package/dist/api/resources/sandboxes/client/Client.d.ts +2 -2
  97. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  98. package/dist/api/resources/testSuites/client/Client.d.ts +2 -2
  99. package/dist/api/resources/testSuites/client/Client.js +3 -3
  100. package/dist/api/resources/workflowDeployments/client/Client.d.ts +9 -2
  101. package/dist/api/resources/workflowDeployments/client/Client.js +56 -2
  102. package/dist/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -4
  103. package/dist/api/types/ArrayEnum.d.ts +4 -0
  104. package/dist/api/types/ArrayEnum.js +5 -0
  105. package/dist/api/types/ArrayVariableValueItem.d.ts +28 -0
  106. package/dist/api/types/ArrayVariableValueItem.js +5 -0
  107. package/dist/api/types/ChatHistoryVariableValue.d.ts +7 -0
  108. package/dist/api/types/ChatHistoryVariableValue.js +5 -0
  109. package/dist/api/types/CodeExecutionNodeResultData.d.ts +1 -0
  110. package/dist/api/types/NodeInputCompiledArrayValue.d.ts +9 -0
  111. package/dist/api/types/NodeInputCompiledArrayValue.js +5 -0
  112. package/dist/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
  113. package/dist/api/types/NodeOutputCompiledArrayValue.d.ts +8 -0
  114. package/dist/api/types/NodeOutputCompiledArrayValue.js +5 -0
  115. package/dist/api/types/NodeOutputCompiledFunctionValue.d.ts +8 -0
  116. package/dist/api/types/NodeOutputCompiledFunctionValue.js +5 -0
  117. package/dist/api/types/NodeOutputCompiledValue.d.ts +7 -1
  118. package/dist/api/types/NumberVariableValue.d.ts +6 -0
  119. package/dist/api/types/NumberVariableValue.js +5 -0
  120. package/dist/api/types/PromptNodeResultData.d.ts +1 -0
  121. package/dist/api/types/SearchResultsVariableValue.d.ts +7 -0
  122. package/dist/api/types/SearchResultsVariableValue.js +5 -0
  123. package/dist/api/types/SubworkflowEnum.d.ts +4 -0
  124. package/dist/api/types/SubworkflowEnum.js +5 -0
  125. package/dist/api/types/SubworkflowNodeResult.d.ts +8 -0
  126. package/dist/api/types/SubworkflowNodeResult.js +5 -0
  127. package/dist/api/types/TerminalNodeArrayResult.d.ts +10 -0
  128. package/dist/api/types/TerminalNodeArrayResult.js +5 -0
  129. package/dist/api/types/TerminalNodeFunctionCallResult.d.ts +10 -0
  130. package/dist/api/types/TerminalNodeFunctionCallResult.js +5 -0
  131. package/dist/api/types/TerminalNodeResultOutput.d.ts +7 -1
  132. package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
  133. package/dist/api/types/VellumErrorCodeEnum.js +1 -0
  134. package/dist/api/types/WorkflowDeploymentRead.d.ts +32 -0
  135. package/dist/api/types/WorkflowDeploymentRead.js +5 -0
  136. package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
  137. package/dist/api/types/WorkflowExecutionEventErrorCode.js +1 -0
  138. package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
  139. package/dist/api/types/WorkflowOutput.d.ts +4 -1
  140. package/dist/api/types/WorkflowOutputArray.d.ts +13 -0
  141. package/dist/api/types/WorkflowOutputArray.js +5 -0
  142. package/dist/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +3 -0
  143. package/dist/api/types/WorkflowRequestJsonInputRequest.d.ts +3 -0
  144. package/dist/api/types/WorkflowRequestNumberInputRequest.d.ts +3 -0
  145. package/dist/api/types/WorkflowRequestStringInputRequest.d.ts +3 -0
  146. package/dist/api/types/WorkflowResultEventOutputData.d.ts +7 -1
  147. package/dist/api/types/WorkflowResultEventOutputDataArray.d.ts +16 -0
  148. package/dist/api/types/WorkflowResultEventOutputDataArray.js +5 -0
  149. package/dist/api/types/WorkflowResultEventOutputDataFunctionCall.d.ts +16 -0
  150. package/dist/api/types/WorkflowResultEventOutputDataFunctionCall.js +5 -0
  151. package/dist/api/types/index.d.ts +16 -0
  152. package/dist/api/types/index.js +16 -0
  153. package/dist/serialization/types/ArrayEnum.d.ts +10 -0
  154. package/dist/serialization/types/ArrayEnum.js +31 -0
  155. package/dist/serialization/types/ArrayVariableValueItem.d.ts +31 -0
  156. package/dist/serialization/types/ArrayVariableValueItem.js +53 -0
  157. package/dist/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
  158. package/dist/serialization/types/ChatHistoryVariableValue.js +44 -0
  159. package/dist/serialization/types/CodeExecutionNodeResultData.d.ts +1 -0
  160. package/dist/serialization/types/CodeExecutionNodeResultData.js +1 -0
  161. package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +14 -0
  162. package/dist/serialization/types/NodeInputCompiledArrayValue.js +46 -0
  163. package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
  164. package/dist/serialization/types/NodeInputVariableCompiledValue.js +1 -0
  165. package/dist/serialization/types/NodeOutputCompiledArrayValue.d.ts +13 -0
  166. package/dist/serialization/types/NodeOutputCompiledArrayValue.js +45 -0
  167. package/dist/serialization/types/NodeOutputCompiledFunctionValue.d.ts +13 -0
  168. package/dist/serialization/types/NodeOutputCompiledFunctionValue.js +43 -0
  169. package/dist/serialization/types/NodeOutputCompiledValue.d.ts +7 -1
  170. package/dist/serialization/types/NodeOutputCompiledValue.js +2 -0
  171. package/dist/serialization/types/NumberVariableValue.d.ts +12 -0
  172. package/dist/serialization/types/NumberVariableValue.js +33 -0
  173. package/dist/serialization/types/PromptNodeResultData.d.ts +1 -0
  174. package/dist/serialization/types/PromptNodeResultData.js +1 -0
  175. package/dist/serialization/types/SearchResultsVariableValue.d.ts +12 -0
  176. package/dist/serialization/types/SearchResultsVariableValue.js +44 -0
  177. package/dist/serialization/types/SubworkflowEnum.d.ts +10 -0
  178. package/dist/serialization/types/SubworkflowEnum.js +31 -0
  179. package/dist/serialization/types/SubworkflowNodeResult.d.ts +11 -0
  180. package/dist/serialization/types/SubworkflowNodeResult.js +31 -0
  181. package/dist/serialization/types/TerminalNodeArrayResult.d.ts +14 -0
  182. package/dist/serialization/types/TerminalNodeArrayResult.js +46 -0
  183. package/dist/serialization/types/TerminalNodeFunctionCallResult.d.ts +14 -0
  184. package/dist/serialization/types/TerminalNodeFunctionCallResult.js +44 -0
  185. package/dist/serialization/types/TerminalNodeResultOutput.d.ts +7 -1
  186. package/dist/serialization/types/TerminalNodeResultOutput.js +2 -0
  187. package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
  188. package/dist/serialization/types/VellumErrorCodeEnum.js +1 -1
  189. package/dist/serialization/types/WorkflowDeploymentRead.d.ts +20 -0
  190. package/dist/serialization/types/WorkflowDeploymentRead.js +50 -0
  191. package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
  192. package/dist/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
  193. package/dist/serialization/types/WorkflowNodeResultData.d.ts +4 -1
  194. package/dist/serialization/types/WorkflowNodeResultData.js +1 -0
  195. package/dist/serialization/types/WorkflowOutput.d.ts +4 -1
  196. package/dist/serialization/types/WorkflowOutput.js +1 -0
  197. package/dist/serialization/types/WorkflowOutputArray.d.ts +14 -0
  198. package/dist/serialization/types/WorkflowOutputArray.js +44 -0
  199. package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +7 -1
  200. package/dist/serialization/types/WorkflowResultEventOutputData.js +2 -0
  201. package/dist/serialization/types/WorkflowResultEventOutputDataArray.d.ts +17 -0
  202. package/dist/serialization/types/WorkflowResultEventOutputDataArray.js +49 -0
  203. package/dist/serialization/types/WorkflowResultEventOutputDataFunctionCall.d.ts +17 -0
  204. package/dist/serialization/types/WorkflowResultEventOutputDataFunctionCall.js +47 -0
  205. package/dist/serialization/types/index.d.ts +16 -0
  206. package/dist/serialization/types/index.js +16 -0
  207. package/package.json +1 -1
  208. package/serialization/types/ArrayEnum.d.ts +10 -0
  209. package/serialization/types/ArrayEnum.js +31 -0
  210. package/serialization/types/ArrayVariableValueItem.d.ts +31 -0
  211. package/serialization/types/ArrayVariableValueItem.js +53 -0
  212. package/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
  213. package/serialization/types/ChatHistoryVariableValue.js +44 -0
  214. package/serialization/types/CodeExecutionNodeResultData.d.ts +1 -0
  215. package/serialization/types/CodeExecutionNodeResultData.js +1 -0
  216. package/serialization/types/NodeInputCompiledArrayValue.d.ts +14 -0
  217. package/serialization/types/NodeInputCompiledArrayValue.js +46 -0
  218. package/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
  219. package/serialization/types/NodeInputVariableCompiledValue.js +1 -0
  220. package/serialization/types/NodeOutputCompiledArrayValue.d.ts +13 -0
  221. package/serialization/types/NodeOutputCompiledArrayValue.js +45 -0
  222. package/serialization/types/NodeOutputCompiledFunctionValue.d.ts +13 -0
  223. package/serialization/types/NodeOutputCompiledFunctionValue.js +43 -0
  224. package/serialization/types/NodeOutputCompiledValue.d.ts +7 -1
  225. package/serialization/types/NodeOutputCompiledValue.js +2 -0
  226. package/serialization/types/NumberVariableValue.d.ts +12 -0
  227. package/serialization/types/NumberVariableValue.js +33 -0
  228. package/serialization/types/PromptNodeResultData.d.ts +1 -0
  229. package/serialization/types/PromptNodeResultData.js +1 -0
  230. package/serialization/types/SearchResultsVariableValue.d.ts +12 -0
  231. package/serialization/types/SearchResultsVariableValue.js +44 -0
  232. package/serialization/types/SubworkflowEnum.d.ts +10 -0
  233. package/serialization/types/SubworkflowEnum.js +31 -0
  234. package/serialization/types/SubworkflowNodeResult.d.ts +11 -0
  235. package/serialization/types/SubworkflowNodeResult.js +31 -0
  236. package/serialization/types/TerminalNodeArrayResult.d.ts +14 -0
  237. package/serialization/types/TerminalNodeArrayResult.js +46 -0
  238. package/serialization/types/TerminalNodeFunctionCallResult.d.ts +14 -0
  239. package/serialization/types/TerminalNodeFunctionCallResult.js +44 -0
  240. package/serialization/types/TerminalNodeResultOutput.d.ts +7 -1
  241. package/serialization/types/TerminalNodeResultOutput.js +2 -0
  242. package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
  243. package/serialization/types/VellumErrorCodeEnum.js +1 -1
  244. package/serialization/types/WorkflowDeploymentRead.d.ts +20 -0
  245. package/serialization/types/WorkflowDeploymentRead.js +50 -0
  246. package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
  247. package/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
  248. package/serialization/types/WorkflowNodeResultData.d.ts +4 -1
  249. package/serialization/types/WorkflowNodeResultData.js +1 -0
  250. package/serialization/types/WorkflowOutput.d.ts +4 -1
  251. package/serialization/types/WorkflowOutput.js +1 -0
  252. package/serialization/types/WorkflowOutputArray.d.ts +14 -0
  253. package/serialization/types/WorkflowOutputArray.js +44 -0
  254. package/serialization/types/WorkflowResultEventOutputData.d.ts +7 -1
  255. package/serialization/types/WorkflowResultEventOutputData.js +2 -0
  256. package/serialization/types/WorkflowResultEventOutputDataArray.d.ts +17 -0
  257. package/serialization/types/WorkflowResultEventOutputDataArray.js +49 -0
  258. package/serialization/types/WorkflowResultEventOutputDataFunctionCall.d.ts +17 -0
  259. package/serialization/types/WorkflowResultEventOutputDataFunctionCall.js +47 -0
  260. package/serialization/types/index.d.ts +16 -0
  261. package/serialization/types/index.js +16 -0
@@ -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,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type ArrayVariableValueItem = Vellum.ArrayVariableValueItem.String | Vellum.ArrayVariableValueItem.Number | Vellum.ArrayVariableValueItem.Json | Vellum.ArrayVariableValueItem.ChatHistory | Vellum.ArrayVariableValueItem.SearchResults | Vellum.ArrayVariableValueItem.Error_ | Vellum.ArrayVariableValueItem.FunctionCall;
6
+ export declare namespace ArrayVariableValueItem {
7
+ interface String extends Vellum.StringVariableValue {
8
+ type: "STRING";
9
+ }
10
+ interface Number extends Vellum.NumberVariableValue {
11
+ type: "NUMBER";
12
+ }
13
+ interface Json extends Vellum.JsonVariableValue {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends Vellum.ChatHistoryVariableValue {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ interface SearchResults extends Vellum.SearchResultsVariableValue {
20
+ type: "SEARCH_RESULTS";
21
+ }
22
+ interface Error_ extends Vellum.ErrorVariableValue {
23
+ type: "ERROR";
24
+ }
25
+ interface FunctionCall extends Vellum.FunctionCallVariableValue {
26
+ type: "FUNCTION_CALL";
27
+ }
28
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface ChatHistoryVariableValue {
6
+ value?: Vellum.ChatMessage[];
7
+ }
@@ -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 });
@@ -4,4 +4,5 @@
4
4
  import * as Vellum from "..";
5
5
  export interface CodeExecutionNodeResultData {
6
6
  output: Vellum.CodeExecutionNodeResultOutput;
7
+ logOutputId?: string;
7
8
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface NodeInputCompiledArrayValue {
6
+ nodeInputId: string;
7
+ key: string;
8
+ value?: Vellum.ArrayVariableValueItem[];
9
+ }
@@ -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 });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type NodeInputVariableCompiledValue = Vellum.NodeInputVariableCompiledValue.String | Vellum.NodeInputVariableCompiledValue.Number | Vellum.NodeInputVariableCompiledValue.Json | Vellum.NodeInputVariableCompiledValue.ChatHistory | Vellum.NodeInputVariableCompiledValue.SearchResults | Vellum.NodeInputVariableCompiledValue.Error_;
5
+ export declare type NodeInputVariableCompiledValue = Vellum.NodeInputVariableCompiledValue.String | Vellum.NodeInputVariableCompiledValue.Number | Vellum.NodeInputVariableCompiledValue.Json | Vellum.NodeInputVariableCompiledValue.ChatHistory | Vellum.NodeInputVariableCompiledValue.SearchResults | Vellum.NodeInputVariableCompiledValue.Error_ | Vellum.NodeInputVariableCompiledValue.Array;
6
6
  export declare namespace NodeInputVariableCompiledValue {
7
7
  interface String extends Vellum.NodeInputCompiledStringValue {
8
8
  type: "STRING";
@@ -22,4 +22,7 @@ export declare namespace NodeInputVariableCompiledValue {
22
22
  interface Error_ extends Vellum.NodeInputCompiledErrorValue {
23
23
  type: "ERROR";
24
24
  }
25
+ interface Array extends Vellum.NodeInputCompiledArrayValue {
26
+ type: "ARRAY";
27
+ }
25
28
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface NodeOutputCompiledArrayValue {
6
+ nodeOutputId: string;
7
+ value?: Vellum.ArrayVariableValueItem[];
8
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface NodeOutputCompiledFunctionValue {
6
+ nodeOutputId: string;
7
+ value?: Vellum.FunctionCall;
8
+ }
@@ -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 });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type NodeOutputCompiledValue = Vellum.NodeOutputCompiledValue.String | Vellum.NodeOutputCompiledValue.Number | Vellum.NodeOutputCompiledValue.Json | Vellum.NodeOutputCompiledValue.ChatHistory | Vellum.NodeOutputCompiledValue.SearchResults | Vellum.NodeOutputCompiledValue.Error_;
5
+ export declare type NodeOutputCompiledValue = Vellum.NodeOutputCompiledValue.String | Vellum.NodeOutputCompiledValue.Number | Vellum.NodeOutputCompiledValue.Json | Vellum.NodeOutputCompiledValue.ChatHistory | Vellum.NodeOutputCompiledValue.SearchResults | Vellum.NodeOutputCompiledValue.Error_ | Vellum.NodeOutputCompiledValue.Array | Vellum.NodeOutputCompiledValue.FunctionCall;
6
6
  export declare namespace NodeOutputCompiledValue {
7
7
  interface String extends Vellum.NodeOutputCompiledStringValue {
8
8
  type: "STRING";
@@ -22,4 +22,10 @@ export declare namespace NodeOutputCompiledValue {
22
22
  interface Error_ extends Vellum.NodeOutputCompiledErrorValue {
23
23
  type: "ERROR";
24
24
  }
25
+ interface Array extends Vellum.NodeOutputCompiledArrayValue {
26
+ type: "ARRAY";
27
+ }
28
+ interface FunctionCall extends Vellum.NodeOutputCompiledFunctionValue {
29
+ type: "FUNCTION_CALL";
30
+ }
25
31
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface NumberVariableValue {
5
+ value?: number;
6
+ }
@@ -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 });
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface PromptNodeResultData {
5
5
  outputId: string;
6
+ arrayOutputId?: string;
6
7
  text?: string;
7
8
  delta?: string;
8
9
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface SearchResultsVariableValue {
6
+ value?: Vellum.SearchResult[];
7
+ }
@@ -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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type SubworkflowEnum = "SUBWORKFLOW";
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A Node Result Event emitted from a Subworkflow Node.
6
+ */
7
+ export interface SubworkflowNodeResult {
8
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TerminalNodeArrayResult {
6
+ id?: string;
7
+ /** The unique name given to the terminal node that produced this output. */
8
+ name: string;
9
+ value?: Vellum.ArrayVariableValueItem[];
10
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TerminalNodeFunctionCallResult {
6
+ id?: string;
7
+ /** The unique name given to the terminal node that produced this output. */
8
+ name: string;
9
+ value?: Vellum.FunctionCall;
10
+ }
@@ -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 });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type TerminalNodeResultOutput = Vellum.TerminalNodeResultOutput.String | Vellum.TerminalNodeResultOutput.Number | Vellum.TerminalNodeResultOutput.Json | Vellum.TerminalNodeResultOutput.ChatHistory | Vellum.TerminalNodeResultOutput.SearchResults | Vellum.TerminalNodeResultOutput.Error_;
5
+ export declare type TerminalNodeResultOutput = Vellum.TerminalNodeResultOutput.String | Vellum.TerminalNodeResultOutput.Number | Vellum.TerminalNodeResultOutput.Json | Vellum.TerminalNodeResultOutput.ChatHistory | Vellum.TerminalNodeResultOutput.SearchResults | Vellum.TerminalNodeResultOutput.Array | Vellum.TerminalNodeResultOutput.FunctionCall | Vellum.TerminalNodeResultOutput.Error_;
6
6
  export declare namespace TerminalNodeResultOutput {
7
7
  interface String extends Vellum.TerminalNodeStringResult {
8
8
  type: "STRING";
@@ -19,6 +19,12 @@ export declare namespace TerminalNodeResultOutput {
19
19
  interface SearchResults extends Vellum.TerminalNodeSearchResultsResult {
20
20
  type: "SEARCH_RESULTS";
21
21
  }
22
+ interface Array extends Vellum.TerminalNodeArrayResult {
23
+ type: "ARRAY";
24
+ }
25
+ interface FunctionCall extends Vellum.TerminalNodeFunctionCallResult {
26
+ type: "FUNCTION_CALL";
27
+ }
22
28
  interface Error_ extends Vellum.TerminalNodeErrorResult {
23
29
  type: "ERROR";
24
30
  }
@@ -5,10 +5,12 @@
5
5
  * - `INVALID_REQUEST` - INVALID_REQUEST
6
6
  * - `PROVIDER_ERROR` - PROVIDER_ERROR
7
7
  * - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
8
+ * - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
8
9
  */
9
- export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR";
10
+ export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
10
11
  export declare const VellumErrorCodeEnum: {
11
12
  readonly InvalidRequest: "INVALID_REQUEST";
12
13
  readonly ProviderError: "PROVIDER_ERROR";
13
14
  readonly InternalServerError: "INTERNAL_SERVER_ERROR";
15
+ readonly UserDefinedError: "USER_DEFINED_ERROR";
14
16
  };
@@ -8,4 +8,5 @@ exports.VellumErrorCodeEnum = {
8
8
  InvalidRequest: "INVALID_REQUEST",
9
9
  ProviderError: "PROVIDER_ERROR",
10
10
  InternalServerError: "INTERNAL_SERVER_ERROR",
11
+ UserDefinedError: "USER_DEFINED_ERROR",
11
12
  };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowDeploymentRead {
6
+ id: string;
7
+ /** A name that uniquely identifies this workflow deployment within its workspace */
8
+ name: string;
9
+ /** A human-readable label for the workflow deployment */
10
+ label: string;
11
+ /**
12
+ * The current status of the workflow deployment
13
+ *
14
+ * - `ACTIVE` - Active
15
+ * - `ARCHIVED` - Archived
16
+ */
17
+ status?: Vellum.EntityStatus;
18
+ /**
19
+ * The environment this workflow deployment is used in
20
+ *
21
+ * - `DEVELOPMENT` - Development
22
+ * - `STAGING` - Staging
23
+ * - `PRODUCTION` - Production
24
+ */
25
+ environment?: Vellum.EnvironmentEnum;
26
+ created: Date;
27
+ lastDeployedOn: Date;
28
+ /** The input variables this Workflow Deployment expects to receive values for when it is executed. */
29
+ inputVariables: Vellum.VellumVariable[];
30
+ /** The output variables this Workflow Deployment produces values for when it's executed. */
31
+ outputVariables: Vellum.VellumVariable[];
32
+ }
@@ -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,8 +8,9 @@
8
8
  * - `NODE_EXECUTION` - NODE_EXECUTION
9
9
  * - `LLM_PROVIDER` - LLM_PROVIDER
10
10
  * - `INVALID_TEMPLATE` - INVALID_TEMPLATE
11
+ * - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
11
12
  */
12
- export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
13
+ export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE" | "USER_DEFINED_ERROR";
13
14
  export declare const WorkflowExecutionEventErrorCode: {
14
15
  readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
15
16
  readonly NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED";
@@ -17,4 +18,5 @@ export declare const WorkflowExecutionEventErrorCode: {
17
18
  readonly NodeExecution: "NODE_EXECUTION";
18
19
  readonly LlmProvider: "LLM_PROVIDER";
19
20
  readonly InvalidTemplate: "INVALID_TEMPLATE";
21
+ readonly UserDefinedError: "USER_DEFINED_ERROR";
20
22
  };
@@ -11,4 +11,5 @@ exports.WorkflowExecutionEventErrorCode = {
11
11
  NodeExecution: "NODE_EXECUTION",
12
12
  LlmProvider: "LLM_PROVIDER",
13
13
  InvalidTemplate: "INVALID_TEMPLATE",
14
+ UserDefinedError: "USER_DEFINED_ERROR",
14
15
  };
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.CodeExecution | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal;
5
+ export declare type WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.CodeExecution | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal | Vellum.WorkflowNodeResultData.Subworkflow;
6
6
  export declare namespace WorkflowNodeResultData {
7
7
  interface Prompt extends Vellum.PromptNodeResult {
8
8
  type: "PROMPT";
@@ -25,4 +25,7 @@ export declare namespace WorkflowNodeResultData {
25
25
  interface Terminal extends Vellum.TerminalNodeResult {
26
26
  type: "TERMINAL";
27
27
  }
28
+ interface Subworkflow extends Vellum.SubworkflowNodeResult {
29
+ type: "SUBWORKFLOW";
30
+ }
28
31
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
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.FunctionCall | Vellum.WorkflowOutput.Image;
5
+ export declare type WorkflowOutput = Vellum.WorkflowOutput.String | Vellum.WorkflowOutput.Number | Vellum.WorkflowOutput.Json | Vellum.WorkflowOutput.ChatHistory | Vellum.WorkflowOutput.SearchResults | Vellum.WorkflowOutput.Array | Vellum.WorkflowOutput.Error_ | Vellum.WorkflowOutput.FunctionCall | Vellum.WorkflowOutput.Image;
6
6
  export declare namespace WorkflowOutput {
7
7
  interface String extends Vellum.WorkflowOutputString {
8
8
  type: "STRING";
@@ -19,6 +19,9 @@ export declare namespace WorkflowOutput {
19
19
  interface SearchResults extends Vellum.WorkflowOutputSearchResults {
20
20
  type: "SEARCH_RESULTS";
21
21
  }
22
+ interface Array extends Vellum.WorkflowOutputArray {
23
+ type: "ARRAY";
24
+ }
22
25
  interface Error_ extends Vellum.WorkflowOutputError {
23
26
  type: "ERROR";
24
27
  }
@@ -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 output 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.ArrayVariableValueItem[];
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 });
@@ -2,6 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
+ /**
6
+ * The input for a chat history variable in a Workflow.
7
+ */
5
8
  export interface WorkflowRequestChatHistoryInputRequest {
6
9
  /** The variable's name, as defined in the Workflow. */
7
10
  name: string;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * The input for a JSON variable in a Workflow.
6
+ */
4
7
  export interface WorkflowRequestJsonInputRequest {
5
8
  /** The variable's name, as defined in the Workflow. */
6
9
  name: string;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * The input for a number variable in a Workflow.
6
+ */
4
7
  export interface WorkflowRequestNumberInputRequest {
5
8
  /** The variable's name, as defined in the Workflow. */
6
9
  name: string;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * The input for a string variable in a Workflow.
6
+ */
4
7
  export interface WorkflowRequestStringInputRequest {
5
8
  /** The variable's name, as defined in the Workflow. */
6
9
  name: string;
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Number | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory | Vellum.WorkflowResultEventOutputData.SearchResults | Vellum.WorkflowResultEventOutputData.Error_;
5
+ export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Number | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory | Vellum.WorkflowResultEventOutputData.SearchResults | Vellum.WorkflowResultEventOutputData.Array | Vellum.WorkflowResultEventOutputData.FunctionCall | Vellum.WorkflowResultEventOutputData.Error_;
6
6
  export declare namespace WorkflowResultEventOutputData {
7
7
  interface String extends Vellum.WorkflowResultEventOutputDataString {
8
8
  type: "STRING";
@@ -19,6 +19,12 @@ export declare namespace WorkflowResultEventOutputData {
19
19
  interface SearchResults extends Vellum.WorkflowResultEventOutputDataSearchResults {
20
20
  type: "SEARCH_RESULTS";
21
21
  }
22
+ interface Array extends Vellum.WorkflowResultEventOutputDataArray {
23
+ type: "ARRAY";
24
+ }
25
+ interface FunctionCall extends Vellum.WorkflowResultEventOutputDataFunctionCall {
26
+ type: "FUNCTION_CALL";
27
+ }
22
28
  interface Error_ extends Vellum.WorkflowResultEventOutputDataError {
23
29
  type: "ERROR";
24
30
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * An Array output returned from a Workflow execution.
7
+ */
8
+ export interface WorkflowResultEventOutputDataArray {
9
+ id?: string;
10
+ name: string;
11
+ state: Vellum.WorkflowNodeResultEventState;
12
+ nodeId: string;
13
+ /** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
14
+ delta?: string;
15
+ value?: Vellum.ArrayVariableValueItem[];
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 });
@@ -0,0 +1,16 @@
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 returned from a Workflow execution.
7
+ */
8
+ export interface WorkflowResultEventOutputDataFunctionCall {
9
+ id?: string;
10
+ name: string;
11
+ state: Vellum.WorkflowNodeResultEventState;
12
+ nodeId: string;
13
+ /** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
14
+ delta?: string;
15
+ value?: Vellum.FunctionCall;
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 });