vellum-ai 0.13.21 → 0.13.22

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 (134) hide show
  1. package/Client.d.ts +10 -0
  2. package/Client.js +63 -10
  3. package/api/client/requests/ExecuteApiRequest.d.ts +17 -0
  4. package/api/client/requests/ExecuteApiRequest.js +5 -0
  5. package/api/client/requests/index.d.ts +1 -0
  6. package/api/resources/adHoc/client/Client.js +1 -1
  7. package/api/resources/containerImages/client/Client.js +4 -4
  8. package/api/resources/deployments/client/Client.js +7 -7
  9. package/api/resources/documentIndexes/client/Client.js +8 -8
  10. package/api/resources/documents/client/Client.js +5 -5
  11. package/api/resources/folderEntities/client/Client.js +2 -2
  12. package/api/resources/metricDefinitions/client/Client.js +2 -2
  13. package/api/resources/mlModels/client/Client.js +1 -1
  14. package/api/resources/organizations/client/Client.js +1 -1
  15. package/api/resources/sandboxes/client/Client.js +3 -3
  16. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  17. package/api/resources/testSuites/client/Client.js +4 -4
  18. package/api/resources/workflowDeployments/client/Client.js +6 -6
  19. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  20. package/api/resources/workflows/client/Client.js +2 -2
  21. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  22. package/api/resources/workspaces/client/Client.js +1 -1
  23. package/api/types/ExecuteApiRequestBearerToken.d.ts +5 -0
  24. package/api/types/ExecuteApiRequestBearerToken.js +5 -0
  25. package/api/types/ExecuteApiRequestBody.d.ts +4 -0
  26. package/api/types/ExecuteApiRequestBody.js +5 -0
  27. package/api/types/ExecuteApiRequestHeadersValue.d.ts +5 -0
  28. package/api/types/ExecuteApiRequestHeadersValue.js +5 -0
  29. package/api/types/ExecuteApiResponse.d.ts +9 -0
  30. package/api/types/ExecuteApiResponse.js +5 -0
  31. package/api/types/MethodEnum.d.ts +18 -0
  32. package/api/types/MethodEnum.js +13 -0
  33. package/api/types/VellumSecret.d.ts +6 -0
  34. package/api/types/VellumSecret.js +5 -0
  35. package/api/types/index.d.ts +6 -0
  36. package/api/types/index.js +6 -0
  37. package/dist/Client.d.ts +10 -0
  38. package/dist/Client.js +63 -10
  39. package/dist/api/client/requests/ExecuteApiRequest.d.ts +17 -0
  40. package/dist/api/client/requests/ExecuteApiRequest.js +5 -0
  41. package/dist/api/client/requests/index.d.ts +1 -0
  42. package/dist/api/resources/adHoc/client/Client.js +1 -1
  43. package/dist/api/resources/containerImages/client/Client.js +4 -4
  44. package/dist/api/resources/deployments/client/Client.js +7 -7
  45. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  46. package/dist/api/resources/documents/client/Client.js +5 -5
  47. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  48. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  49. package/dist/api/resources/mlModels/client/Client.js +1 -1
  50. package/dist/api/resources/organizations/client/Client.js +1 -1
  51. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  52. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  53. package/dist/api/resources/testSuites/client/Client.js +4 -4
  54. package/dist/api/resources/workflowDeployments/client/Client.js +6 -6
  55. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  56. package/dist/api/resources/workflows/client/Client.js +2 -2
  57. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  58. package/dist/api/resources/workspaces/client/Client.js +1 -1
  59. package/dist/api/types/ExecuteApiRequestBearerToken.d.ts +5 -0
  60. package/dist/api/types/ExecuteApiRequestBearerToken.js +5 -0
  61. package/dist/api/types/ExecuteApiRequestBody.d.ts +4 -0
  62. package/dist/api/types/ExecuteApiRequestBody.js +5 -0
  63. package/dist/api/types/ExecuteApiRequestHeadersValue.d.ts +5 -0
  64. package/dist/api/types/ExecuteApiRequestHeadersValue.js +5 -0
  65. package/dist/api/types/ExecuteApiResponse.d.ts +9 -0
  66. package/dist/api/types/ExecuteApiResponse.js +5 -0
  67. package/dist/api/types/MethodEnum.d.ts +18 -0
  68. package/dist/api/types/MethodEnum.js +13 -0
  69. package/dist/api/types/VellumSecret.d.ts +6 -0
  70. package/dist/api/types/VellumSecret.js +5 -0
  71. package/dist/api/types/index.d.ts +6 -0
  72. package/dist/api/types/index.js +6 -0
  73. package/dist/serialization/client/requests/ExecuteApiRequest.d.ts +20 -0
  74. package/dist/serialization/client/requests/ExecuteApiRequest.js +51 -0
  75. package/dist/serialization/client/requests/index.d.ts +1 -0
  76. package/dist/serialization/client/requests/index.js +3 -1
  77. package/dist/serialization/types/ExecuteApiRequestBearerToken.d.ts +11 -0
  78. package/dist/serialization/types/ExecuteApiRequestBearerToken.js +42 -0
  79. package/dist/serialization/types/ExecuteApiRequestBody.d.ts +10 -0
  80. package/dist/serialization/types/ExecuteApiRequestBody.js +44 -0
  81. package/dist/serialization/types/ExecuteApiRequestHeadersValue.d.ts +11 -0
  82. package/dist/serialization/types/ExecuteApiRequestHeadersValue.js +42 -0
  83. package/dist/serialization/types/ExecuteApiResponse.d.ts +15 -0
  84. package/dist/serialization/types/ExecuteApiResponse.js +46 -0
  85. package/dist/serialization/types/MethodEnum.d.ts +10 -0
  86. package/dist/serialization/types/MethodEnum.js +41 -0
  87. package/dist/serialization/types/VellumSecret.d.ts +12 -0
  88. package/dist/serialization/types/VellumSecret.js +43 -0
  89. package/dist/serialization/types/index.d.ts +6 -0
  90. package/dist/serialization/types/index.js +6 -0
  91. package/dist/version.d.ts +1 -1
  92. package/dist/version.js +1 -1
  93. package/package.json +1 -1
  94. package/serialization/client/requests/ExecuteApiRequest.d.ts +20 -0
  95. package/serialization/client/requests/ExecuteApiRequest.js +51 -0
  96. package/serialization/client/requests/index.d.ts +1 -0
  97. package/serialization/client/requests/index.js +3 -1
  98. package/serialization/types/ExecuteApiRequestBearerToken.d.ts +11 -0
  99. package/serialization/types/ExecuteApiRequestBearerToken.js +42 -0
  100. package/serialization/types/ExecuteApiRequestBody.d.ts +10 -0
  101. package/serialization/types/ExecuteApiRequestBody.js +44 -0
  102. package/serialization/types/ExecuteApiRequestHeadersValue.d.ts +11 -0
  103. package/serialization/types/ExecuteApiRequestHeadersValue.js +42 -0
  104. package/serialization/types/ExecuteApiResponse.d.ts +15 -0
  105. package/serialization/types/ExecuteApiResponse.js +46 -0
  106. package/serialization/types/MethodEnum.d.ts +10 -0
  107. package/serialization/types/MethodEnum.js +41 -0
  108. package/serialization/types/VellumSecret.d.ts +12 -0
  109. package/serialization/types/VellumSecret.js +43 -0
  110. package/serialization/types/index.d.ts +6 -0
  111. package/serialization/types/index.js +6 -0
  112. package/version.d.ts +1 -1
  113. package/version.js +1 -1
  114. package/.mock/definition/__package__.yml +0 -6819
  115. package/.mock/definition/adHoc.yml +0 -64
  116. package/.mock/definition/api.yml +0 -17
  117. package/.mock/definition/containerImages.yml +0 -148
  118. package/.mock/definition/deployments.yml +0 -372
  119. package/.mock/definition/documentIndexes.yml +0 -448
  120. package/.mock/definition/documents.yml +0 -281
  121. package/.mock/definition/folderEntities.yml +0 -135
  122. package/.mock/definition/metricDefinitions.yml +0 -96
  123. package/.mock/definition/mlModels.yml +0 -36
  124. package/.mock/definition/organizations.yml +0 -29
  125. package/.mock/definition/sandboxes.yml +0 -205
  126. package/.mock/definition/testSuiteRuns.yml +0 -163
  127. package/.mock/definition/testSuites.yml +0 -192
  128. package/.mock/definition/workflowDeployments.yml +0 -299
  129. package/.mock/definition/workflowSandboxes.yml +0 -94
  130. package/.mock/definition/workflows.yml +0 -80
  131. package/.mock/definition/workspaceSecrets.yml +0 -78
  132. package/.mock/definition/workspaces.yml +0 -29
  133. package/.mock/fern.config.json +0 -4
  134. package/.mock/openapi/openapi.yml +0 -12271
@@ -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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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,
@@ -196,7 +196,7 @@ class WorkflowDeployments {
196
196
  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)
197
197
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
198
198
  method: "GET",
199
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
199
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -265,7 +265,7 @@ class WorkflowDeployments {
265
265
  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)
266
266
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
267
267
  method: "GET",
268
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
268
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
269
269
  contentType: "application/json",
270
270
  queryParameters: _queryParams,
271
271
  requestType: "json",
@@ -319,7 +319,7 @@ class WorkflowDeployments {
319
319
  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)
320
320
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
321
321
  method: "GET",
322
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
322
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
323
323
  contentType: "application/json",
324
324
  requestType: "json",
325
325
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -373,7 +373,7 @@ class WorkflowDeployments {
373
373
  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)
374
374
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
375
375
  method: "PATCH",
376
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
376
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
377
377
  contentType: "application/json",
378
378
  requestType: "json",
379
379
  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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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" }),
@@ -88,7 +88,7 @@ class Workflows {
88
88
  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)
89
89
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
90
90
  method: "GET",
91
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
91
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
92
92
  contentType: "application/json",
93
93
  queryParameters: _queryParams,
94
94
  requestType: "json",
@@ -163,7 +163,7 @@ class Workflows {
163
163
  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)
164
164
  .default, "v1/workflows/push"),
