vellum-ai 0.3.7 → 0.3.8

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 (141) hide show
  1. package/Client.js +9 -9
  2. package/api/client/requests/ExecutePromptRequest.d.ts +1 -0
  3. package/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -0
  4. package/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  5. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  6. package/api/resources/deployments/client/Client.js +3 -3
  7. package/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -1
  8. package/api/resources/documentIndexes/client/Client.js +2 -2
  9. package/api/resources/documents/client/Client.js +4 -4
  10. package/api/resources/folderEntities/client/Client.js +1 -1
  11. package/api/resources/modelVersions/client/Client.js +1 -1
  12. package/api/resources/registeredPrompts/client/Client.js +1 -1
  13. package/api/resources/sandboxes/client/Client.js +2 -2
  14. package/api/resources/testSuites/client/Client.js +2 -2
  15. package/api/resources/workflowDeployments/client/Client.d.ts +7 -0
  16. package/api/resources/workflowDeployments/client/Client.js +55 -1
  17. package/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -4
  18. package/api/types/ArrayEnum.d.ts +4 -0
  19. package/api/types/ArrayEnum.js +5 -0
  20. package/api/types/ArrayVariableValueItem.d.ts +28 -0
  21. package/api/types/ArrayVariableValueItem.js +5 -0
  22. package/api/types/ChatHistoryVariableValue.d.ts +7 -0
  23. package/api/types/ChatHistoryVariableValue.js +5 -0
  24. package/api/types/NodeInputCompiledArrayValue.d.ts +9 -0
  25. package/api/types/NodeInputCompiledArrayValue.js +5 -0
  26. package/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
  27. package/api/types/NodeOutputCompiledArrayValue.d.ts +8 -0
  28. package/api/types/NodeOutputCompiledArrayValue.js +5 -0
  29. package/api/types/NodeOutputCompiledFunctionValue.d.ts +8 -0
  30. package/api/types/NodeOutputCompiledFunctionValue.js +5 -0
  31. package/api/types/NodeOutputCompiledValue.d.ts +7 -1
  32. package/api/types/NumberVariableValue.d.ts +6 -0
  33. package/api/types/NumberVariableValue.js +5 -0
  34. package/api/types/PromptNodeResultData.d.ts +1 -0
  35. package/api/types/SearchResultsVariableValue.d.ts +7 -0
  36. package/api/types/SearchResultsVariableValue.js +5 -0
  37. package/api/types/WorkflowDeploymentRead.d.ts +32 -0
  38. package/api/types/WorkflowDeploymentRead.js +5 -0
  39. package/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +3 -0
  40. package/api/types/WorkflowRequestJsonInputRequest.d.ts +3 -0
  41. package/api/types/WorkflowRequestNumberInputRequest.d.ts +3 -0
  42. package/api/types/WorkflowRequestStringInputRequest.d.ts +3 -0
  43. package/api/types/index.d.ts +9 -0
  44. package/api/types/index.js +9 -0
  45. package/dist/Client.js +9 -9
  46. package/dist/api/client/requests/ExecutePromptRequest.d.ts +1 -0
  47. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -0
  48. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  49. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  50. package/dist/api/resources/deployments/client/Client.js +3 -3
  51. package/dist/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -1
  52. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  53. package/dist/api/resources/documents/client/Client.js +4 -4
  54. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  55. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  56. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  57. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  58. package/dist/api/resources/testSuites/client/Client.js +2 -2
  59. package/dist/api/resources/workflowDeployments/client/Client.d.ts +7 -0
  60. package/dist/api/resources/workflowDeployments/client/Client.js +55 -1
  61. package/dist/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -4
  62. package/dist/api/types/ArrayEnum.d.ts +4 -0
  63. package/dist/api/types/ArrayEnum.js +5 -0
  64. package/dist/api/types/ArrayVariableValueItem.d.ts +28 -0
  65. package/dist/api/types/ArrayVariableValueItem.js +5 -0
  66. package/dist/api/types/ChatHistoryVariableValue.d.ts +7 -0
  67. package/dist/api/types/ChatHistoryVariableValue.js +5 -0
  68. package/dist/api/types/NodeInputCompiledArrayValue.d.ts +9 -0
  69. package/dist/api/types/NodeInputCompiledArrayValue.js +5 -0
  70. package/dist/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
  71. package/dist/api/types/NodeOutputCompiledArrayValue.d.ts +8 -0
  72. package/dist/api/types/NodeOutputCompiledArrayValue.js +5 -0
  73. package/dist/api/types/NodeOutputCompiledFunctionValue.d.ts +8 -0
  74. package/dist/api/types/NodeOutputCompiledFunctionValue.js +5 -0
  75. package/dist/api/types/NodeOutputCompiledValue.d.ts +7 -1
  76. package/dist/api/types/NumberVariableValue.d.ts +6 -0
  77. package/dist/api/types/NumberVariableValue.js +5 -0
  78. package/dist/api/types/PromptNodeResultData.d.ts +1 -0
  79. package/dist/api/types/SearchResultsVariableValue.d.ts +7 -0
  80. package/dist/api/types/SearchResultsVariableValue.js +5 -0
  81. package/dist/api/types/WorkflowDeploymentRead.d.ts +32 -0
  82. package/dist/api/types/WorkflowDeploymentRead.js +5 -0
  83. package/dist/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +3 -0
  84. package/dist/api/types/WorkflowRequestJsonInputRequest.d.ts +3 -0
  85. package/dist/api/types/WorkflowRequestNumberInputRequest.d.ts +3 -0
  86. package/dist/api/types/WorkflowRequestStringInputRequest.d.ts +3 -0
  87. package/dist/api/types/index.d.ts +9 -0
  88. package/dist/api/types/index.js +9 -0
  89. package/dist/serialization/types/ArrayEnum.d.ts +10 -0
  90. package/dist/serialization/types/ArrayEnum.js +31 -0
  91. package/dist/serialization/types/ArrayVariableValueItem.d.ts +31 -0
  92. package/dist/serialization/types/ArrayVariableValueItem.js +53 -0
  93. package/dist/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
  94. package/dist/serialization/types/ChatHistoryVariableValue.js +44 -0
  95. package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +14 -0
  96. package/dist/serialization/types/NodeInputCompiledArrayValue.js +44 -0
  97. package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
  98. package/dist/serialization/types/NodeInputVariableCompiledValue.js +1 -0
  99. package/dist/serialization/types/NodeOutputCompiledArrayValue.d.ts +13 -0
  100. package/dist/serialization/types/NodeOutputCompiledArrayValue.js +43 -0
  101. package/dist/serialization/types/NodeOutputCompiledFunctionValue.d.ts +13 -0
  102. package/dist/serialization/types/NodeOutputCompiledFunctionValue.js +43 -0
  103. package/dist/serialization/types/NodeOutputCompiledValue.d.ts +7 -1
  104. package/dist/serialization/types/NodeOutputCompiledValue.js +2 -0
  105. package/dist/serialization/types/NumberVariableValue.d.ts +12 -0
  106. package/dist/serialization/types/NumberVariableValue.js +33 -0
  107. package/dist/serialization/types/PromptNodeResultData.d.ts +1 -0
  108. package/dist/serialization/types/PromptNodeResultData.js +1 -0
  109. package/dist/serialization/types/SearchResultsVariableValue.d.ts +12 -0
  110. package/dist/serialization/types/SearchResultsVariableValue.js +44 -0
  111. package/dist/serialization/types/WorkflowDeploymentRead.d.ts +20 -0
  112. package/dist/serialization/types/WorkflowDeploymentRead.js +50 -0
  113. package/dist/serialization/types/index.d.ts +9 -0
  114. package/dist/serialization/types/index.js +9 -0
  115. package/package.json +1 -1
  116. package/serialization/types/ArrayEnum.d.ts +10 -0
  117. package/serialization/types/ArrayEnum.js +31 -0
  118. package/serialization/types/ArrayVariableValueItem.d.ts +31 -0
  119. package/serialization/types/ArrayVariableValueItem.js +53 -0
  120. package/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
  121. package/serialization/types/ChatHistoryVariableValue.js +44 -0
  122. package/serialization/types/NodeInputCompiledArrayValue.d.ts +14 -0
  123. package/serialization/types/NodeInputCompiledArrayValue.js +44 -0
  124. package/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
  125. package/serialization/types/NodeInputVariableCompiledValue.js +1 -0
  126. package/serialization/types/NodeOutputCompiledArrayValue.d.ts +13 -0
  127. package/serialization/types/NodeOutputCompiledArrayValue.js +43 -0
  128. package/serialization/types/NodeOutputCompiledFunctionValue.d.ts +13 -0
  129. package/serialization/types/NodeOutputCompiledFunctionValue.js +43 -0
  130. package/serialization/types/NodeOutputCompiledValue.d.ts +7 -1
  131. package/serialization/types/NodeOutputCompiledValue.js +2 -0
  132. package/serialization/types/NumberVariableValue.d.ts +12 -0
  133. package/serialization/types/NumberVariableValue.js +33 -0
  134. package/serialization/types/PromptNodeResultData.d.ts +1 -0
  135. package/serialization/types/PromptNodeResultData.js +1 -0
  136. package/serialization/types/SearchResultsVariableValue.d.ts +12 -0
  137. package/serialization/types/SearchResultsVariableValue.js +44 -0
  138. package/serialization/types/WorkflowDeploymentRead.d.ts +20 -0
  139. package/serialization/types/WorkflowDeploymentRead.js +50 -0
  140. package/serialization/types/index.d.ts +9 -0
  141. package/serialization/types/index.js +9 -0
