vellum-ai 0.14.87 → 0.14.89

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 (130) hide show
  1. package/Client.d.ts +37 -8
  2. package/Client.js +88 -19
  3. package/api/client/requests/CodeExecutor.d.ts +9 -2
  4. package/api/client/requests/ExecuteApiRequest.d.ts +1 -1
  5. package/api/client/requests/ExecutePromptRequest.d.ts +5 -1
  6. package/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
  7. package/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
  8. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
  9. package/api/client/requests/GenerateBodyRequest.d.ts +9 -1
  10. package/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
  11. package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  12. package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  13. package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
  14. package/api/resources/adHoc/client/Client.d.ts +18 -3
  15. package/api/resources/adHoc/client/Client.js +24 -5
  16. package/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
  17. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
  18. package/api/resources/containerImages/client/Client.d.ts +7 -3
  19. package/api/resources/containerImages/client/Client.js +24 -8
  20. package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
  21. package/api/resources/deployments/client/Client.d.ts +9 -1
  22. package/api/resources/deployments/client/Client.js +45 -9
  23. package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
  24. package/api/resources/documentIndexes/client/Client.d.ts +9 -58
  25. package/api/resources/documentIndexes/client/Client.js +45 -66
  26. package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
  27. package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
  28. package/api/resources/documents/client/Client.d.ts +4 -5
  29. package/api/resources/documents/client/Client.js +26 -11
  30. package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
  31. package/api/resources/folderEntities/client/Client.d.ts +4 -0
  32. package/api/resources/folderEntities/client/Client.js +10 -2
  33. package/api/resources/metricDefinitions/client/Client.d.ts +9 -1
  34. package/api/resources/metricDefinitions/client/Client.js +15 -3
  35. package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
  36. package/api/resources/mlModels/client/Client.d.ts +4 -0
  37. package/api/resources/mlModels/client/Client.js +6 -2
  38. package/api/resources/organizations/client/Client.d.ts +4 -0
  39. package/api/resources/organizations/client/Client.js +6 -2
  40. package/api/resources/prompts/client/Client.d.ts +12 -1
  41. package/api/resources/prompts/client/Client.js +19 -4
  42. package/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
  43. package/api/resources/releaseReviews/client/Client.d.ts +4 -0
  44. package/api/resources/releaseReviews/client/Client.js +6 -2
  45. package/api/resources/sandboxes/client/Client.d.ts +6 -21
  46. package/api/resources/sandboxes/client/Client.js +17 -24
  47. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
  48. package/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
  49. package/api/resources/testSuiteRuns/client/Client.js +15 -3
  50. package/api/resources/testSuites/client/Client.d.ts +13 -15
  51. package/api/resources/testSuites/client/Client.js +30 -20
  52. package/api/resources/workflowDeployments/client/Client.d.ts +4 -0
  53. package/api/resources/workflowDeployments/client/Client.js +40 -8
  54. package/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
  55. package/api/resources/workflowSandboxes/client/Client.js +10 -2
  56. package/api/resources/workflows/client/Client.d.ts +4 -5
  57. package/api/resources/workflows/client/Client.js +11 -8
  58. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
  59. package/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
  60. package/api/resources/workspaceSecrets/client/Client.js +11 -3
  61. package/api/resources/workspaces/client/Client.d.ts +4 -0
  62. package/api/resources/workspaces/client/Client.js +6 -2
  63. package/dist/Client.d.ts +37 -8
  64. package/dist/Client.js +88 -19
  65. package/dist/api/client/requests/CodeExecutor.d.ts +9 -2
  66. package/dist/api/client/requests/ExecuteApiRequest.d.ts +1 -1
  67. package/dist/api/client/requests/ExecutePromptRequest.d.ts +5 -1
  68. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
  69. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
  70. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
  71. package/dist/api/client/requests/GenerateBodyRequest.d.ts +9 -1
  72. package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
  73. package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  74. package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  75. package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
  76. package/dist/api/resources/adHoc/client/Client.d.ts +18 -3
  77. package/dist/api/resources/adHoc/client/Client.js +24 -5
  78. package/dist/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
  79. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
  80. package/dist/api/resources/containerImages/client/Client.d.ts +7 -3
  81. package/dist/api/resources/containerImages/client/Client.js +24 -8
  82. package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
  83. package/dist/api/resources/deployments/client/Client.d.ts +9 -1
  84. package/dist/api/resources/deployments/client/Client.js +45 -9
  85. package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
  86. package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -58
  87. package/dist/api/resources/documentIndexes/client/Client.js +45 -66
  88. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
  89. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
  90. package/dist/api/resources/documents/client/Client.d.ts +4 -5
  91. package/dist/api/resources/documents/client/Client.js +26 -11
  92. package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
  93. package/dist/api/resources/folderEntities/client/Client.d.ts +4 -0
  94. package/dist/api/resources/folderEntities/client/Client.js +10 -2
  95. package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -1
  96. package/dist/api/resources/metricDefinitions/client/Client.js +15 -3
  97. package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
  98. package/dist/api/resources/mlModels/client/Client.d.ts +4 -0
  99. package/dist/api/resources/mlModels/client/Client.js +6 -2
  100. package/dist/api/resources/organizations/client/Client.d.ts +4 -0
  101. package/dist/api/resources/organizations/client/Client.js +6 -2
  102. package/dist/api/resources/prompts/client/Client.d.ts +12 -1
  103. package/dist/api/resources/prompts/client/Client.js +19 -4
  104. package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
  105. package/dist/api/resources/releaseReviews/client/Client.d.ts +4 -0
  106. package/dist/api/resources/releaseReviews/client/Client.js +6 -2
  107. package/dist/api/resources/sandboxes/client/Client.d.ts +6 -21
  108. package/dist/api/resources/sandboxes/client/Client.js +17 -24
  109. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
  110. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
  111. package/dist/api/resources/testSuiteRuns/client/Client.js +15 -3
  112. package/dist/api/resources/testSuites/client/Client.d.ts +13 -15
  113. package/dist/api/resources/testSuites/client/Client.js +30 -20
  114. package/dist/api/resources/workflowDeployments/client/Client.d.ts +4 -0
  115. package/dist/api/resources/workflowDeployments/client/Client.js +40 -8
  116. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
  117. package/dist/api/resources/workflowSandboxes/client/Client.js +10 -2
  118. package/dist/api/resources/workflows/client/Client.d.ts +4 -5
  119. package/dist/api/resources/workflows/client/Client.js +11 -8
  120. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
  121. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
  122. package/dist/api/resources/workspaceSecrets/client/Client.js +11 -3
  123. package/dist/api/resources/workspaces/client/Client.d.ts +4 -0
  124. package/dist/api/resources/workspaces/client/Client.js +6 -2
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +116 -187
  129. package/version.d.ts +1 -1
  130. package/version.js +1 -1
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.Organizations = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
54
  const serializers = __importStar(require("../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class Organizations {
58
58
  constructor(_options) {
@@ -76,7 +76,11 @@ class Organizations {
76
76
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
77
77
  .default, "v1/organizations/identity"),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
80
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
81
+ unrecognizedObjectKeys: "strip",
82
+ })
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
84
  contentType: "application/json",
81
85
  requestType: "json",
82
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -10,6 +10,8 @@ export declare namespace Prompts {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace Prompts {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -54,7 +58,11 @@ export declare class Prompts {
54
58
  * execConfig: {
55
59
  * mlModel: "ml_model",
56
60
  * inputVariables: [{
57
- * id: "id",
61
+ * id: "x",
62
+ * key: "key",
63
+ * type: "STRING"
64
+ * }, {
65
+ * id: "x",
58
66
  * key: "key",
59
67
  * type: "STRING"
60
68
  * }],
@@ -62,6 +70,9 @@ export declare class Prompts {
62
70
  * blocks: [{
63
71
  * blockType: "JINJA",
64
72
  * template: "template"
73
+ * }, {
74
+ * blockType: "JINJA",
75
+ * template: "template"
65
76
  * }]
66
77
  * }
67
78
  * })
@@ -52,8 +52,8 @@ exports.Prompts = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
54
  const Vellum = __importStar(require("../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  class Prompts {
59
59
  constructor(_options) {
@@ -87,7 +87,11 @@ class Prompts {
87
87
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
88
88
  .default, `v1/prompts/${encodeURIComponent(id)}/pull`),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accept: "application/json" }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
91
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
92
+ unrecognizedObjectKeys: "strip",
93
+ })
94
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accept: "application/json" }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
95
  contentType: "application/json",
92
96
  queryParameters: _queryParams,
93
97
  requestType: "json",
@@ -151,7 +155,11 @@ class Prompts {
151
155
  * execConfig: {
152
156
  * mlModel: "ml_model",
153
157
  * inputVariables: [{
154
- * id: "id",
158
+ * id: "x",
159
+ * key: "key",
160
+ * type: "STRING"
161
+ * }, {
162
+ * id: "x",
155
163
  * key: "key",
156
164
  * type: "STRING"
157
165
  * }],
@@ -159,6 +167,9 @@ class Prompts {
159
167
  * blocks: [{
160
168
  * blockType: "JINJA",
161
169
  * template: "template"
170
+ * }, {
171
+ * blockType: "JINJA",
172
+ * template: "template"
162
173
  * }]
163
174
  * }
164
175
  * })
@@ -173,7 +184,11 @@ class Prompts {
173
184
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
174
185
  .default, "v1/prompts/push"),
175
186
  method: "POST",
176
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
188
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
189
+ unrecognizedObjectKeys: "strip",
190
+ })
191
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
192
  contentType: "application/json",
178
193
  requestType: "json",
179
194
  body: serializers.PromptPush.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -8,7 +8,11 @@ import * as Vellum from "../../../../index";
8
8
  * execConfig: {
9
9
  * mlModel: "ml_model",
10
10
  * inputVariables: [{
11
- * id: "id",
11
+ * id: "x",
12
+ * key: "key",
13
+ * type: "STRING"
14
+ * }, {
15
+ * id: "x",
12
16
  * key: "key",
13
17
  * type: "STRING"
14
18
  * }],
@@ -16,6 +20,9 @@ import * as Vellum from "../../../../index";
16
20
  * blocks: [{
17
21
  * blockType: "JINJA",
18
22
  * template: "template"
23
+ * }, {
24
+ * blockType: "JINJA",
25
+ * template: "template"
19
26
  * }]
20
27
  * }
21
28
  * }
@@ -10,6 +10,8 @@ export declare namespace ReleaseReviews {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace ReleaseReviews {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.ReleaseReviews = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
54
  const serializers = __importStar(require("../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class ReleaseReviews {
58
58
  constructor(_options) {
@@ -78,7 +78,11 @@ class ReleaseReviews {
78
78
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
79
79
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/releases/${encodeURIComponent(releaseIdOrReleaseTag)}`),
80
80
  method: "GET",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
82
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
83
+ unrecognizedObjectKeys: "strip",
84
+ })
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
86
  contentType: "application/json",
83
87
  requestType: "json",
84
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -10,6 +10,8 @@ export declare namespace Sandboxes {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace Sandboxes {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -51,31 +55,12 @@ export declare class Sandboxes {
51
55
  *
52
56
  * @example
53
57
  * await client.sandboxes.upsertSandboxScenario("id", {
54
- * label: "Scenario 1",
55
58
  * inputs: [{
56
59
  * type: "STRING",
57
- * value: "Hello, world!",
58
- * name: "var_1"
60
+ * name: "x"
59
61
  * }, {
60
62
  * type: "STRING",
61
- * value: "Why hello, there!",
62
- * name: "var_2"
63
- * }]
64
- * })
65
- *
66
- * @example
67
- * await client.sandboxes.upsertSandboxScenario("id", {
68
- * label: "Scenario 2",
69
- * inputs: [{
70
- * type: "CHAT_HISTORY",
71
- * value: [{
72
- * text: "What's your favorite color?",
73
- * role: "USER"
74
- * }, {
75
- * text: "AI's don't have a favorite color.... Yet.",
76
- * role: "ASSISTANT"
77
- * }],
78
- * name: "chat_history"
63
+ * name: "x"
79
64
  * }]
80
65
  * })
81
66
  */
@@ -77,7 +77,11 @@ class Sandboxes {
77
77
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
78
78
  .default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
79
79
  method: "POST",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
81
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
82
+ unrecognizedObjectKeys: "strip",
83
+ })
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
85
  contentType: "application/json",
82
86
  requestType: "json",
83
87
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -135,31 +139,12 @@ class Sandboxes {
135
139
  *
136
140
  * @example
137
141
  * await client.sandboxes.upsertSandboxScenario("id", {
138
- * label: "Scenario 1",
139
142
  * inputs: [{
140
143
  * type: "STRING",
141
- * value: "Hello, world!",
142
- * name: "var_1"
144
+ * name: "x"
143
145
  * }, {
144
146
  * type: "STRING",
145
- * value: "Why hello, there!",
146
- * name: "var_2"
147
- * }]
148
- * })
149
- *
150
- * @example
151
- * await client.sandboxes.upsertSandboxScenario("id", {
152
- * label: "Scenario 2",
153
- * inputs: [{
154
- * type: "CHAT_HISTORY",
155
- * value: [{
156
- * text: "What's your favorite color?",
157
- * role: "USER"
158
- * }, {
159
- * text: "AI's don't have a favorite color.... Yet.",
160
- * role: "ASSISTANT"
161
- * }],
162
- * name: "chat_history"
147
+ * name: "x"
163
148
  * }]
164
149
  * })
165
150
  */
@@ -173,7 +158,11 @@ class Sandboxes {
173
158
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
174
159
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
175
160
  method: "POST",
176
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
162
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
163
+ unrecognizedObjectKeys: "strip",
164
+ })
165
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
166
  contentType: "application/json",
178
167
  requestType: "json",
179
168
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -236,7 +225,11 @@ class Sandboxes {
236
225
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
237
226
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
238
227
  method: "DELETE",
239
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
229
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
230
+ unrecognizedObjectKeys: "strip",
231
+ })
232
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
233
  contentType: "application/json",
241
234
  requestType: "json",
242
235
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -5,31 +5,12 @@ import * as Vellum from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * label: "Scenario 1",
9
8
  * inputs: [{
10
9
  * type: "STRING",
11
- * value: "Hello, world!",
12
- * name: "var_1"
10
+ * name: "x"
13
11
  * }, {
14
12
  * type: "STRING",
15
- * value: "Why hello, there!",
16
- * name: "var_2"
17
- * }]
18
- * }
19
- *
20
- * @example
21
- * {
22
- * label: "Scenario 2",
23
- * inputs: [{
24
- * type: "CHAT_HISTORY",
25
- * value: [{
26
- * text: "What's your favorite color?",
27
- * role: "USER"
28
- * }, {
29
- * text: "AI's don't have a favorite color.... Yet.",
30
- * role: "ASSISTANT"
31
- * }],
32
- * name: "chat_history"
13
+ * name: "x"
33
14
  * }]
34
15
  * }
35
16
  */
@@ -10,6 +10,8 @@ export declare namespace TestSuiteRuns {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace TestSuiteRuns {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -84,7 +84,11 @@ class TestSuiteRuns {
84
84
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
85
85
  .default, "v1/test-suite-runs"),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
88
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
89
+ unrecognizedObjectKeys: "strip",
90
+ })
91
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
92
  contentType: "application/json",
89
93
  requestType: "json",
90
94
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -146,7 +150,11 @@ class TestSuiteRuns {
146
150
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
147
151
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
148
152
  method: "GET",
149
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
153
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
154
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
155
+ unrecognizedObjectKeys: "strip",
156
+ })
157
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
158
  contentType: "application/json",
151
159
  requestType: "json",
152
160
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -222,7 +230,11 @@ class TestSuiteRuns {
222
230
  url: (0, url_join_1.default)((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.VellumEnvironment.Production)
223
231
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
224
232
  method: "GET",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
233
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
234
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
235
+ unrecognizedObjectKeys: "strip",
236
+ })
237
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
226
238
  contentType: "application/json",
227
239
  queryParameters: _queryParams,
228
240
  requestType: "json",
@@ -10,6 +10,8 @@ export declare namespace TestSuites {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace TestSuites {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -52,25 +56,19 @@ export declare class TestSuites {
52
56
  *
53
57
  * @example
54
58
  * await client.testSuites.upsertTestSuiteTestCase("id", {
55
- * label: "Test Case 1",
56
59
  * inputValues: [{
57
60
  * type: "STRING",
58
- * value: "What are your favorite colors?",
59
- * name: "var_1"
61
+ * name: "x"
62
+ * }, {
63
+ * type: "STRING",
64
+ * name: "x"
60
65
  * }],
61
66
  * evaluationValues: [{
62
- * type: "ARRAY",
63
- * value: [{
64
- * type: "STRING",
65
- * value: "Red"
66
- * }, {
67
- * type: "STRING",
68
- * value: "Green"
69
- * }, {
70
- * type: "STRING",
71
- * value: "Blue"
72
- * }],
73
- * name: "var_2"
67
+ * type: "STRING",
68
+ * name: "x"
69
+ * }, {
70
+ * type: "STRING",
71
+ * name: "x"
74
72
  * }]
75
73
  * })
76
74
  */
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.TestSuites = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
54
  const serializers = __importStar(require("../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class TestSuites {
58
58
  constructor(_options) {
@@ -86,7 +86,11 @@ class TestSuites {
86
86
  url: (0, url_join_1.default)((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.VellumEnvironment.Production)
87
87
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
90
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
91
+ unrecognizedObjectKeys: "strip",
92
+ })
93
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
94
  contentType: "application/json",
91
95
  queryParameters: _queryParams,
92
96
  requestType: "json",
@@ -144,25 +148,19 @@ class TestSuites {
144
148
  *
145
149
  * @example
146
150
  * await client.testSuites.upsertTestSuiteTestCase("id", {
147
- * label: "Test Case 1",
148
151
  * inputValues: [{
149
152
  * type: "STRING",
150
- * value: "What are your favorite colors?",
151
- * name: "var_1"
153
+ * name: "x"
154
+ * }, {
155
+ * type: "STRING",
156
+ * name: "x"
152
157
  * }],
153
158
  * evaluationValues: [{
154
- * type: "ARRAY",
155
- * value: [{
156
- * type: "STRING",
157
- * value: "Red"
158
- * }, {
159
- * type: "STRING",
160
- * value: "Green"
161
- * }, {
162
- * type: "STRING",
163
- * value: "Blue"
164
- * }],
165
- * name: "var_2"
159
+ * type: "STRING",
160
+ * name: "x"
161
+ * }, {
162
+ * type: "STRING",
163
+ * name: "x"
166
164
  * }]
167
165
  * })
168
166
  */
@@ -176,7 +174,11 @@ class TestSuites {
176
174
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
177
175
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
178
176
  method: "POST",
179
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
178
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
179
+ unrecognizedObjectKeys: "strip",
180
+ })
181
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
182
  contentType: "application/json",
181
183
  requestType: "json",
182
184
  body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -232,7 +234,11 @@ class TestSuites {
232
234
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
233
235
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
234
236
  method: "POST",
235
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
237
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
238
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
239
+ unrecognizedObjectKeys: "strip",
240
+ })
241
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
236
242
  contentType: "application/x-ndjson",
237
243
  requestType: "json",
238
244
  body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
@@ -308,7 +314,11 @@ class TestSuites {
308
314
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
309
315
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
310
316
  method: "DELETE",
311
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.87", "User-Agent": "vellum-ai/0.14.87", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
317
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
318
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
319
+ unrecognizedObjectKeys: "strip",
320
+ })
321
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
322
  contentType: "application/json",
313
323
  requestType: "json",
314
324
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -10,6 +10,8 @@ export declare namespace WorkflowDeployments {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace WorkflowDeployments {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }