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
@@ -48,6 +48,50 @@ class Sandboxes {
48
48
  constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
+ deployPrompt(id, promptId, request = {}, requestOptions) {
52
+ var _a;
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const _response = yield core.fetcher({
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`),
57
+ method: "POST",
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
+ contentType: "application/json",
60
+ body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
61
+ unrecognizedObjectKeys: "strip",
62
+ }),
63
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
64
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
65
+ });
66
+ if (_response.ok) {
67
+ return yield serializers.DeploymentRead.parseOrThrow(_response.body, {
68
+ unrecognizedObjectKeys: "passthrough",
69
+ allowUnrecognizedUnionMembers: true,
70
+ allowUnrecognizedEnumValues: true,
71
+ breadcrumbsPrefix: ["response"],
72
+ });
73
+ }
74
+ if (_response.error.reason === "status-code") {
75
+ throw new errors.VellumError({
76
+ statusCode: _response.error.statusCode,
77
+ body: _response.error.body,
78
+ });
79
+ }
80
+ switch (_response.error.reason) {
81
+ case "non-json":
82
+ throw new errors.VellumError({
83
+ statusCode: _response.error.statusCode,
84
+ body: _response.error.rawBody,
85
+ });
86
+ case "timeout":
87
+ throw new errors.VellumTimeoutError();
88
+ case "unknown":
89
+ throw new errors.VellumError({
90
+ message: _response.error.errorMessage,
91
+ });
92
+ }
93
+ });
94
+ }
51
95
  /**
52
96
  * Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
53
97
  *
@@ -76,7 +120,7 @@ class Sandboxes {
76
120
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
77
121
  .default, `v1/sandboxes/${id}/scenarios`),
78
122
  method: "POST",
79
- 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())),
123
+ 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())),
80
124
  contentType: "application/json",
81
125
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
82
126
  unrecognizedObjectKeys: "strip",
@@ -126,7 +170,7 @@ class Sandboxes {
126
170
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
127
171
  .default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
128
172
  method: "DELETE",
129
- 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())),
130
174
  contentType: "application/json",
131
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
132
176
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1 +1,2 @@
1
+ export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
1
2
  export { UpsertSandboxScenarioRequestRequest } from "./UpsertSandboxScenarioRequestRequest";
@@ -58,7 +58,7 @@ class TestSuiteRuns {
58
58
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
59
59
  .default, "v1/test-suite-runs"),
60
60
  method: "POST",
61
- 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())),
61
+ 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())),
62
62
  contentType: "application/json",
63
63
  body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
64
64
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -106,7 +106,7 @@ class TestSuiteRuns {
106
106
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
107
107
  .default, `v1/test-suite-runs/${id}`),
108
108
  method: "GET",
109
- 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())),
109
+ 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())),
110
110
  contentType: "application/json",
111
111
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
112
112
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -163,7 +163,7 @@ class TestSuiteRuns {
163
163
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
164
164
  .default, `v1/test-suite-runs/${id}/executions`),
165
165
  method: "GET",
166
- 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())),
166
+ 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())),
167
167
  contentType: "application/json",
168
168
  queryParameters: _queryParams,
169
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class TestSuites {
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/test-suites/${id}/test-cases`),
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,
@@ -126,7 +126,7 @@ class TestSuites {
126
126
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
127
127
  .default, `v1/test-suites/${id}/test-cases`),
128
128
  method: "POST",
129
- 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())),
129
+ 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())),
130
130
  contentType: "application/json",
131
131
  body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
132
132
  unrecognizedObjectKeys: "strip",
@@ -176,7 +176,7 @@ class TestSuites {
176
176
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
177
177
  .default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
178
178
  method: "DELETE",
179
- 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())),
179
+ 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())),
180
180
  contentType: "application/json",
181
181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
182
182
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -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";
@@ -1,3 +1,2 @@
1
1
  export { PatchedDeploymentReleaseTagUpdateRequest } from "./PatchedDeploymentReleaseTagUpdateRequest";
2
2
  export { DeploymentProviderPayloadRequest } from "./DeploymentProviderPayloadRequest";
3
- export { DeploySandboxWorkflowRequest } from "./DeploySandboxWorkflowRequest";
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeploySandboxWorkflowRequest = exports.DeploymentProviderPayloadRequest = exports.PatchedDeploymentReleaseTagUpdateRequest = void 0;
3
+ exports.DeploymentProviderPayloadRequest = exports.PatchedDeploymentReleaseTagUpdateRequest = void 0;
4
4
  var PatchedDeploymentReleaseTagUpdateRequest_1 = require("./PatchedDeploymentReleaseTagUpdateRequest");
5
5
  Object.defineProperty(exports, "PatchedDeploymentReleaseTagUpdateRequest", { enumerable: true, get: function () { return PatchedDeploymentReleaseTagUpdateRequest_1.PatchedDeploymentReleaseTagUpdateRequest; } });
6
6
  var DeploymentProviderPayloadRequest_1 = require("./DeploymentProviderPayloadRequest");
7
7
  Object.defineProperty(exports, "DeploymentProviderPayloadRequest", { enumerable: true, get: function () { return DeploymentProviderPayloadRequest_1.DeploymentProviderPayloadRequest; } });
8
- var DeploySandboxWorkflowRequest_1 = require("./DeploySandboxWorkflowRequest");
9
- Object.defineProperty(exports, "DeploySandboxWorkflowRequest", { enumerable: true, get: function () { return DeploySandboxWorkflowRequest_1.DeploySandboxWorkflowRequest; } });
@@ -10,8 +10,6 @@ export * as documents from "./documents";
10
10
  export * from "./documents/client/requests";
11
11
  export * as folderEntities from "./folderEntities";
12
12
  export * from "./folderEntities/client/requests";
13
- export * as promptVersions from "./promptVersions";
14
- export * from "./promptVersions/client/requests";
15
13
  export * as sandboxes from "./sandboxes";
16
14
  export * from "./sandboxes/client/requests";
17
15
  export * as testSuiteRuns from "./testSuiteRuns";
@@ -19,3 +17,5 @@ export * from "./testSuiteRuns/client/requests";
19
17
  export * as testSuites from "./testSuites";
20
18
  export * from "./testSuites/client/requests";
21
19
  export * from "./workflowDeployments/client/requests";
20
+ export * as workflowSandboxes from "./workflowSandboxes";
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"));
@@ -39,8 +39,6 @@ exports.documents = __importStar(require("./documents"));
39
39
  __exportStar(require("./documents/client/requests"), exports);
40
40
  exports.folderEntities = __importStar(require("./folderEntities"));
41
41
  __exportStar(require("./folderEntities/client/requests"), exports);
42
- exports.promptVersions = __importStar(require("./promptVersions"));
43
- __exportStar(require("./promptVersions/client/requests"), exports);
44
42
  exports.sandboxes = __importStar(require("./sandboxes"));
45
43
  __exportStar(require("./sandboxes/client/requests"), exports);
46
44
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
@@ -48,3 +46,5 @@ __exportStar(require("./testSuiteRuns/client/requests"), exports);
48
46
  exports.testSuites = __importStar(require("./testSuites"));
49
47
  __exportStar(require("./testSuites/client/requests"), exports);
50
48
  __exportStar(require("./workflowDeployments/client/requests"), exports);
49
+ exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
50
+ __exportStar(require("./workflowSandboxes/client/requests"), exports);
@@ -1 +1,2 @@
1
+ export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
1
2
  export { UpsertSandboxScenarioRequestRequest } from "./UpsertSandboxScenarioRequestRequest";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpsertSandboxScenarioRequestRequest = void 0;
3
+ exports.UpsertSandboxScenarioRequestRequest = exports.DeploySandboxPromptRequest = void 0;
4
+ var DeploySandboxPromptRequest_1 = require("./DeploySandboxPromptRequest");
5
+ Object.defineProperty(exports, "DeploySandboxPromptRequest", { enumerable: true, get: function () { return DeploySandboxPromptRequest_1.DeploySandboxPromptRequest; } });
4
6
  var UpsertSandboxScenarioRequestRequest_1 = require("./UpsertSandboxScenarioRequestRequest");
5
7
  Object.defineProperty(exports, "UpsertSandboxScenarioRequestRequest", { enumerable: true, get: function () { return UpsertSandboxScenarioRequestRequest_1.UpsertSandboxScenarioRequestRequest; } });
@@ -0,0 +1 @@
1
+ export { DeploySandboxWorkflowRequest } from "./DeploySandboxWorkflowRequest";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeploySandboxWorkflowRequest = void 0;
4
+ var DeploySandboxWorkflowRequest_1 = require("./DeploySandboxWorkflowRequest");
5
+ Object.defineProperty(exports, "DeploySandboxWorkflowRequest", { enumerable: true, get: function () { return DeploySandboxWorkflowRequest_1.DeploySandboxWorkflowRequest; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
@@ -1,3 +1,2 @@
1
1
  export { PatchedDeploymentReleaseTagUpdateRequest } from "./PatchedDeploymentReleaseTagUpdateRequest";
2
2
  export { DeploymentProviderPayloadRequest } from "./DeploymentProviderPayloadRequest";
3
- export { DeploySandboxWorkflowRequest } from "./DeploySandboxWorkflowRequest";
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeploySandboxWorkflowRequest = exports.DeploymentProviderPayloadRequest = exports.PatchedDeploymentReleaseTagUpdateRequest = void 0;
3
+ exports.DeploymentProviderPayloadRequest = exports.PatchedDeploymentReleaseTagUpdateRequest = void 0;
4
4
  var PatchedDeploymentReleaseTagUpdateRequest_1 = require("./PatchedDeploymentReleaseTagUpdateRequest");
5
5
  Object.defineProperty(exports, "PatchedDeploymentReleaseTagUpdateRequest", { enumerable: true, get: function () { return PatchedDeploymentReleaseTagUpdateRequest_1.PatchedDeploymentReleaseTagUpdateRequest; } });
6
6
  var DeploymentProviderPayloadRequest_1 = require("./DeploymentProviderPayloadRequest");
7
7
  Object.defineProperty(exports, "DeploymentProviderPayloadRequest", { enumerable: true, get: function () { return DeploymentProviderPayloadRequest_1.DeploymentProviderPayloadRequest; } });
8
- var DeploySandboxWorkflowRequest_1 = require("./DeploySandboxWorkflowRequest");
9
- Object.defineProperty(exports, "DeploySandboxWorkflowRequest", { enumerable: true, get: function () { return DeploySandboxWorkflowRequest_1.DeploySandboxWorkflowRequest; } });
@@ -10,8 +10,6 @@ export * as documents from "./documents";
10
10
  export * from "./documents/client/requests";
11
11
  export * as folderEntities from "./folderEntities";
12
12
  export * from "./folderEntities/client/requests";
13
- export * as promptVersions from "./promptVersions";
14
- export * from "./promptVersions/client/requests";
15
13
  export * as sandboxes from "./sandboxes";
16
14
  export * from "./sandboxes/client/requests";
17
15
  export * as testSuiteRuns from "./testSuiteRuns";
@@ -19,3 +17,5 @@ export * from "./testSuiteRuns/client/requests";
19
17
  export * as testSuites from "./testSuites";
20
18
  export * from "./testSuites/client/requests";
21
19
  export * from "./workflowDeployments/client/requests";
20
+ export * as workflowSandboxes from "./workflowSandboxes";
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"));
@@ -39,8 +39,6 @@ exports.documents = __importStar(require("./documents"));
39
39
  __exportStar(require("./documents/client/requests"), exports);
40
40
  exports.folderEntities = __importStar(require("./folderEntities"));
41
41
  __exportStar(require("./folderEntities/client/requests"), exports);
42
- exports.promptVersions = __importStar(require("./promptVersions"));
43
- __exportStar(require("./promptVersions/client/requests"), exports);
44
42
  exports.sandboxes = __importStar(require("./sandboxes"));
45
43
  __exportStar(require("./sandboxes/client/requests"), exports);
46
44
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
@@ -48,3 +46,5 @@ __exportStar(require("./testSuiteRuns/client/requests"), exports);
48
46
  exports.testSuites = __importStar(require("./testSuites"));
49
47
  __exportStar(require("./testSuites/client/requests"), exports);
50
48
  __exportStar(require("./workflowDeployments/client/requests"), exports);
49
+ exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
50
+ __exportStar(require("./workflowSandboxes/client/requests"), exports);
@@ -1 +1,2 @@
1
+ export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
1
2
  export { UpsertSandboxScenarioRequestRequest } from "./UpsertSandboxScenarioRequestRequest";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpsertSandboxScenarioRequestRequest = void 0;
3
+ exports.UpsertSandboxScenarioRequestRequest = exports.DeploySandboxPromptRequest = void 0;
4
+ var DeploySandboxPromptRequest_1 = require("./DeploySandboxPromptRequest");
5
+ Object.defineProperty(exports, "DeploySandboxPromptRequest", { enumerable: true, get: function () { return DeploySandboxPromptRequest_1.DeploySandboxPromptRequest; } });
4
6
  var UpsertSandboxScenarioRequestRequest_1 = require("./UpsertSandboxScenarioRequestRequest");
5
7
  Object.defineProperty(exports, "UpsertSandboxScenarioRequestRequest", { enumerable: true, get: function () { return UpsertSandboxScenarioRequestRequest_1.UpsertSandboxScenarioRequestRequest; } });
@@ -0,0 +1 @@
1
+ export { DeploySandboxWorkflowRequest } from "./DeploySandboxWorkflowRequest";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeploySandboxWorkflowRequest = void 0;
4
+ var DeploySandboxWorkflowRequest_1 = require("./DeploySandboxWorkflowRequest");
5
+ Object.defineProperty(exports, "DeploySandboxWorkflowRequest", { enumerable: true, get: function () { return DeploySandboxWorkflowRequest_1.DeploySandboxWorkflowRequest; } });
@@ -1 +0,0 @@
1
- export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
@@ -1 +0,0 @@
1
- export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
@@ -1 +0,0 @@
1
- export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeploySandboxPromptRequest = void 0;
4
- var DeploySandboxPromptRequest_1 = require("./DeploySandboxPromptRequest");
5
- Object.defineProperty(exports, "DeploySandboxPromptRequest", { enumerable: true, get: function () { return DeploySandboxPromptRequest_1.DeploySandboxPromptRequest; } });
@@ -1 +0,0 @@
1
- export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeploySandboxPromptRequest = void 0;
4
- var DeploySandboxPromptRequest_1 = require("./DeploySandboxPromptRequest");
5
- Object.defineProperty(exports, "DeploySandboxPromptRequest", { enumerable: true, get: function () { return DeploySandboxPromptRequest_1.DeploySandboxPromptRequest; } });