vellum-ai 0.14.4 → 0.14.6

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 (148) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +12 -12
  3. package/api/client/requests/ExecutePromptRequest.d.ts +1 -1
  4. package/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -1
  5. package/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  6. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  7. package/api/resources/adHoc/client/Client.d.ts +3 -3
  8. package/api/resources/adHoc/client/Client.js +2 -2
  9. package/api/resources/containerImages/client/Client.d.ts +3 -3
  10. package/api/resources/containerImages/client/Client.js +5 -5
  11. package/api/resources/deployments/client/Client.d.ts +3 -3
  12. package/api/resources/deployments/client/Client.js +8 -8
  13. package/api/resources/documentIndexes/client/Client.d.ts +3 -3
  14. package/api/resources/documentIndexes/client/Client.js +9 -9
  15. package/api/resources/documents/client/Client.d.ts +3 -3
  16. package/api/resources/documents/client/Client.js +6 -6
  17. package/api/resources/folderEntities/client/Client.d.ts +3 -3
  18. package/api/resources/folderEntities/client/Client.js +3 -3
  19. package/api/resources/index.d.ts +2 -1
  20. package/api/resources/index.js +3 -2
  21. package/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  22. package/api/resources/metricDefinitions/client/Client.js +3 -3
  23. package/api/resources/mlModels/client/Client.d.ts +3 -3
  24. package/api/resources/mlModels/client/Client.js +2 -2
  25. package/api/resources/organizations/client/Client.d.ts +3 -3
  26. package/api/resources/organizations/client/Client.js +2 -2
  27. package/api/resources/sandboxes/client/Client.d.ts +3 -3
  28. package/api/resources/sandboxes/client/Client.js +4 -4
  29. package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  30. package/api/resources/testSuiteRuns/client/Client.js +4 -4
  31. package/api/resources/testSuites/client/Client.d.ts +3 -3
  32. package/api/resources/testSuites/client/Client.js +5 -5
  33. package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  34. package/api/resources/workflowDeployments/client/Client.js +7 -7
  35. package/api/resources/workflowSandboxes/client/Client.d.ts +13 -3
  36. package/api/resources/workflowSandboxes/client/Client.js +71 -2
  37. package/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.d.ts +23 -0
  38. package/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.js +5 -0
  39. package/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  40. package/api/resources/workflowSandboxes/index.d.ts +1 -0
  41. package/api/resources/workflowSandboxes/index.js +1 -0
  42. package/api/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.d.ts +8 -0
  43. package/api/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.js +10 -0
  44. package/api/resources/workflowSandboxes/types/index.d.ts +1 -0
  45. package/api/resources/workflowSandboxes/types/index.js +17 -0
  46. package/api/resources/workflows/client/Client.d.ts +3 -3
  47. package/api/resources/workflows/client/Client.js +3 -3
  48. package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  49. package/api/resources/workspaceSecrets/client/Client.js +3 -3
  50. package/api/resources/workspaces/client/Client.d.ts +3 -3
  51. package/api/resources/workspaces/client/Client.js +2 -2
  52. package/api/types/PaginatedWorkflowSandboxExampleList.d.ts +10 -0
  53. package/api/types/PaginatedWorkflowSandboxExampleList.js +5 -0
  54. package/api/types/WorkflowSandboxExample.d.ts +9 -0
  55. package/api/types/WorkflowSandboxExample.js +5 -0
  56. package/api/types/index.d.ts +2 -0
  57. package/api/types/index.js +2 -0
  58. package/dist/Client.d.ts +3 -3
  59. package/dist/Client.js +12 -12
  60. package/dist/api/client/requests/ExecutePromptRequest.d.ts +1 -1
  61. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -1
  62. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
  63. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  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/index.d.ts +2 -1
  77. package/dist/api/resources/index.js +3 -2
  78. package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  79. package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
  80. package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
  81. package/dist/api/resources/mlModels/client/Client.js +2 -2
  82. package/dist/api/resources/organizations/client/Client.d.ts +3 -3
  83. package/dist/api/resources/organizations/client/Client.js +2 -2
  84. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
  85. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  86. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  87. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  88. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  89. package/dist/api/resources/testSuites/client/Client.js +5 -5
  90. package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  91. package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
  92. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +13 -3
  93. package/dist/api/resources/workflowSandboxes/client/Client.js +71 -2
  94. package/dist/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.d.ts +23 -0
  95. package/dist/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.js +5 -0
  96. package/dist/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  97. package/dist/api/resources/workflowSandboxes/index.d.ts +1 -0
  98. package/dist/api/resources/workflowSandboxes/index.js +1 -0
  99. package/dist/api/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.d.ts +8 -0
  100. package/dist/api/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.js +10 -0
  101. package/dist/api/resources/workflowSandboxes/types/index.d.ts +1 -0
  102. package/dist/api/resources/workflowSandboxes/types/index.js +17 -0
  103. package/dist/api/resources/workflows/client/Client.d.ts +3 -3
  104. package/dist/api/resources/workflows/client/Client.js +3 -3
  105. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  106. package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
  107. package/dist/api/resources/workspaces/client/Client.d.ts +3 -3
  108. package/dist/api/resources/workspaces/client/Client.js +2 -2
  109. package/dist/api/types/PaginatedWorkflowSandboxExampleList.d.ts +10 -0
  110. package/dist/api/types/PaginatedWorkflowSandboxExampleList.js +5 -0
  111. package/dist/api/types/WorkflowSandboxExample.d.ts +9 -0
  112. package/dist/api/types/WorkflowSandboxExample.js +5 -0
  113. package/dist/api/types/index.d.ts +2 -0
  114. package/dist/api/types/index.js +2 -0
  115. package/dist/serialization/resources/index.d.ts +2 -1
  116. package/dist/serialization/resources/index.js +3 -2
  117. package/dist/serialization/resources/workflowSandboxes/index.d.ts +1 -0
  118. package/dist/serialization/resources/workflowSandboxes/index.js +1 -0
  119. package/dist/serialization/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.d.ts +10 -0
  120. package/dist/serialization/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.js +41 -0
  121. package/dist/serialization/resources/workflowSandboxes/types/index.d.ts +1 -0
  122. package/dist/serialization/resources/workflowSandboxes/types/index.js +17 -0
  123. package/dist/serialization/types/PaginatedWorkflowSandboxExampleList.d.ts +16 -0
  124. package/dist/serialization/types/PaginatedWorkflowSandboxExampleList.js +47 -0
  125. package/dist/serialization/types/WorkflowSandboxExample.d.ts +15 -0
  126. package/dist/serialization/types/WorkflowSandboxExample.js +46 -0
  127. package/dist/serialization/types/index.d.ts +2 -0
  128. package/dist/serialization/types/index.js +2 -0
  129. package/dist/version.d.ts +1 -1
  130. package/dist/version.js +1 -1
  131. package/package.json +1 -1
  132. package/reference.md +63 -0
  133. package/serialization/resources/index.d.ts +2 -1
  134. package/serialization/resources/index.js +3 -2
  135. package/serialization/resources/workflowSandboxes/index.d.ts +1 -0
  136. package/serialization/resources/workflowSandboxes/index.js +1 -0
  137. package/serialization/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.d.ts +10 -0
  138. package/serialization/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.js +41 -0
  139. package/serialization/resources/workflowSandboxes/types/index.d.ts +1 -0
  140. package/serialization/resources/workflowSandboxes/types/index.js +17 -0
  141. package/serialization/types/PaginatedWorkflowSandboxExampleList.d.ts +16 -0
  142. package/serialization/types/PaginatedWorkflowSandboxExampleList.js +47 -0
  143. package/serialization/types/WorkflowSandboxExample.d.ts +15 -0
  144. package/serialization/types/WorkflowSandboxExample.js +46 -0
  145. package/serialization/types/index.d.ts +2 -0
  146. package/serialization/types/index.js +2 -0
  147. package/version.d.ts +1 -1
  148. package/version.js +1 -1
