vellum-ai 0.10.0 → 0.10.1

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 (95) hide show
  1. package/.mock/definition/__package__.yml +12 -0
  2. package/.mock/definition/deployments.yml +3 -0
  3. package/.mock/definition/mlModels.yml +34 -0
  4. package/.mock/definition/workflowDeployments.yml +3 -0
  5. package/.mock/openapi/openapi.yml +48 -1
  6. package/Client.d.ts +3 -0
  7. package/Client.js +29 -24
  8. package/api/resources/adHoc/client/Client.js +1 -1
  9. package/api/resources/containerImages/client/Client.js +4 -4
  10. package/api/resources/deployments/client/Client.d.ts +11 -0
  11. package/api/resources/deployments/client/Client.js +59 -6
  12. package/api/resources/documentIndexes/client/Client.js +8 -8
  13. package/api/resources/documents/client/Client.js +5 -5
  14. package/api/resources/folderEntities/client/Client.js +2 -2
  15. package/api/resources/index.d.ts +1 -0
  16. package/api/resources/index.js +2 -1
  17. package/api/resources/metricDefinitions/client/Client.js +1 -1
  18. package/api/resources/mlModels/client/Client.d.ts +37 -0
  19. package/api/resources/mlModels/client/Client.js +110 -0
  20. package/api/resources/mlModels/client/index.d.ts +1 -0
  21. package/api/resources/mlModels/client/index.js +2 -0
  22. package/api/resources/mlModels/index.d.ts +1 -0
  23. package/api/resources/mlModels/index.js +17 -0
  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 +58 -5
  29. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  30. package/api/resources/workflows/client/Client.js +2 -2
  31. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  32. package/api/types/DeploymentHistoryItem.d.ts +16 -0
  33. package/api/types/DeploymentHistoryItem.js +5 -0
  34. package/api/types/MlModelRead.d.ts +11 -0
  35. package/api/types/MlModelRead.js +5 -0
  36. package/api/types/WorkflowDeploymentHistoryItem.d.ts +17 -0
  37. package/api/types/WorkflowDeploymentHistoryItem.js +5 -0
  38. package/api/types/index.d.ts +3 -0
  39. package/api/types/index.js +3 -0
  40. package/dist/Client.d.ts +3 -0
  41. package/dist/Client.js +29 -24
  42. package/dist/api/resources/adHoc/client/Client.js +1 -1
  43. package/dist/api/resources/containerImages/client/Client.js +4 -4
  44. package/dist/api/resources/deployments/client/Client.d.ts +11 -0
  45. package/dist/api/resources/deployments/client/Client.js +59 -6
  46. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  47. package/dist/api/resources/documents/client/Client.js +5 -5
  48. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  49. package/dist/api/resources/index.d.ts +1 -0
  50. package/dist/api/resources/index.js +2 -1
  51. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  52. package/dist/api/resources/mlModels/client/Client.d.ts +37 -0
  53. package/dist/api/resources/mlModels/client/Client.js +110 -0
  54. package/dist/api/resources/mlModels/client/index.d.ts +1 -0
  55. package/dist/api/resources/mlModels/client/index.js +2 -0
  56. package/dist/api/resources/mlModels/index.d.ts +1 -0
  57. package/dist/api/resources/mlModels/index.js +17 -0
  58. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  59. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  60. package/dist/api/resources/testSuites/client/Client.js +4 -4
  61. package/dist/api/resources/workflowDeployments/client/Client.d.ts +11 -0
  62. package/dist/api/resources/workflowDeployments/client/Client.js +58 -5
  63. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  64. package/dist/api/resources/workflows/client/Client.js +2 -2
  65. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  66. package/dist/api/types/DeploymentHistoryItem.d.ts +16 -0
  67. package/dist/api/types/DeploymentHistoryItem.js +5 -0
  68. package/dist/api/types/MlModelRead.d.ts +11 -0
  69. package/dist/api/types/MlModelRead.js +5 -0
  70. package/dist/api/types/WorkflowDeploymentHistoryItem.d.ts +17 -0
  71. package/dist/api/types/WorkflowDeploymentHistoryItem.js +5 -0
  72. package/dist/api/types/index.d.ts +3 -0
  73. package/dist/api/types/index.js +3 -0
  74. package/dist/serialization/types/DeploymentHistoryItem.d.ts +19 -0
  75. package/dist/serialization/types/DeploymentHistoryItem.js +40 -0
  76. package/dist/serialization/types/MlModelRead.d.ts +13 -0
  77. package/dist/serialization/types/MlModelRead.js +34 -0
  78. package/dist/serialization/types/WorkflowDeploymentHistoryItem.d.ts +20 -0
  79. package/dist/serialization/types/WorkflowDeploymentHistoryItem.js +41 -0
  80. package/dist/serialization/types/index.d.ts +3 -0
  81. package/dist/serialization/types/index.js +3 -0
  82. package/dist/version.d.ts +1 -1
  83. package/dist/version.js +1 -1
  84. package/package.json +1 -1
  85. package/reference.md +207 -0
  86. package/serialization/types/DeploymentHistoryItem.d.ts +19 -0
  87. package/serialization/types/DeploymentHistoryItem.js +40 -0
  88. package/serialization/types/MlModelRead.d.ts +13 -0
  89. package/serialization/types/MlModelRead.js +34 -0
  90. package/serialization/types/WorkflowDeploymentHistoryItem.d.ts +20 -0
  91. package/serialization/types/WorkflowDeploymentHistoryItem.js +41 -0
  92. package/serialization/types/index.d.ts +3 -0
  93. package/serialization/types/index.js +3 -0
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
@@ -65,7 +65,7 @@ class Workflows {
65
65
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
66
66
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
67
67
  method: "GET",
68
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
69
  contentType: "application/json",
70
70
  queryParameters: _queryParams,
71
71
  requestType: "json",
@@ -136,7 +136,7 @@ class Workflows {
136
136
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
137
137
  .default, "v1/workflows/push"),
138
138
  method: "POST",
139
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
139
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
140
140
  requestType: "file",
141
141
  duplex: _maybeEncodedRequest.duplex,
142
142
  body: _maybeEncodedRequest.body,
@@ -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.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "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.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "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,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface DeploymentHistoryItem {
6
+ id: string;
7
+ deploymentId: string;
8
+ timestamp: Date;
9
+ /** A human-readable label for the deployment */
10
+ label: string;
11
+ /** A name that uniquely identifies this deployment within its workspace */
12
+ name: string;
13
+ inputVariables: Vellum.VellumVariable[];
14
+ /** A human-readable description of the deployment */
15
+ description?: string;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * An ML Model that your Workspace has access to.
6
+ */
7
+ export interface MlModelRead {
8
+ id: string;
9
+ /** The unique name of the ML Model. */
10
+ name: string;
11
+ }
@@ -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,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface WorkflowDeploymentHistoryItem {
6
+ id: string;
7
+ workflowDeploymentId: string;
8
+ timestamp: Date;
9
+ /** A human-readable label for the workflow deployment */
10
+ label: string;
11
+ /** A name that uniquely identifies this workflow deployment within its workspace */
12
+ name: string;
13
+ inputVariables: Vellum.VellumVariable[];
14
+ outputVariables: Vellum.VellumVariable[];
15
+ /** A human-readable description of the workflow deployment */
16
+ description?: string;
17
+ }
@@ -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 });
@@ -61,6 +61,7 @@ export * from "./ConditionalNodeResult";
61
61
  export * from "./ConditionalNodeResultData";
