vellum-ai 0.9.4 → 0.9.5

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/.mock/definition/__package__.yml +28 -0
  2. package/.mock/definition/deployments.yml +50 -1
  3. package/.mock/definition/workflowDeployments.yml +49 -0
  4. package/.mock/definition/workflows.yml +15 -2
  5. package/.mock/openapi/openapi.yml +156 -1
  6. package/Client.js +10 -10
  7. package/api/resources/adHoc/client/Client.js +1 -1
  8. package/api/resources/containerImages/client/Client.js +4 -4
  9. package/api/resources/deployments/client/Client.d.ts +12 -1
  10. package/api/resources/deployments/client/Client.js +74 -6
  11. package/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.d.ts +23 -0
  12. package/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.js +5 -0
  13. package/api/resources/deployments/client/requests/index.d.ts +1 -0
  14. package/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +8 -0
  15. package/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +10 -0
  16. package/api/resources/deployments/types/index.d.ts +1 -0
  17. package/api/resources/deployments/types/index.js +1 -0
  18. package/api/resources/documentIndexes/client/Client.js +8 -8
  19. package/api/resources/documents/client/Client.js +5 -5
  20. package/api/resources/folderEntities/client/Client.js +2 -2
  21. package/api/resources/index.d.ts +2 -1
  22. package/api/resources/index.js +3 -2
  23. package/api/resources/metricDefinitions/client/Client.js +1 -1
  24. package/api/resources/sandboxes/client/Client.js +3 -3
  25. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  26. package/api/resources/testSuites/client/Client.js +4 -4
  27. package/api/resources/workflowDeployments/client/Client.d.ts +11 -0
  28. package/api/resources/workflowDeployments/client/Client.js +72 -4
  29. package/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.d.ts +23 -0
  30. package/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.js +5 -0
  31. package/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  32. package/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +8 -0
  33. package/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +10 -0
  34. package/api/resources/workflowDeployments/types/index.d.ts +1 -0
  35. package/api/resources/workflowDeployments/types/index.js +1 -0
  36. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  37. package/api/resources/workflows/client/Client.d.ts +3 -2
  38. package/api/resources/workflows/client/Client.js +20 -7
  39. package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +13 -0
  40. package/api/resources/workflows/client/requests/WorkflowsPullRequest.js +5 -0
  41. package/api/resources/workflows/client/requests/index.d.ts +1 -0
  42. package/api/resources/workflows/index.d.ts +1 -0
  43. package/api/resources/workflows/index.js +1 -0
  44. package/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +8 -0
  45. package/api/resources/workflows/types/WorkflowsPullRequestFormat.js +10 -0
  46. package/api/resources/workflows/types/index.d.ts +1 -0
  47. package/api/resources/workflows/types/index.js +17 -0
  48. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  49. package/api/types/PaginatedDeploymentReleaseTagReadList.d.ts +10 -0
  50. package/api/types/PaginatedDeploymentReleaseTagReadList.js +5 -0
  51. package/api/types/PaginatedWorkflowReleaseTagReadList.d.ts +10 -0
  52. package/api/types/PaginatedWorkflowReleaseTagReadList.js +5 -0
  53. package/api/types/index.d.ts +2 -0
  54. package/api/types/index.js +2 -0
  55. package/dist/Client.js +10 -10
  56. package/dist/api/resources/adHoc/client/Client.js +1 -1
  57. package/dist/api/resources/containerImages/client/Client.js +4 -4
  58. package/dist/api/resources/deployments/client/Client.d.ts +12 -1
  59. package/dist/api/resources/deployments/client/Client.js +74 -6
  60. package/dist/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.d.ts +23 -0
  61. package/dist/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.js +5 -0
  62. package/dist/api/resources/deployments/client/requests/index.d.ts +1 -0
  63. package/dist/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +8 -0
  64. package/dist/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +10 -0
  65. package/dist/api/resources/deployments/types/index.d.ts +1 -0
  66. package/dist/api/resources/deployments/types/index.js +1 -0
  67. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  68. package/dist/api/resources/documents/client/Client.js +5 -5
  69. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  70. package/dist/api/resources/index.d.ts +2 -1
  71. package/dist/api/resources/index.js +3 -2
  72. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  73. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  74. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  75. package/dist/api/resources/testSuites/client/Client.js +4 -4
  76. package/dist/api/resources/workflowDeployments/client/Client.d.ts +11 -0
  77. package/dist/api/resources/workflowDeployments/client/Client.js +72 -4
  78. package/dist/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.d.ts +23 -0
  79. package/dist/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.js +5 -0
  80. package/dist/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  81. package/dist/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +8 -0
  82. package/dist/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +10 -0
  83. package/dist/api/resources/workflowDeployments/types/index.d.ts +1 -0
  84. package/dist/api/resources/workflowDeployments/types/index.js +1 -0
  85. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  86. package/dist/api/resources/workflows/client/Client.d.ts +3 -2
  87. package/dist/api/resources/workflows/client/Client.js +20 -7
  88. package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +13 -0
  89. package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.js +5 -0
  90. package/dist/api/resources/workflows/client/requests/index.d.ts +1 -0
  91. package/dist/api/resources/workflows/index.d.ts +1 -0
  92. package/dist/api/resources/workflows/index.js +1 -0
  93. package/dist/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +8 -0
  94. package/dist/api/resources/workflows/types/WorkflowsPullRequestFormat.js +10 -0
  95. package/dist/api/resources/workflows/types/index.d.ts +1 -0
  96. package/dist/api/resources/workflows/types/index.js +17 -0
  97. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  98. package/dist/api/types/PaginatedDeploymentReleaseTagReadList.d.ts +10 -0
  99. package/dist/api/types/PaginatedDeploymentReleaseTagReadList.js +5 -0
  100. package/dist/api/types/PaginatedWorkflowReleaseTagReadList.d.ts +10 -0
  101. package/dist/api/types/PaginatedWorkflowReleaseTagReadList.js +5 -0
  102. package/dist/api/types/index.d.ts +2 -0
  103. package/dist/api/types/index.js +2 -0
  104. package/dist/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +10 -0
  105. package/dist/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +31 -0
  106. package/dist/serialization/resources/deployments/types/index.d.ts +1 -0
  107. package/dist/serialization/resources/deployments/types/index.js +1 -0
  108. package/dist/serialization/resources/index.d.ts +2 -1
  109. package/dist/serialization/resources/index.js +3 -2
  110. package/dist/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +10 -0
  111. package/dist/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +31 -0
  112. package/dist/serialization/resources/workflowDeployments/types/index.d.ts +1 -0
  113. package/dist/serialization/resources/workflowDeployments/types/index.js +1 -0
  114. package/dist/serialization/resources/workflows/index.d.ts +1 -0
  115. package/dist/serialization/resources/workflows/index.js +1 -0
  116. package/dist/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +10 -0
  117. package/dist/serialization/resources/workflows/types/WorkflowsPullRequestFormat.js +31 -0
  118. package/dist/serialization/resources/workflows/types/index.d.ts +1 -0
  119. package/dist/serialization/resources/workflows/types/index.js +17 -0
  120. package/dist/serialization/types/PaginatedDeploymentReleaseTagReadList.d.ts +16 -0
  121. package/dist/serialization/types/PaginatedDeploymentReleaseTagReadList.js +37 -0
  122. package/dist/serialization/types/PaginatedWorkflowReleaseTagReadList.d.ts +16 -0
  123. package/dist/serialization/types/PaginatedWorkflowReleaseTagReadList.js +37 -0
  124. package/dist/serialization/types/index.d.ts +2 -0
  125. package/dist/serialization/types/index.js +2 -0
  126. package/dist/version.d.ts +1 -1
  127. package/dist/version.js +1 -1
  128. package/package.json +1 -1
  129. package/reference.md +155 -3
  130. package/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +10 -0
  131. package/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +31 -0
  132. package/serialization/resources/deployments/types/index.d.ts +1 -0
  133. package/serialization/resources/deployments/types/index.js +1 -0
  134. package/serialization/resources/index.d.ts +2 -1
  135. package/serialization/resources/index.js +3 -2
  136. package/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +10 -0
  137. package/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +31 -0
  138. package/serialization/resources/workflowDeployments/types/index.d.ts +1 -0
  139. package/serialization/resources/workflowDeployments/types/index.js +1 -0
  140. package/serialization/resources/workflows/index.d.ts +1 -0
  141. package/serialization/resources/workflows/index.js +1 -0
  142. package/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +10 -0
  143. package/serialization/resources/workflows/types/WorkflowsPullRequestFormat.js +31 -0
  144. package/serialization/resources/workflows/types/index.d.ts +1 -0
  145. package/serialization/resources/workflows/types/index.js +17 -0
  146. package/serialization/types/PaginatedDeploymentReleaseTagReadList.d.ts +16 -0
  147. package/serialization/types/PaginatedDeploymentReleaseTagReadList.js +37 -0
  148. package/serialization/types/PaginatedWorkflowReleaseTagReadList.d.ts +16 -0
  149. package/serialization/types/PaginatedWorkflowReleaseTagReadList.js +37 -0
  150. package/serialization/types/index.d.ts +2 -0
  151. package/serialization/types/index.js +2 -0
  152. package/version.d.ts +1 -1
  153. package/version.js +1 -1