package/Client.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare namespace VellumClient {
26
26
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
27
27
  /** Specify a custom URL to connect the client to. */
28
28
  baseUrl?: core.Supplier<string>;
29
- apiKey: core.Supplier<string>;
29
+ apiKey?: core.Supplier<string | undefined>;
30
30
  }
31
31
  interface RequestOptions {
32
32
  /** The maximum time to wait for a response in seconds. */
@@ -58,7 +58,7 @@ export declare class VellumClient {
58
58
  protected _workflows: Workflows | undefined;
59
59
  protected _workspaceSecrets: WorkspaceSecrets | undefined;
60
60
  protected _workspaces: Workspaces | undefined;
61
- constructor(_options: VellumClient.Options);
61
+ constructor(_options?: VellumClient.Options);
62
62
  get adHoc(): AdHoc;
63
63
  get containerImages(): ContainerImages;
64
64
  get deployments(): Deployments;
@@ -238,6 +238,6 @@ export declare class VellumClient {
238
238
  */
239
239
  submitWorkflowExecutionActuals(request: Vellum.SubmitWorkflowExecutionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
240
240
  protected _getCustomAuthorizationHeaders(): Promise<{
241
- X_API_KEY: string;
241
+ X_API_KEY: string | undefined;
242
242
  }>;
243
243
  }
package/Client.js CHANGED
@@ -73,7 +73,7 @@ const Client_15 = require("./api/resources/workflows/client/Client");
73
73
  const Client_16 = require("./api/resources/workspaceSecrets/client/Client");
74
74
  const Client_17 = require("./api/resources/workspaces/client/Client");
75
75
  class VellumClient {
76
- constructor(_options) {
76
+ constructor(_options = {}) {
77
77
  this._options = _options;
78
78
  }
79
79
  get adHoc() {
@@ -160,7 +160,7 @@ class VellumClient {
160
160
  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)
161
161
  .default, "v1/execute-api"),
162
162
  method: "POST",
163
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
163
+ 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
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.ExecuteApiRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -226,7 +226,7 @@ class VellumClient {
226
226
  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)
227
227
  .predict, "v1/execute-code"),
228
228
  method: "POST",
229
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
229
+ 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),
230
230
  contentType: "application/json",
231
231
  requestType: "json",
232
232
  body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -295,7 +295,7 @@ class VellumClient {
295
295
  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)
296
296
  .predict, "v1/execute-prompt"),
297
297
  method: "POST",
298
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
298
+ 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),
299
299
  contentType: "application/json",
300
300
  requestType: "json",
301
301
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -353,7 +353,7 @@ class VellumClient {
353
353
  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)
354
354
  .predict, "v1/execute-prompt-stream"),