@@ -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;
@@ -4,9 +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 "./ArrayVariableValueItem";
7
9
  export * from "./BlockTypeEnum";
8
10
  export * from "./ChatHistoryEnum";
9
11
  export * from "./ChatHistoryInputRequest";
12
+ export * from "./ChatHistoryVariableValue";
10
13
  export * from "./ChatMessage";
11
14
  export * from "./ChatMessageContent";
12
15
  export * from "./ChatMessageContentRequest";
@@ -95,6 +98,7 @@ export * from "./NamedTestCaseNumberVariableValueRequest";
95
98
  export * from "./NamedTestCaseSearchResultsVariableValueRequest";
96
99
  export * from "./NamedTestCaseStringVariableValueRequest";
97
100
  export * from "./NamedTestCaseVariableValueRequest";
101
+ export * from "./NodeInputCompiledArrayValue";
98
102
  export * from "./NodeInputCompiledChatHistoryValue";
99
103
  export * from "./NodeInputCompiledErrorValue";
100
104
  export * from "./NodeInputCompiledJsonValue";
@@ -102,8 +106,10 @@ export * from "./NodeInputCompiledNumberValue";
102
106
  export * from "./NodeInputCompiledSearchResultsValue";
103
107
  export * from "./NodeInputCompiledStringValue";
