vellum-ai 0.12.14 → 0.12.15

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 (128) hide show
  1. package/.mock/definition/__package__.yml +48 -4
  2. package/.mock/definition/adHoc.yml +1 -4
  3. package/.mock/definition/api.yml +1 -1
  4. package/.mock/definition/containerImages.yml +0 -6
  5. package/.mock/definition/folderEntities.yml +1 -1
  6. package/.mock/definition/metricDefinitions.yml +1 -4
  7. package/.mock/definition/workflows.yml +3 -6
  8. package/.mock/openapi/openapi.yml +99 -14
  9. package/Client.d.ts +3 -5
  10. package/Client.js +12 -14
  11. package/api/resources/adHoc/client/Client.d.ts +3 -6
  12. package/api/resources/adHoc/client/Client.js +3 -6
  13. package/api/resources/containerImages/client/Client.d.ts +3 -7
  14. package/api/resources/containerImages/client/Client.js +5 -9
  15. package/api/resources/deployments/client/Client.d.ts +3 -3
  16. package/api/resources/deployments/client/Client.js +8 -8
  17. package/api/resources/documentIndexes/client/Client.d.ts +3 -3
  18. package/api/resources/documentIndexes/client/Client.js +9 -9
  19. package/api/resources/documents/client/Client.d.ts +3 -3
  20. package/api/resources/documents/client/Client.js +6 -6
  21. package/api/resources/folderEntities/client/Client.d.ts +3 -3
  22. package/api/resources/folderEntities/client/Client.js +3 -3
  23. package/api/resources/metricDefinitions/client/Client.d.ts +3 -5
  24. package/api/resources/metricDefinitions/client/Client.js +4 -6
  25. package/api/resources/mlModels/client/Client.d.ts +3 -3
  26. package/api/resources/mlModels/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 +3 -3
  36. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  37. package/api/resources/workflows/client/Client.d.ts +3 -6
  38. package/api/resources/workflows/client/Client.js +6 -6
  39. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  40. package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  41. package/api/resources/workspaceSecrets/client/Client.js +3 -3
  42. package/api/types/AudioPromptBlock.d.ts +14 -0
  43. package/api/types/AudioPromptBlock.js +5 -0
  44. package/api/types/FunctionCallPromptBlock.d.ts +15 -0
  45. package/api/types/FunctionCallPromptBlock.js +5 -0
  46. package/api/types/ImagePromptBlock.d.ts +14 -0
  47. package/api/types/ImagePromptBlock.js +5 -0
  48. package/api/types/PromptBlock.d.ts +1 -1
  49. package/api/types/WorkflowPushResponse.d.ts +1 -0
  50. package/api/types/index.d.ts +3 -0
  51. package/api/types/index.js +3 -0
  52. package/dist/Client.d.ts +3 -5
  53. package/dist/Client.js +12 -14
  54. package/dist/api/resources/adHoc/client/Client.d.ts +3 -6
  55. package/dist/api/resources/adHoc/client/Client.js +3 -6
  56. package/dist/api/resources/containerImages/client/Client.d.ts +3 -7
  57. package/dist/api/resources/containerImages/client/Client.js +5 -9
  58. package/dist/api/resources/deployments/client/Client.d.ts +3 -3
  59. package/dist/api/resources/deployments/client/Client.js +8 -8
  60. package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
  61. package/dist/api/resources/documentIndexes/client/Client.js +9 -9
  62. package/dist/api/resources/documents/client/Client.d.ts +3 -3
  63. package/dist/api/resources/documents/client/Client.js +6 -6
  64. package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
  65. package/dist/api/resources/folderEntities/client/Client.js +3 -3
  66. package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -5
  67. package/dist/api/resources/metricDefinitions/client/Client.js +4 -6
  68. package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
  69. package/dist/api/resources/mlModels/client/Client.js +2 -2
  70. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
  71. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  72. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  73. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  74. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  75. package/dist/api/resources/testSuites/client/Client.js +5 -5
  76. package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  77. package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
  78. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  79. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  80. package/dist/api/resources/workflows/client/Client.d.ts +3 -6
  81. package/dist/api/resources/workflows/client/Client.js +6 -6
  82. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  83. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  84. package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
  85. package/dist/api/types/AudioPromptBlock.d.ts +14 -0
  86. package/dist/api/types/AudioPromptBlock.js +5 -0
  87. package/dist/api/types/FunctionCallPromptBlock.d.ts +15 -0
  88. package/dist/api/types/FunctionCallPromptBlock.js +5 -0
  89. package/dist/api/types/ImagePromptBlock.d.ts +14 -0
  90. package/dist/api/types/ImagePromptBlock.js +5 -0
  91. package/dist/api/types/PromptBlock.d.ts +1 -1
  92. package/dist/api/types/WorkflowPushResponse.d.ts +1 -0
  93. package/dist/api/types/index.d.ts +3 -0
  94. package/dist/api/types/index.js +3 -0
  95. package/dist/environments.d.ts +2 -2
  96. package/dist/environments.js +1 -1
  97. package/dist/serialization/types/AudioPromptBlock.d.ts +18 -0
  98. package/dist/serialization/types/AudioPromptBlock.js +39 -0
  99. package/dist/serialization/types/FunctionCallPromptBlock.d.ts +19 -0
  100. package/dist/serialization/types/FunctionCallPromptBlock.js +40 -0
  101. package/dist/serialization/types/ImagePromptBlock.d.ts +18 -0
  102. package/dist/serialization/types/ImagePromptBlock.js +39 -0
  103. package/dist/serialization/types/PromptBlock.d.ts +4 -1
  104. package/dist/serialization/types/PromptBlock.js +6 -0
  105. package/dist/serialization/types/WorkflowPushResponse.d.ts +1 -0
  106. package/dist/serialization/types/WorkflowPushResponse.js +1 -0
  107. package/dist/serialization/types/index.d.ts +3 -0
  108. package/dist/serialization/types/index.js +3 -0
  109. package/dist/version.d.ts +1 -1
  110. package/dist/version.js +1 -1
  111. package/environments.d.ts +2 -2
  112. package/environments.js +1 -1
  113. package/package.json +1 -1
  114. package/reference.md +0 -75
  115. package/serialization/types/AudioPromptBlock.d.ts +18 -0
  116. package/serialization/types/AudioPromptBlock.js +39 -0
  117. package/serialization/types/FunctionCallPromptBlock.d.ts +19 -0
  118. package/serialization/types/FunctionCallPromptBlock.js +40 -0
  119. package/serialization/types/ImagePromptBlock.d.ts +18 -0
  120. package/serialization/types/ImagePromptBlock.js +39 -0
  121. package/serialization/types/PromptBlock.d.ts +4 -1
  122. package/serialization/types/PromptBlock.js +6 -0
  123. package/serialization/types/WorkflowPushResponse.d.ts +1 -0
  124. package/serialization/types/WorkflowPushResponse.js +1 -0
  125. package/serialization/types/index.d.ts +3 -0
  126. package/serialization/types/index.js +3 -0
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace ContainerImages {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace ContainerImages {
20
20
  }
21
21
  export declare class ContainerImages {
22
22
  protected readonly _options: ContainerImages.Options;
23
- constructor(_options?: ContainerImages.Options);
23
+ constructor(_options: ContainerImages.Options);
24
24
  /**
25
25
  * Retrieve a list of container images for the organization.
26
26
  *
@@ -42,8 +42,6 @@ export declare class ContainerImages {
42
42
  */
43
43
  retrieve(id: string, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
44
44
  /**
45
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
46
- *
47
45
  * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
48
46
  *
49
47
  * @example
@@ -51,8 +49,6 @@ export declare class ContainerImages {
51
49
  */
52
50
  dockerServiceToken(requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.DockerServiceToken>;
53
51
  /**
54
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
55
- *
56
52
  * @param {Vellum.PushContainerImageRequest} request
57
53
  * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
58
54
  *
@@ -65,6 +61,6 @@ export declare class ContainerImages {
65
61
  */
66
62
  pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
67
63
  protected _getCustomAuthorizationHeaders(): Promise<{
68
- X_API_KEY: string | undefined;
64
+ X_API_KEY: string;
69
65
  }>;
70
66
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class ContainerImages {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -75,7 +75,7 @@ class ContainerImages {
75
75
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
76
76
  .default, "v1/container-images"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -128,7 +128,7 @@ class ContainerImages {
128
128
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
129
129
  .default, `v1/container-images/${encodeURIComponent(id)}`),
130
130
  method: "GET",
131
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
132
  contentType: "application/json",
133
133
  requestType: "json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -165,8 +165,6 @@ class ContainerImages {
165
165
  });
166
166
  }
167
167
  /**
168
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
169
- *
170
168
  * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
171
169
  *
172
170
  * @example
@@ -179,7 +177,7 @@ class ContainerImages {
179
177
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
180
178
  .default, "v1/container-images/docker-service-token"),
181
179
  method: "GET",
182
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
180
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
181
  contentType: "application/json",
184
182
  requestType: "json",
185
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -216,8 +214,6 @@ class ContainerImages {
216
214
  });
217
215
  }
218
216
  /**
219
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
220
- *
221
217
  * @param {Vellum.PushContainerImageRequest} request
222
218
  * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
223
219
  *
@@ -235,7 +231,7 @@ class ContainerImages {
235
231
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
236
232
  .default, "v1/container-images/push"),
237
233
  method: "POST",
238
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
234
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
239
235
  contentType: "application/json",
240
236
  requestType: "json",
241
237
  body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace Deployments {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace Deployments {
20
20
  }
21
21
  export declare class Deployments {
22
22
  protected readonly _options: Deployments.Options;
23
- constructor(_options?: Deployments.Options);
23
+ constructor(_options: Deployments.Options);
24
24
  /**
25
25
  * Used to list all Prompt Deployments.
26
26
  *
@@ -117,6 +117,6 @@ export declare class Deployments {
117
117
  */
118
118
  retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
119
119
  protected _getCustomAuthorizationHeaders(): Promise<{
120
- X_API_KEY: string | undefined;
120
+ X_API_KEY: string;
121
121
  }>;
122
122
  }
@@ -46,7 +46,7 @@ const url_join_1 = __importDefault(require("url-join"));
46
46
  const serializers = __importStar(require("../../../../serialization/index"));
47
47
  const errors = __importStar(require("../../../../errors/index"));
48
48
  class Deployments {
49
- constructor(_options = {}) {
49
+ constructor(_options) {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
@@ -79,7 +79,7 @@ class Deployments {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/deployments"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Deployments {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/deployments/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -185,7 +185,7 @@ class Deployments {
185
185
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
186
186
  .default, `v1/deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
187
187
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -252,7 +252,7 @@ class Deployments {
252
252
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
253
253
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
254
254
  method: "GET",
255
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
256
256
  contentType: "application/json",
257
257
  queryParameters: _queryParams,
258
258
  requestType: "json",
@@ -306,7 +306,7 @@ class Deployments {
306
306
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
307
307
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
308
308
  method: "GET",
309
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
310
310
  contentType: "application/json",
311
311
  requestType: "json",
312
312
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -360,7 +360,7 @@ class Deployments {
360
360
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
361
361
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
362
362
  method: "PATCH",
363
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
364
364
  contentType: "application/json",
365
365
  requestType: "json",
366
366
  body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -435,7 +435,7 @@ class Deployments {
435
435
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
436
436
  .default, "v1/deployments/provider-payload"),
437
437
  method: "POST",
438
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
438
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
439
439
  contentType: "application/json",
440
440
  requestType: "json",
441
441
  body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace DocumentIndexes {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace DocumentIndexes {
20
20
  }
21
21
  export declare class DocumentIndexes {
22
22
  protected readonly _options: DocumentIndexes.Options;
23
- constructor(_options?: DocumentIndexes.Options);
23
+ constructor(_options: DocumentIndexes.Options);
24
24
  /**
25
25
  * Used to retrieve a list of Document Indexes.
26
26
  *
@@ -170,6 +170,6 @@ export declare class DocumentIndexes {
170
170
  */
171
171
  removeDocument(documentId: string, id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<void>;
172
172
  protected _getCustomAuthorizationHeaders(): Promise<{
173
- X_API_KEY: string | undefined;
173
+ X_API_KEY: string;
174
174
  }>;
175
175
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class DocumentIndexes {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -81,7 +81,7 @@ class DocumentIndexes {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/document-indexes"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -196,7 +196,7 @@ class DocumentIndexes {
196
196
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
197
197
  .default, "v1/document-indexes"),
198
198
  method: "POST",
199
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
199
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -249,7 +249,7 @@ class DocumentIndexes {
249
249
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
250
250
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
251
251
  method: "GET",
252
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -304,7 +304,7 @@ class DocumentIndexes {
304
304
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
305
305
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
306
306
  method: "PUT",
307
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
308
  contentType: "application/json",
309
309
  requestType: "json",
310
310
  body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -357,7 +357,7 @@ class DocumentIndexes {
357
357
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
358
358
  .documents, `v1/document-indexes/${encodeURIComponent(id)}`),
359
359
  method: "DELETE",
360
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
361
361
  contentType: "application/json",
362
362
  requestType: "json",
363
363
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -405,7 +405,7 @@ class DocumentIndexes {
405
405
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
406
406
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
407
407
  method: "PATCH",
408
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
408
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
409
409
  contentType: "application/json",
410
410
  requestType: "json",
411
411
  body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
@@ -461,7 +461,7 @@ class DocumentIndexes {
461
461
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
462
462
  .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
463
463
  method: "POST",
464
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
464
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
465
465
  contentType: "application/json",
466
466
  requestType: "json",
467
467
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -509,7 +509,7 @@ class DocumentIndexes {
509
509
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
510
510
  .documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
511
511
  method: "DELETE",
512
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
513
  contentType: "application/json",
514
514
  requestType: "json",
515
515
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -10,7 +10,7 @@ import { Blob } from "buffer";
10
10
  export declare namespace Documents {
11
11
  interface Options {
12
12
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
13
- apiKey?: core.Supplier<string | undefined>;
13
+ apiKey: core.Supplier<string>;
14
14
  }
15
15
  interface RequestOptions {
16
16
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +23,7 @@ export declare namespace Documents {
23
23
  }
24
24
  export declare class Documents {
25
25
  protected readonly _options: Documents.Options;
26
- constructor(_options?: Documents.Options);
26
+ constructor(_options: Documents.Options);
27
27
  /**
28
28
  * Used to list documents. Optionally filter on supported fields.
29
29
  *
@@ -93,6 +93,6 @@ export declare class Documents {
93
93
  */
94
94
  upload(contents: File | fs.ReadStream | Blob, request: Vellum.UploadDocumentBodyRequest, requestOptions?: Documents.RequestOptions): Promise<Vellum.UploadDocumentResponse>;
95
95
  protected _getCustomAuthorizationHeaders(): Promise<{
96
- X_API_KEY: string | undefined;
96
+ X_API_KEY: string;
97
97
  }>;
98
98
  }
@@ -46,7 +46,7 @@ const url_join_1 = __importDefault(require("url-join"));
46
46
  const serializers = __importStar(require("../../../../serialization/index"));
47
47
  const errors = __importStar(require("../../../../errors/index"));
48
48
  class Documents {
49
- constructor(_options = {}) {
49
+ constructor(_options) {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
@@ -79,7 +79,7 @@ class Documents {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/documents"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Documents {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/documents/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -184,7 +184,7 @@ class Documents {
184
184
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
185
  .documents, `v1/documents/${encodeURIComponent(id)}`),
186
186
  method: "DELETE",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -232,7 +232,7 @@ class Documents {
232
232
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
233
233
  .default, `v1/documents/${encodeURIComponent(id)}`),
234
234
  method: "PATCH",
235
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -322,7 +322,7 @@ class Documents {
322
322
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
323
323
  .documents, "v1/upload-document"),
324
324
  method: "POST",
325
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
325
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
326
326
  requestType: "file",
327
327
  duplex: _maybeEncodedRequest.duplex,
328
328
  body: _maybeEncodedRequest.body,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace FolderEntities {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace FolderEntities {
20
20
  }
21
21
  export declare class FolderEntities {
22
22
  protected readonly _options: FolderEntities.Options;
23
- constructor(_options?: FolderEntities.Options);
23
+ constructor(_options: FolderEntities.Options);
24
24
  /**
25
25
  * List all folder entities within a specified folder.
26
26
  *
@@ -55,6 +55,6 @@ export declare class FolderEntities {
55
55
  */
56
56
  addEntityToFolder(folderId: string, request: Vellum.AddEntityToFolderRequest, requestOptions?: FolderEntities.RequestOptions): Promise<void>;
57
57
  protected _getCustomAuthorizationHeaders(): Promise<{
58
- X_API_KEY: string | undefined;
58
+ X_API_KEY: string;
59
59
  }>;
60
60
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class FolderEntities {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -81,7 +81,7 @@ class FolderEntities {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/folder-entities"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -145,7 +145,7 @@ class FolderEntities {
145
145
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
146
146
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
147
147
  method: "POST",
148
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
148
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace MetricDefinitions {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,10 +20,8 @@ export declare namespace MetricDefinitions {
20
20
  }
21
21
  export declare class MetricDefinitions {
22
22
  protected readonly _options: MetricDefinitions.Options;
23
- constructor(_options?: MetricDefinitions.Options);
23
+ constructor(_options: MetricDefinitions.Options);
24
24
  /**
25
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
26
- *
27
25
  * @param {string} id - Either the Metric Definition's ID or its unique name
28
26
  * @param {Vellum.ExecuteMetricDefinition} request
29
27
  * @param {MetricDefinitions.RequestOptions} requestOptions - Request-specific configuration.
@@ -48,6 +46,6 @@ export declare class MetricDefinitions {
48
46
  */
49
47
  metricDefinitionHistoryItemRetrieve(historyIdOrReleaseTag: string, id: string, requestOptions?: MetricDefinitions.RequestOptions): Promise<Vellum.MetricDefinitionHistoryItem>;
50
48
  protected _getCustomAuthorizationHeaders(): Promise<{
51
- X_API_KEY: string | undefined;
49
+ X_API_KEY: string;
52
50
  }>;
53
51
  }
@@ -45,12 +45,10 @@ const serializers = __importStar(require("../../../../serialization/index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class MetricDefinitions {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
52
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
53
- *
54
52
  * @param {string} id - Either the Metric Definition's ID or its unique name
55
53
  * @param {Vellum.ExecuteMetricDefinition} request
56
54
  * @param {MetricDefinitions.RequestOptions} requestOptions - Request-specific configuration.
@@ -69,9 +67,9 @@ class MetricDefinitions {
69
67
  return __awaiter(this, void 0, void 0, function* () {
70
68
  const _response = yield core.fetcher({
71
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
- .default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
70
+ .predict, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
73
71
  method: "POST",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
73
  contentType: "application/json",
76
74
  requestType: "json",
77
75
  body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -123,7 +121,7 @@ class MetricDefinitions {
123
121
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
124
122
  .default, `v1/metric-definitions/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
125
123
  method: "GET",
126
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
124
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
125
  contentType: "application/json",
128
126
  requestType: "json",
129
127
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace MlModels {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace MlModels {
20
20
  }
21
21
  export declare class MlModels {
22
22
  protected readonly _options: MlModels.Options;
23
- constructor(_options?: MlModels.Options);
23
+ constructor(_options: MlModels.Options);
24
24
  /**
25
25
  * Retrieve details about an ML Model
26
26
  *
@@ -32,6 +32,6 @@ export declare class MlModels {
32
32
  */
33
33
  retrieve(id: string, requestOptions?: MlModels.RequestOptions): Promise<Vellum.MlModelRead>;
34
34
  protected _getCustomAuthorizationHeaders(): Promise<{
35
- X_API_KEY: string | undefined;
35
+ X_API_KEY: string;
36
36
  }>;
37
37
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class MlModels {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -64,7 +64,7 @@ class MlModels {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/ml-models/${encodeURIComponent(id)}`),
66
66
  method: "GET",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.14", "User-Agent": "vellum-ai/0.12.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace Sandboxes {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace Sandboxes {
20
20
  }
21
21
  export declare class Sandboxes {
22
22
  protected readonly _options: Sandboxes.Options;
23
- constructor(_options?: Sandboxes.Options);
23
+ constructor(_options: Sandboxes.Options);
24
24
  /**
25
25
  * @param {string} id - A UUID string identifying this sandbox.
26
26
  * @param {string} promptVariantId - An ID identifying the Prompt you'd like to deploy.
@@ -87,6 +87,6 @@ export declare class Sandboxes {
87
87
  */
88
88
  deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): Promise<void>;
89
89
  protected _getCustomAuthorizationHeaders(): Promise<{
90
- X_API_KEY: string | undefined;
90
+ X_API_KEY: string;
91
91
  }>;
92
92
  }