62
62
  export * from "./ContainerImageRead";
63
63
  export * from "./CreateTestSuiteTestCaseRequest";
64
+ export * from "./DeploymentHistoryItem";
64
65
  export * from "./DeploymentProviderPayloadResponsePayload";
65
66
  export * from "./DeploymentProviderPayloadResponse";
66
67
  export * from "./DeploymentRead";
@@ -171,6 +172,7 @@ export * from "./JsonVellumValue";
171
172
  export * from "./JsonVellumValueRequest";
172
173
  export * from "./LogicalOperator";
173
174
  export * from "./LogprobsEnum";
175
+ export * from "./MlModelRead";
174
176
  export * from "./MlModelUsage";
175
177
  export * from "./MapNodeResult";
176
178
  export * from "./MapNodeResultData";
@@ -432,6 +434,7 @@ export * from "./VellumValueRequest";
432
434
  export * from "./VellumVariable";
433
435
  export * from "./VellumVariableExtensions";
434
436
  export * from "./VellumVariableType";
437
+ export * from "./WorkflowDeploymentHistoryItem";
435
438
  export * from "./WorkflowDeploymentRead";
436
439
  export * from "./WorkflowEventError";
437
440
  export * from "./WorkflowExecutionActualChatHistoryRequest";
@@ -77,6 +77,7 @@ __exportStar(require("./ConditionalNodeResult"), exports);
77
77
  __exportStar(require("./ConditionalNodeResultData"), exports);