@@ -78,7 +78,7 @@ class WorkflowDeployments {
78
78
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
79
79
  .default, "v1/workflow-deployments"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -131,7 +131,7 @@ class WorkflowDeployments {
131
131
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
132
132
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
133
133
  method: "GET",
134
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -167,6 +167,74 @@ class WorkflowDeployments {
167
167
  }
168
168
  });
169
169
  }
170
+ /**
171
+ * List Release Tags associated with the specified Workflow Deployment
172
+ *
173
+ * @param {string} id - Either the Workflow Deployment's ID or its unique name
174
+ * @param {Vellum.ListWorkflowReleaseTagsRequest} request
175
+ * @param {WorkflowDeployments.RequestOptions} requestOptions - Request-specific configuration.
176
+ *
177
+ * @example
178
+ * await client.workflowDeployments.listWorkflowReleaseTags("id")
179
+ */
180
+ listWorkflowReleaseTags(id, request = {}, requestOptions) {
181
+ var _a;
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const { limit, offset, ordering, source } = request;
184
+ const _queryParams = {};
185
+ if (limit != null) {
186
+ _queryParams["limit"] = limit.toString();
187
+ }
188
+ if (offset != null) {
189
+ _queryParams["offset"] = offset.toString();
190
+ }
191
+ if (ordering != null) {
192
+ _queryParams["ordering"] = ordering;
193
+ }
194
+ if (source != null) {
195
+ _queryParams["source"] = source;
196
+ }
197
+ const _response = yield core.fetcher({
198
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
199
+ .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
200
+ method: "GET",
201
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
202
+ contentType: "application/json",
203
+ queryParameters: _queryParams,
204
+ requestType: "json",
205
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
206
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
207
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
208
+ });
209
+ if (_response.ok) {
210
+ return serializers.PaginatedWorkflowReleaseTagReadList.parseOrThrow(_response.body, {
211
+ unrecognizedObjectKeys: "passthrough",
212
+ allowUnrecognizedUnionMembers: true,
213
+ allowUnrecognizedEnumValues: true,
214
+ breadcrumbsPrefix: ["response"],
215
+ });
216
+ }
217
+ if (_response.error.reason === "status-code") {
218
+ throw new errors.VellumError({
219
+ statusCode: _response.error.statusCode,
220
+ body: _response.error.body,
221
+ });
222
+ }
223
+ switch (_response.error.reason) {
224
+ case "non-json":
225
+ throw new errors.VellumError({
226
+ statusCode: _response.error.statusCode,
227
+ body: _response.error.rawBody,
228
+ });
229
+ case "timeout":
230
+ throw new errors.VellumTimeoutError();
231
+ case "unknown":
232
+ throw new errors.VellumError({
233
+ message: _response.error.errorMessage,
234
+ });
235
+ }
236
+ });
237
+ }
170
238
  /**
171
239
  * Retrieve a Workflow Release Tag by tag name, associated with a specified Workflow Deployment.
172
240
  *
@@ -184,7 +252,7 @@ class WorkflowDeployments {
184
252
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
253
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
186
254
  method: "GET",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
256
  contentType: "application/json",
189
257
  requestType: "json",
190
258
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -238,7 +306,7 @@ class WorkflowDeployments {
238
306
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
239
307
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
240
308
  method: "PATCH",
241
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
310
  contentType: "application/json",
243
311
  requestType: "json",
244
312
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface ListWorkflowReleaseTagsRequest {
10
+ /**
11
+ * Number of results to return per page.
12
+ */
13
+ limit?: number;
14
+ /**
15
+ * The initial index from which to return the results.
16
+ */
17
+ offset?: number;
18
+ /**
19
+ * Which field to use when ordering the results.
20
+ */
21
+ ordering?: string;
22
+ source?: Vellum.ListWorkflowReleaseTagsRequestSource;
23
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export { type WorkflowDeploymentsListRequest } from "./WorkflowDeploymentsListRequest";
2
+ export { type ListWorkflowReleaseTagsRequest } from "./ListWorkflowReleaseTagsRequest";
2
3
  export { type PatchedWorkflowReleaseTagUpdateRequest } from "./PatchedWorkflowReleaseTagUpdateRequest";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ListWorkflowReleaseTagsRequestSource = "SYSTEM" | "USER";
