vellum-ai 0.6.2 → 0.6.3

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 (95) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +22 -22
  3. package/api/resources/deployments/client/Client.d.ts +0 -1
  4. package/api/resources/deployments/client/Client.js +5 -49
  5. package/api/resources/deployments/client/requests/index.d.ts +0 -1
  6. package/api/resources/documentIndexes/client/Client.js +6 -6
  7. package/api/resources/documents/client/Client.js +5 -5
  8. package/api/resources/folderEntities/client/Client.js +1 -1
  9. package/api/resources/index.d.ts +2 -2
  10. package/api/resources/index.js +3 -3
  11. package/api/resources/sandboxes/client/Client.d.ts +1 -0
  12. package/api/resources/sandboxes/client/Client.js +46 -2
  13. package/api/resources/sandboxes/client/requests/index.d.ts +1 -0
  14. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  15. package/api/resources/testSuites/client/Client.js +3 -3
  16. package/api/resources/workflowDeployments/client/Client.js +4 -4
  17. package/{dist/api/resources/promptVersions → api/resources/workflowSandboxes}/client/Client.d.ts +5 -5
  18. package/{dist/api/resources/promptVersions → api/resources/workflowSandboxes}/client/Client.js +8 -8
  19. package/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  20. package/dist/Client.d.ts +3 -3
  21. package/dist/Client.js +22 -22
  22. package/dist/api/resources/deployments/client/Client.d.ts +0 -1
  23. package/dist/api/resources/deployments/client/Client.js +5 -49
  24. package/dist/api/resources/deployments/client/requests/index.d.ts +0 -1
  25. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  26. package/dist/api/resources/documents/client/Client.js +5 -5
  27. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  28. package/dist/api/resources/index.d.ts +2 -2
  29. package/dist/api/resources/index.js +3 -3
  30. package/dist/api/resources/sandboxes/client/Client.d.ts +1 -0
  31. package/dist/api/resources/sandboxes/client/Client.js +46 -2
  32. package/dist/api/resources/sandboxes/client/requests/index.d.ts +1 -0
  33. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  34. package/dist/api/resources/testSuites/client/Client.js +3 -3
  35. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  36. package/{api/resources/promptVersions → dist/api/resources/workflowSandboxes}/client/Client.d.ts +5 -5
  37. package/{api/resources/promptVersions → dist/api/resources/workflowSandboxes}/client/Client.js +8 -8
  38. package/dist/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  39. package/dist/serialization/resources/deployments/client/requests/index.d.ts +0 -1
  40. package/dist/serialization/resources/deployments/client/requests/index.js +1 -3
  41. package/dist/serialization/resources/index.d.ts +2 -2
  42. package/dist/serialization/resources/index.js +3 -3
  43. package/dist/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
  44. package/dist/serialization/resources/sandboxes/client/requests/index.js +3 -1
  45. package/dist/serialization/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  46. package/dist/serialization/resources/workflowSandboxes/client/requests/index.js +5 -0
  47. package/package.json +1 -1
  48. package/serialization/resources/deployments/client/requests/index.d.ts +0 -1
  49. package/serialization/resources/deployments/client/requests/index.js +1 -3
  50. package/serialization/resources/index.d.ts +2 -2
  51. package/serialization/resources/index.js +3 -3
  52. package/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
  53. package/serialization/resources/sandboxes/client/requests/index.js +3 -1
  54. package/serialization/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  55. package/serialization/resources/workflowSandboxes/client/requests/index.js +5 -0
  56. package/api/resources/promptVersions/client/requests/index.d.ts +0 -1
  57. package/dist/api/resources/promptVersions/client/requests/index.d.ts +0 -1
  58. package/dist/serialization/resources/promptVersions/client/requests/index.d.ts +0 -1
  59. package/dist/serialization/resources/promptVersions/client/requests/index.js +0 -5
  60. package/serialization/resources/promptVersions/client/requests/index.d.ts +0 -1
  61. package/serialization/resources/promptVersions/client/requests/index.js +0 -5
  62. /package/api/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.d.ts +0 -0
  63. /package/api/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.js +0 -0
  64. /package/api/resources/{promptVersions → workflowSandboxes}/client/index.d.ts +0 -0
  65. /package/api/resources/{promptVersions → workflowSandboxes}/client/index.js +0 -0
  66. /package/api/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.d.ts +0 -0
  67. /package/api/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.js +0 -0
  68. /package/api/resources/{promptVersions → workflowSandboxes}/client/requests/index.js +0 -0
  69. /package/api/resources/{promptVersions → workflowSandboxes}/index.d.ts +0 -0
  70. /package/api/resources/{promptVersions → workflowSandboxes}/index.js +0 -0
  71. /package/dist/api/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.d.ts +0 -0
  72. /package/dist/api/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.js +0 -0
  73. /package/dist/api/resources/{promptVersions → workflowSandboxes}/client/index.d.ts +0 -0
  74. /package/dist/api/resources/{promptVersions → workflowSandboxes}/client/index.js +0 -0
  75. /package/dist/api/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.d.ts +0 -0
  76. /package/dist/api/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.js +0 -0
  77. /package/dist/api/resources/{promptVersions → workflowSandboxes}/client/requests/index.js +0 -0
  78. /package/dist/api/resources/{promptVersions → workflowSandboxes}/index.d.ts +0 -0
  79. /package/dist/api/resources/{promptVersions → workflowSandboxes}/index.js +0 -0
  80. /package/dist/serialization/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.d.ts +0 -0
  81. /package/dist/serialization/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.js +0 -0
  82. /package/dist/serialization/resources/{promptVersions → workflowSandboxes}/client/index.d.ts +0 -0
  83. /package/dist/serialization/resources/{promptVersions → workflowSandboxes}/client/index.js +0 -0
  84. /package/dist/serialization/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.d.ts +0 -0
  85. /package/dist/serialization/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.js +0 -0
  86. /package/dist/serialization/resources/{promptVersions → workflowSandboxes}/index.d.ts +0 -0
  87. /package/dist/serialization/resources/{promptVersions → workflowSandboxes}/index.js +0 -0
  88. /package/serialization/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.d.ts +0 -0
  89. /package/serialization/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.js +0 -0
  90. /package/serialization/resources/{promptVersions → workflowSandboxes}/client/index.d.ts +0 -0
  91. /package/serialization/resources/{promptVersions → workflowSandboxes}/client/index.js +0 -0
  92. /package/serialization/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.d.ts +0 -0
  93. /package/serialization/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.js +0 -0
  94. /package/serialization/resources/{promptVersions → workflowSandboxes}/index.d.ts +0 -0
  95. /package/serialization/resources/{promptVersions → workflowSandboxes}/index.js +0 -0
@@ -69,7 +69,7 @@ class WorkflowDeployments {
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/workflow-deployments"),
71
71
  method: "GET",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -117,7 +117,7 @@ class WorkflowDeployments {
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
  .default, `v1/workflow-deployments/${id}`),
119
119
  method: "GET",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
123
123
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -164,7 +164,7 @@ class WorkflowDeployments {
164
164
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
165
165
  .default, `v1/workflow-deployments/${id}/release-tags/${name}`),
166
166
  method: "GET",
167
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
168
168
  contentType: "application/json",
169
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
170
170
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -211,7 +211,7 @@ class WorkflowDeployments {
211
211
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
212
212
  .default, `v1/workflow-deployments/${id}/release-tags/${name}`),
213
213
  method: "PATCH",
214
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
214
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
215
  contentType: "application/json",
216
216
  body: yield serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
217
217
  unrecognizedObjectKeys: "strip",
@@ -4,7 +4,7 @@
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
6
  import * as Vellum from "../../..";
7
- export declare namespace PromptVersions {
7
+ export declare namespace WorkflowSandboxes {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  apiKey: core.Supplier<string>;
@@ -14,10 +14,10 @@ export declare namespace PromptVersions {
14
14
  maxRetries?: number;
15
15
  }
16
16
  }
17
- export declare class PromptVersions {
18
- protected readonly _options: PromptVersions.Options;
19
- constructor(_options: PromptVersions.Options);
20
- deployPrompt(id: string, promptId: string, request?: Vellum.DeploySandboxPromptRequest, requestOptions?: PromptVersions.RequestOptions): Promise<Vellum.DeploymentRead>;
17
+ export declare class WorkflowSandboxes {
18
+ protected readonly _options: WorkflowSandboxes.Options;
19
+ constructor(_options: WorkflowSandboxes.Options);
20
+ deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
21
21
  protected _getCustomAuthorizationHeaders(): Promise<{
22
22
  X_API_KEY: string;
23
23
  }>;
@@ -38,33 +38,33 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  return (mod && mod.__esModule) ? mod : { "default": mod };
39
39
  };
40
40
  Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.PromptVersions = void 0;
41
+ exports.WorkflowSandboxes = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
44
  const serializers = __importStar(require("../../../../serialization"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors"));
47
- class PromptVersions {
47
+ class WorkflowSandboxes {
48
48
  constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
- deployPrompt(id, promptId, request = {}, requestOptions) {
51
+ deployWorkflow(id, workflowId, request = {}, requestOptions) {
52
52
  var _a;
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
54
  const _response = yield core.fetcher({
55
55
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
56
- .default, `v1/sandboxes/${id}/prompts/${promptId}/deploy`),
56
+ .default, `v1/workflow-sandboxes/${id}/workflows/${workflowId}/deploy`),
57
57
  method: "POST",
58
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
58
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
59
59
  contentType: "application/json",
60
- body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
60
+ body: yield serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, {
61
61
  unrecognizedObjectKeys: "strip",
62
62
  }),
63
63
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
64
64
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
65
65
  });
66
66
  if (_response.ok) {
67
- return yield serializers.DeploymentRead.parseOrThrow(_response.body, {
67
+ return yield serializers.WorkflowDeploymentRead.parseOrThrow(_response.body, {
68
68
  unrecognizedObjectKeys: "passthrough",
69
69
  allowUnrecognizedUnionMembers: true,
70
70
  allowUnrecognizedEnumValues: true,
@@ -99,4 +99,4 @@ class PromptVersions {
99
99
  });
100
100
  }
101
101
  }
102
- exports.PromptVersions = PromptVersions;
102
+ exports.WorkflowSandboxes = WorkflowSandboxes;
@@ -0,0 +1 @@
1
+ export { DeploySandboxWorkflowRequest } from "./DeploySandboxWorkflowRequest";
package/dist/Client.d.ts CHANGED
@@ -8,11 +8,11 @@ import { Deployments } from "./api/resources/deployments/client/Client";
8
8
  import { DocumentIndexes } from "./api/resources/documentIndexes/client/Client";
9
9
  import { Documents } from "./api/resources/documents/client/Client";
10
10
  import { FolderEntities } from "./api/resources/folderEntities/client/Client";
11
- import { PromptVersions } from "./api/resources/promptVersions/client/Client";
12
11
  import { Sandboxes } from "./api/resources/sandboxes/client/Client";
13
12
  import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
14
13
  import { TestSuites } from "./api/resources/testSuites/client/Client";
15
14
  import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/Client";
15
+ import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Client";
16
16
  export declare namespace VellumClient {
17
17
  interface Options {
18
18
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
@@ -119,8 +119,6 @@ export declare class VellumClient {
119
119
  get documents(): Documents;
120
120
  protected _folderEntities: FolderEntities | undefined;
121
121
  get folderEntities(): FolderEntities;
122
- protected _promptVersions: PromptVersions | undefined;
123
- get promptVersions(): PromptVersions;
124
122
  protected _sandboxes: Sandboxes | undefined;
125
123
  get sandboxes(): Sandboxes;
126
124
  protected _testSuiteRuns: TestSuiteRuns | undefined;
@@ -129,6 +127,8 @@ export declare class VellumClient {
129
127
  get testSuites(): TestSuites;
130
128
  protected _workflowDeployments: WorkflowDeployments | undefined;
131
129
  get workflowDeployments(): WorkflowDeployments;
130
+ protected _workflowSandboxes: WorkflowSandboxes | undefined;
131
+ get workflowSandboxes(): WorkflowSandboxes;
132
132
  protected _getCustomAuthorizationHeaders(): Promise<{
133
133
  X_API_KEY: string;
134
134
  }>;
package/dist/Client.js CHANGED
@@ -49,11 +49,11 @@ const Client_1 = require("./api/resources/deployments/client/Client");
49
49
  const Client_2 = require("./api/resources/documentIndexes/client/Client");
50
50
  const Client_3 = require("./api/resources/documents/client/Client");
51
51
  const Client_4 = require("./api/resources/folderEntities/client/Client");
52
- const Client_5 = require("./api/resources/promptVersions/client/Client");
53
- const Client_6 = require("./api/resources/sandboxes/client/Client");
54
- const Client_7 = require("./api/resources/testSuiteRuns/client/Client");
55
- const Client_8 = require("./api/resources/testSuites/client/Client");
56
- const Client_9 = require("./api/resources/workflowDeployments/client/Client");
52
+ const Client_5 = require("./api/resources/sandboxes/client/Client");
53
+ const Client_6 = require("./api/resources/testSuiteRuns/client/Client");
54
+ const Client_7 = require("./api/resources/testSuites/client/Client");
55
+ const Client_8 = require("./api/resources/workflowDeployments/client/Client");
56
+ const Client_9 = require("./api/resources/workflowSandboxes/client/Client");
57
57
  class VellumClient {
58
58
  constructor(_options) {
59
59
  this._options = _options;
@@ -72,7 +72,7 @@ class VellumClient {
72
72
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
73
73
  .predict, "v1/execute-prompt"),
74
74
  method: "POST",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -128,7 +128,7 @@ class VellumClient {
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
  .predict, "v1/execute-prompt-stream"),
130
130
  method: "POST",
131
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
132
  contentType: "application/json",
133
133
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
134
134
  unrecognizedObjectKeys: "strip",
@@ -196,7 +196,7 @@ class VellumClient {
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
  .predict, "v1/execute-workflow"),
198
198
  method: "POST",
199
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
200
  contentType: "application/json",
201
201
  body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
202
202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -250,7 +250,7 @@ class VellumClient {
250
250
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
251
251
  .predict, "v1/execute-workflow-stream"),
252
252
  method: "POST",
253
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
253
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
254
  contentType: "application/json",
255
255
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
256
256
  unrecognizedObjectKeys: "strip",
@@ -326,7 +326,7 @@ class VellumClient {
326
326
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
327
327
  .predict, "v1/generate"),
328
328
  method: "POST",
329
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
329
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
330
330
  contentType: "application/json",
331
331
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
332
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -384,7 +384,7 @@ class VellumClient {
384
384
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
385
385
  .predict, "v1/generate-stream"),
386
386
  method: "POST",
387
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
387
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
388
388
  contentType: "application/json",
389
389
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
390
390
  responseType: "streaming",
@@ -457,7 +457,7 @@ class VellumClient {
457
457
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
458
458
  .predict, "v1/search"),
459
459
  method: "POST",
460
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
460
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
461
461
  contentType: "application/json",
462
462
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
463
463
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -521,7 +521,7 @@ class VellumClient {
521
521
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
522
522
  .predict, "v1/submit-completion-actuals"),
523
523
  method: "POST",
524
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
524
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
525
525
  contentType: "application/json",
526
526
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
527
527
  unrecognizedObjectKeys: "strip",
@@ -579,7 +579,7 @@ class VellumClient {
579
579
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
580
580
  .predict, "v1/submit-workflow-execution-actuals"),
581
581
  method: "POST",
582
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
582
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
583
583
  contentType: "application/json",
584
584
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
585
585
  unrecognizedObjectKeys: "strip",
@@ -627,25 +627,25 @@ class VellumClient {
627
627
  var _a;
628
628
  return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new Client_4.FolderEntities(this._options)));
629
629
  }
630
- get promptVersions() {
631
- var _a;
632
- return ((_a = this._promptVersions) !== null && _a !== void 0 ? _a : (this._promptVersions = new Client_5.PromptVersions(this._options)));
633
- }
634
630
  get sandboxes() {
635
631
  var _a;
636
- return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_6.Sandboxes(this._options)));
632
+ return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_5.Sandboxes(this._options)));
637
633
  }
638
634
  get testSuiteRuns() {
639
635
  var _a;
640
- return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_7.TestSuiteRuns(this._options)));
636
+ return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_6.TestSuiteRuns(this._options)));
641
637
  }
642
638
  get testSuites() {
643
639
  var _a;
644
- return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_8.TestSuites(this._options)));
640
+ return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_7.TestSuites(this._options)));
645
641
  }
646
642
  get workflowDeployments() {
647
643
  var _a;
648
- return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_9.WorkflowDeployments(this._options)));
644
+ return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_8.WorkflowDeployments(this._options)));
645
+ }
646
+ get workflowSandboxes() {
647
+ var _a;
648
+ return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_9.WorkflowSandboxes(this._options)));
649
649
  }
650
650
  _getCustomAuthorizationHeaders() {
651
651
  return __awaiter(this, void 0, void 0, function* () {
@@ -51,7 +51,6 @@ export declare class Deployments {
51
51
  * })
52
52
  */
53
53
  retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
54
- deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
55
54
  protected _getCustomAuthorizationHeaders(): Promise<{
56
55
  X_API_KEY: string;
57
56
  }>;
@@ -70,7 +70,7 @@ class Deployments {
70
70
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
71
71
  .default, "v1/deployments"),
72
72
  method: "GET",
73
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
74
  contentType: "application/json",
75
75
  queryParameters: _queryParams,
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -118,7 +118,7 @@ class Deployments {
118
118
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
119
119
  .default, `v1/deployments/${id}`),
120
120
  method: "GET",
121
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
122
122
  contentType: "application/json",
123
123
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
124
124
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -165,7 +165,7 @@ class Deployments {
165
165
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
166
166
  .default, `v1/deployments/${id}/release-tags/${name}`),
167
167
  method: "GET",
168
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
168
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
169
169
  contentType: "application/json",
170
170
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
171
171
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -212,7 +212,7 @@ class Deployments {
212
212
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
213
213
  .default, `v1/deployments/${id}/release-tags/${name}`),
214
214
  method: "PATCH",
215
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
216
216
  contentType: "application/json",
217
217
  body: yield serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
218
218
  unrecognizedObjectKeys: "strip",
@@ -267,7 +267,7 @@ class Deployments {
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
  .default, "v1/deployments/provider-payload"),
269
269
  method: "POST",
270
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
271
271
  contentType: "application/json",
272
272
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
273
273
  unrecognizedObjectKeys: "strip",
@@ -315,50 +315,6 @@ class Deployments {
315
315
  }
316
316
  });
