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 ContainerImages {
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 ContainerImages {
24
24
  }
25
25
  export declare class ContainerImages {
26
26
  protected readonly _options: ContainerImages.Options;
27
- constructor(_options?: ContainerImages.Options);
27
+ constructor(_options: ContainerImages.Options);
28
28
  /**
29
29
  * Retrieve a list of container images for the organization.
30
30
  *
@@ -65,6 +65,6 @@ export declare class ContainerImages {
65
65
  */
66
66
  pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
67
67
  protected _getCustomAuthorizationHeaders(): Promise<{
68
- X_API_KEY: string | undefined;
68
+ X_API_KEY: string;
69
69
  }>;
70
70
  }
@@ -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 ContainerImages {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -85,7 +85,7 @@ class ContainerImages {
85
85
  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)
86
86
  .default, "v1/container-images"),
87
87
  method: "GET",
88
- 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),
88
+ 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),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -138,7 +138,7 @@ class ContainerImages {
138
138
  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)
139
139
  .default, `v1/container-images/${encodeURIComponent(id)}`),
140
140
  method: "GET",
141
- 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),
141
+ 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),
142
142
  contentType: "application/json",
143
143
  requestType: "json",
144
144
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -187,7 +187,7 @@ class ContainerImages {
187
187
  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)
188
188
  .default, "v1/container-images/docker-service-token"),
189
189
  method: "GET",
190
- 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),
190
+ 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),
191
191
  contentType: "application/json",
192
192
  requestType: "json",
193
193
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -241,7 +241,7 @@ class ContainerImages {
241
241
  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)
242
242
  .default, "v1/container-images/push"),
243
243
  method: "POST",
244
- 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),
244
+ 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),
245
245
  contentType: "application/json",
246
246
  requestType: "json",
247
247
  body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -9,7 +9,7 @@ export declare namespace Deployments {
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 Deployments {
24
24
  }
25
25
  export declare class Deployments {
26
26
  protected readonly _options: Deployments.Options;
27
- constructor(_options?: Deployments.Options);
27
+ constructor(_options: Deployments.Options);
28
28
  /**
29
29
  * Used to list all Prompt Deployments.
30
30
  *
@@ -121,6 +121,6 @@ export declare class Deployments {
121
121
  */
122
122
  retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
123
123
  protected _getCustomAuthorizationHeaders(): Promise<{
124
- X_API_KEY: string | undefined;
124
+ X_API_KEY: string;
125
125
  }>;
126
126
  }
@@ -56,7 +56,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  class Deployments {
59
- constructor(_options = {}) {
59
+ constructor(_options) {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
@@ -91,7 +91,7 @@ class Deployments {
91
91
  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)
92
92
  .default, "v1/deployments"),
93
93
  method: "GET",
94
- 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),
94
+ 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),
95
95
  contentType: "application/json",
96
96
  queryParameters: _queryParams,
97
97
  requestType: "json",
@@ -144,7 +144,7 @@ class Deployments {
144
144
  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)
145
145
  .default, `v1/deployments/${encodeURIComponent(id)}`),
146
146
  method: "GET",
147
- 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),
147
+ 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),
148
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -197,7 +197,7 @@ class Deployments {
197
197
  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)
