vellum-ai 0.7.6 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/Client.js +9 -9
  2. package/api/resources/deployments/client/Client.js +5 -5
  3. package/api/resources/documentIndexes/client/Client.js +8 -8
  4. package/api/resources/documents/client/Client.js +5 -5
  5. package/api/resources/folderEntities/client/Client.js +1 -1
  6. package/api/resources/mlModels/client/Client.d.ts +5 -3
  7. package/api/resources/mlModels/client/Client.js +10 -8
  8. package/api/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +4 -2
  9. package/api/resources/sandboxes/client/Client.js +3 -3
  10. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  11. package/api/resources/testSuites/client/Client.js +4 -4
  12. package/api/resources/workflowDeployments/client/Client.js +4 -4
  13. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  14. package/api/types/MlModelExecConfig.d.ts +0 -1
  15. package/api/types/MlModelExecConfigRequest.d.ts +0 -1
  16. package/api/types/NamedScenarioInputJsonVariableValueRequest.d.ts +10 -0
  17. package/api/types/NamedScenarioInputJsonVariableValueRequest.js +5 -0
  18. package/api/types/NamedScenarioInputRequest.d.ts +4 -1
  19. package/api/types/ScenarioInput.d.ts +4 -1
  20. package/api/types/ScenarioInputJsonVariableValue.d.ts +10 -0
  21. package/api/types/ScenarioInputJsonVariableValue.js +5 -0
  22. package/api/types/index.d.ts +2 -0
  23. package/api/types/index.js +2 -0
  24. package/dist/Client.js +9 -9
  25. package/dist/api/resources/deployments/client/Client.js +5 -5
  26. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  27. package/dist/api/resources/documents/client/Client.js +5 -5
  28. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  29. package/dist/api/resources/mlModels/client/Client.d.ts +5 -3
  30. package/dist/api/resources/mlModels/client/Client.js +10 -8
  31. package/dist/api/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +4 -2
  32. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  33. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  34. package/dist/api/resources/testSuites/client/Client.js +4 -4
  35. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  36. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  37. package/dist/api/types/MlModelExecConfig.d.ts +0 -1
  38. package/dist/api/types/MlModelExecConfigRequest.d.ts +0 -1
  39. package/dist/api/types/NamedScenarioInputJsonVariableValueRequest.d.ts +10 -0
  40. package/dist/api/types/NamedScenarioInputJsonVariableValueRequest.js +5 -0
  41. package/dist/api/types/NamedScenarioInputRequest.d.ts +4 -1
  42. package/dist/api/types/ScenarioInput.d.ts +4 -1
  43. package/dist/api/types/ScenarioInputJsonVariableValue.d.ts +10 -0
  44. package/dist/api/types/ScenarioInputJsonVariableValue.js +5 -0
  45. package/dist/api/types/index.d.ts +2 -0
  46. package/dist/api/types/index.js +2 -0
  47. package/dist/serialization/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +2 -2
  48. package/dist/serialization/resources/mlModels/client/requests/MlModelCreateRequest.js +2 -2
  49. package/dist/serialization/types/MlModelExecConfig.d.ts +0 -1
  50. package/dist/serialization/types/MlModelExecConfig.js +0 -1
  51. package/dist/serialization/types/MlModelExecConfigRequest.d.ts +0 -1
  52. package/dist/serialization/types/MlModelExecConfigRequest.js +0 -1
  53. package/dist/serialization/types/NamedScenarioInputJsonVariableValueRequest.d.ts +13 -0
  54. package/dist/serialization/types/NamedScenarioInputJsonVariableValueRequest.js +34 -0
  55. package/dist/serialization/types/NamedScenarioInputRequest.d.ts +5 -1
  56. package/dist/serialization/types/NamedScenarioInputRequest.js +2 -0
  57. package/dist/serialization/types/ScenarioInput.d.ts +5 -1
  58. package/dist/serialization/types/ScenarioInput.js +2 -0
  59. package/dist/serialization/types/ScenarioInputJsonVariableValue.d.ts +13 -0
  60. package/dist/serialization/types/ScenarioInputJsonVariableValue.js +34 -0
  61. package/dist/serialization/types/index.d.ts +2 -0
  62. package/dist/serialization/types/index.js +2 -0
  63. package/package.json +1 -1
  64. package/reference.md +5 -3
  65. package/serialization/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +2 -2
  66. package/serialization/resources/mlModels/client/requests/MlModelCreateRequest.js +2 -2
  67. package/serialization/types/MlModelExecConfig.d.ts +0 -1
  68. package/serialization/types/MlModelExecConfig.js +0 -1
  69. package/serialization/types/MlModelExecConfigRequest.d.ts +0 -1
  70. package/serialization/types/MlModelExecConfigRequest.js +0 -1
  71. package/serialization/types/NamedScenarioInputJsonVariableValueRequest.d.ts +13 -0
  72. package/serialization/types/NamedScenarioInputJsonVariableValueRequest.js +34 -0
  73. package/serialization/types/NamedScenarioInputRequest.d.ts +5 -1
  74. package/serialization/types/NamedScenarioInputRequest.js +2 -0
  75. package/serialization/types/ScenarioInput.d.ts +5 -1
  76. package/serialization/types/ScenarioInput.js +2 -0
  77. package/serialization/types/ScenarioInputJsonVariableValue.d.ts +13 -0
  78. package/serialization/types/ScenarioInputJsonVariableValue.js +34 -0
  79. package/serialization/types/index.d.ts +2 -0
  80. package/serialization/types/index.js +2 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Named Prompt Sandbox Scenario input value that is of type JSON
