vellum-ai 0.14.6 → 0.14.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +12 -12
  3. package/api/resources/adHoc/client/Client.d.ts +3 -3
  4. package/api/resources/adHoc/client/Client.js +2 -2
  5. package/api/resources/containerImages/client/Client.d.ts +3 -3
  6. package/api/resources/containerImages/client/Client.js +5 -5
  7. package/api/resources/deployments/client/Client.d.ts +3 -3
  8. package/api/resources/deployments/client/Client.js +8 -8
  9. package/api/resources/documentIndexes/client/Client.d.ts +3 -3
  10. package/api/resources/documentIndexes/client/Client.js +9 -9
  11. package/api/resources/documents/client/Client.d.ts +3 -3
  12. package/api/resources/documents/client/Client.js +6 -6
  13. package/api/resources/folderEntities/client/Client.d.ts +3 -3
  14. package/api/resources/folderEntities/client/Client.js +3 -3
  15. package/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  16. package/api/resources/metricDefinitions/client/Client.js +3 -3
  17. package/api/resources/mlModels/client/Client.d.ts +3 -3
  18. package/api/resources/mlModels/client/Client.js +2 -2
  19. package/api/resources/organizations/client/Client.d.ts +3 -3
  20. package/api/resources/organizations/client/Client.js +2 -2
  21. package/api/resources/sandboxes/client/Client.d.ts +3 -3
  22. package/api/resources/sandboxes/client/Client.js +4 -4
  23. package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  24. package/api/resources/testSuiteRuns/client/Client.js +4 -4
  25. package/api/resources/testSuites/client/Client.d.ts +3 -3
  26. package/api/resources/testSuites/client/Client.js +5 -5
  27. package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  28. package/api/resources/workflowDeployments/client/Client.js +7 -7
  29. package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  30. package/api/resources/workflowSandboxes/client/Client.js +3 -3
  31. package/api/resources/workflows/client/Client.d.ts +3 -3
  32. package/api/resources/workflows/client/Client.js +3 -3
  33. package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  34. package/api/resources/workspaceSecrets/client/Client.js +3 -3
  35. package/api/resources/workspaces/client/Client.d.ts +3 -3
  36. package/api/resources/workspaces/client/Client.js +2 -2
  37. package/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  38. package/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  39. package/api/types/ChatMessageContent.d.ts +1 -1
  40. package/api/types/ChatMessageContentRequest.d.ts +1 -1
  41. package/api/types/DocumentChatMessageContent.d.ts +11 -0
  42. package/api/types/DocumentChatMessageContent.js +5 -0
  43. package/api/types/DocumentChatMessageContentRequest.d.ts +11 -0
  44. package/api/types/DocumentChatMessageContentRequest.js +5 -0
  45. package/api/types/DocumentPromptBlock.d.ts +14 -0
  46. package/api/types/DocumentPromptBlock.js +5 -0
  47. package/api/types/DocumentVellumValue.d.ts +11 -0
  48. package/api/types/DocumentVellumValue.js +5 -0
  49. package/api/types/DocumentVellumValueRequest.d.ts +11 -0
  50. package/api/types/DocumentVellumValueRequest.js +5 -0
  51. package/api/types/PromptBlock.d.ts +1 -1
  52. package/api/types/VellumDocument.d.ts +7 -0
  53. package/api/types/VellumDocument.js +5 -0
  54. package/api/types/VellumDocumentRequest.d.ts +7 -0
  55. package/api/types/VellumDocumentRequest.js +5 -0
  56. package/api/types/VellumValue.d.ts +1 -1
  57. package/api/types/VellumValueRequest.d.ts +1 -1
  58. package/api/types/VellumVariableType.d.ts +3 -1
  59. package/api/types/VellumVariableType.js +1 -0
  60. package/api/types/index.d.ts +7 -0
  61. package/api/types/index.js +7 -0
  62. package/dist/Client.d.ts +3 -3
  63. package/dist/Client.js +12 -12
  64. package/dist/api/resources/adHoc/client/Client.d.ts +3 -3
  65. package/dist/api/resources/adHoc/client/Client.js +2 -2
  66. package/dist/api/resources/containerImages/client/Client.d.ts +3 -3
  67. package/dist/api/resources/containerImages/client/Client.js +5 -5
  68. package/dist/api/resources/deployments/client/Client.d.ts +3 -3
  69. package/dist/api/resources/deployments/client/Client.js +8 -8
  70. package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
  71. package/dist/api/resources/documentIndexes/client/Client.js +9 -9
  72. package/dist/api/resources/documents/client/Client.d.ts +3 -3
  73. package/dist/api/resources/documents/client/Client.js +6 -6
  74. package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
  75. package/dist/api/resources/folderEntities/client/Client.js +3 -3
  76. package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  77. package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
  78. package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
  79. package/dist/api/resources/mlModels/client/Client.js +2 -2
  80. package/dist/api/resources/organizations/client/Client.d.ts +3 -3
  81. package/dist/api/resources/organizations/client/Client.js +2 -2
  82. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
  83. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  84. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  85. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  86. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  87. package/dist/api/resources/testSuites/client/Client.js +5 -5
  88. package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  89. package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
  90. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  91. package/dist/api/resources/workflowSandboxes/client/Client.js +3 -3
  92. package/dist/api/resources/workflows/client/Client.d.ts +3 -3
  93. package/dist/api/resources/workflows/client/Client.js +3 -3
  94. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  95. package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
  96. package/dist/api/resources/workspaces/client/Client.d.ts +3 -3
  97. package/dist/api/resources/workspaces/client/Client.js +2 -2
  98. package/dist/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  99. package/dist/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  100. package/dist/api/types/ChatMessageContent.d.ts +1 -1
  101. package/dist/api/types/ChatMessageContentRequest.d.ts +1 -1
  102. package/dist/api/types/DocumentChatMessageContent.d.ts +11 -0
  103. package/dist/api/types/DocumentChatMessageContent.js +5 -0
  104. package/dist/api/types/DocumentChatMessageContentRequest.d.ts +11 -0
  105. package/dist/api/types/DocumentChatMessageContentRequest.js +5 -0
  106. package/dist/api/types/DocumentPromptBlock.d.ts +14 -0
  107. package/dist/api/types/DocumentPromptBlock.js +5 -0
  108. package/dist/api/types/DocumentVellumValue.d.ts +11 -0
  109. package/dist/api/types/DocumentVellumValue.js +5 -0
  110. package/dist/api/types/DocumentVellumValueRequest.d.ts +11 -0
  111. package/dist/api/types/DocumentVellumValueRequest.js +5 -0
  112. package/dist/api/types/PromptBlock.d.ts +1 -1
  113. package/dist/api/types/VellumDocument.d.ts +7 -0
  114. package/dist/api/types/VellumDocument.js +5 -0
  115. package/dist/api/types/VellumDocumentRequest.d.ts +7 -0
  116. package/dist/api/types/VellumDocumentRequest.js +5 -0
  117. package/dist/api/types/VellumValue.d.ts +1 -1
  118. package/dist/api/types/VellumValueRequest.d.ts +1 -1
  119. package/dist/api/types/VellumVariableType.d.ts +3 -1
  120. package/dist/api/types/VellumVariableType.js +1 -0
  121. package/dist/api/types/index.d.ts +7 -0
  122. package/dist/api/types/index.js +7 -0
  123. package/dist/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
  124. package/dist/serialization/types/ArrayChatMessageContentItem.js +2 -0
  125. package/dist/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
  126. package/dist/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
  127. package/dist/serialization/types/ChatMessageContent.d.ts +2 -1
  128. package/dist/serialization/types/ChatMessageContent.js +2 -0
  129. package/dist/serialization/types/ChatMessageContentRequest.d.ts +2 -1
  130. package/dist/serialization/types/ChatMessageContentRequest.js +2 -0
  131. package/dist/serialization/types/DocumentChatMessageContent.d.ts +14 -0
  132. package/dist/serialization/types/DocumentChatMessageContent.js +45 -0
  133. package/dist/serialization/types/DocumentChatMessageContentRequest.d.ts +14 -0
  134. package/dist/serialization/types/DocumentChatMessageContentRequest.js +45 -0
  135. package/dist/serialization/types/DocumentPromptBlock.d.ts +18 -0
  136. package/dist/serialization/types/DocumentPromptBlock.js +49 -0
  137. package/dist/serialization/types/DocumentVellumValue.d.ts +14 -0
  138. package/dist/serialization/types/DocumentVellumValue.js +45 -0
  139. package/dist/serialization/types/DocumentVellumValueRequest.d.ts +14 -0
  140. package/dist/serialization/types/DocumentVellumValueRequest.js +45 -0
  141. package/dist/serialization/types/PromptBlock.d.ts +2 -1
  142. package/dist/serialization/types/PromptBlock.js +2 -0
  143. package/dist/serialization/types/VellumDocument.d.ts +13 -0
  144. package/dist/serialization/types/VellumDocument.js +44 -0
  145. package/dist/serialization/types/VellumDocumentRequest.d.ts +13 -0
  146. package/dist/serialization/types/VellumDocumentRequest.js +44 -0
  147. package/dist/serialization/types/VellumValue.d.ts +2 -1
  148. package/dist/serialization/types/VellumValue.js +2 -0
  149. package/dist/serialization/types/VellumValueRequest.d.ts +2 -1
  150. package/dist/serialization/types/VellumValueRequest.js +2 -0
  151. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  152. package/dist/serialization/types/VellumVariableType.js +1 -0
  153. package/dist/serialization/types/index.d.ts +7 -0
  154. package/dist/serialization/types/index.js +7 -0
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +1 -1
  158. package/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
  159. package/serialization/types/ArrayChatMessageContentItem.js +2 -0
  160. package/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
  161. package/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
  162. package/serialization/types/ChatMessageContent.d.ts +2 -1
  163. package/serialization/types/ChatMessageContent.js +2 -0
  164. package/serialization/types/ChatMessageContentRequest.d.ts +2 -1
  165. package/serialization/types/ChatMessageContentRequest.js +2 -0
  166. package/serialization/types/DocumentChatMessageContent.d.ts +14 -0
  167. package/serialization/types/DocumentChatMessageContent.js +45 -0
  168. package/serialization/types/DocumentChatMessageContentRequest.d.ts +14 -0
  169. package/serialization/types/DocumentChatMessageContentRequest.js +45 -0
  170. package/serialization/types/DocumentPromptBlock.d.ts +18 -0
  171. package/serialization/types/DocumentPromptBlock.js +49 -0
  172. package/serialization/types/DocumentVellumValue.d.ts +14 -0
  173. package/serialization/types/DocumentVellumValue.js +45 -0
  174. package/serialization/types/DocumentVellumValueRequest.d.ts +14 -0
  175. package/serialization/types/DocumentVellumValueRequest.js +45 -0
  176. package/serialization/types/PromptBlock.d.ts +2 -1
  177. package/serialization/types/PromptBlock.js +2 -0
  178. package/serialization/types/VellumDocument.d.ts +13 -0
  179. package/serialization/types/VellumDocument.js +44 -0
  180. package/serialization/types/VellumDocumentRequest.d.ts +13 -0
  181. package/serialization/types/VellumDocumentRequest.js +44 -0
  182. package/serialization/types/VellumValue.d.ts +2 -1
  183. package/serialization/types/VellumValue.js +2 -0
  184. package/serialization/types/VellumValueRequest.d.ts +2 -1
  185. package/serialization/types/VellumValueRequest.js +2 -0
  186. package/serialization/types/VellumVariableType.d.ts +1 -1
  187. package/serialization/types/VellumVariableType.js +1 -0
  188. package/serialization/types/index.d.ts +7 -0
  189. package/serialization/types/index.js +7 -0
  190. package/version.d.ts +1 -1
  191. package/version.js +1 -1