355
355
  method: "POST",
356
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
356
+ 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),
357
357
  contentType: "application/json",
358
358
  requestType: "json",
359
359
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -438,7 +438,7 @@ class VellumClient {
438
438
  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)
439
439
  .predict, "v1/execute-workflow"),
440
440
  method: "POST",
441
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
441
+ 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),
442
442
  contentType: "application/json",
443
443
  requestType: "json",
444
444
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -494,7 +494,7 @@ class VellumClient {
494
494
  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)
495
495
  .predict, "v1/execute-workflow-stream"),
496
496
  method: "POST",
497
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
497
+ 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),
498
498
  contentType: "application/json",
499
499
  requestType: "json",
500
500
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -581,7 +581,7 @@ class VellumClient {
581
581
  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)
582
582
  .predict, "v1/generate"),
583
583
  method: "POST",
584
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
584
+ 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),
585
585
  contentType: "application/json",
586
586
  requestType: "json",
587
587
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -642,7 +642,7 @@ class VellumClient {
642
642
  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)
643
643
  .predict, "v1/generate-stream"),
644
644
  method: "POST",
645
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
645
+ 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),
646
646
  contentType: "application/json",
647
647
  requestType: "json",
648
648
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -723,7 +723,7 @@ class VellumClient {
723
723
  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)
724
724
  .predict, "v1/search"),
725
725
  method: "POST",
726
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
726
+ 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),
727
727
  contentType: "application/json",
728
728
  requestType: "json",
729
729
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -791,7 +791,7 @@ class VellumClient {
791
791
  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)
792
792
  .predict, "v1/submit-completion-actuals"),
793
793
  method: "POST",
794
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
794
+ 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),
795
795
  contentType: "application/json",
796
796
  requestType: "json",
797
797
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -854,7 +854,7 @@ class VellumClient {
854
854
  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)
855
855
  .predict, "v1/submit-workflow-execution-actuals"),
856
856
  method: "POST",
857
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
857
+ 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),
858
858
  contentType: "application/json",
859
859
  requestType: "json",