78
78
  __exportStar(require("./ContainerImageRead"), exports);
79
79
  __exportStar(require("./CreateTestSuiteTestCaseRequest"), exports);
80
+ __exportStar(require("./DeploymentHistoryItem"), exports);
80
81
  __exportStar(require("./DeploymentProviderPayloadResponsePayload"), exports);
81
82
  __exportStar(require("./DeploymentProviderPayloadResponse"), exports);
82
83
  __exportStar(require("./DeploymentRead"), exports);
@@ -187,6 +188,7 @@ __exportStar(require("./JsonVellumValue"), exports);
187
188
  __exportStar(require("./JsonVellumValueRequest"), exports);
188
189
  __exportStar(require("./LogicalOperator"), exports);
189
190
  __exportStar(require("./LogprobsEnum"), exports);
191
+ __exportStar(require("./MlModelRead"), exports);
190
192
  __exportStar(require("./MlModelUsage"), exports);
191
193
  __exportStar(require("./MapNodeResult"), exports);
192
194
  __exportStar(require("./MapNodeResultData"), exports);
@@ -448,6 +450,7 @@ __exportStar(require("./VellumValueRequest"), exports);
448
450
  __exportStar(require("./VellumVariable"), exports);
449
451
  __exportStar(require("./VellumVariableExtensions"), exports);
450
452
  __exportStar(require("./VellumVariableType"), exports);
453
+ __exportStar(require("./WorkflowDeploymentHistoryItem"), exports);
451
454
  __exportStar(require("./WorkflowDeploymentRead"), exports);
452
455
  __exportStar(require("./WorkflowEventError"), exports);
453
456
  __exportStar(require("./WorkflowExecutionActualChatHistoryRequest"), exports);
package/dist/Client.d.ts CHANGED
@@ -11,6 +11,7 @@ import { DocumentIndexes } from "./api/resources/documentIndexes/client/Client";
11
11
  import { Documents } from "./api/resources/documents/client/Client";
12
12
  import { FolderEntities } from "./api/resources/folderEntities/client/Client";
13
13
  import { MetricDefinitions } from "./api/resources/metricDefinitions/client/Client";
14
+ import { MlModels } from "./api/resources/mlModels/client/Client";
14
15
  import { Sandboxes } from "./api/resources/sandboxes/client/Client";
15
16
  import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
16
17
  import { TestSuites } from "./api/resources/testSuites/client/Client";