104
108
  export * from "./NodeInputVariableCompiledValue";
109
+ export * from "./NodeOutputCompiledArrayValue";
105
110
  export * from "./NodeOutputCompiledChatHistoryValue";
106
111
  export * from "./NodeOutputCompiledErrorValue";
112
+ export * from "./NodeOutputCompiledFunctionValue";
107
113
  export * from "./NodeOutputCompiledJsonValue";
108
114
  export * from "./NodeOutputCompiledNumberValue";
109
115
  export * from "./NodeOutputCompiledSearchResultsValue";
@@ -112,6 +118,7 @@ export * from "./NodeOutputCompiledValue";
112
118
  export * from "./NormalizedLogProbs";
113
119
  export * from "./NormalizedTokenLogProbs";
114
120
  export * from "./NumberEnum";
121
+ export * from "./NumberVariableValue";
115
122
  export * from "./PaginatedSlimDeploymentReadList";
116
123
  export * from "./PaginatedSlimDocumentList";
117
124
  export * from "./PaginatedSlimWorkflowDeploymentList";
@@ -164,6 +171,7 @@ export * from "./SearchResultDocumentRequest";
164
171
  export * from "./SearchResultMergingRequest";
165
172
  export * from "./SearchResultRequest";
166
173
  export * from "./SearchResultsEnum";
174
+ export * from "./SearchResultsVariableValue";
167
175
  export * from "./SearchWeightsRequest";
168
176
  export * from "./SlimDeploymentRead";
169
177
  export * from "./SlimDocument";
@@ -215,6 +223,7 @@ export * from "./VellumImage";
215
223
  export * from "./VellumImageRequest";
216
224
  export * from "./VellumVariable";
217
225
  export * from "./VellumVariableType";
226
+ export * from "./WorkflowDeploymentRead";
218
227
  export * from "./WorkflowEventError";