5
+ export declare const ListWorkflowReleaseTagsRequestSource: {
6
+ readonly System: "SYSTEM";
7
+ readonly User: "USER";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ListWorkflowReleaseTagsRequestSource = void 0;
7
+ exports.ListWorkflowReleaseTagsRequestSource = {
8
+ System: "SYSTEM",
9
+ User: "USER",
10
+ };
@@ -1 +1,2 @@
1
1
  export * from "./WorkflowDeploymentsListRequestStatus";
2
+ export * from "./ListWorkflowReleaseTagsRequestSource";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./WorkflowDeploymentsListRequestStatus"), exports);
18
+ __exportStar(require("./ListWorkflowReleaseTagsRequestSource"), exports);
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -4,8 +4,8 @@
4
4
  /// <reference types="node" />
5
5
  import * as environments from "../../../../environments";
6
6
  import * as core from "../../../../core";
7
- import * as stream from "stream";
8
7
  import * as Vellum from "../../../index";
8
+ import * as stream from "stream";
9
9
  export declare namespace Workflows {
10
10
  interface Options {
11
11
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
@@ -25,8 +25,9 @@ export declare class Workflows {
25
25
  constructor(_options?: Workflows.Options);
26
26
  /**
27
27
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
28
+ * @throws {@link Vellum.BadRequestError}
28
29
  */
29
- pull(id: string, requestOptions?: Workflows.RequestOptions): Promise<stream.Readable>;
30
+ pull(id: string, request?: Vellum.WorkflowsPullRequest, requestOptions?: Workflows.RequestOptions): Promise<stream.Readable>;
30
31
  /**
31
32
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
32
33
  *
@@ -41,6 +41,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Workflows = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
+ const Vellum = __importStar(require("../../../index"));
44
45
  const url_join_1 = __importDefault(require("url-join"));
45
46
  const errors = __importStar(require("../../../../errors/index"));
46
47
  const serializers = __importStar(require("../../../../serialization/index"));
@@ -50,16 +51,23 @@ class Workflows {
50
51
  }
51
52
  /**
52
53
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
54
+ * @throws {@link Vellum.BadRequestError}
53
55
  */
54
- pull(id, requestOptions) {
56
+ pull(id, request = {}, requestOptions) {
55
57
  var _a;
56
58
  return __awaiter(this, void 0, void 0, function* () {
59
+ const { format } = request;
60
+ const _queryParams = {};
61
+ if (format != null) {
62
+ _queryParams["format"] = format;
63
+ }
57
64
  const _response = yield core.fetcher({
58
65
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
59
66
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
60
67
  method: "GET",
61
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
69
  contentType: "application/json",
70
+ queryParameters: _queryParams,
63
71
  requestType: "json",
64
72
  responseType: "streaming",
65
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -70,10 +78,15 @@ class Workflows {
70
78
  return _response.body;
71
79
  }
72
80
  if (_response.error.reason === "status-code") {
73
- throw new errors.VellumError({
74
- statusCode: _response.error.statusCode,
75
- body: _response.error.body,
76
- });
81
+ switch (_response.error.statusCode) {
82
+ case 400:
83
+ throw new Vellum.BadRequestError(_response.error.body);
84
+ default:
85
+ throw new errors.VellumError({
86
+ statusCode: _response.error.statusCode,
87
+ body: _response.error.body,
88
+ });
89
+ }
77
90
  }
78
91
  switch (_response.error.reason) {
79
92
  case "non-json":
@@ -111,7 +124,7 @@ class Workflows {
111
124
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
112
125
  .default, "v1/workflows/push"),
113
126
  method: "POST",
114
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
115
128
  contentType: "application/json",
116
129
  requestType: "json",
117
130
  body: serializers.WorkflowPushRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * format: "json"
9
+ * }
10
+ */
11
+ export interface WorkflowsPullRequest {
12
+ format?: Vellum.WorkflowsPullRequestFormat;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
+ export { type WorkflowsPullRequest } from "./WorkflowsPullRequest";
1
2
  export { type WorkflowPushRequest } from "./WorkflowPushRequest";
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type WorkflowsPullRequestFormat = "json" | "zip";
5
+ export declare const WorkflowsPullRequestFormat: {
6
+ readonly Json: "json";
7
+ readonly Zip: "zip";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WorkflowsPullRequestFormat = void 0;
7
+ exports.WorkflowsPullRequestFormat = {
8
+ Json: "json",
9
+ Zip: "zip",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./WorkflowsPullRequestFormat";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./WorkflowsPullRequestFormat"), exports);
@@ -64,7 +64,7 @@ class WorkspaceSecrets {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
66
66
  method: "GET",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -117,7 +117,7 @@ class WorkspaceSecrets {
117
117
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
118
118
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
119
119
  method: "PATCH",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  requestType: "json",
123
123
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface PaginatedDeploymentReleaseTagReadList {
6
+ count?: number;
7
+ next?: string;
8
+ previous?: string;
9
+ results?: Vellum.DeploymentReleaseTagRead[];
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 "../index";
5
+ export interface PaginatedWorkflowReleaseTagReadList {
6
+ count?: number;
7
+ next?: string;
8
+ previous?: string;
9
+ results?: Vellum.WorkflowReleaseTagRead[];
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 });
@@ -238,6 +238,7 @@ export * from "./OpenAiVectorizerTextEmbedding3SmallRequest";
238
238
  export * from "./OpenAiVectorizerTextEmbeddingAda002";
239
239
  export * from "./OpenAiVectorizerTextEmbeddingAda002Request";
240
240
  export * from "./PaginatedContainerImageReadList";
241
+ export * from "./PaginatedDeploymentReleaseTagReadList";
241
242
  export * from "./PaginatedDocumentIndexReadList";
242
243
  export * from "./PaginatedFolderEntityList";
243
244
  export * from "./PaginatedSlimDeploymentReadList";
@@ -245,6 +246,7 @@ export * from "./PaginatedSlimDocumentList";
245
246
  export * from "./PaginatedSlimWorkflowDeploymentList";
246
247
  export * from "./PaginatedTestSuiteRunExecutionList";
247
248
  export * from "./PaginatedTestSuiteTestCaseList";
249
+ export * from "./PaginatedWorkflowReleaseTagReadList";
248
250
  export * from "./PdfSearchResultMetaSource";
249
251
  export * from "./PdfSearchResultMetaSourceRequest";
250
252
  export * from "./PlainTextPromptBlockRequest";
@@ -254,6 +254,7 @@ __exportStar(require("./OpenAiVectorizerTextEmbedding3SmallRequest"), exports);
254
254
  __exportStar(require("./OpenAiVectorizerTextEmbeddingAda002"), exports);
255
255
  __exportStar(require("./OpenAiVectorizerTextEmbeddingAda002Request"), exports);
256
256
  __exportStar(require("./PaginatedContainerImageReadList"), exports);
257
+ __exportStar(require("./PaginatedDeploymentReleaseTagReadList"), exports);
257
258
  __exportStar(require("./PaginatedDocumentIndexReadList"), exports);
258
259
  __exportStar(require("./PaginatedFolderEntityList"), exports);
259
260
  __exportStar(require("./PaginatedSlimDeploymentReadList"), exports);
@@ -261,6 +262,7 @@ __exportStar(require("./PaginatedSlimDocumentList"), exports);
261
262
  __exportStar(require("./PaginatedSlimWorkflowDeploymentList"), exports);
262
263
  __exportStar(require("./PaginatedTestSuiteRunExecutionList"), exports);
263
264
  __exportStar(require("./PaginatedTestSuiteTestCaseList"), exports);
265
+ __exportStar(require("./PaginatedWorkflowReleaseTagReadList"), exports);
264
266
  __exportStar(require("./PdfSearchResultMetaSource"), exports);
265
267
  __exportStar(require("./PdfSearchResultMetaSourceRequest"), exports);
266
268
  __exportStar(require("./PlainTextPromptBlockRequest"), exports);
package/dist/Client.js CHANGED
@@ -94,7 +94,7 @@ class VellumClient {
94
94
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
95
95
  .default, "v1/execute-code"),
96
96
  method: "POST",
97
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
97
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
98
98
  contentType: "application/json",
99
99
  requestType: "json",
100
100
  body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -163,7 +163,7 @@ class VellumClient {
163
163
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
164
164
  .predict, "v1/execute-prompt"),
165
165
  method: "POST",
166
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -221,7 +221,7 @@ class VellumClient {
221
221
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
222
222
  .predict, "v1/execute-prompt-stream"),
223
223
  method: "POST",
224
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -306,7 +306,7 @@ class VellumClient {
306
306
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
307
307
  .predict, "v1/execute-workflow"),
308
308
  method: "POST",
309
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
310
310
  contentType: "application/json",
311
311
  requestType: "json",
312
312
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -362,7 +362,7 @@ class VellumClient {
362
362
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
363
363
  .predict, "v1/execute-workflow-stream"),
364
364
  method: "POST",
365
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
365
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
366
366
  contentType: "application/json",
367
367
  requestType: "json",
368
368
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -449,7 +449,7 @@ class VellumClient {
449
449
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
450
450
  .predict, "v1/generate"),
451
451
  method: "POST",
452
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
452
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
453
453
  contentType: "application/json",
454
454
  requestType: "json",
455
455
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -510,7 +510,7 @@ class VellumClient {
510
510
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
511
511
  .predict, "v1/generate-stream"),
512
512
  method: "POST",
513
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
514
514
  contentType: "application/json",
515
515
  requestType: "json",
516
516
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -591,7 +591,7 @@ class VellumClient {
591
591
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
592
592
  .predict, "v1/search"),
593
593
  method: "POST",
594
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
594
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
595
595
  contentType: "application/json",
596
596
  requestType: "json",
597
597
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -659,7 +659,7 @@ class VellumClient {
659
659
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
660
660
  .predict, "v1/submit-completion-actuals"),
661
661
  method: "POST",
662
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
662
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
663
663
  contentType: "application/json",
664
664
  requestType: "json",
665
665
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -722,7 +722,7 @@ class VellumClient {
722
722
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
723
723
  .predict, "v1/submit-workflow-execution-actuals"),
724
724
  method: "POST",
725
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
725
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
726
726
  contentType: "application/json",
727
727
  requestType: "json",
728
728
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -59,7 +59,7 @@ class AdHoc {
59
59
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
60
60
  .default, "v1/ad-hoc/execute-prompt-stream"),
61
61
  method: "POST",
62
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -75,7 +75,7 @@ class ContainerImages {
75
75
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
76
76
  .default, "v1/container-images"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -128,7 +128,7 @@ class ContainerImages {
128
128
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
129
129
  .default, `v1/container-images/${encodeURIComponent(id)}`),
130
130
  method: "GET",
131
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
132
  contentType: "application/json",
133
133
  requestType: "json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -179,7 +179,7 @@ class ContainerImages {
179
179
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
180
180
  .default, "v1/container-images/docker-service-token"),
181
181
  method: "GET",
182
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
182
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -235,7 +235,7 @@ class ContainerImages {
235
235
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
236
236
  .default, "v1/container-images/push"),
237
237
  method: "POST",
238
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),