vellum-ai 0.3.10 → 0.3.12

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 (225) hide show
  1. package/Client.js +9 -9
  2. package/api/client/requests/ExecuteWorkflowRequest.d.ts +3 -3
  3. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +2 -2
  4. package/api/resources/deployments/client/Client.d.ts +11 -0
  5. package/api/resources/deployments/client/Client.js +30 -7
  6. package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +2 -0
  7. package/api/resources/documentIndexes/client/Client.d.ts +23 -0
  8. package/api/resources/documentIndexes/client/Client.js +168 -3
  9. package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +29 -0
  10. package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.js +5 -0
  11. package/api/resources/documentIndexes/client/requests/PatchedDocumentIndexUpdateRequest.d.ts +27 -0
  12. package/api/resources/documentIndexes/client/requests/PatchedDocumentIndexUpdateRequest.js +5 -0
  13. package/api/resources/documentIndexes/client/requests/index.d.ts +2 -0
  14. package/api/resources/documents/client/Client.js +4 -4
  15. package/api/resources/folderEntities/client/Client.js +1 -1
  16. package/api/resources/modelVersions/client/Client.js +1 -1
  17. package/api/resources/registeredPrompts/client/Client.js +1 -1
  18. package/api/resources/sandboxes/client/Client.js +2 -2
  19. package/api/resources/testSuites/client/Client.js +2 -2
  20. package/api/resources/workflowDeployments/client/Client.js +2 -2
  21. package/api/types/ArrayVariableValueItem.d.ts +4 -1
  22. package/api/types/ChatMessage.d.ts +2 -0
  23. package/api/types/ChatMessageRequest.d.ts +2 -0
  24. package/api/types/ExecutionArrayVellumValue.d.ts +10 -0
  25. package/api/types/ExecutionArrayVellumValue.js +5 -0
  26. package/api/types/ExecutionChatHistoryVellumValue.d.ts +10 -0
  27. package/api/types/ExecutionChatHistoryVellumValue.js +5 -0
  28. package/api/types/ExecutionErrorVellumValue.d.ts +10 -0
  29. package/api/types/ExecutionErrorVellumValue.js +5 -0
  30. package/api/types/ExecutionFunctionCallVellumValue.d.ts +10 -0
  31. package/api/types/ExecutionFunctionCallVellumValue.js +5 -0
  32. package/api/types/ExecutionJsonVellumValue.d.ts +9 -0
  33. package/api/types/ExecutionJsonVellumValue.js +5 -0
  34. package/api/types/ExecutionNumberVellumValue.d.ts +9 -0
  35. package/api/types/ExecutionNumberVellumValue.js +5 -0
  36. package/api/types/ExecutionSearchResultsVellumValue.d.ts +10 -0
  37. package/api/types/ExecutionSearchResultsVellumValue.js +5 -0
  38. package/api/types/ExecutionStringVellumValue.d.ts +9 -0
  39. package/api/types/ExecutionStringVellumValue.js +5 -0
  40. package/api/types/ExecutionVellumValue.d.ts +31 -0
  41. package/api/types/ExecutionVellumValue.js +5 -0
  42. package/api/types/FulfilledWorkflowNodeResultEvent.d.ts +2 -0
  43. package/api/types/GenerateRequest.d.ts +1 -1
  44. package/api/types/ImageVariableValue.d.ts +10 -0
  45. package/api/types/ImageVariableValue.js +5 -0
  46. package/api/types/InitiatedWorkflowNodeResultEvent.d.ts +1 -0
  47. package/api/types/PromptTemplateBlockProperties.d.ts +1 -0
  48. package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
  49. package/api/types/RejectedWorkflowNodeResultEvent.d.ts +1 -0
  50. package/api/types/StreamingWorkflowNodeResultEvent.d.ts +1 -0
  51. package/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
  52. package/api/types/WorkflowExecutionEventErrorCode.js +1 -0
  53. package/api/types/WorkflowExecutionEventType.d.ts +2 -2
  54. package/api/types/WorkflowResultEvent.d.ts +1 -0
  55. package/api/types/index.d.ts +10 -0
  56. package/api/types/index.js +10 -0
  57. package/dist/Client.js +9 -9
  58. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +3 -3
  59. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +2 -2
  60. package/dist/api/resources/deployments/client/Client.d.ts +11 -0
  61. package/dist/api/resources/deployments/client/Client.js +30 -7
  62. package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +2 -0
  63. package/dist/api/resources/documentIndexes/client/Client.d.ts +23 -0
  64. package/dist/api/resources/documentIndexes/client/Client.js +168 -3
  65. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +29 -0
  66. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.js +5 -0
  67. package/dist/api/resources/documentIndexes/client/requests/PatchedDocumentIndexUpdateRequest.d.ts +27 -0
  68. package/dist/api/resources/documentIndexes/client/requests/PatchedDocumentIndexUpdateRequest.js +5 -0
  69. package/dist/api/resources/documentIndexes/client/requests/index.d.ts +2 -0
  70. package/dist/api/resources/documents/client/Client.js +4 -4
  71. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  72. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  73. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  74. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  75. package/dist/api/resources/testSuites/client/Client.js +2 -2
  76. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  77. package/dist/api/types/ArrayVariableValueItem.d.ts +4 -1
  78. package/dist/api/types/ChatMessage.d.ts +2 -0
  79. package/dist/api/types/ChatMessageRequest.d.ts +2 -0
  80. package/dist/api/types/ExecutionArrayVellumValue.d.ts +10 -0
  81. package/dist/api/types/ExecutionArrayVellumValue.js +5 -0
  82. package/dist/api/types/ExecutionChatHistoryVellumValue.d.ts +10 -0
  83. package/dist/api/types/ExecutionChatHistoryVellumValue.js +5 -0
  84. package/dist/api/types/ExecutionErrorVellumValue.d.ts +10 -0
  85. package/dist/api/types/ExecutionErrorVellumValue.js +5 -0
  86. package/dist/api/types/ExecutionFunctionCallVellumValue.d.ts +10 -0
  87. package/dist/api/types/ExecutionFunctionCallVellumValue.js +5 -0
  88. package/dist/api/types/ExecutionJsonVellumValue.d.ts +9 -0
  89. package/dist/api/types/ExecutionJsonVellumValue.js +5 -0
  90. package/dist/api/types/ExecutionNumberVellumValue.d.ts +9 -0
  91. package/dist/api/types/ExecutionNumberVellumValue.js +5 -0
  92. package/dist/api/types/ExecutionSearchResultsVellumValue.d.ts +10 -0
  93. package/dist/api/types/ExecutionSearchResultsVellumValue.js +5 -0
  94. package/dist/api/types/ExecutionStringVellumValue.d.ts +9 -0
  95. package/dist/api/types/ExecutionStringVellumValue.js +5 -0
  96. package/dist/api/types/ExecutionVellumValue.d.ts +31 -0
  97. package/dist/api/types/ExecutionVellumValue.js +5 -0
  98. package/dist/api/types/FulfilledWorkflowNodeResultEvent.d.ts +2 -0
  99. package/dist/api/types/GenerateRequest.d.ts +1 -1
  100. package/dist/api/types/ImageVariableValue.d.ts +10 -0
  101. package/dist/api/types/ImageVariableValue.js +5 -0
  102. package/dist/api/types/InitiatedWorkflowNodeResultEvent.d.ts +1 -0
  103. package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -0
  104. package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
  105. package/dist/api/types/RejectedWorkflowNodeResultEvent.d.ts +1 -0
  106. package/dist/api/types/StreamingWorkflowNodeResultEvent.d.ts +1 -0
  107. package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
  108. package/dist/api/types/WorkflowExecutionEventErrorCode.js +1 -0
  109. package/dist/api/types/WorkflowExecutionEventType.d.ts +2 -2
  110. package/dist/api/types/WorkflowResultEvent.d.ts +1 -0
  111. package/dist/api/types/index.d.ts +10 -0
  112. package/dist/api/types/index.js +10 -0
  113. package/dist/serialization/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  114. package/dist/serialization/client/requests/ExecuteWorkflowRequest.js +1 -1
  115. package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  116. package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.js +1 -1
  117. package/dist/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +1 -0
  118. package/dist/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +1 -0
  119. package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +14 -0
  120. package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.js +44 -0
  121. package/dist/serialization/resources/documentIndexes/client/requests/PatchedDocumentIndexUpdateRequest.d.ts +14 -0
  122. package/dist/serialization/resources/documentIndexes/client/requests/PatchedDocumentIndexUpdateRequest.js +44 -0
  123. package/dist/serialization/resources/documentIndexes/client/requests/index.d.ts +2 -0
  124. package/dist/serialization/resources/documentIndexes/client/requests/index.js +5 -1
  125. package/dist/serialization/types/ArrayVariableValueItem.d.ts +4 -1
  126. package/dist/serialization/types/ArrayVariableValueItem.js +1 -0
  127. package/dist/serialization/types/ChatMessage.d.ts +1 -0
  128. package/dist/serialization/types/ChatMessage.js +1 -0
  129. package/dist/serialization/types/ChatMessageRequest.d.ts +1 -0
  130. package/dist/serialization/types/ChatMessageRequest.js +1 -0
  131. package/dist/serialization/types/ExecutionArrayVellumValue.d.ts +14 -0
  132. package/dist/serialization/types/ExecutionArrayVellumValue.js +46 -0
  133. package/dist/serialization/types/ExecutionChatHistoryVellumValue.d.ts +14 -0
  134. package/dist/serialization/types/ExecutionChatHistoryVellumValue.js +46 -0
  135. package/dist/serialization/types/ExecutionErrorVellumValue.d.ts +14 -0
  136. package/dist/serialization/types/ExecutionErrorVellumValue.js +44 -0
  137. package/dist/serialization/types/ExecutionFunctionCallVellumValue.d.ts +14 -0
  138. package/dist/serialization/types/ExecutionFunctionCallVellumValue.js +44 -0
  139. package/dist/serialization/types/ExecutionJsonVellumValue.d.ts +14 -0
  140. package/dist/serialization/types/ExecutionJsonVellumValue.js +35 -0
  141. package/dist/serialization/types/ExecutionNumberVellumValue.d.ts +14 -0
  142. package/dist/serialization/types/ExecutionNumberVellumValue.js +35 -0
  143. package/dist/serialization/types/ExecutionSearchResultsVellumValue.d.ts +14 -0
  144. package/dist/serialization/types/ExecutionSearchResultsVellumValue.js +46 -0
  145. package/dist/serialization/types/ExecutionStringVellumValue.d.ts +14 -0
  146. package/dist/serialization/types/ExecutionStringVellumValue.js +35 -0
  147. package/dist/serialization/types/ExecutionVellumValue.d.ts +34 -0
  148. package/dist/serialization/types/ExecutionVellumValue.js +54 -0
  149. package/dist/serialization/types/FulfilledWorkflowNodeResultEvent.d.ts +2 -0
  150. package/dist/serialization/types/FulfilledWorkflowNodeResultEvent.js +2 -0
  151. package/dist/serialization/types/ImageVariableValue.d.ts +12 -0
  152. package/dist/serialization/types/ImageVariableValue.js +42 -0
  153. package/dist/serialization/types/InitiatedWorkflowNodeResultEvent.d.ts +1 -0
  154. package/dist/serialization/types/InitiatedWorkflowNodeResultEvent.js +1 -0
  155. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
  156. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -0
  157. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
  158. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -0
  159. package/dist/serialization/types/RejectedWorkflowNodeResultEvent.d.ts +1 -0
  160. package/dist/serialization/types/RejectedWorkflowNodeResultEvent.js +1 -0
  161. package/dist/serialization/types/StreamingWorkflowNodeResultEvent.d.ts +1 -0
  162. package/dist/serialization/types/StreamingWorkflowNodeResultEvent.js +1 -0
  163. package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
  164. package/dist/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
  165. package/dist/serialization/types/WorkflowResultEvent.d.ts +1 -0
  166. package/dist/serialization/types/WorkflowResultEvent.js +3 -0
  167. package/dist/serialization/types/index.d.ts +10 -0
  168. package/dist/serialization/types/index.js +10 -0
  169. package/package.json +1 -1
  170. package/serialization/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  171. package/serialization/client/requests/ExecuteWorkflowRequest.js +1 -1
  172. package/serialization/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  173. package/serialization/client/requests/ExecuteWorkflowStreamRequest.js +1 -1
  174. package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +1 -0
  175. package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +1 -0
  176. package/serialization/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +14 -0
  177. package/serialization/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.js +44 -0
  178. package/serialization/resources/documentIndexes/client/requests/PatchedDocumentIndexUpdateRequest.d.ts +14 -0
  179. package/serialization/resources/documentIndexes/client/requests/PatchedDocumentIndexUpdateRequest.js +44 -0
  180. package/serialization/resources/documentIndexes/client/requests/index.d.ts +2 -0
  181. package/serialization/resources/documentIndexes/client/requests/index.js +5 -1
  182. package/serialization/types/ArrayVariableValueItem.d.ts +4 -1
  183. package/serialization/types/ArrayVariableValueItem.js +1 -0
  184. package/serialization/types/ChatMessage.d.ts +1 -0
  185. package/serialization/types/ChatMessage.js +1 -0
  186. package/serialization/types/ChatMessageRequest.d.ts +1 -0
  187. package/serialization/types/ChatMessageRequest.js +1 -0
  188. package/serialization/types/ExecutionArrayVellumValue.d.ts +14 -0
  189. package/serialization/types/ExecutionArrayVellumValue.js +46 -0
  190. package/serialization/types/ExecutionChatHistoryVellumValue.d.ts +14 -0
  191. package/serialization/types/ExecutionChatHistoryVellumValue.js +46 -0
  192. package/serialization/types/ExecutionErrorVellumValue.d.ts +14 -0
  193. package/serialization/types/ExecutionErrorVellumValue.js +44 -0
  194. package/serialization/types/ExecutionFunctionCallVellumValue.d.ts +14 -0
  195. package/serialization/types/ExecutionFunctionCallVellumValue.js +44 -0
  196. package/serialization/types/ExecutionJsonVellumValue.d.ts +14 -0
  197. package/serialization/types/ExecutionJsonVellumValue.js +35 -0
  198. package/serialization/types/ExecutionNumberVellumValue.d.ts +14 -0
  199. package/serialization/types/ExecutionNumberVellumValue.js +35 -0
  200. package/serialization/types/ExecutionSearchResultsVellumValue.d.ts +14 -0
  201. package/serialization/types/ExecutionSearchResultsVellumValue.js +46 -0
  202. package/serialization/types/ExecutionStringVellumValue.d.ts +14 -0
  203. package/serialization/types/ExecutionStringVellumValue.js +35 -0
  204. package/serialization/types/ExecutionVellumValue.d.ts +34 -0
  205. package/serialization/types/ExecutionVellumValue.js +54 -0
  206. package/serialization/types/FulfilledWorkflowNodeResultEvent.d.ts +2 -0
  207. package/serialization/types/FulfilledWorkflowNodeResultEvent.js +2 -0
  208. package/serialization/types/ImageVariableValue.d.ts +12 -0
  209. package/serialization/types/ImageVariableValue.js +42 -0
  210. package/serialization/types/InitiatedWorkflowNodeResultEvent.d.ts +1 -0
  211. package/serialization/types/InitiatedWorkflowNodeResultEvent.js +1 -0
  212. package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
  213. package/serialization/types/PromptTemplateBlockProperties.js +1 -0
  214. package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
  215. package/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -0
  216. package/serialization/types/RejectedWorkflowNodeResultEvent.d.ts +1 -0
  217. package/serialization/types/RejectedWorkflowNodeResultEvent.js +1 -0
  218. package/serialization/types/StreamingWorkflowNodeResultEvent.d.ts +1 -0
  219. package/serialization/types/StreamingWorkflowNodeResultEvent.js +1 -0
  220. package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
  221. package/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
  222. package/serialization/types/WorkflowResultEvent.d.ts +1 -0
  223. package/serialization/types/WorkflowResultEvent.js +3 -0
  224. package/serialization/types/index.d.ts +10 -0
  225. package/serialization/types/index.js +10 -0
