vellum-ai 0.9.3 → 0.9.5

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 (219) hide show
  1. package/.mock/definition/__package__.yml +77 -1
  2. package/.mock/definition/deployments.yml +50 -1
  3. package/.mock/definition/workflowDeployments.yml +49 -0
  4. package/.mock/definition/workflows.yml +17 -2
  5. package/.mock/openapi/openapi.yml +232 -1
  6. package/Client.js +10 -10
  7. package/api/resources/adHoc/client/Client.js +1 -1
  8. package/api/resources/containerImages/client/Client.js +4 -4
  9. package/api/resources/deployments/client/Client.d.ts +12 -1
  10. package/api/resources/deployments/client/Client.js +74 -6
  11. package/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.d.ts +23 -0
  12. package/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.js +5 -0
  13. package/api/resources/deployments/client/requests/index.d.ts +1 -0
  14. package/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +8 -0
  15. package/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +10 -0
  16. package/api/resources/deployments/types/index.d.ts +1 -0
  17. package/api/resources/deployments/types/index.js +1 -0
  18. package/api/resources/documentIndexes/client/Client.js +8 -8
  19. package/api/resources/documents/client/Client.js +5 -5
  20. package/api/resources/folderEntities/client/Client.js +2 -2
  21. package/api/resources/index.d.ts +2 -1
  22. package/api/resources/index.js +3 -2
  23. package/api/resources/metricDefinitions/client/Client.js +1 -1
  24. package/api/resources/sandboxes/client/Client.js +3 -3
  25. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  26. package/api/resources/testSuites/client/Client.js +4 -4
  27. package/api/resources/workflowDeployments/client/Client.d.ts +11 -0
  28. package/api/resources/workflowDeployments/client/Client.js +72 -4
  29. package/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.d.ts +23 -0
  30. package/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.js +5 -0
  31. package/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  32. package/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +8 -0
  33. package/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +10 -0
  34. package/api/resources/workflowDeployments/types/index.d.ts +1 -0
  35. package/api/resources/workflowDeployments/types/index.js +1 -0
  36. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  37. package/api/resources/workflows/client/Client.d.ts +3 -2
  38. package/api/resources/workflows/client/Client.js +20 -7
  39. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  40. package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +13 -0
  41. package/api/resources/workflows/client/requests/WorkflowsPullRequest.js +5 -0
  42. package/api/resources/workflows/client/requests/index.d.ts +1 -0
  43. package/api/resources/workflows/index.d.ts +1 -0
  44. package/api/resources/workflows/index.js +1 -0
  45. package/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +8 -0
  46. package/api/resources/workflows/types/WorkflowsPullRequestFormat.js +10 -0
  47. package/api/resources/workflows/types/index.d.ts +1 -0
  48. package/api/resources/workflows/types/index.js +17 -0
  49. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  50. package/api/types/ArrayVariableValueItem.d.ts +1 -1
  51. package/api/types/AudioVariableValue.d.ts +11 -0
  52. package/api/types/AudioVariableValue.js +5 -0
  53. package/api/types/AudioVellumValue.d.ts +11 -0
  54. package/api/types/AudioVellumValue.js +5 -0
  55. package/api/types/AudioVellumValueRequest.d.ts +11 -0
  56. package/api/types/AudioVellumValueRequest.js +5 -0
  57. package/api/types/PaginatedDeploymentReleaseTagReadList.d.ts +10 -0
  58. package/api/types/PaginatedDeploymentReleaseTagReadList.js +5 -0
  59. package/api/types/PaginatedWorkflowReleaseTagReadList.d.ts +10 -0
  60. package/api/types/PaginatedWorkflowReleaseTagReadList.js +5 -0
  61. package/api/types/VellumAudio.d.ts +1 -0
  62. package/api/types/VellumAudioRequest.d.ts +1 -0
  63. package/api/types/VellumValue.d.ts +1 -1
  64. package/api/types/VellumValueRequest.d.ts +1 -1
  65. package/api/types/WorkflowPushDeploymentConfigRequest.d.ts +9 -0
  66. package/api/types/WorkflowPushDeploymentConfigRequest.js +5 -0
  67. package/api/types/WorkflowPushResponse.d.ts +1 -0
  68. package/api/types/index.d.ts +6 -0
  69. package/api/types/index.js +6 -0
  70. package/dist/Client.js +10 -10
  71. package/dist/api/resources/adHoc/client/Client.js +1 -1
  72. package/dist/api/resources/containerImages/client/Client.js +4 -4
  73. package/dist/api/resources/deployments/client/Client.d.ts +12 -1
  74. package/dist/api/resources/deployments/client/Client.js +74 -6
  75. package/dist/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.d.ts +23 -0
  76. package/dist/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.js +5 -0
  77. package/dist/api/resources/deployments/client/requests/index.d.ts +1 -0
  78. package/dist/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +8 -0
  79. package/dist/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +10 -0
  80. package/dist/api/resources/deployments/types/index.d.ts +1 -0
  81. package/dist/api/resources/deployments/types/index.js +1 -0
  82. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  83. package/dist/api/resources/documents/client/Client.js +5 -5
  84. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  85. package/dist/api/resources/index.d.ts +2 -1
  86. package/dist/api/resources/index.js +3 -2
  87. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  88. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  89. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  90. package/dist/api/resources/testSuites/client/Client.js +4 -4
  91. package/dist/api/resources/workflowDeployments/client/Client.d.ts +11 -0
  92. package/dist/api/resources/workflowDeployments/client/Client.js +72 -4
  93. package/dist/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.d.ts +23 -0
  94. package/dist/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.js +5 -0
  95. package/dist/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  96. package/dist/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +8 -0
  97. package/dist/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +10 -0
  98. package/dist/api/resources/workflowDeployments/types/index.d.ts +1 -0
  99. package/dist/api/resources/workflowDeployments/types/index.js +1 -0
  100. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  101. package/dist/api/resources/workflows/client/Client.d.ts +3 -2
  102. package/dist/api/resources/workflows/client/Client.js +20 -7
  103. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  104. package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +13 -0
  105. package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.js +5 -0
  106. package/dist/api/resources/workflows/client/requests/index.d.ts +1 -0
  107. package/dist/api/resources/workflows/index.d.ts +1 -0
  108. package/dist/api/resources/workflows/index.js +1 -0
  109. package/dist/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +8 -0
  110. package/dist/api/resources/workflows/types/WorkflowsPullRequestFormat.js +10 -0
  111. package/dist/api/resources/workflows/types/index.d.ts +1 -0
  112. package/dist/api/resources/workflows/types/index.js +17 -0
  113. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  114. package/dist/api/types/ArrayVariableValueItem.d.ts +1 -1
  115. package/dist/api/types/AudioVariableValue.d.ts +11 -0
  116. package/dist/api/types/AudioVariableValue.js +5 -0
  117. package/dist/api/types/AudioVellumValue.d.ts +11 -0
  118. package/dist/api/types/AudioVellumValue.js +5 -0
  119. package/dist/api/types/AudioVellumValueRequest.d.ts +11 -0
  120. package/dist/api/types/AudioVellumValueRequest.js +5 -0
  121. package/dist/api/types/PaginatedDeploymentReleaseTagReadList.d.ts +10 -0
  122. package/dist/api/types/PaginatedDeploymentReleaseTagReadList.js +5 -0
  123. package/dist/api/types/PaginatedWorkflowReleaseTagReadList.d.ts +10 -0
  124. package/dist/api/types/PaginatedWorkflowReleaseTagReadList.js +5 -0
  125. package/dist/api/types/VellumAudio.d.ts +1 -0
  126. package/dist/api/types/VellumAudioRequest.d.ts +1 -0
  127. package/dist/api/types/VellumValue.d.ts +1 -1
  128. package/dist/api/types/VellumValueRequest.d.ts +1 -1
  129. package/dist/api/types/WorkflowPushDeploymentConfigRequest.d.ts +9 -0
  130. package/dist/api/types/WorkflowPushDeploymentConfigRequest.js +5 -0
  131. package/dist/api/types/WorkflowPushResponse.d.ts +1 -0
  132. package/dist/api/types/index.d.ts +6 -0
  133. package/dist/api/types/index.js +6 -0
  134. package/dist/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +10 -0
  135. package/dist/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +31 -0
  136. package/dist/serialization/resources/deployments/types/index.d.ts +1 -0
  137. package/dist/serialization/resources/deployments/types/index.js +1 -0
  138. package/dist/serialization/resources/index.d.ts +2 -1
  139. package/dist/serialization/resources/index.js +3 -2
  140. package/dist/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +10 -0
  141. package/dist/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +31 -0
  142. package/dist/serialization/resources/workflowDeployments/types/index.d.ts +1 -0
  143. package/dist/serialization/resources/workflowDeployments/types/index.js +1 -0
  144. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -0
  145. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +2 -0
  146. package/dist/serialization/resources/workflows/index.d.ts +1 -0
  147. package/dist/serialization/resources/workflows/index.js +1 -0
  148. package/dist/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +10 -0
  149. package/dist/serialization/resources/workflows/types/WorkflowsPullRequestFormat.js +31 -0
  150. package/dist/serialization/resources/workflows/types/index.d.ts +1 -0
  151. package/dist/serialization/resources/workflows/types/index.js +17 -0
  152. package/dist/serialization/types/ArrayVariableValueItem.d.ts +2 -1
  153. package/dist/serialization/types/ArrayVariableValueItem.js +2 -0
  154. package/dist/serialization/types/AudioVariableValue.d.ts +14 -0
  155. package/dist/serialization/types/AudioVariableValue.js +35 -0
  156. package/dist/serialization/types/AudioVellumValue.d.ts +14 -0
  157. package/dist/serialization/types/AudioVellumValue.js +35 -0
  158. package/dist/serialization/types/AudioVellumValueRequest.d.ts +14 -0
  159. package/dist/serialization/types/AudioVellumValueRequest.js +35 -0
  160. package/dist/serialization/types/PaginatedDeploymentReleaseTagReadList.d.ts +16 -0
  161. package/dist/serialization/types/PaginatedDeploymentReleaseTagReadList.js +37 -0
  162. package/dist/serialization/types/PaginatedWorkflowReleaseTagReadList.d.ts +16 -0
  163. package/dist/serialization/types/PaginatedWorkflowReleaseTagReadList.js +37 -0
  164. package/dist/serialization/types/VellumValue.d.ts +2 -1
  165. package/dist/serialization/types/VellumValue.js +2 -0
  166. package/dist/serialization/types/VellumValueRequest.d.ts +2 -1
  167. package/dist/serialization/types/VellumValueRequest.js +2 -0
  168. package/dist/serialization/types/WorkflowPushDeploymentConfigRequest.d.ts +15 -0
  169. package/dist/serialization/types/WorkflowPushDeploymentConfigRequest.js +36 -0
  170. package/dist/serialization/types/WorkflowPushResponse.d.ts +1 -0
  171. package/dist/serialization/types/WorkflowPushResponse.js +1 -0
  172. package/dist/serialization/types/index.d.ts +6 -0
  173. package/dist/serialization/types/index.js +6 -0
  174. package/dist/version.d.ts +1 -1
  175. package/dist/version.js +1 -1
  176. package/package.json +1 -1
  177. package/reference.md +155 -3
  178. package/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +10 -0
  179. package/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +31 -0
  180. package/serialization/resources/deployments/types/index.d.ts +1 -0
  181. package/serialization/resources/deployments/types/index.js +1 -0
  182. package/serialization/resources/index.d.ts +2 -1
  183. package/serialization/resources/index.js +3 -2
  184. package/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +10 -0
  185. package/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +31 -0
  186. package/serialization/resources/workflowDeployments/types/index.d.ts +1 -0
  187. package/serialization/resources/workflowDeployments/types/index.js +1 -0
  188. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -0
  189. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +2 -0
  190. package/serialization/resources/workflows/index.d.ts +1 -0
  191. package/serialization/resources/workflows/index.js +1 -0
  192. package/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +10 -0
  193. package/serialization/resources/workflows/types/WorkflowsPullRequestFormat.js +31 -0
  194. package/serialization/resources/workflows/types/index.d.ts +1 -0
  195. package/serialization/resources/workflows/types/index.js +17 -0
  196. package/serialization/types/ArrayVariableValueItem.d.ts +2 -1
  197. package/serialization/types/ArrayVariableValueItem.js +2 -0
  198. package/serialization/types/AudioVariableValue.d.ts +14 -0
  199. package/serialization/types/AudioVariableValue.js +35 -0
  200. package/serialization/types/AudioVellumValue.d.ts +14 -0
  201. package/serialization/types/AudioVellumValue.js +35 -0
  202. package/serialization/types/AudioVellumValueRequest.d.ts +14 -0
  203. package/serialization/types/AudioVellumValueRequest.js +35 -0
  204. package/serialization/types/PaginatedDeploymentReleaseTagReadList.d.ts +16 -0
  205. package/serialization/types/PaginatedDeploymentReleaseTagReadList.js +37 -0
  206. package/serialization/types/PaginatedWorkflowReleaseTagReadList.d.ts +16 -0
  207. package/serialization/types/PaginatedWorkflowReleaseTagReadList.js +37 -0
  208. package/serialization/types/VellumValue.d.ts +2 -1
  209. package/serialization/types/VellumValue.js +2 -0
  210. package/serialization/types/VellumValueRequest.d.ts +2 -1
  211. package/serialization/types/VellumValueRequest.js +2 -0
  212. package/serialization/types/WorkflowPushDeploymentConfigRequest.d.ts +15 -0
  213. package/serialization/types/WorkflowPushDeploymentConfigRequest.js +36 -0
  214. package/serialization/types/WorkflowPushResponse.d.ts +1 -0
  215. package/serialization/types/WorkflowPushResponse.js +1 -0
  216. package/serialization/types/index.d.ts +6 -0
  217. package/serialization/types/index.js +6 -0
  218. package/version.d.ts +1 -1
  219. package/version.js +1 -1
@@ -79,7 +79,7 @@ class Documents {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/documents"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Documents {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/documents/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -184,7 +184,7 @@ class Documents {
184
184
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
185
  .documents, `v1/documents/${encodeURIComponent(id)}`),
186
186
  method: "DELETE",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -232,7 +232,7 @@ class Documents {
232
232
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
233
233
  .default, `v1/documents/${encodeURIComponent(id)}`),
234
234
  method: "PATCH",
235
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -322,7 +322,7 @@ class Documents {
322
322
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
323
323
  .documents, "v1/upload-document"),
324
324
  method: "POST",
325
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
325
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
326
326
  requestType: "file",
327
327
  duplex: _maybeEncodedRequest.duplex,
328
328
  body: _maybeEncodedRequest.body,
@@ -81,7 +81,7 @@ class FolderEntities {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/folder-entities"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -145,7 +145,7 @@ class FolderEntities {
145
145
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
146
146
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
147
147
  method: "POST",
148
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
148
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -6,6 +6,8 @@ export * as folderEntities from "./folderEntities";
6
6
  export * from "./folderEntities/types";
7
7
  export * as workflowDeployments from "./workflowDeployments";
8
8
  export * from "./workflowDeployments/types";
9
+ export * as workflows from "./workflows";
10
+ export * from "./workflows/types";
9
11
  export * as adHoc from "./adHoc";
10
12
  export * as containerImages from "./containerImages";
11
13
  export * as documents from "./documents";
@@ -14,7 +16,6 @@ export * as sandboxes from "./sandboxes";
14
16
  export * as testSuiteRuns from "./testSuiteRuns";
15
17
  export * as testSuites from "./testSuites";
16
18
  export * as workflowSandboxes from "./workflowSandboxes";
17
- export * as workflows from "./workflows";
18
19
  export * as workspaceSecrets from "./workspaceSecrets";
19
20
  export * from "./adHoc/client/requests";
20
21
  export * from "./containerImages/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.workspaceSecrets = exports.workflows = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.workspaceSecrets = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflows = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -35,6 +35,8 @@ exports.folderEntities = __importStar(require("./folderEntities"));
35
35
  __exportStar(require("./folderEntities/types"), exports);
36
36
  exports.workflowDeployments = __importStar(require("./workflowDeployments"));
37
37
  __exportStar(require("./workflowDeployments/types"), exports);
38
+ exports.workflows = __importStar(require("./workflows"));
39
+ __exportStar(require("./workflows/types"), exports);
38
40
  exports.adHoc = __importStar(require("./adHoc"));
39
41
  exports.containerImages = __importStar(require("./containerImages"));
40
42
  exports.documents = __importStar(require("./documents"));
@@ -43,7 +45,6 @@ exports.sandboxes = __importStar(require("./sandboxes"));
43
45
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
44
46
  exports.testSuites = __importStar(require("./testSuites"));
45
47
  exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
46
- exports.workflows = __importStar(require("./workflows"));
47
48
  exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
48
49
  __exportStar(require("./adHoc/client/requests"), exports);
49
50
  __exportStar(require("./containerImages/client/requests"), exports);
@@ -71,7 +71,7 @@ class MetricDefinitions {
71
71
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
72
  .default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
73
73
  method: "POST",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  body: serializers.ExecuteMetricDefinitionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -64,7 +64,7 @@ class Sandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -151,7 +151,7 @@ class Sandboxes {
151
151
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
152
152
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
153
153
  method: "POST",
154
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
154
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -205,7 +205,7 @@ class Sandboxes {
205
205
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
206
206
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
207
207
  method: "DELETE",
208
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
209
209
  contentType: "application/json",
210
210
  requestType: "json",
211
211
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -71,7 +71,7 @@ class TestSuiteRuns {
71
71
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
72
  .default, "v1/test-suite-runs"),
73
73
  method: "POST",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -124,7 +124,7 @@ class TestSuiteRuns {
124
124
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
125
125
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
126
126
  method: "GET",
127
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -191,7 +191,7 @@ class TestSuiteRuns {
191
191
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
192
192
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
193
193
  method: "GET",
194
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
194
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
195
195
  contentType: "application/json",
196
196
  queryParameters: _queryParams,
197
197
  requestType: "json",
@@ -73,7 +73,7 @@ class TestSuites {
73
73
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
74
74
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
75
75
  method: "GET",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  requestType: "json",
@@ -142,7 +142,7 @@ class TestSuites {
142
142
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
143
143
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
144
144
  method: "POST",
145
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -189,7 +189,7 @@ class TestSuites {
189
189
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
190
190
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
191
191
  method: "POST",
192
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
193
193
  contentType: "application/json",
194
194
  requestType: "json",
195
195
  body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
@@ -256,7 +256,7 @@ class TestSuites {
256
256
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
257
257
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
258
258
  method: "DELETE",
259
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
260
  contentType: "application/json",
261
261
  requestType: "json",
262
262
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -41,6 +41,17 @@ export declare class WorkflowDeployments {
41
41
  * await client.workflowDeployments.retrieve("id")
42
42
  */
43
43
  retrieve(id: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
44
+ /**
45
+ * List Release Tags associated with the specified Workflow Deployment
46
+ *
47
+ * @param {string} id - Either the Workflow Deployment's ID or its unique name
48
+ * @param {Vellum.ListWorkflowReleaseTagsRequest} request
49
+ * @param {WorkflowDeployments.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @example
52
+ * await client.workflowDeployments.listWorkflowReleaseTags("id")
53
+ */
54
+ listWorkflowReleaseTags(id: string, request?: Vellum.ListWorkflowReleaseTagsRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.PaginatedWorkflowReleaseTagReadList>;
44
55
  /**
45
56
  * Retrieve a Workflow Release Tag by tag name, associated with a specified Workflow Deployment.
46
57
  *
@@ -78,7 +78,7 @@ class WorkflowDeployments {
78
78
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
79
79
  .default, "v1/workflow-deployments"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -131,7 +131,7 @@ class WorkflowDeployments {
131
131
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
132
132
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
133
133
  method: "GET",
134
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -167,6 +167,74 @@ class WorkflowDeployments {
167
167
  }
168
168
  });
169
169
  }
170
+ /**
171
+ * List Release Tags associated with the specified Workflow Deployment
172
+ *
173
+ * @param {string} id - Either the Workflow Deployment's ID or its unique name
174
+ * @param {Vellum.ListWorkflowReleaseTagsRequest} request
175
+ * @param {WorkflowDeployments.RequestOptions} requestOptions - Request-specific configuration.
176
+ *
177
+ * @example
178
+ * await client.workflowDeployments.listWorkflowReleaseTags("id")
179
+ */
180
+ listWorkflowReleaseTags(id, request = {}, requestOptions) {
181
+ var _a;
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const { limit, offset, ordering, source } = request;
184
+ const _queryParams = {};
185
+ if (limit != null) {
186
+ _queryParams["limit"] = limit.toString();
187
+ }
188
+ if (offset != null) {
189
+ _queryParams["offset"] = offset.toString();
190
+ }
191
+ if (ordering != null) {
192
+ _queryParams["ordering"] = ordering;
193
+ }
194
+ if (source != null) {
195
+ _queryParams["source"] = source;
196
+ }
197
+ const _response = yield core.fetcher({
198
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
199
+ .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
200
+ method: "GET",
201
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
202
+ contentType: "application/json",
203
+ queryParameters: _queryParams,
204
+ requestType: "json",
205
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
206
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
207
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
208
+ });
209
+ if (_response.ok) {
210
+ return serializers.PaginatedWorkflowReleaseTagReadList.parseOrThrow(_response.body, {
211
+ unrecognizedObjectKeys: "passthrough",
212
+ allowUnrecognizedUnionMembers: true,
213
+ allowUnrecognizedEnumValues: true,
214
+ breadcrumbsPrefix: ["response"],
215
+ });
216
+ }
217
+ if (_response.error.reason === "status-code") {
218
+ throw new errors.VellumError({
219
+ statusCode: _response.error.statusCode,
220
+ body: _response.error.body,
221
+ });
222
+ }
223
+ switch (_response.error.reason) {
224
+ case "non-json":
225
+ throw new errors.VellumError({
226
+ statusCode: _response.error.statusCode,
227
+ body: _response.error.rawBody,
228
+ });
229
+ case "timeout":
230
+ throw new errors.VellumTimeoutError();
231
+ case "unknown":
232
+ throw new errors.VellumError({
233
+ message: _response.error.errorMessage,
234
+ });
235
+ }
236
+ });
237
+ }
170
238
  /**
171
239
  * Retrieve a Workflow Release Tag by tag name, associated with a specified Workflow Deployment.
172
240
  *
@@ -184,7 +252,7 @@ class WorkflowDeployments {
184
252
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
253
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
186
254
  method: "GET",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
256
  contentType: "application/json",
189
257
  requestType: "json",
190
258
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -238,7 +306,7 @@ class WorkflowDeployments {
238
306
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
239
307
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
240
308
  method: "PATCH",
241
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
310
  contentType: "application/json",
243
311
  requestType: "json",
244
312
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -0,0 +1,23 @@
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
+ */
9
+ export interface ListWorkflowReleaseTagsRequest {
10
+ /**
11
+ * Number of results to return per page.
12
+ */
13
+ limit?: number;
14
+ /**
15
+ * The initial index from which to return the results.
16
+ */
17
+ offset?: number;
18
+ /**
19
+ * Which field to use when ordering the results.
20
+ */
21
+ ordering?: string;
22
+ source?: Vellum.ListWorkflowReleaseTagsRequestSource;
23
+ }
@@ -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,2 +1,3 @@
1
1
  export { type WorkflowDeploymentsListRequest } from "./WorkflowDeploymentsListRequest";
2
+ export { type ListWorkflowReleaseTagsRequest } from "./ListWorkflowReleaseTagsRequest";
2
3
  export { type PatchedWorkflowReleaseTagUpdateRequest } from "./PatchedWorkflowReleaseTagUpdateRequest";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ListWorkflowReleaseTagsRequestSource = "SYSTEM" | "USER";
5
+ export declare const ListWorkflowReleaseTagsRequestSource: {
6
+ readonly System: "SYSTEM";
7
+ readonly User: "USER";
8
+ };
@@ -0,0 +1,10 @@
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.ListWorkflowReleaseTagsRequestSource = void 0;
7
+ exports.ListWorkflowReleaseTagsRequestSource = {
8
+ System: "SYSTEM",
9
+ User: "USER",
10
+ };
@@ -1 +1,2 @@
1
1
  export * from "./WorkflowDeploymentsListRequestStatus";
2
+ export * from "./ListWorkflowReleaseTagsRequestSource";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./WorkflowDeploymentsListRequestStatus"), exports);
18
+ __exportStar(require("./ListWorkflowReleaseTagsRequestSource"), exports);
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -4,8 +4,8 @@
4
4
  /// <reference types="node" />
5
5
  import * as environments from "../../../../environments";
6
6
  import * as core from "../../../../core";
7
- import * as stream from "stream";
8
7
  import * as Vellum from "../../../index";
8
+ import * as stream from "stream";
9
9
  export declare namespace Workflows {
10
10
  interface Options {
11
11
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
@@ -25,8 +25,9 @@ export declare class Workflows {
25
25
  constructor(_options?: Workflows.Options);
26
26
  /**
27
27
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
28
+ * @throws {@link Vellum.BadRequestError}
28
29
  */
29
- pull(id: string, requestOptions?: Workflows.RequestOptions): Promise<stream.Readable>;
30
+ pull(id: string, request?: Vellum.WorkflowsPullRequest, requestOptions?: Workflows.RequestOptions): Promise<stream.Readable>;
30
31
  /**
31
32
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
32
33
  *
@@ -41,6 +41,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Workflows = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
+ const Vellum = __importStar(require("../../../index"));
44
45
  const url_join_1 = __importDefault(require("url-join"));
45
46
  const errors = __importStar(require("../../../../errors/index"));
46
47
  const serializers = __importStar(require("../../../../serialization/index"));
@@ -50,16 +51,23 @@ class Workflows {
50
51
  }
51
52
  /**
52
53
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
54
+ * @throws {@link Vellum.BadRequestError}
53
55
  */
54
- pull(id, requestOptions) {
56
+ pull(id, request = {}, requestOptions) {
55
57
  var _a;
56
58
  return __awaiter(this, void 0, void 0, function* () {
59
+ const { format } = request;
60
+ const _queryParams = {};
61
+ if (format != null) {
62
+ _queryParams["format"] = format;
63
+ }
57
64
  const _response = yield core.fetcher({
58
65
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
59
66
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
60
67
  method: "GET",
61
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
69
  contentType: "application/json",
70
+ queryParameters: _queryParams,
63
71
  requestType: "json",
64
72
  responseType: "streaming",
65
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -70,10 +78,15 @@ class Workflows {
70
78
  return _response.body;
71
79
  }
72
80
  if (_response.error.reason === "status-code") {
73
- throw new errors.VellumError({
74
- statusCode: _response.error.statusCode,
75
- body: _response.error.body,
76
- });
81
+ switch (_response.error.statusCode) {
82
+ case 400:
83
+ throw new Vellum.BadRequestError(_response.error.body);
84
+ default:
85
+ throw new errors.VellumError({
86
+ statusCode: _response.error.statusCode,
87
+ body: _response.error.body,
88
+ });
89
+ }
77
90
  }
78
91
  switch (_response.error.reason) {
79
92
  case "non-json":
@@ -111,7 +124,7 @@ class Workflows {
111
124
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
112
125
  .default, "v1/workflows/push"),
113
126
  method: "POST",
114
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "vellum-ai/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
115
128
  contentType: "application/json",
116
129
  requestType: "json",
117
130
  body: serializers.WorkflowPushRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -15,4 +15,5 @@ export interface WorkflowPushRequest {
15
15
  execConfig: Vellum.WorkflowPushExecConfig;
16
16
  label: string;
17
17
  workflowSandboxId?: string;
18
+ deploymentConfig?: Vellum.WorkflowPushDeploymentConfigRequest;
18
19
  }
@@ -0,0 +1,13 @@
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
+ * format: "json"
9
+ * }
10
+ */
11
+ export interface WorkflowsPullRequest {
12
+ format?: Vellum.WorkflowsPullRequestFormat;
13
+ }
@@ -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 +1,2 @@
1
+ export { type WorkflowsPullRequest } from "./WorkflowsPullRequest";
1
2
  export { type WorkflowPushRequest } from "./WorkflowPushRequest";
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ 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("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type WorkflowsPullRequestFormat = "json" | "zip";
5
+ export declare const WorkflowsPullRequestFormat: {
6
+ readonly Json: "json";
7
+ readonly Zip: "zip";
8
+ };
@@ -0,0 +1,10 @@
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.WorkflowsPullRequestFormat = void 0;
7
+ exports.WorkflowsPullRequestFormat = {
8
+ Json: "json",
9
+ Zip: "zip",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./WorkflowsPullRequestFormat";