198
198
  .default, `v1/deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
199
199
  method: "GET",
200
- 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),
200
+ 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),
201
201
  contentType: "application/json",
202
202
  requestType: "json",
203
203
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -266,7 +266,7 @@ class Deployments {
266
266
  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)
267
267
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
268
268
  method: "GET",
269
- 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),
269
+ 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),
270
270
  contentType: "application/json",
271
271
  queryParameters: _queryParams,
272
272
  requestType: "json",
@@ -320,7 +320,7 @@ class Deployments {
320
320
  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)
321
321
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
322
322
  method: "GET",
323
- 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),
323
+ 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),
324
324
  contentType: "application/json",
325
325
  requestType: "json",
326
326
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -374,7 +374,7 @@ class Deployments {
374
374
  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)
375
375
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
376
376
  method: "PATCH",
377
- 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),
377
+ 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),
378
378
  contentType: "application/json",
379
379
  requestType: "json",
380
380
  body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -449,7 +449,7 @@ class Deployments {
449
449
  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)
450
450
  .default, "v1/deployments/provider-payload"),
451
451
  method: "POST",
452
- 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),
452
+ 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),
453
453
  contentType: "application/json",
454
454
  requestType: "json",
455
455
  body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -9,7 +9,7 @@ export declare namespace DocumentIndexes {
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 DocumentIndexes {
24
24
  }
25
25
  export declare class DocumentIndexes {
26
26
  protected readonly _options: DocumentIndexes.Options;
27
- constructor(_options?: DocumentIndexes.Options);
27
+ constructor(_options: DocumentIndexes.Options);
28
28
  /**
29
29
  * Used to retrieve a list of Document Indexes.
30
30
  *
@@ -174,6 +174,6 @@ export declare class DocumentIndexes {
174
174
  */
175
175
  removeDocument(documentId: string, id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<void>;
176
176
  protected _getCustomAuthorizationHeaders(): Promise<{
177
- X_API_KEY: string | undefined;
177
+ X_API_KEY: string;
178
178
  }>;
179
179
  }
@@ -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 DocumentIndexes {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -93,7 +93,7 @@ class DocumentIndexes {
93
93
  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)
94
94
  .default, "v1/document-indexes"),
95
95
  method: "GET",
96
- 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),
96
+ 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),
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
99
99
  requestType: "json",
@@ -208,7 +208,7 @@ class DocumentIndexes {
208
208
  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)
209
209
  .default, "v1/document-indexes"),
210
210
  method: "POST",
211
- 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),
211
+ 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),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -261,7 +261,7 @@ class DocumentIndexes {
261
261
  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)
262
262
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
263
263
  method: "GET",
264
- 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),
264
+ 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),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -316,7 +316,7 @@ class DocumentIndexes {
316
316
  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)
317
317
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
318
318
  method: "PUT",
319
- 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),
319
+ 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),
320
320
  contentType: "application/json",
321
321
  requestType: "json",
322
322
  body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -369,7 +369,7 @@ class DocumentIndexes {
369
369
  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)
370
370
  .documents, `v1/document-indexes/${encodeURIComponent(id)}`),
371
371
  method: "DELETE",
372
- 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),
372
+ 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),
373
373
  contentType: "application/json",
374
374
  requestType: "json",
375
375
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -417,7 +417,7 @@ class DocumentIndexes {
417
417
  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)
418
418
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
419
419
  method: "PATCH",
420
- 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),
420
+ 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),
421
421
  contentType: "application/json",
422
422
  requestType: "json",
423
423
  body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
@@ -473,7 +473,7 @@ class DocumentIndexes {
473
473
  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)
474
474
  .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
475
475
  method: "POST",
476
- 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),
476
+ 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),
477
477
  contentType: "application/json",
478
478
  requestType: "json",
479
479
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -521,7 +521,7 @@ class DocumentIndexes {
521
521
  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)
522
522
  .documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
523
523
  method: "DELETE",
524
- 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),
524
+ 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),
525
525
  contentType: "application/json",
526
526
  requestType: "json",
527
527
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -11,7 +11,7 @@ export declare namespace Documents {
11
11
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
12
12
  /** Specify a custom URL to connect the client to. */
13
13
  baseUrl?: core.Supplier<string>;
14
- apiKey?: core.Supplier<string | undefined>;
14
+ apiKey: core.Supplier<string>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -26,7 +26,7 @@ export declare namespace Documents {
26
26
  }
27
27
  export declare class Documents {
28
28
  protected readonly _options: Documents.Options;
29
- constructor(_options?: Documents.Options);
29
+ constructor(_options: Documents.Options);
30
30
  /**
31
31
  * Used to list documents. Optionally filter on supported fields.
32
32
  *
@@ -95,6 +95,6 @@ export declare class Documents {
95
95
  */
96
96
  upload(contents: File | fs.ReadStream | Blob, request: Vellum.UploadDocumentBodyRequest, requestOptions?: Documents.RequestOptions): Promise<Vellum.UploadDocumentResponse>;
97
97
  protected _getCustomAuthorizationHeaders(): Promise<{
98
- X_API_KEY: string | undefined;
98
+ X_API_KEY: string;
99
99
  }>;
100
100
  }
@@ -56,7 +56,7 @@ const url_join_1 = __importDefault(require("url-join"));
56
56
  const serializers = __importStar(require("../../../../serialization/index"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  class Documents {
59
- constructor(_options = {}) {
59
+ constructor(_options) {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
@@ -92,7 +92,7 @@ class Documents {
92
92
  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)
93
93
  .default, "v1/documents"),
94
94
  method: "GET",
95
- 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),
95
+ 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),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -145,7 +145,7 @@ class Documents {
145
145
  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)
146
146
  .default, `v1/documents/${encodeURIComponent(id)}`),
147
147
  method: "GET",
148
- 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),
148
+ 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),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -197,7 +197,7 @@ class Documents {
197
197
  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)
198
198
  .documents, `v1/documents/${encodeURIComponent(id)}`),
199
199
  method: "DELETE",
200
- 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),
200
+ 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),
201
201
  contentType: "application/json",
202
202
  requestType: "json",
203
203
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -245,7 +245,7 @@ class Documents {
245
245
  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)
246
246
  .default, `v1/documents/${encodeURIComponent(id)}`),
247
247
  method: "PATCH",
248
- 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),
248
+ 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),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -334,7 +334,7 @@ class Documents {
334
334
  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)
335
335
  .documents, "v1/upload-document"),
336
336
  method: "POST",
337
- 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),
337
+ 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),
338
338
  requestType: "file",
339
339
  duplex: _maybeEncodedRequest.duplex,
340
340
  body: _maybeEncodedRequest.body,
@@ -9,7 +9,7 @@ export declare namespace FolderEntities {
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 FolderEntities {
24
24
  }
25
25
  export declare class FolderEntities {
26
26
  protected readonly _options: FolderEntities.Options;
27
- constructor(_options?: FolderEntities.Options);
27
+ constructor(_options: FolderEntities.Options);
28
28
  /**
29
29
  * List all folder entities within a specified folder.
30
30
  *
@@ -58,6 +58,6 @@ export declare class FolderEntities {
58
58
  */
59
59
  addEntityToFolder(folderId: string, request: Vellum.AddEntityToFolderRequest, requestOptions?: FolderEntities.RequestOptions): Promise<void>;
60
60
  protected _getCustomAuthorizationHeaders(): Promise<{
61
- X_API_KEY: string | undefined;
61
+ X_API_KEY: string;
62
62
  }>;
63
63
  }
@@ -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 FolderEntities {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -91,7 +91,7 @@ class FolderEntities {
91
91
  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)
92
92
  .default, "v1/folder-entities"),
93
93
  method: "GET",
94
- 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),
94
+ 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),
95
95
  contentType: "application/json",
96
96
  queryParameters: _queryParams,
97
97
  requestType: "json",
@@ -154,7 +154,7 @@ class FolderEntities {
154
154
  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)
155
155
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
156
156
  method: "POST",
157
- 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),
157
+ 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),
158
158
  contentType: "application/json",
159
159
  requestType: "json",
160
160
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -9,7 +9,7 @@ export declare namespace MetricDefinitions {
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 MetricDefinitions {
24
24
  }
25
25
  export declare class MetricDefinitions {
26
26
  protected readonly _options: MetricDefinitions.Options;
27
- constructor(_options?: MetricDefinitions.Options);
27
+ constructor(_options: MetricDefinitions.Options);
28
28
  /**
29
29
  * @param {string} id - Either the Metric Definition's ID or its unique name
30
30
  * @param {Vellum.ExecuteMetricDefinition} request
@@ -50,6 +50,6 @@ export declare class MetricDefinitions {
50
50
  */
51
51
  metricDefinitionHistoryItemRetrieve(historyIdOrReleaseTag: string, id: string, requestOptions?: MetricDefinitions.RequestOptions): Promise<Vellum.MetricDefinitionHistoryItem>;
52
52
  protected _getCustomAuthorizationHeaders(): Promise<{
53
- X_API_KEY: string | undefined;
53
+ X_API_KEY: string;
54
54
  }>;
55
55
  }
@@ -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 MetricDefinitions {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -79,7 +79,7 @@ class MetricDefinitions {
79
79
  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)
80
80
  .predict, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
81
81
  method: "POST",
82
- 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),
82
+ 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),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -131,7 +131,7 @@ class MetricDefinitions {
131
131
  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)
132
132
  .default, `v1/metric-definitions/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
133
133
  method: "GET",
134
- 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),
134
+ 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),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -9,7 +9,7 @@ export declare namespace MlModels {
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 MlModels {
24
24
  }
25
25
  export declare class MlModels {
26
26
  protected readonly _options: MlModels.Options;
27
- constructor(_options?: MlModels.Options);
27
+ constructor(_options: MlModels.Options);
28
28
  /**
29
29
  * Retrieve details about an ML Model
30
30
  *
@@ -36,6 +36,6 @@ export declare class MlModels {
36
36
  */
37
37
  retrieve(id: string, requestOptions?: MlModels.RequestOptions): Promise<Vellum.MlModelRead>;
38
38
  protected _getCustomAuthorizationHeaders(): Promise<{
39
- X_API_KEY: string | undefined;
39
+ X_API_KEY: string;
40
40
  }>;
41
41
  }
@@ -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 MlModels {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -74,7 +74,7 @@ class MlModels {
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/ml-models/${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,
@@ -9,7 +9,7 @@ export declare namespace Organizations {
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 Organizations {
24
24
  }
25
25
  export declare class Organizations {
26
26
  protected readonly _options: Organizations.Options;
27
- constructor(_options?: Organizations.Options);
27
+ constructor(_options: Organizations.Options);
28
28
  /**
29
29
  * Retrieves information about the active Organization
30
30
  *
@@ -35,6 +35,6 @@ export declare class Organizations {
35
35
  */
36
36
  organizationIdentity(requestOptions?: Organizations.RequestOptions): Promise<Vellum.OrganizationRead>;
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 Organizations {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -73,7 +73,7 @@ class Organizations {
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/organizations/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,