@@ -202,6 +203,8 @@ export declare class VellumClient {
202
203
  get folderEntities(): FolderEntities;
203
204
  protected _metricDefinitions: MetricDefinitions | undefined;
204
205
  get metricDefinitions(): MetricDefinitions;
206
+ protected _mlModels: MlModels | undefined;
207
+ get mlModels(): MlModels;
205
208
  protected _sandboxes: Sandboxes | undefined;
206
209
  get sandboxes(): Sandboxes;
207
210
  protected _testSuiteRuns: TestSuiteRuns | undefined;
package/dist/Client.js CHANGED
@@ -52,13 +52,14 @@ const Client_4 = require("./api/resources/documentIndexes/client/Client");
52
52
  const Client_5 = require("./api/resources/documents/client/Client");
53
53
  const Client_6 = require("./api/resources/folderEntities/client/Client");
54
54
  const Client_7 = require("./api/resources/metricDefinitions/client/Client");
55
- const Client_8 = require("./api/resources/sandboxes/client/Client");
56
- const Client_9 = require("./api/resources/testSuiteRuns/client/Client");
57
- const Client_10 = require("./api/resources/testSuites/client/Client");
58
- const Client_11 = require("./api/resources/workflowDeployments/client/Client");
59
- const Client_12 = require("./api/resources/workflowSandboxes/client/Client");
60
- const Client_13 = require("./api/resources/workflows/client/Client");
61
- const Client_14 = require("./api/resources/workspaceSecrets/client/Client");
55
+ const Client_8 = require("./api/resources/mlModels/client/Client");
56
+ const Client_9 = require("./api/resources/sandboxes/client/Client");
57
+ const Client_10 = require("./api/resources/testSuiteRuns/client/Client");
58
+ const Client_11 = require("./api/resources/testSuites/client/Client");
59
+ const Client_12 = require("./api/resources/workflowDeployments/client/Client");
60
+ const Client_13 = require("./api/resources/workflowSandboxes/client/Client");
61
+ const Client_14 = require("./api/resources/workflows/client/Client");
62
+ const Client_15 = require("./api/resources/workspaceSecrets/client/Client");
62
63
  class VellumClient {
63
64
  constructor(_options = {}) {
64
65
  this._options = _options;
@@ -94,7 +95,7 @@ class VellumClient {
94
95
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
95
96
  .default, "v1/execute-code"),
96
97
  method: "POST",
97
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
98
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
98
99
  contentType: "application/json",
99
100
  requestType: "json",
100
101
  body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -163,7 +164,7 @@ class VellumClient {
163
164
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
164
165
  .predict, "v1/execute-prompt"),
165
166
  method: "POST",
166
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
168
  contentType: "application/json",
168
169
  requestType: "json",
169
170
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -221,7 +222,7 @@ class VellumClient {
221
222
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
222
223
  .predict, "v1/execute-prompt-stream"),
223
224
  method: "POST",
224
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
226
  contentType: "application/json",
226
227
  requestType: "json",
227
228
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -306,7 +307,7 @@ class VellumClient {
306
307
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
307
308
  .predict, "v1/execute-workflow"),
308
309
  method: "POST",
309
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
310
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
310
311
  contentType: "application/json",
311
312
  requestType: "json",
312
313
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -362,7 +363,7 @@ class VellumClient {
362
363
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
363
364
  .predict, "v1/execute-workflow-stream"),
364
365
  method: "POST",
365
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
366
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
366
367
  contentType: "application/json",
367
368
  requestType: "json",
368
369
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -449,7 +450,7 @@ class VellumClient {
449
450
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
450
451
  .predict, "v1/generate"),
451
452
  method: "POST",
452
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
453
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
453
454
  contentType: "application/json",
454
455
  requestType: "json",
455
456
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -510,7 +511,7 @@ class VellumClient {
510
511
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
511
512
  .predict, "v1/generate-stream"),
512
513
  method: "POST",
513
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
514
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
514
515
  contentType: "application/json",
515
516
  requestType: "json",
516
517
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -591,7 +592,7 @@ class VellumClient {
591
592
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
592
593
  .predict, "v1/search"),
593
594
  method: "POST",
594
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
595
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
595
596
  contentType: "application/json",
596
597
  requestType: "json",
597
598
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -659,7 +660,7 @@ class VellumClient {
659
660
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
660
661
  .predict, "v1/submit-completion-actuals"),
661
662
  method: "POST",
662
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
663
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
663
664
  contentType: "application/json",
664
665
  requestType: "json",
665
666
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -722,7 +723,7 @@ class VellumClient {
722
723
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
723
724
  .predict, "v1/submit-workflow-execution-actuals"),
724
725
  method: "POST",
725
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
726
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
726
727
  contentType: "application/json",
727
728
  requestType: "json",
728
729
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -784,33 +785,37 @@ class VellumClient {
784
785
  var _a;
785
786
  return ((_a = this._metricDefinitions) !== null && _a !== void 0 ? _a : (this._metricDefinitions = new Client_7.MetricDefinitions(this._options)));
786
787
  }
788
+ get mlModels() {
789
+ var _a;
790
+ return ((_a = this._mlModels) !== null && _a !== void 0 ? _a : (this._mlModels = new Client_8.MlModels(this._options)));
791
+ }
787
792
  get sandboxes() {
788
793
  var _a;
789
- return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_8.Sandboxes(this._options)));
794
+ return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_9.Sandboxes(this._options)));
790
795
  }
791
796
  get testSuiteRuns() {
792
797
  var _a;
793
- return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_9.TestSuiteRuns(this._options)));
798
+ return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_10.TestSuiteRuns(this._options)));
794
799
  }
795
800
  get testSuites() {
796
801
  var _a;
797
- return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_10.TestSuites(this._options)));
802
+ return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_11.TestSuites(this._options)));
798
803
  }
799
804
  get workflowDeployments() {
800
805
  var _a;
801
- return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_11.WorkflowDeployments(this._options)));
806
+ return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_12.WorkflowDeployments(this._options)));
802
807
  }
803
808
  get workflowSandboxes() {
804
809
  var _a;
805
- return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_12.WorkflowSandboxes(this._options)));
810
+ return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_13.WorkflowSandboxes(this._options)));
806
811
  }
807
812
  get workflows() {
808
813
  var _a;
809
- return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_13.Workflows(this._options)));
814
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_14.Workflows(this._options)));
810
815
  }
811
816
  get workspaceSecrets() {
812
817
  var _a;
813
- return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_14.WorkspaceSecrets(this._options)));
818
+ return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_15.WorkspaceSecrets(this._options)));
814
819
  }