@@ -9,7 +9,7 @@ export declare namespace Sandboxes {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace Sandboxes {
24
24
  }
25
25
  export declare class Sandboxes {
26
26
  protected readonly _options: Sandboxes.Options;
27
- constructor(_options?: Sandboxes.Options);
27
+ constructor(_options: Sandboxes.Options);
28
28
  /**
29
29
  * @param {string} id - A UUID string identifying this sandbox.
30
30
  * @param {string} promptVariantId - An ID identifying the Prompt you'd like to deploy.
@@ -91,6 +91,6 @@ export declare class Sandboxes {
91
91
  */
92
92
  deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): Promise<void>;
93
93
  protected _getCustomAuthorizationHeaders(): Promise<{
94
- X_API_KEY: string | undefined;
94
+ X_API_KEY: string;
95
95
  }>;
96
96
  }
@@ -55,7 +55,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
55
55
  const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class Sandboxes {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -74,7 +74,7 @@ class Sandboxes {
74
74
  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)
75
75
  .default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
76
76
  method: "POST",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -161,7 +161,7 @@ class Sandboxes {
161
161
  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)
162
162
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
163
163
  method: "POST",
164
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
164
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
165
165
  contentType: "application/json",
166
166
  requestType: "json",
167
167
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -215,7 +215,7 @@ class Sandboxes {
215
215
  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)
216
216
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
217
217
  method: "DELETE",
218
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
218
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
219
219
  contentType: "application/json",
220
220
  requestType: "json",
221
221
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -9,7 +9,7 @@ export declare namespace TestSuiteRuns {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace TestSuiteRuns {
24
24
  }
25
25
  export declare class TestSuiteRuns {
26
26
  protected readonly _options: TestSuiteRuns.Options;
27
- constructor(_options?: TestSuiteRuns.Options);
27
+ constructor(_options: TestSuiteRuns.Options);
28
28
  /**
29
29
  * Trigger a Test Suite and create a new Test Suite Run
30
30
  *
@@ -62,6 +62,6 @@ export declare class TestSuiteRuns {
62
62
  */
63
63
  listExecutions(id: string, request?: Vellum.TestSuiteRunsListExecutionsRequest, requestOptions?: TestSuiteRuns.RequestOptions): Promise<Vellum.PaginatedTestSuiteRunExecutionList>;
64
64
  protected _getCustomAuthorizationHeaders(): Promise<{
65
- X_API_KEY: string | undefined;
65
+ X_API_KEY: string;
66
66
  }>;
67
67
  }
@@ -55,7 +55,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
55
55
  const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class TestSuiteRuns {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -81,7 +81,7 @@ class TestSuiteRuns {
81
81
  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)
82
82
  .default, "v1/test-suite-runs"),
83
83
  method: "POST",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
84
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -134,7 +134,7 @@ class TestSuiteRuns {
134
134
  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)
135
135
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
136
136
  method: "GET",
137
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
137
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
138
138
  contentType: "application/json",
139
139
  requestType: "json",
140
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -201,7 +201,7 @@ class TestSuiteRuns {
201
201
  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)
202
202
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
203
203
  method: "GET",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
205
205
  contentType: "application/json",
206
206
  queryParameters: _queryParams,
207
207
  requestType: "json",
@@ -9,7 +9,7 @@ export declare namespace TestSuites {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace TestSuites {
24
24
  }
25
25
  export declare class TestSuites {
26
26
  protected readonly _options: TestSuites.Options;
27
- constructor(_options?: TestSuites.Options);
27
+ constructor(_options: TestSuites.Options);
28
28
  /**
29
29
  * List the Test Cases associated with a Test Suite
30
30
  *
@@ -90,6 +90,6 @@ export declare class TestSuites {
90
90
  */
91
91
  deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
92
92
  protected _getCustomAuthorizationHeaders(): Promise<{
93
- X_API_KEY: string | undefined;
93
+ X_API_KEY: string;
94
94
  }>;
95
95
  }
@@ -55,7 +55,7 @@ const url_join_1 = __importDefault(require("url-join"));
55
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class TestSuites {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -83,7 +83,7 @@ class TestSuites {
83
83
  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)
84
84
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
85
85
  method: "GET",
86
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
86
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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
87
  contentType: "application/json",
88
88
  queryParameters: _queryParams,
89
89
  requestType: "json",
@@ -164,7 +164,7 @@ class TestSuites {
164
164
  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)
165
165
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
166
166
  method: "POST",
167
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
167
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -211,7 +211,7 @@ class TestSuites {
211
211
  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)
212
212
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
213
213
  method: "POST",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
215
215
  contentType: "application/x-ndjson",
216
216
  requestType: "json",
217
217
  body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
@@ -278,7 +278,7 @@ class TestSuites {
278
278
  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)
279
279
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
280
280
  method: "DELETE",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
281
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
282
282
  contentType: "application/json",
283
283
  requestType: "json",
284
284
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -9,7 +9,7 @@ export declare namespace WorkflowDeployments {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace WorkflowDeployments {
24
24
  }
25
25
  export declare class WorkflowDeployments {
26
26
  protected readonly _options: WorkflowDeployments.Options;
27
- constructor(_options?: WorkflowDeployments.Options);
27
+ constructor(_options: WorkflowDeployments.Options);
28
28
  /**
29
29
  * Used to list all Workflow Deployments.
30
30
  *
@@ -91,6 +91,6 @@ export declare class WorkflowDeployments {
91
91
  */
92
92
  updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
93
93
  protected _getCustomAuthorizationHeaders(): Promise<{
94
- X_API_KEY: string | undefined;
94
+ X_API_KEY: string;
95
95
  }>;
96
96
  }
@@ -55,7 +55,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
55
55
  const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class WorkflowDeployments {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -90,7 +90,7 @@ class WorkflowDeployments {
90
90
  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)
91
91
  .default, "v1/workflow-deployments"),
92
92
  method: "GET",
93
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
93
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -143,7 +143,7 @@ class WorkflowDeployments {
143
143
  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)
144
144
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
145
145
  method: "GET",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -196,7 +196,7 @@ class WorkflowDeployments {
196
196
  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)
197
197
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
198
198
  method: "GET",
199
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
199
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -265,7 +265,7 @@ class WorkflowDeployments {
265
265
  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)
266
266
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
267
267
  method: "GET",
268
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
268
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
269
269
  contentType: "application/json",
270
270
  queryParameters: _queryParams,
271
271
  requestType: "json",
@@ -319,7 +319,7 @@ class WorkflowDeployments {
319
319
  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)
320
320
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
321
321
  method: "GET",
322
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
322
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
323
323
  contentType: "application/json",
324
324
  requestType: "json",
325
325
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -373,7 +373,7 @@ class WorkflowDeployments {
373
373
  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)
374
374
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
375
375
  method: "PATCH",
376
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
376
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
377
377
  contentType: "application/json",
378
378
  requestType: "json",
379
379
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -9,7 +9,7 @@ export declare namespace WorkflowSandboxes {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace WorkflowSandboxes {
24
24
  }
25
25
  export declare class WorkflowSandboxes {
26
26
  protected readonly _options: WorkflowSandboxes.Options;
27
- constructor(_options?: WorkflowSandboxes.Options);
27
+ constructor(_options: WorkflowSandboxes.Options);
28
28
  /**
29
29
  * @param {string} id - A UUID string identifying this workflow sandbox.
30
30
  * @param {string} workflowId - An ID identifying the Workflow you'd like to deploy.
@@ -46,6 +46,6 @@ export declare class WorkflowSandboxes {
46
46
  */
47
47
  listWorkflowSandboxExamples(request?: Vellum.ListWorkflowSandboxExamplesRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.PaginatedWorkflowSandboxExampleList>;
48
48
  protected _getCustomAuthorizationHeaders(): Promise<{
49
- X_API_KEY: string | undefined;
49
+ X_API_KEY: string;
50
50
  }>;
51
51
  }
@@ -55,7 +55,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
55
55
  const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class WorkflowSandboxes {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -74,7 +74,7 @@ class WorkflowSandboxes {
74
74
  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)
75
75
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
76
76
  method: "POST",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -143,7 +143,7 @@ class WorkflowSandboxes {
143
143
  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)
144
144
  .default, "v1/workflow-sandboxes/examples"),
145
145
  method: "GET",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
147
147
  contentType: "application/json",
148
148
  queryParameters: _queryParams,
149
149
  requestType: "json",
@@ -12,7 +12,7 @@ export declare namespace Workflows {
12
12
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
13
13
  /** Specify a custom URL to connect the client to. */
14
14
  baseUrl?: core.Supplier<string>;
15
- apiKey?: core.Supplier<string | undefined>;
15
+ apiKey: core.Supplier<string>;
16
16
  }
17
17
  interface RequestOptions {
18
18
  /** The maximum time to wait for a response in seconds. */
@@ -27,7 +27,7 @@ export declare namespace Workflows {
27
27
  }
28
28
  export declare class Workflows {
29
29
  protected readonly _options: Workflows.Options;
30
- constructor(_options?: Workflows.Options);
30
+ constructor(_options: Workflows.Options);
31
31
  /**
32
32
  * @throws {@link Vellum.BadRequestError}
33
33
  */
@@ -44,6 +44,6 @@ export declare class Workflows {
44
44
  */
45
45
  push(artifact: File | fs.ReadStream | Blob | undefined, request: Vellum.WorkflowPushRequest, requestOptions?: Workflows.RequestOptions): Promise<Vellum.WorkflowPushResponse>;
46
46
  protected _getCustomAuthorizationHeaders(): Promise<{
47
- X_API_KEY: string | undefined;
47
+ X_API_KEY: string;
48
48
  }>;
49
49
  }
@@ -57,7 +57,7 @@ const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  const json_1 = require("../../../../core/json");
59
59
  class Workflows {
60
- constructor(_options = {}) {
60
+ constructor(_options) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -89,7 +89,7 @@ class Workflows {
89
89
  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)
90
90
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
91
91
  method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
92
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -164,7 +164,7 @@ class Workflows {
164
164
  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)
165
165
  .default, "v1/workflows/push"),
166
166
  method: "POST",
167
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  requestType: "file",
169
169
  duplex: _maybeEncodedRequest.duplex,
170
170
  body: _maybeEncodedRequest.body,
@@ -9,7 +9,7 @@ export declare namespace WorkspaceSecrets {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace WorkspaceSecrets {
24
24
  }
25
25
  export declare class WorkspaceSecrets {
26
26
  protected readonly _options: WorkspaceSecrets.Options;
27
- constructor(_options?: WorkspaceSecrets.Options);
27
+ constructor(_options: WorkspaceSecrets.Options);
28
28
  /**
29
29
  * Used to retrieve a Workspace Secret given its ID or name.
30
30
  *
@@ -47,6 +47,6 @@ export declare class WorkspaceSecrets {
47
47
  */
48
48
  partialUpdate(id: string, request?: Vellum.PatchedWorkspaceSecretUpdateRequest, requestOptions?: WorkspaceSecrets.RequestOptions): Promise<Vellum.WorkspaceSecretRead>;
49
49
  protected _getCustomAuthorizationHeaders(): Promise<{
50
- X_API_KEY: string | undefined;
50
+ X_API_KEY: string;
51
51
  }>;
52
52
  }
@@ -55,7 +55,7 @@ const url_join_1 = __importDefault(require("url-join"));
55
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class WorkspaceSecrets {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -74,7 +74,7 @@ class WorkspaceSecrets {
74
74
  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)
75
75
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -127,7 +127,7 @@ class WorkspaceSecrets {
127
127
  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)
128
128
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
129
129
  method: "PATCH",
130
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
130
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
131
131
  contentType: "application/json",
132
132
  requestType: "json",
133
133
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -9,7 +9,7 @@ export declare namespace Workspaces {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace Workspaces {
24
24
  }
25
25
  export declare class Workspaces {
26
26
  protected readonly _options: Workspaces.Options;
27
- constructor(_options?: Workspaces.Options);
27
+ constructor(_options: Workspaces.Options);
28
28
  /**
29
29
  * Retrieves information about the active Workspace
30
30
  *
@@ -35,6 +35,6 @@ export declare class Workspaces {
35
35
  */
36
36
  workspaceIdentity(requestOptions?: Workspaces.RequestOptions): Promise<Vellum.WorkspaceRead>;
37
37
  protected _getCustomAuthorizationHeaders(): Promise<{
38
- X_API_KEY: string | undefined;
38
+ X_API_KEY: string;
39
39
  }>;
40
40
  }
@@ -55,7 +55,7 @@ const url_join_1 = __importDefault(require("url-join"));
55
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class Workspaces {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -73,7 +73,7 @@ class Workspaces {
73
73
  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)
74
74
  .default, "v1/workspaces/identity"),
75
75
  method: "GET",
76
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "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),
76
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.8", "User-Agent": "vellum-ai/0.14.8", "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),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type ArrayChatMessageContentItem = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent;
5
+ export type ArrayChatMessageContentItem = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent | Vellum.DocumentChatMessageContent;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type ArrayChatMessageContentItemRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest;
5
+ export type ArrayChatMessageContentItemRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest | Vellum.DocumentChatMessageContentRequest;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type ChatMessageContent = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ArrayChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent;
5
+ export type ChatMessageContent = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ArrayChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent | Vellum.DocumentChatMessageContent;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type ChatMessageContentRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ArrayChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest;
5
+ export type ChatMessageContentRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ArrayChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest | Vellum.DocumentChatMessageContentRequest;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A document value that is used in a chat message.
7
+ */
8
+ export interface DocumentChatMessageContent {
9
+ type: "DOCUMENT";
10
+ value: Vellum.VellumDocument;
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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A document value that is used in a chat message.
7
+ */
8
+ export interface DocumentChatMessageContentRequest {
9
+ type: "DOCUMENT";
10
+ value: Vellum.VellumDocumentRequest;
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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A block that represents a document in a prompt template.
7
+ */
8
+ export interface DocumentPromptBlock {
9
+ blockType: "DOCUMENT";
10
+ state?: Vellum.PromptBlockState;
11
+ cacheConfig?: Vellum.EphemeralPromptCacheConfig;
12
+ src: string;
13
+ metadata?: Record<string, unknown>;
14
+ }