6
+ */
7
+ export interface NamedScenarioInputJsonVariableValueRequest {
8
+ value?: unknown;
9
+ name: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,11 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export declare type NamedScenarioInputRequest = Vellum.NamedScenarioInputRequest.String | Vellum.NamedScenarioInputRequest.ChatHistory;
5
+ export declare type NamedScenarioInputRequest = Vellum.NamedScenarioInputRequest.String | Vellum.NamedScenarioInputRequest.Json | Vellum.NamedScenarioInputRequest.ChatHistory;
6
6
  export declare namespace NamedScenarioInputRequest {
7
7
  interface String extends Vellum.NamedScenarioInputStringVariableValueRequest {
8
8
  type: "STRING";
9
9
  }
10
+ interface Json extends Vellum.NamedScenarioInputJsonVariableValueRequest {
11
+ type: "JSON";
12
+ }
10
13
  interface ChatHistory extends Vellum.NamedScenarioInputChatHistoryVariableValueRequest {
11
14
  type: "CHAT_HISTORY";
12
15
  }
@@ -2,11 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export declare type ScenarioInput = Vellum.ScenarioInput.String | Vellum.ScenarioInput.ChatHistory;
5
+ export declare type ScenarioInput = Vellum.ScenarioInput.String | Vellum.ScenarioInput.Json | Vellum.ScenarioInput.ChatHistory;
6
6
  export declare namespace ScenarioInput {
7
7
  interface String extends Vellum.ScenarioInputStringVariableValue {
8
8
  type: "STRING";
9
9
  }
10
+ interface Json extends Vellum.ScenarioInputJsonVariableValue {
11
+ type: "JSON";
12
+ }
10
13
  interface ChatHistory extends Vellum.ScenarioInputChatHistoryVariableValue {
11
14
  type: "CHAT_HISTORY";
12
15
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Prompt Sandbox Scenario input value that is of type JSON
6
+ */
7
+ export interface ScenarioInputJsonVariableValue {
8
+ value?: unknown;
9
+ inputVariableId: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -153,6 +153,7 @@ export * from "./MetadataFilterRuleCombinator";
153
153
  export * from "./MetadataFilterRuleRequest";
154
154
  export * from "./MetricNodeResult";
155
155
  export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
156
+ export * from "./NamedScenarioInputJsonVariableValueRequest";
156
157
  export * from "./NamedScenarioInputRequest";
157
158
  export * from "./NamedScenarioInputStringVariableValueRequest";
158
159
  export * from "./NamedTestCaseArrayVariableValue";
@@ -255,6 +256,7 @@ export * from "./ReplaceTestSuiteTestCaseRequest";
255
256
  export * from "./SandboxScenario";
256
257
  export * from "./ScenarioInput";
257
258
  export * from "./ScenarioInputChatHistoryVariableValue";
259
+ export * from "./ScenarioInputJsonVariableValue";
258
260
  export * from "./ScenarioInputStringVariableValue";
259
261
  export * from "./SearchFiltersRequest";
260
262
  export * from "./SearchNodeResult";
@@ -169,6 +169,7 @@ __exportStar(require("./MetadataFilterRuleCombinator"), exports);
169
169
  __exportStar(require("./MetadataFilterRuleRequest"), exports);
170
170
  __exportStar(require("./MetricNodeResult"), exports);
171
171
  __exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
172
+ __exportStar(require("./NamedScenarioInputJsonVariableValueRequest"), exports);
172
173
  __exportStar(require("./NamedScenarioInputRequest"), exports);
173
174
  __exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
174
175
  __exportStar(require("./NamedTestCaseArrayVariableValue"), exports);
@@ -271,6 +272,7 @@ __exportStar(require("./ReplaceTestSuiteTestCaseRequest"), exports);
271
272
  __exportStar(require("./SandboxScenario"), exports);
272
273
  __exportStar(require("./ScenarioInput"), exports);
273
274
  __exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
275
+ __exportStar(require("./ScenarioInputJsonVariableValue"), exports);
274
276
  __exportStar(require("./ScenarioInputStringVariableValue"), exports);
275
277
  __exportStar(require("./SearchFiltersRequest"), exports);
276
278
  __exportStar(require("./SearchNodeResult"), exports);
package/dist/Client.js CHANGED
@@ -117,7 +117,7 @@ class VellumClient {
117
117
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
118
118
  .predict, "v1/execute-prompt"),
119
119
  method: "POST",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  requestType: "json",
123
123
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -175,7 +175,7 @@ class VellumClient {
175
175
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
176
176
  .predict, "v1/execute-prompt-stream"),
177
177
  method: "POST",
178
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
178
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
179
179
  contentType: "application/json",
180
180
  requestType: "json",
181
181
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -267,7 +267,7 @@ class VellumClient {
267
267
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
268
268
  .predict, "v1/execute-workflow"),
269
269
  method: "POST",
270
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
270
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
271
271
  contentType: "application/json",
272
272
  requestType: "json",
273
273
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -323,7 +323,7 @@ class VellumClient {
323
323
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
324
324
  .predict, "v1/execute-workflow-stream"),
325
325
  method: "POST",
326
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
326
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
327
327
  contentType: "application/json",
328
328
  requestType: "json",
329
329
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -410,7 +410,7 @@ class VellumClient {
410
410
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
411
411
  .predict, "v1/generate"),
412
412
  method: "POST",
413
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
413
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
414
414
  contentType: "application/json",
415
415
  requestType: "json",
416
416
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -471,7 +471,7 @@ class VellumClient {
471
471
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
472
472
  .predict, "v1/generate-stream"),
473
473
  method: "POST",
474
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
474
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
475
475
  contentType: "application/json",
476
476
  requestType: "json",
477
477
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -552,7 +552,7 @@ class VellumClient {
552
552
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
553
553
  .predict, "v1/search"),
554
554
  method: "POST",
555
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
555
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
556
556
  contentType: "application/json",
557
557
  requestType: "json",
558
558
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -620,7 +620,7 @@ class VellumClient {
620
620
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
621
621
  .predict, "v1/submit-completion-actuals"),
622
622
  method: "POST",
623
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
623
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
624
624
  contentType: "application/json",
625
625
  requestType: "json",
626
626
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -681,7 +681,7 @@ class VellumClient {
681
681
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
682
682
  .predict, "v1/submit-workflow-execution-actuals"),
683
683
  method: "POST",
684
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
684
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
685
685
  contentType: "application/json",
686
686
  requestType: "json",
687
687
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -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.7.6", "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.7.8", "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.7.6", "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.7.8", "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)}/release-tags/${encodeURIComponent(name)}`),
187
187
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "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.7.8", "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,
@@ -239,7 +239,7 @@ class Deployments {
239
239
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
240
240
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
241
241
  method: "PATCH",
242
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -310,7 +310,7 @@ class Deployments {
310
310
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
311
311
  .default, "v1/deployments/provider-payload"),
312
312
  method: "POST",
313
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
313
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -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.7.6", "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.7.8", "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",
@@ -148,7 +148,7 @@ class DocumentIndexes {
148
148
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
149
149
  .default, "v1/document-indexes"),
150
150
  method: "POST",
151
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
151
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
152
152
  contentType: "application/json",
153
153
  requestType: "json",
154
154
  body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -201,7 +201,7 @@ class DocumentIndexes {
201
201
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
202
202
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
203
203
  method: "GET",
204
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
204
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -258,7 +258,7 @@ class DocumentIndexes {
258
258
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
259
259
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
260
260
  method: "PUT",
261
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -311,7 +311,7 @@ class DocumentIndexes {
311
311
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
312
312
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
313
313
  method: "DELETE",
314
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
314
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
315
315
  contentType: "application/json",
316
316
  requestType: "json",
317
317
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -363,7 +363,7 @@ class DocumentIndexes {
363
363
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
364
364
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
365
365
  method: "PATCH",
366
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
366
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
367
367
  contentType: "application/json",
368
368
  requestType: "json",
369
369
  body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
@@ -419,7 +419,7 @@ class DocumentIndexes {
419
419
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
420
420
  .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
421
421
  method: "POST",
422
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
422
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
423
423
  contentType: "application/json",
424
424
  requestType: "json",
425
425
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -467,7 +467,7 @@ class DocumentIndexes {
467
467
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
468
468
  .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
469
469
  method: "DELETE",
470
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
470
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
471
471
  contentType: "application/json",
472
472
  requestType: "json",
473
473
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -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.7.6", "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.7.8", "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.7.6", "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.7.8", "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
  .default, `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.7.6", "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.7.8", "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.7.6", "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.7.8", "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.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.headers)),
325
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.headers)),
326
326
  requestType: "file",
