vellum-ai 0.3.10 → 0.3.11

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 (153) 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.js +3 -3
  8. package/api/resources/documents/client/Client.js +4 -4
  9. package/api/resources/folderEntities/client/Client.js +1 -1
  10. package/api/resources/modelVersions/client/Client.js +1 -1
  11. package/api/resources/registeredPrompts/client/Client.js +1 -1
  12. package/api/resources/sandboxes/client/Client.js +2 -2
  13. package/api/resources/testSuites/client/Client.js +2 -2
  14. package/api/resources/workflowDeployments/client/Client.js +2 -2
  15. package/api/types/ChatMessage.d.ts +2 -0
  16. package/api/types/ChatMessageRequest.d.ts +2 -0
  17. package/api/types/ExecutionArrayVellumValue.d.ts +10 -0
  18. package/api/types/ExecutionArrayVellumValue.js +5 -0
  19. package/api/types/ExecutionChatHistoryVellumValue.d.ts +10 -0
  20. package/api/types/ExecutionChatHistoryVellumValue.js +5 -0
  21. package/api/types/ExecutionErrorVellumValue.d.ts +10 -0
  22. package/api/types/ExecutionErrorVellumValue.js +5 -0
  23. package/api/types/ExecutionFunctionCallVellumValue.d.ts +10 -0
  24. package/api/types/ExecutionFunctionCallVellumValue.js +5 -0
  25. package/api/types/ExecutionJsonVellumValue.d.ts +9 -0
  26. package/api/types/ExecutionJsonVellumValue.js +5 -0
  27. package/api/types/ExecutionNumberVellumValue.d.ts +9 -0
  28. package/api/types/ExecutionNumberVellumValue.js +5 -0
  29. package/api/types/ExecutionSearchResultsVellumValue.d.ts +10 -0
  30. package/api/types/ExecutionSearchResultsVellumValue.js +5 -0
  31. package/api/types/ExecutionStringVellumValue.d.ts +9 -0
  32. package/api/types/ExecutionStringVellumValue.js +5 -0
  33. package/api/types/ExecutionVellumValue.d.ts +31 -0
  34. package/api/types/ExecutionVellumValue.js +5 -0
  35. package/api/types/PromptTemplateBlockProperties.d.ts +1 -0
  36. package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
  37. package/api/types/WorkflowExecutionEventType.d.ts +2 -2
  38. package/api/types/WorkflowResultEvent.d.ts +1 -0
  39. package/api/types/index.d.ts +9 -0
  40. package/api/types/index.js +9 -0
  41. package/dist/Client.js +9 -9
  42. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +3 -3
  43. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +2 -2
  44. package/dist/api/resources/deployments/client/Client.d.ts +11 -0
  45. package/dist/api/resources/deployments/client/Client.js +30 -7
  46. package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +2 -0
  47. package/dist/api/resources/documentIndexes/client/Client.js +3 -3
  48. package/dist/api/resources/documents/client/Client.js +4 -4
  49. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  50. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  51. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  52. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  53. package/dist/api/resources/testSuites/client/Client.js +2 -2
  54. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  55. package/dist/api/types/ChatMessage.d.ts +2 -0
  56. package/dist/api/types/ChatMessageRequest.d.ts +2 -0
  57. package/dist/api/types/ExecutionArrayVellumValue.d.ts +10 -0
  58. package/dist/api/types/ExecutionArrayVellumValue.js +5 -0
  59. package/dist/api/types/ExecutionChatHistoryVellumValue.d.ts +10 -0
  60. package/dist/api/types/ExecutionChatHistoryVellumValue.js +5 -0
  61. package/dist/api/types/ExecutionErrorVellumValue.d.ts +10 -0
  62. package/dist/api/types/ExecutionErrorVellumValue.js +5 -0
  63. package/dist/api/types/ExecutionFunctionCallVellumValue.d.ts +10 -0
  64. package/dist/api/types/ExecutionFunctionCallVellumValue.js +5 -0
  65. package/dist/api/types/ExecutionJsonVellumValue.d.ts +9 -0
  66. package/dist/api/types/ExecutionJsonVellumValue.js +5 -0
  67. package/dist/api/types/ExecutionNumberVellumValue.d.ts +9 -0
  68. package/dist/api/types/ExecutionNumberVellumValue.js +5 -0
  69. package/dist/api/types/ExecutionSearchResultsVellumValue.d.ts +10 -0
  70. package/dist/api/types/ExecutionSearchResultsVellumValue.js +5 -0
  71. package/dist/api/types/ExecutionStringVellumValue.d.ts +9 -0
  72. package/dist/api/types/ExecutionStringVellumValue.js +5 -0
  73. package/dist/api/types/ExecutionVellumValue.d.ts +31 -0
  74. package/dist/api/types/ExecutionVellumValue.js +5 -0
  75. package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -0
  76. package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
  77. package/dist/api/types/WorkflowExecutionEventType.d.ts +2 -2
  78. package/dist/api/types/WorkflowResultEvent.d.ts +1 -0
  79. package/dist/api/types/index.d.ts +9 -0
  80. package/dist/api/types/index.js +9 -0
  81. package/dist/serialization/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  82. package/dist/serialization/client/requests/ExecuteWorkflowRequest.js +1 -1
  83. package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  84. package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.js +1 -1
  85. package/dist/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +1 -0
  86. package/dist/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +1 -0
  87. package/dist/serialization/types/ChatMessage.d.ts +1 -0
  88. package/dist/serialization/types/ChatMessage.js +1 -0
  89. package/dist/serialization/types/ChatMessageRequest.d.ts +1 -0
  90. package/dist/serialization/types/ChatMessageRequest.js +1 -0
  91. package/dist/serialization/types/ExecutionArrayVellumValue.d.ts +14 -0
  92. package/dist/serialization/types/ExecutionArrayVellumValue.js +46 -0
  93. package/dist/serialization/types/ExecutionChatHistoryVellumValue.d.ts +14 -0
  94. package/dist/serialization/types/ExecutionChatHistoryVellumValue.js +46 -0
  95. package/dist/serialization/types/ExecutionErrorVellumValue.d.ts +14 -0
  96. package/dist/serialization/types/ExecutionErrorVellumValue.js +44 -0
  97. package/dist/serialization/types/ExecutionFunctionCallVellumValue.d.ts +14 -0
  98. package/dist/serialization/types/ExecutionFunctionCallVellumValue.js +44 -0
  99. package/dist/serialization/types/ExecutionJsonVellumValue.d.ts +14 -0
  100. package/dist/serialization/types/ExecutionJsonVellumValue.js +35 -0
  101. package/dist/serialization/types/ExecutionNumberVellumValue.d.ts +14 -0
  102. package/dist/serialization/types/ExecutionNumberVellumValue.js +35 -0
  103. package/dist/serialization/types/ExecutionSearchResultsVellumValue.d.ts +14 -0
  104. package/dist/serialization/types/ExecutionSearchResultsVellumValue.js +46 -0
  105. package/dist/serialization/types/ExecutionStringVellumValue.d.ts +14 -0
  106. package/dist/serialization/types/ExecutionStringVellumValue.js +35 -0
  107. package/dist/serialization/types/ExecutionVellumValue.d.ts +34 -0
  108. package/dist/serialization/types/ExecutionVellumValue.js +54 -0
  109. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
  110. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -0
  111. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
  112. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -0
  113. package/dist/serialization/types/WorkflowResultEvent.d.ts +1 -0
  114. package/dist/serialization/types/WorkflowResultEvent.js +3 -0
  115. package/dist/serialization/types/index.d.ts +9 -0
  116. package/dist/serialization/types/index.js +9 -0
  117. package/package.json +1 -1
  118. package/serialization/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  119. package/serialization/client/requests/ExecuteWorkflowRequest.js +1 -1
  120. package/serialization/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  121. package/serialization/client/requests/ExecuteWorkflowStreamRequest.js +1 -1
  122. package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +1 -0
  123. package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +1 -0
  124. package/serialization/types/ChatMessage.d.ts +1 -0
  125. package/serialization/types/ChatMessage.js +1 -0
  126. package/serialization/types/ChatMessageRequest.d.ts +1 -0
  127. package/serialization/types/ChatMessageRequest.js +1 -0
  128. package/serialization/types/ExecutionArrayVellumValue.d.ts +14 -0
  129. package/serialization/types/ExecutionArrayVellumValue.js +46 -0
  130. package/serialization/types/ExecutionChatHistoryVellumValue.d.ts +14 -0
  131. package/serialization/types/ExecutionChatHistoryVellumValue.js +46 -0
  132. package/serialization/types/ExecutionErrorVellumValue.d.ts +14 -0
  133. package/serialization/types/ExecutionErrorVellumValue.js +44 -0
  134. package/serialization/types/ExecutionFunctionCallVellumValue.d.ts +14 -0
  135. package/serialization/types/ExecutionFunctionCallVellumValue.js +44 -0
  136. package/serialization/types/ExecutionJsonVellumValue.d.ts +14 -0
  137. package/serialization/types/ExecutionJsonVellumValue.js +35 -0
  138. package/serialization/types/ExecutionNumberVellumValue.d.ts +14 -0
  139. package/serialization/types/ExecutionNumberVellumValue.js +35 -0
  140. package/serialization/types/ExecutionSearchResultsVellumValue.d.ts +14 -0
  141. package/serialization/types/ExecutionSearchResultsVellumValue.js +46 -0
  142. package/serialization/types/ExecutionStringVellumValue.d.ts +14 -0
  143. package/serialization/types/ExecutionStringVellumValue.js +35 -0
  144. package/serialization/types/ExecutionVellumValue.d.ts +34 -0
  145. package/serialization/types/ExecutionVellumValue.js +54 -0
  146. package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
  147. package/serialization/types/PromptTemplateBlockProperties.js +1 -0
  148. package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
  149. package/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -0
  150. package/serialization/types/WorkflowResultEvent.d.ts +1 -0
  151. package/serialization/types/WorkflowResultEvent.js +3 -0
  152. package/serialization/types/index.d.ts +9 -0
  153. package/serialization/types/index.js +9 -0