219
228
  export * from "./WorkflowExecutionActualChatHistoryRequest";
220
229
  export * from "./WorkflowExecutionActualJsonRequest";
@@ -20,9 +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("./ArrayVariableValueItem"), exports);
23
25
  __exportStar(require("./BlockTypeEnum"), exports);
24
26
  __exportStar(require("./ChatHistoryEnum"), exports);
25
27
  __exportStar(require("./ChatHistoryInputRequest"), exports);
28
+ __exportStar(require("./ChatHistoryVariableValue"), exports);
26
29
  __exportStar(require("./ChatMessage"), exports);
27
30
  __exportStar(require("./ChatMessageContent"), exports);
28
31
  __exportStar(require("./ChatMessageContentRequest"), exports);
@@ -111,6 +114,7 @@ __exportStar(require("./NamedTestCaseNumberVariableValueRequest"), exports);
111
114
  __exportStar(require("./NamedTestCaseSearchResultsVariableValueRequest"), exports);
112
115
  __exportStar(require("./NamedTestCaseStringVariableValueRequest"), exports);
113
116
  __exportStar(require("./NamedTestCaseVariableValueRequest"), exports);
117
+ __exportStar(require("./NodeInputCompiledArrayValue"), exports);
114
118
  __exportStar(require("./NodeInputCompiledChatHistoryValue"), exports);
115
119
  __exportStar(require("./NodeInputCompiledErrorValue"), exports);
116
120
  __exportStar(require("./NodeInputCompiledJsonValue"), exports);
@@ -118,8 +122,10 @@ __exportStar(require("./NodeInputCompiledNumberValue"), exports);
118
122
  __exportStar(require("./NodeInputCompiledSearchResultsValue"), exports);
119
123
  __exportStar(require("./NodeInputCompiledStringValue"), exports);
120
124
  __exportStar(require("./NodeInputVariableCompiledValue"), exports);
125
+ __exportStar(require("./NodeOutputCompiledArrayValue"), exports);
121
126
  __exportStar(require("./NodeOutputCompiledChatHistoryValue"), exports);
122
127
  __exportStar(require("./NodeOutputCompiledErrorValue"), exports);
128
+ __exportStar(require("./NodeOutputCompiledFunctionValue"), exports);
123
129
  __exportStar(require("./NodeOutputCompiledJsonValue"), exports);
124
130
  __exportStar(require("./NodeOutputCompiledNumberValue"), exports);
125
131
  __exportStar(require("./NodeOutputCompiledSearchResultsValue"), exports);
@@ -128,6 +134,7 @@ __exportStar(require("./NodeOutputCompiledValue"), exports);
128
134
  __exportStar(require("./NormalizedLogProbs"), exports);
129
135
  __exportStar(require("./NormalizedTokenLogProbs"), exports);
130
136
  __exportStar(require("./NumberEnum"), exports);
137
+ __exportStar(require("./NumberVariableValue"), exports);
131
138
  __exportStar(require("./PaginatedSlimDeploymentReadList"), exports);
132
139
  __exportStar(require("./PaginatedSlimDocumentList"), exports);
133
140
  __exportStar(require("./PaginatedSlimWorkflowDeploymentList"), exports);
@@ -180,6 +187,7 @@ __exportStar(require("./SearchResultDocumentRequest"), exports);
180
187
  __exportStar(require("./SearchResultMergingRequest"), exports);
181
188
  __exportStar(require("./SearchResultRequest"), exports);
182
189
  __exportStar(require("./SearchResultsEnum"), exports);
190
+ __exportStar(require("./SearchResultsVariableValue"), exports);
183
191
  __exportStar(require("./SearchWeightsRequest"), exports);
184
192
  __exportStar(require("./SlimDeploymentRead"), exports);
185
193
  __exportStar(require("./SlimDocument"), exports);
@@ -231,6 +239,7 @@ __exportStar(require("./VellumImage"), exports);
231
239
  __exportStar(require("./VellumImageRequest"), exports);
232
240
  __exportStar(require("./VellumVariable"), exports);
233
241
  __exportStar(require("./VellumVariableType"), exports);
242
+ __exportStar(require("./WorkflowDeploymentRead"), exports);
234
243
  __exportStar(require("./WorkflowEventError"), exports);