815
820
  _getCustomAuthorizationHeaders() {
816
821
  return __awaiter(this, void 0, void 0, function* () {
@@ -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.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "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.AdHocExecutePromptStream.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.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "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.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "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.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "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.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "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" }),
@@ -41,6 +41,17 @@ export declare class Deployments {
41
41
  * await client.deployments.retrieve("id")
42
42
  */
43
43
  retrieve(id: string, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentRead>;
44
+ /**
45
+ * Retrieve a specific Deployment History Item by either its UUID or the name of a Release Tag that points to it.
46
+ *
47
+ * @param {string} historyIdOrReleaseTag - Either the UUID of Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Deployment History Item you'd like to retrieve.
48
+ * @param {string} id - A UUID string identifying this deployment.
49
+ * @param {Deployments.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @example
52
+ * await client.deployments.deploymentHistoryItemRetrieve("history_id_or_release_tag", "id")
53
+ */
54
+ deploymentHistoryItemRetrieve(historyIdOrReleaseTag: string, id: string, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentHistoryItem>;
44
55
  /**
45
56
  * List Release Tags associated with the specified Prompt Deployment
46
57
  *
@@ -79,7 +79,7 @@ class Deployments {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/deployments"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Deployments {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/deployments/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -168,6 +168,59 @@ class Deployments {
168
168
  }
169
169
  });
170
170
  }
171
+ /**
172
+ * Retrieve a specific Deployment History Item by either its UUID or the name of a Release Tag that points to it.
173
+ *
174
+ * @param {string} historyIdOrReleaseTag - Either the UUID of Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Deployment History Item you'd like to retrieve.
175
+ * @param {string} id - A UUID string identifying this deployment.
176
+ * @param {Deployments.RequestOptions} requestOptions - Request-specific configuration.
177
+ *
178
+ * @example
179
+ * await client.deployments.deploymentHistoryItemRetrieve("history_id_or_release_tag", "id")
180
+ */
181
+ deploymentHistoryItemRetrieve(historyIdOrReleaseTag, id, requestOptions) {
182
+ var _a;
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ const _response = yield core.fetcher({
185
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
186
+ .default, `v1/deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
187
+ method: "GET",
188
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
189
+ contentType: "application/json",
190
+ requestType: "json",
191
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
192
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
193
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
194
+ });
195
+ if (_response.ok) {
196
+ return serializers.DeploymentHistoryItem.parseOrThrow(_response.body, {
197
+ unrecognizedObjectKeys: "passthrough",
198
+ allowUnrecognizedUnionMembers: true,
199
+ allowUnrecognizedEnumValues: true,
200
+ breadcrumbsPrefix: ["response"],
201
+ });
202
+ }
203
+ if (_response.error.reason === "status-code") {
204
+ throw new errors.VellumError({
205
+ statusCode: _response.error.statusCode,
206
+ body: _response.error.body,
207
+ });
208
+ }
209
+ switch (_response.error.reason) {
210
+ case "non-json":
211
+ throw new errors.VellumError({
212
+ statusCode: _response.error.statusCode,
213
+ body: _response.error.rawBody,
214
+ });
215
+ case "timeout":
216
+ throw new errors.VellumTimeoutError();
217
+ case "unknown":
218
+ throw new errors.VellumError({
219
+ message: _response.error.errorMessage,
220
+ });
221
+ }
222
+ });
223
+ }
171
224
  /**
172
225
  * List Release Tags associated with the specified Prompt Deployment
173
226
  *
@@ -199,7 +252,7 @@ class Deployments {
199
252
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
200
253
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
201
254
  method: "GET",
202
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
203
256
  contentType: "application/json",
204
257
  queryParameters: _queryParams,
205
258
  requestType: "json",
@@ -253,7 +306,7 @@ class Deployments {
253
306
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
254
307
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
255
308
  method: "GET",
256
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
257
310
  contentType: "application/json",
258
311
  requestType: "json",
259
312
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -307,7 +360,7 @@ class Deployments {
307
360
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
308
361
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
309
362
  method: "PATCH",
310
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
311
364
  contentType: "application/json",
312
365
  requestType: "json",
313
366
  body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -382,7 +435,7 @@ class Deployments {
382
435
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
383
436
  .default, "v1/deployments/provider-payload"),
384
437
  method: "POST",
385
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
438
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
386
439
  contentType: "application/json",
387
440
  requestType: "json",
388
441
  body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {