vellum-ai 0.14.40 → 0.14.42

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 (108) hide show
  1. package/Client.js +11 -11
  2. package/api/resources/adHoc/client/Client.d.ts +29 -0
  3. package/api/resources/adHoc/client/Client.js +82 -1
  4. package/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +35 -0
  5. package/api/resources/adHoc/client/requests/index.d.ts +1 -0
  6. package/api/resources/containerImages/client/Client.js +4 -4
  7. package/api/resources/deployments/client/Client.js +7 -7
  8. package/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +1 -1
  9. package/api/resources/documentIndexes/client/Client.js +8 -8
  10. package/api/resources/documents/client/Client.d.ts +3 -3
  11. package/api/resources/documents/client/Client.js +8 -8
  12. package/api/resources/folderEntities/client/Client.js +2 -2
  13. package/api/resources/metricDefinitions/client/Client.js +2 -2
  14. package/api/resources/mlModels/client/Client.js +1 -1
  15. package/api/resources/organizations/client/Client.js +1 -1
  16. package/api/resources/prompts/client/Client.js +1 -1
  17. package/api/resources/releaseReviews/client/Client.js +2 -2
  18. package/api/resources/sandboxes/client/Client.js +3 -3
  19. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  20. package/api/resources/testSuites/client/Client.js +4 -4
  21. package/api/resources/workflowDeployments/client/Client.js +8 -8
  22. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  23. package/api/resources/workflows/client/Client.js +2 -2
  24. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  25. package/api/resources/workspaces/client/Client.js +1 -1
  26. package/api/types/ExecuteApiResponse.d.ts +2 -1
  27. package/api/types/ExecuteApiResponseJson.d.ts +4 -0
  28. package/api/types/PromptSettings.d.ts +1 -0
  29. package/api/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
  30. package/api/types/index.d.ts +1 -2
  31. package/api/types/index.js +1 -2
  32. package/dist/Client.js +11 -11
  33. package/dist/api/resources/adHoc/client/Client.d.ts +29 -0
  34. package/dist/api/resources/adHoc/client/Client.js +82 -1
  35. package/dist/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +35 -0
  36. package/dist/api/resources/adHoc/client/requests/index.d.ts +1 -0
  37. package/dist/api/resources/containerImages/client/Client.js +4 -4
  38. package/dist/api/resources/deployments/client/Client.js +7 -7
  39. package/dist/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +1 -1
  40. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  41. package/dist/api/resources/documents/client/Client.d.ts +3 -3
  42. package/dist/api/resources/documents/client/Client.js +8 -8
  43. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  44. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  45. package/dist/api/resources/mlModels/client/Client.js +1 -1
  46. package/dist/api/resources/organizations/client/Client.js +1 -1
  47. package/dist/api/resources/prompts/client/Client.js +1 -1
  48. package/dist/api/resources/releaseReviews/client/Client.js +2 -2
  49. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  50. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  51. package/dist/api/resources/testSuites/client/Client.js +4 -4
  52. package/dist/api/resources/workflowDeployments/client/Client.js +8 -8
  53. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  54. package/dist/api/resources/workflows/client/Client.js +2 -2
  55. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  56. package/dist/api/resources/workspaces/client/Client.js +1 -1
  57. package/dist/api/types/ExecuteApiResponse.d.ts +2 -1
  58. package/dist/api/types/ExecuteApiResponseJson.d.ts +4 -0
  59. package/dist/api/types/PromptSettings.d.ts +1 -0
  60. package/dist/api/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
  61. package/dist/api/types/index.d.ts +1 -2
  62. package/dist/api/types/index.js +1 -2
  63. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +25 -0
  64. package/dist/serialization/{types/NodeEventDisplayContext.js → resources/adHoc/client/requests/AdHocExecutePrompt.js} +18 -8
  65. package/dist/serialization/resources/adHoc/client/requests/index.d.ts +1 -0
  66. package/dist/serialization/resources/adHoc/client/requests/index.js +3 -1
  67. package/dist/serialization/types/ExecuteApiResponse.d.ts +2 -1
  68. package/dist/serialization/types/ExecuteApiResponse.js +2 -1
  69. package/dist/serialization/types/ExecuteApiResponseJson.d.ts +10 -0
  70. package/dist/serialization/types/{WorkflowEventDisplayContext.js → ExecuteApiResponseJson.js} +5 -7
  71. package/dist/serialization/types/PromptSettings.d.ts +1 -0
  72. package/dist/serialization/types/PromptSettings.js +1 -0
  73. package/dist/serialization/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
  74. package/dist/serialization/types/WorkflowExecutionInitiatedBody.js +0 -2
  75. package/dist/serialization/types/index.d.ts +1 -2
  76. package/dist/serialization/types/index.js +1 -2
  77. package/dist/version.d.ts +1 -1
  78. package/dist/version.js +1 -1
  79. package/package.json +1 -1
  80. package/reference.md +74 -3
  81. package/serialization/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +25 -0
  82. package/serialization/{types/NodeEventDisplayContext.js → resources/adHoc/client/requests/AdHocExecutePrompt.js} +18 -8
  83. package/serialization/resources/adHoc/client/requests/index.d.ts +1 -0
  84. package/serialization/resources/adHoc/client/requests/index.js +3 -1
  85. package/serialization/types/ExecuteApiResponse.d.ts +2 -1
  86. package/serialization/types/ExecuteApiResponse.js +2 -1
  87. package/serialization/types/ExecuteApiResponseJson.d.ts +10 -0
  88. package/serialization/types/{WorkflowEventDisplayContext.js → ExecuteApiResponseJson.js} +5 -7
  89. package/serialization/types/PromptSettings.d.ts +1 -0
  90. package/serialization/types/PromptSettings.js +1 -0
  91. package/serialization/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
  92. package/serialization/types/WorkflowExecutionInitiatedBody.js +0 -2
  93. package/serialization/types/index.d.ts +1 -2
  94. package/serialization/types/index.js +1 -2
  95. package/version.d.ts +1 -1
  96. package/version.js +1 -1
  97. package/api/types/NodeEventDisplayContext.d.ts +0 -10
  98. package/api/types/WorkflowEventDisplayContext.d.ts +0 -9
  99. package/dist/api/types/NodeEventDisplayContext.d.ts +0 -10
  100. package/dist/api/types/WorkflowEventDisplayContext.d.ts +0 -9
  101. package/dist/serialization/types/NodeEventDisplayContext.d.ts +0 -15
  102. package/dist/serialization/types/WorkflowEventDisplayContext.d.ts +0 -14
  103. package/serialization/types/NodeEventDisplayContext.d.ts +0 -15
  104. package/serialization/types/WorkflowEventDisplayContext.d.ts +0 -14
  105. /package/api/{types/NodeEventDisplayContext.js → resources/adHoc/client/requests/AdHocExecutePrompt.js} +0 -0
  106. /package/api/types/{WorkflowEventDisplayContext.js → ExecuteApiResponseJson.js} +0 -0
  107. /package/dist/api/{types/NodeEventDisplayContext.js → resources/adHoc/client/requests/AdHocExecutePrompt.js} +0 -0
  108. /package/dist/api/types/{WorkflowEventDisplayContext.js → ExecuteApiResponseJson.js} +0 -0
@@ -74,7 +74,7 @@ class Sandboxes {
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
75
75
  .default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
76
76
  method: "POST",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -161,7 +161,7 @@ class Sandboxes {
161
161
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
162
162
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
163
163
  method: "POST",
164
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
165
  contentType: "application/json",
166
166
  requestType: "json",
167
167
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -215,7 +215,7 @@ class Sandboxes {
215
215
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
216
216
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
217
217
  method: "DELETE",
218
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
218
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
219
  contentType: "application/json",
220
220
  requestType: "json",
221
221
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -81,7 +81,7 @@ class TestSuiteRuns {
81
81
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
82
82
  .default, "v1/test-suite-runs"),
83
83
  method: "POST",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -134,7 +134,7 @@ class TestSuiteRuns {
134
134
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
135
135
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
136
136
  method: "GET",
137
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
138
  contentType: "application/json",
139
139
  requestType: "json",
140
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -201,7 +201,7 @@ class TestSuiteRuns {
201
201
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
202
202
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
203
203
  method: "GET",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
205
205
  contentType: "application/json",
206
206
  queryParameters: _queryParams,
207
207
  requestType: "json",
@@ -83,7 +83,7 @@ class TestSuites {
83
83
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
84
84
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
85
85
  method: "GET",
86
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  queryParameters: _queryParams,
89
89
  requestType: "json",
@@ -164,7 +164,7 @@ class TestSuites {
164
164
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
165
165
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
166
166
  method: "POST",
167
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -211,7 +211,7 @@ class TestSuites {
211
211
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
212
212
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
213
213
  method: "POST",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/x-ndjson",
216
216
  requestType: "json",
217
217
  body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
@@ -278,7 +278,7 @@ class TestSuites {
278
278
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
279
279
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
280
280
  method: "DELETE",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
282
  contentType: "application/json",
283
283
  requestType: "json",
284
284
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -90,7 +90,7 @@ class WorkflowDeployments {
90
90
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
91
91
  .default, "v1/workflow-deployments"),
92
92
  method: "GET",
93
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -143,7 +143,7 @@ class WorkflowDeployments {
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
144
144
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
145
145
  method: "GET",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -205,7 +205,7 @@ class WorkflowDeployments {
205
205
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
206
206
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/execution-events`),
207
207
  method: "GET",
208
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
208
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
209
  contentType: "application/json",
210
210
  queryParameters: _queryParams,
211
211
  requestType: "json",
@@ -257,7 +257,7 @@ class WorkflowDeployments {
257
257
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
258
258
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/execution-events/${encodeURIComponent(executionId)}`),
259
259
  method: "GET",
260
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
260
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
261
  contentType: "application/json",
262
262
  requestType: "json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -310,7 +310,7 @@ class WorkflowDeployments {
310
310
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
311
311
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
312
312
  method: "GET",
313
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -379,7 +379,7 @@ class WorkflowDeployments {
379
379
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
380
380
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
381
381
  method: "GET",
382
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
382
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
383
383
  contentType: "application/json",
384
384
  queryParameters: _queryParams,
385
385
  requestType: "json",
@@ -433,7 +433,7 @@ class WorkflowDeployments {
433
433
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
434
434
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
435
435
  method: "GET",
436
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
436
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
437
437
  contentType: "application/json",
438
438
  requestType: "json",
439
439
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -487,7 +487,7 @@ class WorkflowDeployments {
487
487
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
488
488
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
489
489
  method: "PATCH",
490
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
490
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
491
491
  contentType: "application/json",
492
492
  requestType: "json",
493
493
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -74,7 +74,7 @@ class WorkflowSandboxes {
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
75
75
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
76
76
  method: "POST",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -143,7 +143,7 @@ class WorkflowSandboxes {
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
144
144
  .default, "v1/workflow-sandboxes/examples"),
145
145
  method: "GET",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  queryParameters: _queryParams,
149
149
  requestType: "json",
@@ -84,7 +84,7 @@ class Workflows {
84
84
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
85
85
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -159,7 +159,7 @@ class Workflows {
159
159
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
160
160
  .default, "v1/workflows/push"),
161
161
  method: "POST",
162
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  requestType: "file",
164
164
  duplex: _maybeEncodedRequest.duplex,
165
165
  body: _maybeEncodedRequest.body,
@@ -74,7 +74,7 @@ class WorkspaceSecrets {
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
75
75
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -127,7 +127,7 @@ class WorkspaceSecrets {
127
127
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
128
128
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
129
129
  method: "PATCH",
130
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
131
  contentType: "application/json",
132
132
  requestType: "json",
133
133
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -73,7 +73,7 @@ class Workspaces {
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
74
74
  .default, "v1/workspaces/identity"),
75
75
  method: "GET",
76
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.40", "User-Agent": "vellum-ai/0.14.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.42", "User-Agent": "vellum-ai/0.14.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Vellum from "../index";
4
5
  export interface ExecuteApiResponse {
5
6
  statusCode: number;
6
7
  text: string;
7
- json?: Record<string, unknown>;
8
+ json: Vellum.ExecuteApiResponseJson;
8
9
  headers: Record<string, string>;
9
10
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ExecuteApiResponseJson = Record<string, unknown> | unknown[];
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export interface PromptSettings {
5
5
  timeout?: number;
6
+ streamEnabled?: boolean;
6
7
  }
@@ -4,6 +4,5 @@
4
4
  import * as Vellum from "../index";
5
5
  export interface WorkflowExecutionInitiatedBody {
6
6
  workflowDefinition: Vellum.VellumCodeResourceDefinition;
7
- displayContext?: Vellum.WorkflowEventDisplayContext;
8
7
  inputs: Record<string, unknown>;
9
8
  }
@@ -96,6 +96,7 @@ export * from "./EphemeralPromptCacheConfigTypeEnum";
96
96
  export * from "./ErrorInput";
97
97
  export * from "./ErrorVellumValue";
98
98
  export * from "./ErrorVellumValueRequest";
99
+ export * from "./ExecuteApiResponseJson";
99
100
  export * from "./ExecuteApiResponse";
100
101
  export * from "./ExecutePromptEvent";
101
102
  export * from "./ExecutePromptResponse";
@@ -221,7 +222,6 @@ export * from "./NamedTestCaseStringVariableValueRequest";
221
222
  export * from "./NamedTestCaseVariableValue";
222
223
  export * from "./NamedTestCaseVariableValueRequest";
223
224
  export * from "./NewMemberJoinBehaviorEnum";
224
- export * from "./NodeEventDisplayContext";
225
225
  export * from "./NodeExecutionFulfilledBody";
226
226
  export * from "./NodeExecutionFulfilledEvent";
227
227
  export * from "./NodeExecutionInitiatedBody";
@@ -512,7 +512,6 @@ export * from "./WorkflowDeploymentRelease";
512
512
  export * from "./WorkflowDeploymentReleaseWorkflowDeployment";
513
513
  export * from "./WorkflowDeploymentReleaseWorkflowVersion";
514
514
  export * from "./WorkflowError";
515
- export * from "./WorkflowEventDisplayContext";
516
515
  export * from "./WorkflowEventError";
517
516
  export * from "./WorkflowEventExecutionRead";
518
517
  export * from "./WorkflowExecutionActual";
@@ -112,6 +112,7 @@ __exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
112
112
  __exportStar(require("./ErrorInput"), exports);
113
113
  __exportStar(require("./ErrorVellumValue"), exports);
114
114
  __exportStar(require("./ErrorVellumValueRequest"), exports);
115
+ __exportStar(require("./ExecuteApiResponseJson"), exports);
115
116
  __exportStar(require("./ExecuteApiResponse"), exports);
116
117
  __exportStar(require("./ExecutePromptEvent"), exports);
117
118
  __exportStar(require("./ExecutePromptResponse"), exports);
@@ -237,7 +238,6 @@ __exportStar(require("./NamedTestCaseStringVariableValueRequest"), exports);
237
238
  __exportStar(require("./NamedTestCaseVariableValue"), exports);
238
239
  __exportStar(require("./NamedTestCaseVariableValueRequest"), exports);
239
240
  __exportStar(require("./NewMemberJoinBehaviorEnum"), exports);
240
- __exportStar(require("./NodeEventDisplayContext"), exports);
241
241
  __exportStar(require("./NodeExecutionFulfilledBody"), exports);
242
242
  __exportStar(require("./NodeExecutionFulfilledEvent"), exports);
243
243
  __exportStar(require("./NodeExecutionInitiatedBody"), exports);
@@ -528,7 +528,6 @@ __exportStar(require("./WorkflowDeploymentRelease"), exports);
528
528
  __exportStar(require("./WorkflowDeploymentReleaseWorkflowDeployment"), exports);
529
529
  __exportStar(require("./WorkflowDeploymentReleaseWorkflowVersion"), exports);
530
530
  __exportStar(require("./WorkflowError"), exports);
531
- __exportStar(require("./WorkflowEventDisplayContext"), exports);
532
531
  __exportStar(require("./WorkflowEventError"), exports);
533
532
  __exportStar(require("./WorkflowEventExecutionRead"), exports);
534
533
  __exportStar(require("./WorkflowExecutionActual"), exports);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Vellum from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { PromptRequestInput } from "../../../../types/PromptRequestInput";
8
+ import { VellumVariable } from "../../../../types/VellumVariable";
9
+ import { PromptParameters } from "../../../../types/PromptParameters";
10
+ import { PromptSettings } from "../../../../types/PromptSettings";
11
+ import { FunctionDefinition } from "../../../../types/FunctionDefinition";
12
+ import { AdHocExpandMeta } from "../../../../types/AdHocExpandMeta";
13
+ export declare const AdHocExecutePrompt: core.serialization.Schema<serializers.AdHocExecutePrompt.Raw, Vellum.AdHocExecutePrompt>;
14
+ export declare namespace AdHocExecutePrompt {
15
+ interface Raw {
16
+ ml_model: string;
17
+ input_values: PromptRequestInput.Raw[];
18
+ input_variables: VellumVariable.Raw[];
19
+ parameters: PromptParameters.Raw;
20
+ settings?: PromptSettings.Raw | null;
21
+ blocks: serializers.PromptBlock.Raw[];
22
+ functions?: FunctionDefinition.Raw[] | null;
23
+ expand_meta?: AdHocExpandMeta.Raw | null;
24
+ }
25
+ }
@@ -36,12 +36,22 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.NodeEventDisplayContext = void 0;
40
- const serializers = __importStar(require("../index"));
41
- const core = __importStar(require("../../core"));
42
- exports.NodeEventDisplayContext = core.serialization.object({
43
- inputDisplay: core.serialization.property("input_display", core.serialization.record(core.serialization.string(), core.serialization.string())),
44
- outputDisplay: core.serialization.property("output_display", core.serialization.record(core.serialization.string(), core.serialization.string())),
45
- portDisplay: core.serialization.property("port_display", core.serialization.record(core.serialization.string(), core.serialization.string())),
46
- subworkflowDisplay: core.serialization.property("subworkflow_display", core.serialization.lazyObject(() => serializers.WorkflowEventDisplayContext).optional()),
39
+ exports.AdHocExecutePrompt = void 0;
40
+ const serializers = __importStar(require("../../../../index"));
41
+ const core = __importStar(require("../../../../../core"));
42
+ const PromptRequestInput_1 = require("../../../../types/PromptRequestInput");
43
+ const VellumVariable_1 = require("../../../../types/VellumVariable");
44
+ const PromptParameters_1 = require("../../../../types/PromptParameters");
45
+ const PromptSettings_1 = require("../../../../types/PromptSettings");
46
+ const FunctionDefinition_1 = require("../../../../types/FunctionDefinition");
47
+ const AdHocExpandMeta_1 = require("../../../../types/AdHocExpandMeta");
48
+ exports.AdHocExecutePrompt = core.serialization.object({
49
+ mlModel: core.serialization.property("ml_model", core.serialization.string()),
50
+ inputValues: core.serialization.property("input_values", core.serialization.list(PromptRequestInput_1.PromptRequestInput)),
51
+ inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
52
+ parameters: PromptParameters_1.PromptParameters,
53
+ settings: PromptSettings_1.PromptSettings.optional(),
54
+ blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
55
+ functions: core.serialization.list(FunctionDefinition_1.FunctionDefinition).optional(),
56
+ expandMeta: core.serialization.property("expand_meta", AdHocExpandMeta_1.AdHocExpandMeta.optional()),
47
57
  });
@@ -1 +1,2 @@
1
+ export { AdHocExecutePrompt } from "./AdHocExecutePrompt";
1
2
  export { AdHocExecutePromptStream } from "./AdHocExecutePromptStream";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdHocExecutePromptStream = void 0;
3
+ exports.AdHocExecutePromptStream = exports.AdHocExecutePrompt = void 0;
4
+ var AdHocExecutePrompt_1 = require("./AdHocExecutePrompt");
5
+ Object.defineProperty(exports, "AdHocExecutePrompt", { enumerable: true, get: function () { return AdHocExecutePrompt_1.AdHocExecutePrompt; } });
4
6
  var AdHocExecutePromptStream_1 = require("./AdHocExecutePromptStream");
5
7
  Object.defineProperty(exports, "AdHocExecutePromptStream", { enumerable: true, get: function () { return AdHocExecutePromptStream_1.AdHocExecutePromptStream; } });
@@ -4,12 +4,13 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ExecuteApiResponseJson } from "./ExecuteApiResponseJson";
7
8
  export declare const ExecuteApiResponse: core.serialization.ObjectSchema<serializers.ExecuteApiResponse.Raw, Vellum.ExecuteApiResponse>;
8
9
  export declare namespace ExecuteApiResponse {
9
10
  interface Raw {
10
11
  status_code: number;
11
12
  text: string;
12
- json?: Record<string, unknown> | null;
13
+ json: ExecuteApiResponseJson.Raw;
13
14
  headers: Record<string, string>;
14
15
  }
15
16
  }
@@ -38,9 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ExecuteApiResponse = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ExecuteApiResponseJson_1 = require("./ExecuteApiResponseJson");
41
42
  exports.ExecuteApiResponse = core.serialization.object({
42
43
  statusCode: core.serialization.property("status_code", core.serialization.number()),
43
44
  text: core.serialization.string(),
44
- json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
45
+ json: ExecuteApiResponseJson_1.ExecuteApiResponseJson,
45
46
  headers: core.serialization.record(core.serialization.string(), core.serialization.string()),
46
47
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ExecuteApiResponseJson: core.serialization.Schema<serializers.ExecuteApiResponseJson.Raw, Vellum.ExecuteApiResponseJson>;
8
+ export declare namespace ExecuteApiResponseJson {
9
+ type Raw = Record<string, unknown> | unknown[];
10
+ }
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.WorkflowEventDisplayContext = void 0;
40
- const serializers = __importStar(require("../index"));
39
+ exports.ExecuteApiResponseJson = void 0;
41
40
  const core = __importStar(require("../../core"));
42
- exports.WorkflowEventDisplayContext = core.serialization.object({
43
- nodeDisplays: core.serialization.property("node_displays", core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => serializers.NodeEventDisplayContext))),
44
- workflowInputs: core.serialization.property("workflow_inputs", core.serialization.record(core.serialization.string(), core.serialization.string())),
45
- workflowOutputs: core.serialization.property("workflow_outputs", core.serialization.record(core.serialization.string(), core.serialization.string())),
46
- });
41
+ exports.ExecuteApiResponseJson = core.serialization.undiscriminatedUnion([
42
+ core.serialization.record(core.serialization.string(), core.serialization.unknown()),
43
+ core.serialization.list(core.serialization.unknown()),
44
+ ]);
@@ -8,5 +8,6 @@ export declare const PromptSettings: core.serialization.ObjectSchema<serializers
8
8
  export declare namespace PromptSettings {
9
9
  interface Raw {
10
10
  timeout?: number | null;
11
+ stream_enabled?: boolean | null;
11
12
  }
12
13
  }
@@ -40,4 +40,5 @@ exports.PromptSettings = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.PromptSettings = core.serialization.object({
42
42
  timeout: core.serialization.number().optional(),
43
+ streamEnabled: core.serialization.property("stream_enabled", core.serialization.boolean().optional()),
43
44
  });
@@ -9,7 +9,6 @@ export declare const WorkflowExecutionInitiatedBody: core.serialization.ObjectSc
9
9
  export declare namespace WorkflowExecutionInitiatedBody {
10
10
  interface Raw {
11
11
  workflow_definition: VellumCodeResourceDefinition.Raw;
12
- display_context?: serializers.WorkflowEventDisplayContext.Raw | null;
13
12
  inputs: Record<string, unknown>;
14
13
  }
15
14
  }
@@ -37,11 +37,9 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.WorkflowExecutionInitiatedBody = void 0;
40
- const serializers = __importStar(require("../index"));
41
40
  const core = __importStar(require("../../core"));
42
41
  const VellumCodeResourceDefinition_1 = require("./VellumCodeResourceDefinition");
43
42
  exports.WorkflowExecutionInitiatedBody = core.serialization.object({
44
43
  workflowDefinition: core.serialization.property("workflow_definition", VellumCodeResourceDefinition_1.VellumCodeResourceDefinition),
45
- displayContext: core.serialization.property("display_context", core.serialization.lazyObject(() => serializers.WorkflowEventDisplayContext).optional()),
46
44
  inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
47
45
  });
@@ -96,6 +96,7 @@ export * from "./EphemeralPromptCacheConfigTypeEnum";
96
96
  export * from "./ErrorInput";
97
97
  export * from "./ErrorVellumValue";
98
98
  export * from "./ErrorVellumValueRequest";
99
+ export * from "./ExecuteApiResponseJson";
99
100
  export * from "./ExecuteApiResponse";
100
101
  export * from "./ExecutePromptEvent";
101
102
  export * from "./ExecutePromptResponse";
@@ -221,7 +222,6 @@ export * from "./NamedTestCaseStringVariableValueRequest";
221
222
  export * from "./NamedTestCaseVariableValue";
222
223
  export * from "./NamedTestCaseVariableValueRequest";
223
224
  export * from "./NewMemberJoinBehaviorEnum";
224
- export * from "./NodeEventDisplayContext";
225
225
  export * from "./NodeExecutionFulfilledBody";
226
226
  export * from "./NodeExecutionFulfilledEvent";
227
227
  export * from "./NodeExecutionInitiatedBody";
@@ -512,7 +512,6 @@ export * from "./WorkflowDeploymentRelease";
512
512
  export * from "./WorkflowDeploymentReleaseWorkflowDeployment";
513
513
  export * from "./WorkflowDeploymentReleaseWorkflowVersion";
514
514
  export * from "./WorkflowError";
515
- export * from "./WorkflowEventDisplayContext";
516
515
  export * from "./WorkflowEventError";
517
516
  export * from "./WorkflowEventExecutionRead";
518
517
  export * from "./WorkflowExecutionActual";
@@ -112,6 +112,7 @@ __exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
112
112
  __exportStar(require("./ErrorInput"), exports);
113
113
  __exportStar(require("./ErrorVellumValue"), exports);
114
114
  __exportStar(require("./ErrorVellumValueRequest"), exports);
115
+ __exportStar(require("./ExecuteApiResponseJson"), exports);
115
116
  __exportStar(require("./ExecuteApiResponse"), exports);
116
117
  __exportStar(require("./ExecutePromptEvent"), exports);
117
118
  __exportStar(require("./ExecutePromptResponse"), exports);
@@ -237,7 +238,6 @@ __exportStar(require("./NamedTestCaseStringVariableValueRequest"), exports);
237
238
  __exportStar(require("./NamedTestCaseVariableValue"), exports);
238
239
  __exportStar(require("./NamedTestCaseVariableValueRequest"), exports);
239
240
  __exportStar(require("./NewMemberJoinBehaviorEnum"), exports);
240
- __exportStar(require("./NodeEventDisplayContext"), exports);
241
241
  __exportStar(require("./NodeExecutionFulfilledBody"), exports);
242
242
  __exportStar(require("./NodeExecutionFulfilledEvent"), exports);
243
243
  __exportStar(require("./NodeExecutionInitiatedBody"), exports);
@@ -528,7 +528,6 @@ __exportStar(require("./WorkflowDeploymentRelease"), exports);
528
528
  __exportStar(require("./WorkflowDeploymentReleaseWorkflowDeployment"), exports);
529
529
  __exportStar(require("./WorkflowDeploymentReleaseWorkflowVersion"), exports);
530
530
  __exportStar(require("./WorkflowError"), exports);
531
- __exportStar(require("./WorkflowEventDisplayContext"), exports);
532
531
  __exportStar(require("./WorkflowEventError"), exports);
533
532
  __exportStar(require("./WorkflowEventExecutionRead"), exports);
534
533
  __exportStar(require("./WorkflowExecutionActual"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.40";
1
+ export declare const SDK_VERSION = "0.14.42";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.14.40";
4
+ exports.SDK_VERSION = "0.14.42";