@@ -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 ArrayVariableValueItem = Vellum.ArrayVariableValueItem.String | Vellum.ArrayVariableValueItem.Number | Vellum.ArrayVariableValueItem.Json | Vellum.ArrayVariableValueItem.ChatHistory | Vellum.ArrayVariableValueItem.SearchResults | Vellum.ArrayVariableValueItem.Error_ | Vellum.ArrayVariableValueItem.FunctionCall;
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 | Vellum.ArrayVariableValueItem.Image;
6
6
  export declare namespace ArrayVariableValueItem {
7
7
  interface String extends Vellum.StringVariableValue {
8
8
  type: "STRING";
@@ -25,4 +25,7 @@ export declare namespace ArrayVariableValueItem {
25
25
  interface FunctionCall extends Vellum.FunctionCallVariableValue {
26
26
  type: "FUNCTION_CALL";
27
27
  }
28
+ interface Image extends Vellum.ImageVariableValue {
29
+ type: "IMAGE";
30
+ }
28
31
  }
@@ -6,4 +6,6 @@ export interface ChatMessage {
6
6
  text?: string;
7
7
  role: Vellum.ChatMessageRole;
8
8
  content?: Vellum.ChatMessageContent;
9
+ /** An optional identifier representing who or what generated this message. */
10
+ source?: string;
9
11
  }
@@ -6,4 +6,6 @@ export interface ChatMessageRequest {
6
6
  text?: string;
7
7
  role: Vellum.ChatMessageRole;
8
8
  content?: Vellum.ChatMessageContentRequest;
9
+ /** An optional identifier representing who or what generated this message. */
10
+ source?: string;
9
11
  }
@@ -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 ExecutionArrayVellumValue {
6
+ /** The variable's uniquely identifying internal id. */
7
+ id: string;
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 ExecutionChatHistoryVellumValue {
6
+ /** The variable's uniquely identifying internal id. */
7
+ id: string;
8
+ name: string;
9
+ value?: Vellum.ChatMessage[];
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 ExecutionErrorVellumValue {
6
+ /** The variable's uniquely identifying internal id. */
7
+ id: string;
8
+ name: string;
9
+ value?: Vellum.VellumError;
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 ExecutionFunctionCallVellumValue {
6
+ /** The variable's uniquely identifying internal id. */
7
+ id: string;
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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ExecutionJsonVellumValue {
5
+ /** The variable's uniquely identifying internal id. */
6
+ id: string;
7
+ name: string;
8
+ value?: Record<string, unknown>;
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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ExecutionNumberVellumValue {
5
+ /** The variable's uniquely identifying internal id. */
6
+ id: string;
7
+ name: string;
8
+ value?: number;
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 });
@@ -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 ExecutionSearchResultsVellumValue {
6
+ /** The variable's uniquely identifying internal id. */
7
+ id: string;
8
+ name: string;
9
+ value?: Vellum.SearchResult[];
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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ExecutionStringVellumValue {
5
+ /** The variable's uniquely identifying internal id. */
6
+ id: string;
7
+ name: string;
8
+ value?: string;
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 });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type ExecutionVellumValue = Vellum.ExecutionVellumValue.String | Vellum.ExecutionVellumValue.Number | Vellum.ExecutionVellumValue.Json | Vellum.ExecutionVellumValue.ChatHistory | Vellum.ExecutionVellumValue.SearchResults | Vellum.ExecutionVellumValue.Error_ | Vellum.ExecutionVellumValue.Array | Vellum.ExecutionVellumValue.FunctionCall;
6
+ export declare namespace ExecutionVellumValue {
7
+ interface String extends Vellum.ExecutionStringVellumValue {
8
+ type: "STRING";
9
+ }
10
+ interface Number extends Vellum.ExecutionNumberVellumValue {
11
+ type: "NUMBER";
12
+ }
13
+ interface Json extends Vellum.ExecutionJsonVellumValue {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends Vellum.ExecutionChatHistoryVellumValue {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ interface SearchResults extends Vellum.ExecutionSearchResultsVellumValue {
20
+ type: "SEARCH_RESULTS";
21
+ }
22
+ interface Error_ extends Vellum.ExecutionErrorVellumValue {
23
+ type: "ERROR";
24
+ }
25
+ interface Array extends Vellum.ExecutionArrayVellumValue {
26
+ type: "ARRAY";
27
+ }
28
+ interface FunctionCall extends Vellum.ExecutionFunctionCallVellumValue {
29
+ type: "FUNCTION_CALL";
30
+ }
31
+ }
@@ -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 });
@@ -11,5 +11,7 @@ export interface FulfilledWorkflowNodeResultEvent {
11
11
  nodeResultId: string;
12
12
  ts?: Date;
13
13
  data?: Vellum.WorkflowNodeResultData;
14
+ sourceExecutionId?: string;
14
15
  outputValues?: Vellum.NodeOutputCompiledValue[];
16
+ mocked?: boolean;
15
17
  }
@@ -5,7 +5,7 @@ import * as Vellum from "..";
5
5
  export interface GenerateRequest {
6
6
  /** Key/value pairs for each template variable defined in the deployment's prompt. */
7
7
  inputValues: Record<string, unknown>;
8
- /** Optionally provide a list of chat messages that'll be used in place of the special {$chat_history} variable, if included in the prompt. */
8
+ /** Optionally provide a list of chat messages that'll be used in place of the special chat_history variable, if included in the prompt. */
9
9
  chatHistory?: Vellum.ChatMessageRequest[];
10
10
  /** Optionally include a unique identifier for each generation, as represented outside of Vellum. Note that this should generally be a list of length one. */
11
11
  externalIds?: string[];
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * A base Vellum primitive value representing an image.
7
+ */
8
+ export interface ImageVariableValue {
9
+ value?: Vellum.VellumImage;
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 });
@@ -11,5 +11,6 @@ export interface InitiatedWorkflowNodeResultEvent {
11
11
  nodeResultId: string;
12
12
  ts?: Date;
13
13
  data?: Vellum.WorkflowNodeResultData;
14
+ sourceExecutionId?: string;
14
15
  inputValues?: Vellum.NodeInputVariableCompiledValue[];
15
16
  }
@@ -5,6 +5,7 @@ import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockProperties {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
7
  chatMessageUnterminated?: boolean;
8
+ chatSource?: string;
8
9
  template?: string;
9
10
  templateType?: Vellum.VellumVariableType;
10
11
  functionName?: string;
@@ -5,6 +5,7 @@ import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockPropertiesRequest {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
7
  chatMessageUnterminated?: boolean;
8
+ chatSource?: string;
8
9
  template?: string;
9
10
  templateType?: Vellum.VellumVariableType;
10
11
  functionName?: string;
@@ -11,5 +11,6 @@ export interface RejectedWorkflowNodeResultEvent {
11
11
  nodeResultId: string;
12
12
  ts?: Date;
13
13
  data?: Vellum.WorkflowNodeResultData;
14
+ sourceExecutionId?: string;
14
15
  error: Vellum.WorkflowEventError;
15
16
  }
@@ -11,6 +11,7 @@ export interface StreamingWorkflowNodeResultEvent {
11
11
  nodeResultId: string;
12
12
  ts?: Date;
13
13
  data?: Vellum.WorkflowNodeResultData;
14
+ sourceExecutionId?: string;
14
15
  output?: Vellum.NodeOutputCompiledValue;
15
16
  outputIndex?: number;
16
17
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * - `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
6
+ * - `WORKFLOW_CANCELLED` - WORKFLOW_CANCELLED
6
7
  * - `NODE_EXECUTION_COUNT_LIMIT_REACHED` - NODE_EXECUTION_COUNT_LIMIT_REACHED
7
8
  * - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
8
9
  * - `NODE_EXECUTION` - NODE_EXECUTION
@@ -10,9 +11,10 @@
10
11
  * - `INVALID_TEMPLATE` - INVALID_TEMPLATE
11
12
  * - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
12
13
  */
13
- export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE" | "USER_DEFINED_ERROR";
14
+ export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "WORKFLOW_CANCELLED" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE" | "USER_DEFINED_ERROR";
14
15
  export declare const WorkflowExecutionEventErrorCode: {
15
16
  readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
17
+ readonly WorkflowCancelled: "WORKFLOW_CANCELLED";
16
18
  readonly NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED";
17
19
  readonly InternalServerError: "INTERNAL_SERVER_ERROR";
18
20
  readonly NodeExecution: "NODE_EXECUTION";
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.WorkflowExecutionEventErrorCode = void 0;
7
7
  exports.WorkflowExecutionEventErrorCode = {
8
8
  WorkflowInitialization: "WORKFLOW_INITIALIZATION",
9
+ WorkflowCancelled: "WORKFLOW_CANCELLED",
9
10
  NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED",
10
11
  InternalServerError: "INTERNAL_SERVER_ERROR",
11
12
  NodeExecution: "NODE_EXECUTION",
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * - `NODE` - Node
6
- * - `WORKFLOW` - Workflow
5
+ * - `NODE` - NODE
6
+ * - `WORKFLOW` - WORKFLOW
7
7
  */
8
8
  export declare type WorkflowExecutionEventType = "NODE" | "WORKFLOW";
9
9
  export declare const WorkflowExecutionEventType: {
@@ -9,4 +9,5 @@ export interface WorkflowResultEvent {
9
9
  output?: Vellum.WorkflowResultEventOutputData;
10
10
  error?: Vellum.WorkflowEventError;
11
11
  outputs?: Vellum.WorkflowOutput[];
12
+ inputs?: Vellum.ExecutionVellumValue[];
12
13
  }
@@ -44,6 +44,15 @@ export * from "./ExecuteWorkflowErrorResponse";
44
44
  export * from "./ExecuteWorkflowResponse";
45
45
  export * from "./ExecuteWorkflowStreamErrorResponse";
46
46
  export * from "./ExecuteWorkflowWorkflowResultEvent";
47
+ export * from "./ExecutionArrayVellumValue";
48
+ export * from "./ExecutionChatHistoryVellumValue";
49
+ export * from "./ExecutionErrorVellumValue";
50
+ export * from "./ExecutionFunctionCallVellumValue";
51
+ export * from "./ExecutionJsonVellumValue";
52
+ export * from "./ExecutionNumberVellumValue";
53
+ export * from "./ExecutionSearchResultsVellumValue";
54
+ export * from "./ExecutionStringVellumValue";
55
+ export * from "./ExecutionVellumValue";
47
56
  export * from "./FinishReasonEnum";
48
57
  export * from "./FulfilledEnum";
49
58
  export * from "./FulfilledExecutePromptEvent";
@@ -72,6 +81,7 @@ export * from "./GenerateStreamResultData";
72
81
  export * from "./ImageChatMessageContent";
73
82
  export * from "./ImageChatMessageContentRequest";
74
83
  export * from "./ImageEnum";
84
+ export * from "./ImageVariableValue";
75
85
  export * from "./IndexingStateEnum";
76
86
  export * from "./InitiatedEnum";
77
87
  export * from "./InitiatedExecutePromptEvent";
@@ -60,6 +60,15 @@ __exportStar(require("./ExecuteWorkflowErrorResponse"), exports);
60
60
  __exportStar(require("./ExecuteWorkflowResponse"), exports);
61
61
  __exportStar(require("./ExecuteWorkflowStreamErrorResponse"), exports);
62
62
  __exportStar(require("./ExecuteWorkflowWorkflowResultEvent"), exports);
63
+ __exportStar(require("./ExecutionArrayVellumValue"), exports);
64
+ __exportStar(require("./ExecutionChatHistoryVellumValue"), exports);
65
+ __exportStar(require("./ExecutionErrorVellumValue"), exports);
66
+ __exportStar(require("./ExecutionFunctionCallVellumValue"), exports);
67
+ __exportStar(require("./ExecutionJsonVellumValue"), exports);
68
+ __exportStar(require("./ExecutionNumberVellumValue"), exports);
69
+ __exportStar(require("./ExecutionSearchResultsVellumValue"), exports);
70
+ __exportStar(require("./ExecutionStringVellumValue"), exports);
71
+ __exportStar(require("./ExecutionVellumValue"), exports);
63
72
  __exportStar(require("./FinishReasonEnum"), exports);
64
73
  __exportStar(require("./FulfilledEnum"), exports);
65
74
  __exportStar(require("./FulfilledExecutePromptEvent"), exports);
@@ -88,6 +97,7 @@ __exportStar(require("./GenerateStreamResultData"), exports);
88
97
  __exportStar(require("./ImageChatMessageContent"), exports);
89
98
  __exportStar(require("./ImageChatMessageContentRequest"), exports);
90
99
  __exportStar(require("./ImageEnum"), exports);
100
+ __exportStar(require("./ImageVariableValue"), exports);
91
101
  __exportStar(require("./IndexingStateEnum"), exports);
92
102
  __exportStar(require("./InitiatedEnum"), exports);
93
103
  __exportStar(require("./InitiatedExecutePromptEvent"), exports);
package/dist/Client.js CHANGED
@@ -76,7 +76,7 @@ class VellumClient {
76
76
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
77
77
  "X-Fern-Language": "JavaScript",
78
78
  "X-Fern-SDK-Name": "vellum-ai",
79
- "X-Fern-SDK-Version": "0.3.10",
79
+ "X-Fern-SDK-Version": "0.3.12",
80
80
  "X-Fern-Runtime": core.RUNTIME.type,
81
81
  "X-Fern-Runtime-Version": core.RUNTIME.version,
82
82
  },
@@ -139,7 +139,7 @@ class VellumClient {
139
139
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
140
140
  "X-Fern-Language": "JavaScript",
141
141
  "X-Fern-SDK-Name": "vellum-ai",
142
- "X-Fern-SDK-Version": "0.3.10",
142
+ "X-Fern-SDK-Version": "0.3.12",
143
143
  "X-Fern-Runtime": core.RUNTIME.type,
144
144
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
145
  },
@@ -214,7 +214,7 @@ class VellumClient {
214
214
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
215
215
  "X-Fern-Language": "JavaScript",
216
216
  "X-Fern-SDK-Name": "vellum-ai",
217
- "X-Fern-SDK-Version": "0.3.10",
217
+ "X-Fern-SDK-Version": "0.3.12",
218
218
  "X-Fern-Runtime": core.RUNTIME.type,
219
219
  "X-Fern-Runtime-Version": core.RUNTIME.version,
220
220
  },
@@ -275,7 +275,7 @@ class VellumClient {
275
275
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
276
276
  "X-Fern-Language": "JavaScript",
277
277
  "X-Fern-SDK-Name": "vellum-ai",
278
- "X-Fern-SDK-Version": "0.3.10",
278
+ "X-Fern-SDK-Version": "0.3.12",
279
279
  "X-Fern-Runtime": core.RUNTIME.type,
280
280
  "X-Fern-Runtime-Version": core.RUNTIME.version,
281
281
  },
@@ -358,7 +358,7 @@ class VellumClient {
358
358
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
359
359
  "X-Fern-Language": "JavaScript",
360
360
  "X-Fern-SDK-Name": "vellum-ai",
361
- "X-Fern-SDK-Version": "0.3.10",
361
+ "X-Fern-SDK-Version": "0.3.12",
362
362
  "X-Fern-Runtime": core.RUNTIME.type,
363
363
  "X-Fern-Runtime-Version": core.RUNTIME.version,
364
364
  },
@@ -423,7 +423,7 @@ class VellumClient {
423
423
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
424
424
  "X-Fern-Language": "JavaScript",
425
425
  "X-Fern-SDK-Name": "vellum-ai",
426
- "X-Fern-SDK-Version": "0.3.10",
426
+ "X-Fern-SDK-Version": "0.3.12",
427
427
  "X-Fern-Runtime": core.RUNTIME.type,
428
428
  "X-Fern-Runtime-Version": core.RUNTIME.version,
429
429
  },
@@ -503,7 +503,7 @@ class VellumClient {
503
503
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
504
504
  "X-Fern-Language": "JavaScript",
505
505
  "X-Fern-SDK-Name": "vellum-ai",
506
- "X-Fern-SDK-Version": "0.3.10",
506
+ "X-Fern-SDK-Version": "0.3.12",
507
507
  "X-Fern-Runtime": core.RUNTIME.type,
508
508
  "X-Fern-Runtime-Version": core.RUNTIME.version,
509
509
  },
@@ -574,7 +574,7 @@ class VellumClient {
574
574
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
575
575
  "X-Fern-Language": "JavaScript",
576
576
  "X-Fern-SDK-Name": "vellum-ai",
577
- "X-Fern-SDK-Version": "0.3.10",
577
+ "X-Fern-SDK-Version": "0.3.12",
578
578
  "X-Fern-Runtime": core.RUNTIME.type,
579
579
  "X-Fern-Runtime-Version": core.RUNTIME.version,
580
580
  },
@@ -639,7 +639,7 @@ class VellumClient {
639
639
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
640
640
  "X-Fern-Language": "JavaScript",
641
641
  "X-Fern-SDK-Name": "vellum-ai",
642
- "X-Fern-SDK-Version": "0.3.10",
642
+ "X-Fern-SDK-Version": "0.3.12",
643
643
  "X-Fern-Runtime": core.RUNTIME.type,
644
644
  "X-Fern-Runtime-Version": core.RUNTIME.version,
645
645
  },
@@ -3,14 +3,14 @@
3
3
  */
4
4
  import * as Vellum from "../..";
5
5
  export interface ExecuteWorkflowRequest {
6
+ /** The list of inputs defined in the Workflow's Deployment with their corresponding values. */
7
+ inputs: Vellum.WorkflowRequestInputRequest[];
6
8
  /** The ID of the Workflow Deployment. Must provide either this or workflow_deployment_name. */
7
9
  workflowDeploymentId?: string;
8
10
  /** The name of the Workflow Deployment. Must provide either this or workflow_deployment_id. */
9
11
  workflowDeploymentName?: string;
10
12
  /** Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment */
11
13
  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. Must be unique for a given workflow deployment. */
14
+ /** Optionally include a unique identifier for tracking purposes. Must be unique for a given workflow deployment. */
15
15
  externalId?: string;
16
16
  }
@@ -3,14 +3,14 @@
3
3
  */
4
4
  import * as Vellum from "../..";
5
5
  export interface ExecuteWorkflowStreamRequest {
6
+ /** The list of inputs defined in the Workflow's Deployment with their corresponding values. */
7
+ inputs: Vellum.WorkflowRequestInputRequest[];
6
8
  /** The ID of the Workflow Deployment. Must provide either this or workflow_deployment_name. */
7
9
  workflowDeploymentId?: string;
8
10
  /** The name of the Workflow Deployment. Must provide either this or workflow_deployment_id. */
9
11
  workflowDeploymentName?: string;
10
12
  /** Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment */
11
13
  releaseTag?: string;
12
- /** The list of inputs defined in the Workflow's deployment with their corresponding values. */
13
- inputs: Vellum.WorkflowRequestInputRequest[];
14
14
  /** Optionally include a unique identifier for tracking purposes. Must be unique for a given workflow deployment. */
15
15
  externalId?: string;
16
16
  /** Optionally specify which events you want to receive. Defaults to only WORKFLOW events. Note that the schema of non-WORKFLOW events is unstable and should be used with caution. */
@@ -25,5 +25,16 @@ export declare class Deployments {
25
25
  * await vellum.deployments.retrieve("id")
26
26
  */
27
27
  retrieve(id: string, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentRead>;
28
+ /**
29
+ * @throws {@link Vellum.BadRequestError}
30
+ * @throws {@link Vellum.ForbiddenError}
31
+ * @throws {@link Vellum.NotFoundError}
32
+ * @throws {@link Vellum.InternalServerError}
33
+ *
34
+ * @example
35
+ * await vellum.deployments.retrieveProviderPayload({
36
+ * inputs: []
37
+ * })
38
+ */
28
39
  retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
29
40
  }
@@ -41,6 +41,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Deployments = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
+ const Vellum = __importStar(require("../../.."));
44
45
  const url_join_1 = __importDefault(require("url-join"));
45
46
  const serializers = __importStar(require("../../../../serialization"));
46
47
  const errors = __importStar(require("../../../../errors"));
@@ -73,7 +74,7 @@ class Deployments {
73
74
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
74
75
  "X-Fern-Language": "JavaScript",
75
76
  "X-Fern-SDK-Name": "vellum-ai",
76
- "X-Fern-SDK-Version": "0.3.10",
77
+ "X-Fern-SDK-Version": "0.3.12",
77
78
  "X-Fern-Runtime": core.RUNTIME.type,
78
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
80
  },
@@ -128,7 +129,7 @@ class Deployments {
128
129
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
129
130
  "X-Fern-Language": "JavaScript",
130
131
  "X-Fern-SDK-Name": "vellum-ai",
131
- "X-Fern-SDK-Version": "0.3.10",
132
+ "X-Fern-SDK-Version": "0.3.12",
132
133
  "X-Fern-Runtime": core.RUNTIME.type,
133
134
  "X-Fern-Runtime-Version": core.RUNTIME.version,
134
135
  },
@@ -165,6 +166,17 @@ class Deployments {
165
166
  }
166
167
  });
167
168
  }
169
+ /**
170
+ * @throws {@link Vellum.BadRequestError}
171
+ * @throws {@link Vellum.ForbiddenError}
172
+ * @throws {@link Vellum.NotFoundError}
173
+ * @throws {@link Vellum.InternalServerError}
174
+ *
175
+ * @example
176
+ * await vellum.deployments.retrieveProviderPayload({
177
+ * inputs: []
178
+ * })
179
+ */
168
180
  retrieveProviderPayload(request, requestOptions) {
169
181
  var _a;
170
182
  return __awaiter(this, void 0, void 0, function* () {
@@ -176,7 +188,7 @@ class Deployments {
176
188
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
177
189
  "X-Fern-Language": "JavaScript",
178
190
  "X-Fern-SDK-Name": "vellum-ai",
179
- "X-Fern-SDK-Version": "0.3.10",
191
+ "X-Fern-SDK-Version": "0.3.12",
180
192
  "X-Fern-Runtime": core.RUNTIME.type,
181
193
  "X-Fern-Runtime-Version": core.RUNTIME.version,
182
194
  },
@@ -196,10 +208,21 @@ class Deployments {
196
208
  });
197
209
  }
198
210
  if (_response.error.reason === "status-code") {
199
- throw new errors.VellumError({
200
- statusCode: _response.error.statusCode,
201
- body: _response.error.body,
202
- });
211
+ switch (_response.error.statusCode) {
212
+ case 400:
213
+ throw new Vellum.BadRequestError(_response.error.body);
214
+ case 403:
215
+ throw new Vellum.ForbiddenError(_response.error.body);
216
+ case 404:
217
+ throw new Vellum.NotFoundError(_response.error.body);
218
+ case 500:
219
+ throw new Vellum.InternalServerError(_response.error.body);
220
+ default:
221
+ throw new errors.VellumError({
222
+ statusCode: _response.error.statusCode,
223
+ body: _response.error.body,
224
+ });
225
+ }
203
226
  }
204
227
  switch (_response.error.reason) {
205
228
  case "non-json":
@@ -15,4 +15,6 @@ export interface DeploymentProviderPayloadRequest {
15
15
  deploymentName?: string;
16
16
  /** The list of inputs defined in the Prompt's deployment with their corresponding values. */
17
17
  inputs: Vellum.PromptDeploymentInputRequest[];
18
+ /** Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment */
19
+ releaseTag?: string;
18
20
  }