235
244
  __exportStar(require("./WorkflowExecutionActualChatHistoryRequest"), exports);
236
245
  __exportStar(require("./WorkflowExecutionActualJsonRequest"), 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.7",
79
+ "X-Fern-SDK-Version": "0.3.8",
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.7",
142
+ "X-Fern-SDK-Version": "0.3.8",
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.7",
217
+ "X-Fern-SDK-Version": "0.3.8",
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.7",
278
+ "X-Fern-SDK-Version": "0.3.8",
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.7",
361
+ "X-Fern-SDK-Version": "0.3.8",
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.7",
426
+ "X-Fern-SDK-Version": "0.3.8",
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.7",
506
+ "X-Fern-SDK-Version": "0.3.8",
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.7",
577
+ "X-Fern-SDK-Version": "0.3.8",
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.7",
642
+ "X-Fern-SDK-Version": "0.3.8",
643
643
  "X-Fern-Runtime": core.RUNTIME.type,
644
644
  "X-Fern-Runtime-Version": core.RUNTIME.version,
645
645
  },
@@ -11,6 +11,7 @@ export interface ExecutePromptRequest {
11
11
  promptDeploymentName?: string;
12
12
  /** Optionally specify a release tag if you want to pin to a specific release of the Prompt Deployment */
13
13
  releaseTag?: string;
14
+ /** "Optionally include a unique identifier for tracking purposes. Must be unique for a given prompt deployment. */
14
15
  externalId?: string;
15
16
  /** The name of the Prompt Deployment. Must provide either this or prompt_deployment_id. */
16
17
  expandMeta?: Vellum.PromptDeploymentExpandMetaRequestRequest;
@@ -11,6 +11,7 @@ export interface ExecutePromptStreamRequest {
11
11
  promptDeploymentName?: string;
12
12
  /** Optionally specify a release tag if you want to pin to a specific release of the Prompt Deployment */
13
13
  releaseTag?: string;
14
+ /** "Optionally include a unique identifier for tracking purposes. Must be unique for a given prompt deployment. */
14
15
  externalId?: string;
15
16
  /** The name of the Prompt Deployment. Must provide either this or prompt_deployment_id. */
16
17
  expandMeta?: Vellum.PromptDeploymentExpandMetaRequestRequest;
@@ -11,6 +11,6 @@ export interface ExecuteWorkflowRequest {
11
11
  releaseTag?: string;
12
12
  /** The list of inputs defined in the Workflow's Deployment with their corresponding values. */
13
13
  inputs: Vellum.WorkflowRequestInputRequest[];
14
- /** Optionally include a unique identifier for monitoring purposes. */
14
+ /** Optionally include a unique identifier for monitoring purposes. Must be unique for a given workflow deployment. */
15
15
  externalId?: string;
16
16
  }
@@ -11,7 +11,7 @@ export interface ExecuteWorkflowStreamRequest {
11
11
  releaseTag?: string;
12
12
  /** The list of inputs defined in the Workflow's deployment with their corresponding values. */
13
13
  inputs: Vellum.WorkflowRequestInputRequest[];
14
- /** Optionally include a unique identifier for tracking purposes. */
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. */
17
17
  eventTypes?: Vellum.WorkflowExecutionEventType[];
@@ -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": "0.3.7",
76
+ "X-Fern-SDK-Version": "0.3.8",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -128,7 +128,7 @@ class Deployments {
128
128
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "vellum-ai",
131
- "X-Fern-SDK-Version": "0.3.7",
131
+ "X-Fern-SDK-Version": "0.3.8",
132
132
  "X-Fern-Runtime": core.RUNTIME.type,
133
133
  "X-Fern-Runtime-Version": core.RUNTIME.version,
134
134
  },
@@ -176,7 +176,7 @@ class Deployments {
176
176
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
177
177
  "X-Fern-Language": "JavaScript",
178
178
  "X-Fern-SDK-Name": "vellum-ai",
179
- "X-Fern-SDK-Version": "0.3.7",
179
+ "X-Fern-SDK-Version": "0.3.8",
180
180
  "X-Fern-Runtime": core.RUNTIME.type,
181
181
  "X-Fern-Runtime-Version": core.RUNTIME.version,
182
182
  },
@@ -20,7 +20,7 @@ export interface DeploymentsListRequest {
20
20
  */
21
21
  ordering?: string;
22
22
  /**
23
- * The current status of the deployment
23
+ * status
24
24
  */
25
25
  status?: Vellum.DeploymentsListRequestStatus;
26
26
  }
@@ -85,7 +85,7 @@ class DocumentIndexes {
85
85
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
86
86
  "X-Fern-Language": "JavaScript",
87
87
  "X-Fern-SDK-Name": "vellum-ai",
88
- "X-Fern-SDK-Version": "0.3.7",
88
+ "X-Fern-SDK-Version": "0.3.8",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -142,7 +142,7 @@ class DocumentIndexes {
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": "0.3.7",
145
+ "X-Fern-SDK-Version": "0.3.8",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -81,7 +81,7 @@ class Documents {
81
81
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
82
82
  "X-Fern-Language": "JavaScript",
83
83
  "X-Fern-SDK-Name": "vellum-ai",
84
- "X-Fern-SDK-Version": "0.3.7",
84
+ "X-Fern-SDK-Version": "0.3.8",
85
85
  "X-Fern-Runtime": core.RUNTIME.type,
86
86
  "X-Fern-Runtime-Version": core.RUNTIME.version,
87
87
  },
@@ -130,7 +130,7 @@ class Documents {
130
130
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
131
131
  "X-Fern-Language": "JavaScript",
132
132
  "X-Fern-SDK-Name": "vellum-ai",
133
- "X-Fern-SDK-Version": "0.3.7",
133
+ "X-Fern-SDK-Version": "0.3.8",
134
134
  "X-Fern-Runtime": core.RUNTIME.type,
135
135
  "X-Fern-Runtime-Version": core.RUNTIME.version,
136
136
  },
@@ -179,7 +179,7 @@ class Documents {
179
179
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
180
180
  "X-Fern-Language": "JavaScript",
181
181
  "X-Fern-SDK-Name": "vellum-ai",
182
- "X-Fern-SDK-Version": "0.3.7",
182
+ "X-Fern-SDK-Version": "0.3.8",
183
183
  "X-Fern-Runtime": core.RUNTIME.type,
184
184
  "X-Fern-Runtime-Version": core.RUNTIME.version,
185
185
  },
@@ -265,7 +265,7 @@ class Documents {
265
265
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
266
266
  "X-Fern-Language": "JavaScript",
267
267
  "X-Fern-SDK-Name": "vellum-ai",
268
- "X-Fern-SDK-Version": "0.3.7",
268
+ "X-Fern-SDK-Version": "0.3.8",
269
269
  "X-Fern-Runtime": core.RUNTIME.type,
270
270
  "X-Fern-Runtime-Version": core.RUNTIME.version,
271
271
  },
@@ -69,7 +69,7 @@ class FolderEntities {
69
69
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "vellum-ai",
72
- "X-Fern-SDK-Version": "0.3.7",
72
+ "X-Fern-SDK-Version": "0.3.8",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -65,7 +65,7 @@ class ModelVersions {
65
65
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "vellum-ai",
68
- "X-Fern-SDK-Version": "0.3.7",
68
+ "X-Fern-SDK-Version": "0.3.8",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  },
@@ -96,7 +96,7 @@ class RegisteredPrompts {
96
96
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
97
97
  "X-Fern-Language": "JavaScript",
98
98
  "X-Fern-SDK-Name": "vellum-ai",
99
- "X-Fern-SDK-Version": "0.3.7",
99
+ "X-Fern-SDK-Version": "0.3.8",
100
100
  "X-Fern-Runtime": core.RUNTIME.type,
101
101
  "X-Fern-Runtime-Version": core.RUNTIME.version,
102
102
  },
@@ -84,7 +84,7 @@ class Sandboxes {
84
84
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "vellum-ai",
87
- "X-Fern-SDK-Version": "0.3.7",
87
+ "X-Fern-SDK-Version": "0.3.8",
88
88
  "X-Fern-Runtime": core.RUNTIME.type,
89
89
  "X-Fern-Runtime-Version": core.RUNTIME.version,
90
90
  },
@@ -141,7 +141,7 @@ class Sandboxes {
141
141
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "vellum-ai",
144
- "X-Fern-SDK-Version": "0.3.7",
144
+ "X-Fern-SDK-Version": "0.3.8",
145
145
  "X-Fern-Runtime": core.RUNTIME.type,
146
146
  "X-Fern-Runtime-Version": core.RUNTIME.version,
147
147
  },
@@ -74,7 +74,7 @@ class TestSuites {
74
74
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "vellum-ai",
77
- "X-Fern-SDK-Version": "0.3.7",
77
+ "X-Fern-SDK-Version": "0.3.8",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  },
@@ -131,7 +131,7 @@ class TestSuites {
131
131
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
132
132
  "X-Fern-Language": "JavaScript",
133
133
  "X-Fern-SDK-Name": "vellum-ai",
134
- "X-Fern-SDK-Version": "0.3.7",
134
+ "X-Fern-SDK-Version": "0.3.8",
135
135
  "X-Fern-Runtime": core.RUNTIME.type,
136
136
  "X-Fern-Runtime-Version": core.RUNTIME.version,
137
137
  },
@@ -18,4 +18,11 @@ export declare class WorkflowDeployments {
18
18
  protected readonly _options: WorkflowDeployments.Options;
19
19
  constructor(_options?: WorkflowDeployments.Options);
20
20
  list(request?: Vellum.WorkflowDeploymentsListRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.PaginatedSlimWorkflowDeploymentList>;
21
+ /**
22
+ * Used to retrieve a workflow deployment given its ID or name.
23
+ *
24
+ * @example
25
+ * await vellum.workflowDeployments.retrieve("id")
26
+ */
27
+ retrieve(id: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
21
28
  }
@@ -73,7 +73,7 @@ class WorkflowDeployments {
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": "0.3.7",
76
+ "X-Fern-SDK-Version": "0.3.8",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -111,5 +111,59 @@ class WorkflowDeployments {
111
111
  }
112
112
  });
113
113
  }
114
+ /**
115
+ * Used to retrieve a workflow deployment given its ID or name.
116
+ *
117
+ * @example
118
+ * await vellum.workflowDeployments.retrieve("id")
119
+ */
120
+ retrieve(id, requestOptions) {
121
+ var _a;
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ const _response = yield core.fetcher({
124
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
125
+ .default, `v1/workflow-deployments/${id}`),
126
+ method: "GET",
127
+ headers: {
128
+ X_API_KEY: yield core.Supplier.get(this._options.apiKey),
129
+ "X-Fern-Language": "JavaScript",
130
+ "X-Fern-SDK-Name": "vellum-ai",
131
+ "X-Fern-SDK-Version": "0.3.8",
132
+ "X-Fern-Runtime": core.RUNTIME.type,
133
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
134
+ },
135
+ contentType: "application/json",
136
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
137
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
138
+ });
139
+ if (_response.ok) {
140
+ return yield serializers.WorkflowDeploymentRead.parseOrThrow(_response.body, {
141
+ unrecognizedObjectKeys: "passthrough",
142
+ allowUnrecognizedUnionMembers: true,
143
+ allowUnrecognizedEnumValues: true,
144
+ breadcrumbsPrefix: ["response"],
145
+ });
146
+ }
147
+ if (_response.error.reason === "status-code") {
148
+ throw new errors.VellumError({
149
+ statusCode: _response.error.statusCode,
150
+ body: _response.error.body,
151
+ });
152
+ }
153
+ switch (_response.error.reason) {
154
+ case "non-json":
155
+ throw new errors.VellumError({
156
+ statusCode: _response.error.statusCode,
157
+ body: _response.error.rawBody,
158
+ });
159
+ case "timeout":
160
+ throw new errors.VellumTimeoutError();
161
+ case "unknown":
162
+ throw new errors.VellumError({
163
+ message: _response.error.errorMessage,
164
+ });
165
+ }
166
+ });
167
+ }
114
168
  }
115
169
  exports.WorkflowDeployments = WorkflowDeployments;
@@ -20,10 +20,7 @@ export interface WorkflowDeploymentsListRequest {
20
20
  */
21
21
  ordering?: string;
22
22
  /**
23
- * The current status of the workflow deployment
24
- *
25
- * - `ACTIVE` - Active
26
- * - `ARCHIVED` - Archived
23
+ * status
27
24
  */
28
25
  status?: Vellum.WorkflowDeploymentsListRequestStatus;
29
26
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ArrayEnum = "ARRAY";
@@ -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 });
@@ -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
+ }