package/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.11",
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.11",
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.11",
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.11",
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.11",
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.11",
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.11",
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.11",
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.11",
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.11",
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.11",
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.11",
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
  }
@@ -79,7 +79,7 @@ class DocumentIndexes {
79
79
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "vellum-ai",
82
- "X-Fern-SDK-Version": "0.3.10",
82
+ "X-Fern-SDK-Version": "0.3.11",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  },
@@ -154,7 +154,7 @@ class DocumentIndexes {
154
154
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "vellum-ai",
157
- "X-Fern-SDK-Version": "0.3.10",
157
+ "X-Fern-SDK-Version": "0.3.11",
158
158
  "X-Fern-Runtime": core.RUNTIME.type,
159
159
  "X-Fern-Runtime-Version": core.RUNTIME.version,
160
160
  },
@@ -211,7 +211,7 @@ class DocumentIndexes {
211
211
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
212
212
  "X-Fern-Language": "JavaScript",
213
213
  "X-Fern-SDK-Name": "vellum-ai",
214
- "X-Fern-SDK-Version": "0.3.10",
214
+ "X-Fern-SDK-Version": "0.3.11",
215
215
  "X-Fern-Runtime": core.RUNTIME.type,
216
216
  "X-Fern-Runtime-Version": core.RUNTIME.version,
217
217
  },
@@ -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.10",
84
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
133
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
182
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
268
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
72
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
68
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
99
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
87
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
144
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
77
+ "X-Fern-SDK-Version": "0.3.11",
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.10",
134
+ "X-Fern-SDK-Version": "0.3.11",
135
135
  "X-Fern-Runtime": core.RUNTIME.type,
136
136
  "X-Fern-Runtime-Version": core.RUNTIME.version,
137
137
  },
@@ -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.10",
76
+ "X-Fern-SDK-Version": "0.3.11",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -128,7 +128,7 @@ class WorkflowDeployments {
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.10",
131
+ "X-Fern-SDK-Version": "0.3.11",
132
132
  "X-Fern-Runtime": core.RUNTIME.type,
133
133
  "X-Fern-Runtime-Version": core.RUNTIME.version,
134
134
  },
@@ -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 });
@@ -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;
@@ -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";