860
860
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -21,7 +21,7 @@ export interface ExecutePromptRequest {
21
21
  promptDeploymentName?: string;
22
22
  /** Optionally specify a release tag if you want to pin to a specific release of the Prompt Deployment */
23
23
  releaseTag?: string;
24
- /** Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment. */
24
+ /** Optionally include a unique identifier for tracking purposes. Must be unique within a given Workspace. */
25
25
  externalId?: string;
26
26
  /** An optionally specified configuration used to opt in to including additional metadata about this prompt execution in the API response. Corresponding values will be returned under the `meta` key of the API response. */
27
27
  expandMeta?: Vellum.PromptDeploymentExpandMetaRequest;
@@ -21,7 +21,7 @@ export interface ExecutePromptStreamRequest {
21
21
  promptDeploymentName?: string;
22
22
  /** Optionally specify a release tag if you want to pin to a specific release of the Prompt Deployment */
23
23
  releaseTag?: string;
24
- /** Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment. */
24
+ /** Optionally include a unique identifier for tracking purposes. Must be unique within a given Workspace. */
25
25
  externalId?: string;
26
26
  /** An optionally specified configuration used to opt in to including additional metadata about this prompt execution in the API response. Corresponding values will be returned under the `meta` key of the API response. */
27
27
  expandMeta?: Vellum.PromptDeploymentExpandMetaRequest;
@@ -23,7 +23,7 @@ export interface ExecuteWorkflowRequest {
23
23
  workflowDeploymentName?: string;
24
24
  /** Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment */
25
25
  releaseTag?: string;
26
- /** Optionally include a unique identifier for tracking purposes. Must be unique for a given workflow deployment. */
26
+ /** Optionally include a unique identifier for tracking purposes. Must be unique within a given Workspace. */
27
27
  externalId?: string;
28
28
  /** Arbitrary JSON metadata associated with this request. Can be used to capture additional monitoring data such as user id, session id, etc. for future analysis. */
29
29
  metadata?: Record<string, unknown>;
@@ -23,7 +23,7 @@ export interface ExecuteWorkflowStreamRequest {
23
23
  workflowDeploymentName?: string;
24
24
  /** Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment */
25
25
  releaseTag?: string;
26
- /** Optionally include a unique identifier for tracking purposes. Must be unique for a given workflow deployment. */
26
+ /** Optionally include a unique identifier for tracking purposes. Must be unique within a given Workspace. */
27
27
  externalId?: string;
28
28
  /** Optionally specify which events you want to receive. Defaults to only WORKFLOW events. Note that the schema of non-WORKFLOW events is unstable and should be used with caution. */
29
29
  eventTypes?: Vellum.WorkflowExecutionEventType[];
@@ -9,7 +9,7 @@ export declare namespace AdHoc {
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>;
12
+ apiKey?: core.Supplier<string | undefined>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,9 +24,9 @@ export declare namespace AdHoc {
24
24
  }
25
25
  export declare class AdHoc {
26
26
  protected readonly _options: AdHoc.Options;
27
- constructor(_options: AdHoc.Options);
27
+ constructor(_options?: AdHoc.Options);
28
28
  adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStream, requestOptions?: AdHoc.RequestOptions): Promise<core.Stream<Vellum.AdHocExecutePromptEvent>>;
29
29
  protected _getCustomAuthorizationHeaders(): Promise<{
30
- X_API_KEY: string;
30
+ X_API_KEY: string | undefined;
31
31
  }>;
32
32
  }
@@ -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 AdHoc {
59
- constructor(_options) {
59
+ constructor(_options = {}) {
60
60
  this._options = _options;
61
61
  }
62
62
  adhocExecutePromptStream(request, requestOptions) {
@@ -66,7 +66,7 @@ class AdHoc {
66
66
  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)
67
67
  .predict, "v1/ad-hoc/execute-prompt-stream"),
68
68
  method: "POST",
69
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.4", "User-Agent": "vellum-ai/0.14.4", "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),
69
+ 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),
70
70
  contentType: "application/json",
71
71
  requestType: "json",
72
72
  body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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>;
12
+ apiKey?: core.Supplier<string | undefined>;
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;
68
+ X_API_KEY: string | undefined;
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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>;
12
+ apiKey?: core.Supplier<string | undefined>;
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;
124
+ X_API_KEY: string | undefined;
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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>;
12
+ apiKey?: core.Supplier<string | undefined>;
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;
177
+ X_API_KEY: string | undefined;
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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.4", "User-Agent": "vellum-ai/0.14.4", "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.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),
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>;
14
+ apiKey?: core.Supplier<string | undefined>;
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;
98
+ X_API_KEY: string | undefined;
99
99
  }>;
100
100
  }