317
317
  }
318
- deployWorkflow(id, workflowId, request = {}, requestOptions) {
319
- var _a;
320
- return __awaiter(this, void 0, void 0, function* () {
321
- const _response = yield core.fetcher({
322
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
323
- .default, `v1/workflow-sandboxes/${id}/workflows/${workflowId}/deploy`),
324
- method: "POST",
325
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
326
- contentType: "application/json",
327
- body: yield serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, {
328
- unrecognizedObjectKeys: "strip",
329
- }),
330
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
331
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
332
- });
333
- if (_response.ok) {
334
- return yield serializers.WorkflowDeploymentRead.parseOrThrow(_response.body, {
335
- unrecognizedObjectKeys: "passthrough",
336
- allowUnrecognizedUnionMembers: true,
337
- allowUnrecognizedEnumValues: true,
338
- breadcrumbsPrefix: ["response"],
339
- });
340
- }
341
- if (_response.error.reason === "status-code") {
342
- throw new errors.VellumError({
343
- statusCode: _response.error.statusCode,
344
- body: _response.error.body,
345
- });
346
- }
347
- switch (_response.error.reason) {
348
- case "non-json":
349
- throw new errors.VellumError({
350
- statusCode: _response.error.statusCode,
351
- body: _response.error.rawBody,
352
- });
353
- case "timeout":
354
- throw new errors.VellumTimeoutError();
355
- case "unknown":
356
- throw new errors.VellumError({
357
- message: _response.error.errorMessage,
358
- });
359
- }
360
- });
361
- }
362
318
  _getCustomAuthorizationHeaders() {
363
319
  return __awaiter(this, void 0, void 0, function* () {
364
320
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -1,4 +1,3 @@
1
1
  export { DeploymentsListRequest } from "./DeploymentsListRequest";
2
2
  export { PatchedDeploymentReleaseTagUpdateRequest } from "./PatchedDeploymentReleaseTagUpdateRequest";
3
3
  export { DeploymentProviderPayloadRequest } from "./DeploymentProviderPayloadRequest";
4
- export { DeploySandboxWorkflowRequest } from "./DeploySandboxWorkflowRequest";
@@ -78,7 +78,7 @@ class DocumentIndexes {
78
78
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
79
79
  .default, "v1/document-indexes"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -123,7 +123,7 @@ class DocumentIndexes {
123
123
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
124
124
  .default, "v1/document-indexes"),
125
125
  method: "POST",
126
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
126
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
127
  contentType: "application/json",
128
128
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
129
129
  unrecognizedObjectKeys: "strip",
@@ -170,7 +170,7 @@ class DocumentIndexes {
170
170
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
171
171
  .default, `v1/document-indexes/${id}`),
172
172
  method: "GET",
173
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
173
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
174
  contentType: "application/json",
175
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
176
176
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -214,7 +214,7 @@ class DocumentIndexes {
214
214
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
215
215
  .default, `v1/document-indexes/${id}`),
216
216
  method: "PUT",
217
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
217
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
218
  contentType: "application/json",
219
219
  body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
220
220
  unrecognizedObjectKeys: "strip",
@@ -264,7 +264,7 @@ class DocumentIndexes {
264
264
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
265
265
  .default, `v1/document-indexes/${id}`),
266
266
  method: "DELETE",
267
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
267
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
268
268
  contentType: "application/json",
269
269
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
270
270
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -303,7 +303,7 @@ class DocumentIndexes {
303
303
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
304
304
  .default, `v1/document-indexes/${id}`),
305
305
  method: "PATCH",
306
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
306
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
307
  contentType: "application/json",
308
308
  body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
309
309
  unrecognizedObjectKeys: "strip",
@@ -77,7 +77,7 @@ class Documents {
77
77
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
78
78
  .default, "v1/documents"),
79
79
  method: "GET",
80
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -125,7 +125,7 @@ class Documents {
125
125
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
126
126
  .default, `v1/documents/${id}`),
127
127
  method: "GET",
128
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
131
131
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -172,7 +172,7 @@ class Documents {
172
172
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
173
173
  .default, `v1/documents/${id}`),
174
174
  method: "DELETE",
175
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
176
176
  contentType: "application/json",
177
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
178
178
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -214,7 +214,7 @@ class Documents {
214
214
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
215
215
  .default, `v1/documents/${id}`),
216
216
  method: "PATCH",
217
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
217
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
218
  contentType: "application/json",
219
219
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
220
220
  unrecognizedObjectKeys: "strip",
@@ -293,7 +293,7 @@ class Documents {
293
293
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
294
294
  .documents, "v1/upload-document"),
295
295
  method: "POST",
296
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
297
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
298
298
  body: _request,
299
299
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -65,7 +65,7 @@ class FolderEntities {
65
65
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
66
66
  .default, `v1/folders/${folderId}/add-entity`),
67
67
  method: "POST",
68
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
69
  contentType: "application/json",
70
70
  body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
71
71
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -6,16 +6,16 @@ export * as workflowDeployments from "./workflowDeployments";
6
6
  export * from "./workflowDeployments/types";
7
7
  export * as documents from "./documents";
8
8
  export * as folderEntities from "./folderEntities";
9
- export * as promptVersions from "./promptVersions";
10
9
  export * as sandboxes from "./sandboxes";
11
10
  export * as testSuiteRuns from "./testSuiteRuns";
12
11
  export * as testSuites from "./testSuites";
12
+ export * as workflowSandboxes from "./workflowSandboxes";
13
13
  export * from "./deployments/client/requests";
14
14
  export * from "./documentIndexes/client/requests";
15
15
  export * from "./documents/client/requests";
16
16
  export * from "./folderEntities/client/requests";
17
- export * from "./promptVersions/client/requests";
18
17
  export * from "./sandboxes/client/requests";
19
18
  export * from "./testSuiteRuns/client/requests";
20
19
  export * from "./testSuites/client/requests";
21
20
  export * from "./workflowDeployments/client/requests";
21
+ export * from "./workflowSandboxes/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.promptVersions = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -35,16 +35,16 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
35
35
  __exportStar(require("./workflowDeployments/types"), exports);
36
36
  exports.documents = __importStar(require("./documents"));
37
37
  exports.folderEntities = __importStar(require("./folderEntities"));
38
- exports.promptVersions = __importStar(require("./promptVersions"));
39
38
  exports.sandboxes = __importStar(require("./sandboxes"));
40
39
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
41
40
  exports.testSuites = __importStar(require("./testSuites"));
41
+ exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
42
42
  __exportStar(require("./deployments/client/requests"), exports);
43
43
  __exportStar(require("./documentIndexes/client/requests"), exports);
44
44
  __exportStar(require("./documents/client/requests"), exports);
45
45
  __exportStar(require("./folderEntities/client/requests"), exports);
46
- __exportStar(require("./promptVersions/client/requests"), exports);
47
46
  __exportStar(require("./sandboxes/client/requests"), exports);
48
47
  __exportStar(require("./testSuiteRuns/client/requests"), exports);
49
48
  __exportStar(require("./testSuites/client/requests"), exports);
50
49
  __exportStar(require("./workflowDeployments/client/requests"), exports);
50
+ __exportStar(require("./workflowSandboxes/client/requests"), exports);
@@ -17,6 +17,7 @@ export declare namespace Sandboxes {
17
17
  export declare class Sandboxes {
18
18
  protected readonly _options: Sandboxes.Options;
19
19
  constructor(_options: Sandboxes.Options);
20
+ deployPrompt(id: string, promptId: string, request?: Vellum.DeploySandboxPromptRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.DeploymentRead>;
20
21
  /**
21
22
  * Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
22
23
  *