327
327
  body: yield _maybeEncodedRequest.body,
328
328
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class FolderEntities {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
71
71
  method: "POST",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "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.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -41,6 +41,8 @@ export declare class MlModels {
41
41
  * await client.mlModels.create({
42
42
  * name: "name",
43
43
  * family: Vellum.MlModelFamily.Capybara,
44
+ * hostedBy: Vellum.HostedByEnum.Anthropic,
45
+ * developedBy: Vellum.MlModelDeveloper.OneAi,
44
46
  * execConfig: {
45
47
  * modelIdentifier: "model_identifier",
46
48
  * baseUrl: "base_url",
@@ -55,7 +57,7 @@ export declare class MlModels {
55
57
  /**
56
58
  * Retrieve an ML Model by its UUID.
57
59
  *
58
- * @param {string} id - A UUID string identifying this ml model.
60
+ * @param {string} id - Either the ML Model's ID or its unique name
59
61
  * @param {MlModels.RequestOptions} requestOptions - Request-specific configuration.
60
62
  *
61
63
  * @example
@@ -65,7 +67,7 @@ export declare class MlModels {
65
67
  /**
66
68
  * Replace an ML Model with a new representation, keying off of its UUID.
67
69
  *
68
- * @param {string} id - A UUID string identifying this ml model.
70
+ * @param {string} id - Either the ML Model's ID or its unique name
69
71
  * @param {Vellum.MlModelUpdateRequest} request
70
72
  * @param {MlModels.RequestOptions} requestOptions - Request-specific configuration.
71
73
  *
@@ -76,7 +78,7 @@ export declare class MlModels {
76
78
  /**
77
79
  * Partially update an ML Model, keying off of its UUID.
78
80
  *
79
- * @param {string} id - A UUID string identifying this ml model.
81
+ * @param {string} id - Either the ML Model's ID or its unique name
80
82
  * @param {Vellum.PatchedMlModelUpdateRequest} request
81
83
  * @param {MlModels.RequestOptions} requestOptions - Request-specific configuration.
82
84
  *
@@ -75,7 +75,7 @@ class MlModels {
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/ml-models"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "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.7.8", "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",
@@ -122,6 +122,8 @@ class MlModels {
122
122
  * await client.mlModels.create({
123
123
  * name: "name",
124
124
  * family: Vellum.MlModelFamily.Capybara,
125
+ * hostedBy: Vellum.HostedByEnum.Anthropic,
126
+ * developedBy: Vellum.MlModelDeveloper.OneAi,
125
127
  * execConfig: {
126
128
  * modelIdentifier: "model_identifier",
127
129
  * baseUrl: "base_url",
@@ -139,7 +141,7 @@ class MlModels {
139
141
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
140
142
  .default, "v1/ml-models"),
141
143
  method: "POST",
142
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
144
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
143
145
  contentType: "application/json",
144
146
  requestType: "json",
145
147
  body: serializers.MlModelCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -179,7 +181,7 @@ class MlModels {
179
181
  /**
180
182
  * Retrieve an ML Model by its UUID.
181
183
  *
182
- * @param {string} id - A UUID string identifying this ml model.
184
+ * @param {string} id - Either the ML Model's ID or its unique name
183
185
  * @param {MlModels.RequestOptions} requestOptions - Request-specific configuration.
184
186
  *
185
187
  * @example
@@ -192,7 +194,7 @@ class MlModels {
192
194
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
193
195
  .default, `v1/ml-models/${encodeURIComponent(id)}`),
194
196
  method: "GET",
195
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
197
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
196
198
  contentType: "application/json",
197
199
  requestType: "json",
198
200
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -231,7 +233,7 @@ class MlModels {
231
233
  /**
232
234
  * Replace an ML Model with a new representation, keying off of its UUID.
233
235
  *
234
- * @param {string} id - A UUID string identifying this ml model.
236
+ * @param {string} id - Either the ML Model's ID or its unique name
235
237
  * @param {Vellum.MlModelUpdateRequest} request
236
238
  * @param {MlModels.RequestOptions} requestOptions - Request-specific configuration.
237
239
  *
@@ -245,7 +247,7 @@ class MlModels {
245
247
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
246
248
  .default, `v1/ml-models/${encodeURIComponent(id)}`),
247
249
  method: "PUT",
248
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
250
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
249
251
  contentType: "application/json",
250
252
  requestType: "json",
251
253
  body: serializers.MlModelUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -285,7 +287,7 @@ class MlModels {
285
287
  /**
286
288
  * Partially update an ML Model, keying off of its UUID.
287
289
  *
288
- * @param {string} id - A UUID string identifying this ml model.
290
+ * @param {string} id - Either the ML Model's ID or its unique name
289
291
  * @param {Vellum.PatchedMlModelUpdateRequest} request
290
292
  * @param {MlModels.RequestOptions} requestOptions - Request-specific configuration.
291
293
  *
@@ -299,7 +301,7 @@ class MlModels {
299
301
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
300
302
  .default, `v1/ml-models/${encodeURIComponent(id)}`),
301
303
  method: "PATCH",
302
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
304
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
303
305
  contentType: "application/json",
304
306
  requestType: "json",
305
307
  body: serializers.PatchedMlModelUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -7,6 +7,8 @@ import * as Vellum from "../../../../index";
7
7
  * {
8
8
  * name: "name",
9
9
  * family: Vellum.MlModelFamily.Capybara,
10
+ * hostedBy: Vellum.HostedByEnum.Anthropic,
11
+ * developedBy: Vellum.MlModelDeveloper.OneAi,
10
12
  * execConfig: {
11
13
  * modelIdentifier: "model_identifier",
12
14
  * baseUrl: "base_url",
@@ -66,7 +68,7 @@ export interface MlModelCreateRequest {
66
68
  * * `PYQ` - PYQ
67
69
  * * `REPLICATE` - REPLICATE
68
70
  */
69
- hostedBy?: Vellum.HostedByEnum;
71
+ hostedBy: Vellum.HostedByEnum;
70
72
  /**
71
73
  * The organization that developed the ML Model.
72
74
  *
@@ -89,7 +91,7 @@ export interface MlModelCreateRequest {
89
91
  * * `TII` - TII
90
92
  * * `WIZARDLM` - WIZARDLM
91
93
  */
92
- developedBy?: Vellum.MlModelDeveloper;
94
+ developedBy: Vellum.MlModelDeveloper;
93
95
  /** Configuration for how to execute the ML Model. */
94
96
  execConfig: Vellum.MlModelExecConfigRequest;
95
97
  /** Configuration for the ML Model's parameters. */
@@ -64,7 +64,7 @@ class Sandboxes {
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/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "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.7.8", "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
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -133,7 +133,7 @@ class Sandboxes {
133
133
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
134
134
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
135
135
  method: "POST",
136
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
137
137
  contentType: "application/json",
138
138
  requestType: "json",
139
139
  body: serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
@@ -189,7 +189,7 @@ class Sandboxes {
189
189
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
190
190
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
191
191
  method: "DELETE",
192
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
193
193
  contentType: "application/json",
194
194
  requestType: "json",
195
195
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -74,7 +74,7 @@ class TestSuiteRuns {
74
74
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
75
75
  .default, "v1/test-suite-runs"),
76
76
  method: "POST",
77
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -127,7 +127,7 @@ class TestSuiteRuns {
127
127
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
128
128
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
129
129
  method: "GET",
130
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
131
131
  contentType: "application/json",
132
132
  requestType: "json",
133
133
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -194,7 +194,7 @@ class TestSuiteRuns {
194
194
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
195
195
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
196
196
  method: "GET",
197
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
197
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
198
198
  contentType: "application/json",
199
199
  queryParameters: _queryParams,
200
200
  requestType: "json",