165
165
  method: "POST",
166
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
166
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
167
167
  requestType: "file",
168
168
  duplex: _maybeEncodedRequest.duplex,
169
169
  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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.21", "User-Agent": "vellum-ai/0.13.21", "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.13.22", "User-Agent": "vellum-ai/0.13.22", "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,
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export type ExecuteApiRequestBearerToken = string | Vellum.VellumSecret;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ExecuteApiRequestBody = string | Record<string, unknown>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export type ExecuteApiRequestHeadersValue = string | Vellum.VellumSecret;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ExecuteApiResponse {
5
+ statusCode: number;
6
+ text: string;
7
+ json: Record<string, unknown>;
8
+ headers: Record<string, string>;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * - `POST` - POST
6
+ * - `GET` - GET
7
+ * - `PATCH` - PATCH
8
+ * - `PUT` - PUT
9
+ * - `DELETE` - DELETE
10
+ */
11
+ export type MethodEnum = "POST" | "GET" | "PATCH" | "PUT" | "DELETE";
12
+ export declare const MethodEnum: {
13
+ readonly Post: "POST";
14
+ readonly Get: "GET";
15
+ readonly Patch: "PATCH";
16
+ readonly Put: "PUT";
17
+ readonly Delete: "DELETE";
18
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MethodEnum = void 0;
7
+ exports.MethodEnum = {
8
+ Post: "POST",
9
+ Get: "GET",
10
+ Patch: "PATCH",
11
+ Put: "PUT",
12
+ Delete: "DELETE",
13
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VellumSecret {
5
+ name: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,6 @@
1
+ export * from "./ExecuteApiRequestBody";
2
+ export * from "./ExecuteApiRequestHeadersValue";
3
+ export * from "./ExecuteApiRequestBearerToken";
1
4
  export * from "./AdHocExecutePromptEvent";
2
5
  export * from "./AdHocExpandMeta";
3
6
  export * from "./AdHocFulfilledPromptExecutionMeta";
@@ -84,6 +87,7 @@ export * from "./EphemeralPromptCacheConfigTypeEnum";
84
87
  export * from "./ErrorInput";
85
88
  export * from "./ErrorVellumValue";
86
89
  export * from "./ErrorVellumValueRequest";
90
+ export * from "./ExecuteApiResponse";
87
91
  export * from "./ExecutePromptEvent";
88
92
  export * from "./ExecutePromptResponse";
89
93
  export * from "./ExecuteWorkflowResponse";
@@ -177,6 +181,7 @@ export * from "./MetadataFilterConfigRequest";
177
181
  export * from "./MetadataFilterRuleCombinator";
178
182
  export * from "./MetadataFilterRuleRequest";
179
183
  export * from "./MetadataFiltersRequest";
184
+ export * from "./MethodEnum";
180
185
  export * from "./MetricDefinitionExecution";
181
186
  export * from "./MetricDefinitionHistoryItem";
182
187
  export * from "./MetricDefinitionInput";
@@ -431,6 +436,7 @@ export * from "./VellumErrorCodeEnum";
431
436
  export * from "./VellumErrorRequest";
432
437
  export * from "./VellumImage";
433
438
  export * from "./VellumImageRequest";
439
+ export * from "./VellumSecret";
434
440
  export * from "./VellumValue";
435
441
  export * from "./VellumValueLogicalConditionGroupRequest";
436
442
  export * from "./VellumValueLogicalConditionRequest";
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ExecuteApiRequestBody"), exports);
18
+ __exportStar(require("./ExecuteApiRequestHeadersValue"), exports);
19
+ __exportStar(require("./ExecuteApiRequestBearerToken"), exports);
17
20
  __exportStar(require("./AdHocExecutePromptEvent"), exports);
18
21
  __exportStar(require("./AdHocExpandMeta"), exports);
19
22
  __exportStar(require("./AdHocFulfilledPromptExecutionMeta"), exports);
@@ -100,6 +103,7 @@ __exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
100
103
  __exportStar(require("./ErrorInput"), exports);
101
104
  __exportStar(require("./ErrorVellumValue"), exports);
102
105
  __exportStar(require("./ErrorVellumValueRequest"), exports);
106
+ __exportStar(require("./ExecuteApiResponse"), exports);
103
107
  __exportStar(require("./ExecutePromptEvent"), exports);
104
108
  __exportStar(require("./ExecutePromptResponse"), exports);
105
109
  __exportStar(require("./ExecuteWorkflowResponse"), exports);
@@ -193,6 +197,7 @@ __exportStar(require("./MetadataFilterConfigRequest"), exports);
193
197
  __exportStar(require("./MetadataFilterRuleCombinator"), exports);
194
198
  __exportStar(require("./MetadataFilterRuleRequest"), exports);
195
199
  __exportStar(require("./MetadataFiltersRequest"), exports);
200
+ __exportStar(require("./MethodEnum"), exports);
196
201
  __exportStar(require("./MetricDefinitionExecution"), exports);
197
202
  __exportStar(require("./MetricDefinitionHistoryItem"), exports);
198
203
  __exportStar(require("./MetricDefinitionInput"), exports);
@@ -447,6 +452,7 @@ __exportStar(require("./VellumErrorCodeEnum"), exports);
447
452
  __exportStar(require("./VellumErrorRequest"), exports);
448
453
  __exportStar(require("./VellumImage"), exports);
449
454
  __exportStar(require("./VellumImageRequest"), exports);
455
+ __exportStar(require("./VellumSecret"), exports);
450
456
  __exportStar(require("./VellumValue"), exports);
451
457
  __exportStar(require("./VellumValueLogicalConditionGroupRequest"), exports);
452
458
  __exportStar(require("./VellumValueLogicalConditionRequest"), exports);
package/dist/Client.d.ts CHANGED
@@ -76,6 +76,16 @@ export declare class VellumClient {
76
76
  get workflows(): Workflows;
77
77
  get workspaceSecrets(): WorkspaceSecrets;
78
78
  get workspaces(): Workspaces;
79
+ /**
80
+ * @param {Vellum.ExecuteApiRequest} request
81
+ * @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
82
+ *
83
+ * @example
84
+ * await client.executeApi({
85
+ * url: "url"
86
+ * })
87
+ */
88
+ executeApi(request: Vellum.ExecuteApiRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecuteApiResponse>;
79
89
  /**
80
90
  * @param {Vellum.CodeExecutor} request
81
91
  * @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
package/dist/Client.js CHANGED
@@ -144,6 +144,59 @@ class VellumClient {
144
144
  var _a;
145
145
  return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_17.Workspaces(this._options)));
146
146
  }
147
+ /**
148
+ * @param {Vellum.ExecuteApiRequest} request
149
+ * @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
150
+ *
151
+ * @example
152
+ * await client.executeApi({
153
+ * url: "url"
154
+ * })
155
+ */
156
+ executeApi(request, requestOptions) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ var _a, _b;
159
+ const _response = yield core.fetcher({
160
+ 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)
161
+ .default, "v1/execute-api"),
162
+ method: "POST",
163
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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
+ contentType: "application/json",
165
+ requestType: "json",
166
+ body: serializers.ExecuteApiRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
167
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
168
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
169
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
170
+ });
171
+ if (_response.ok) {
172
+ return serializers.ExecuteApiResponse.parseOrThrow(_response.body, {
173
+ unrecognizedObjectKeys: "passthrough",
174
+ allowUnrecognizedUnionMembers: true,
175
+ allowUnrecognizedEnumValues: true,
176
+ breadcrumbsPrefix: ["response"],
177
+ });
178
+ }
179
+ if (_response.error.reason === "status-code") {
180
+ throw new errors.VellumError({
181
+ statusCode: _response.error.statusCode,
182
+ body: _response.error.body,
183
+ });
184
+ }
185
+ switch (_response.error.reason) {
186
+ case "non-json":
187
+ throw new errors.VellumError({
188
+ statusCode: _response.error.statusCode,
189
+ body: _response.error.rawBody,
190
+ });
191
+ case "timeout":
192
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /v1/execute-api.");
193
+ case "unknown":
194
+ throw new errors.VellumError({
195
+ message: _response.error.errorMessage,
196
+ });
197
+ }
198
+ });
199
+ }
147
200
  /**
148
201
  * @param {Vellum.CodeExecutor} request
149
202
  * @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -173,7 +226,7 @@ class VellumClient {
173
226
  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)
174
227
  .predict, "v1/execute-code"),
175
228
  method: "POST",
176
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
229
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
177
230
  contentType: "application/json",
178
231
  requestType: "json",
179
232
  body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -242,7 +295,7 @@ class VellumClient {
242
295
  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)
243
296
  .predict, "v1/execute-prompt"),
244
297
  method: "POST",
245
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
298
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
246
299
  contentType: "application/json",
247
300
  requestType: "json",
248
301
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -300,7 +353,7 @@ class VellumClient {
300
353
  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)
301
354
  .predict, "v1/execute-prompt-stream"),
302
355
  method: "POST",
303
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
356
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
304
357
  contentType: "application/json",
305
358
  requestType: "json",
306
359
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -385,7 +438,7 @@ class VellumClient {
385
438
  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)
386
439
  .predict, "v1/execute-workflow"),
387
440
  method: "POST",
388
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
441
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
389
442
  contentType: "application/json",
390
443
  requestType: "json",
391
444
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -441,7 +494,7 @@ class VellumClient {
441
494
  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)
442
495
  .predict, "v1/execute-workflow-stream"),
443
496
  method: "POST",
444
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
497
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
445
498
  contentType: "application/json",
446
499
  requestType: "json",
447
500
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -528,7 +581,7 @@ class VellumClient {
528
581
  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)
529
582
  .predict, "v1/generate"),
530
583
  method: "POST",
531
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
584
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
532
585
  contentType: "application/json",
533
586
  requestType: "json",
534
587
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -589,7 +642,7 @@ class VellumClient {
589
642
  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)
590
643
  .predict, "v1/generate-stream"),
591
644
  method: "POST",
592
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
645
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
593
646
  contentType: "application/json",
594
647
  requestType: "json",
595
648
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -670,7 +723,7 @@ class VellumClient {
670
723
  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)
671
724
  .predict, "v1/search"),
672
725
  method: "POST",
673
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
726
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
674
727
  contentType: "application/json",
675
728
  requestType: "json",
676
729
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -738,7 +791,7 @@ class VellumClient {
738
791
  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)
739
792
  .predict, "v1/submit-completion-actuals"),
740
793
  method: "POST",
741
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
794
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
742
795
  contentType: "application/json",
743
796
  requestType: "json",
744
797
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -801,7 +854,7 @@ class VellumClient {
801
854
  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)
802
855
  .predict, "v1/submit-workflow-execution-actuals"),
803
856
  method: "POST",
804
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.21", "User-Agent": "vellum-ai/0.13.21", "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),
857
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
805
858
  contentType: "application/json",
806
859
  requestType: "json",
807
860
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * url: "url"
9
+ * }
10
+ */
11
+ export interface ExecuteApiRequest {
12
+ url: string;
13
+ method?: Vellum.MethodEnum;
14
+ body?: Vellum.ExecuteApiRequestBody;
15
+ headers?: Record<string, Vellum.ExecuteApiRequestHeadersValue>;
16
+ bearerToken?: Vellum.ExecuteApiRequestBearerToken;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export { type ExecuteApiRequest } from "./ExecuteApiRequest";
1
2
  export { type CodeExecutor } from "./CodeExecutor";
2
3
  export { type ExecutePromptRequest } from "./ExecutePromptRequest";
3
4
  export { type ExecutePromptStreamRequest } from "./ExecutePromptStreamRequest";