vellum-ai 0.6.0 → 0.6.2

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 (230) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +22 -17
  3. package/README.md +1 -1
  4. package/api/resources/deployments/client/Client.d.ts +15 -0
  5. package/api/resources/deployments/client/Client.js +144 -3
  6. package/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.d.ts +17 -0
  7. package/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js +5 -0
  8. package/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +11 -0
  9. package/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +5 -0
  10. package/api/resources/deployments/client/requests/index.d.ts +2 -0
  11. package/api/resources/documentIndexes/client/Client.js +6 -6
  12. package/api/resources/documents/client/Client.js +5 -5
  13. package/api/resources/folderEntities/client/Client.js +1 -1
  14. package/api/resources/index.d.ts +2 -0
  15. package/api/resources/index.js +3 -1
  16. package/api/resources/promptVersions/client/Client.d.ts +24 -0
  17. package/api/resources/promptVersions/client/Client.js +102 -0
  18. package/api/resources/promptVersions/client/index.d.ts +1 -0
  19. package/api/resources/promptVersions/client/index.js +17 -0
  20. package/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.d.ts +17 -0
  21. package/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js +5 -0
  22. package/api/resources/promptVersions/client/requests/index.d.ts +1 -0
  23. package/api/resources/promptVersions/client/requests/index.js +2 -0
  24. package/api/resources/promptVersions/index.d.ts +1 -0
  25. package/api/resources/promptVersions/index.js +17 -0
  26. package/api/resources/sandboxes/client/Client.js +2 -2
  27. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  28. package/api/resources/testSuites/client/Client.js +3 -3
  29. package/api/resources/workflowDeployments/client/Client.d.ts +14 -0
  30. package/api/resources/workflowDeployments/client/Client.js +99 -2
  31. package/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +11 -0
  32. package/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +5 -0
  33. package/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  34. package/api/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +7 -0
  35. package/api/types/DeploymentReleaseTagDeploymentHistoryItem.js +5 -0
  36. package/api/types/DeploymentReleaseTagRead.d.ts +17 -0
  37. package/api/types/DeploymentReleaseTagRead.js +5 -0
  38. package/api/types/DocumentStatus.d.ts +3 -0
  39. package/api/types/MergeEnum.d.ts +4 -0
  40. package/api/types/MergeEnum.js +5 -0
  41. package/api/types/MergeNodeResult.d.ts +8 -0
  42. package/api/types/MergeNodeResult.js +5 -0
  43. package/api/types/ReleaseTagSource.d.ts +12 -0
  44. package/api/types/ReleaseTagSource.js +10 -0
  45. package/api/types/SearchResultDocument.d.ts +1 -1
  46. package/api/types/SearchResultDocumentRequest.d.ts +2 -0
  47. package/api/types/SubmitCompletionActualRequest.d.ts +2 -0
  48. package/api/types/SubworkflowNodeResult.d.ts +2 -0
  49. package/api/types/SubworkflowNodeResultData.d.ts +6 -0
  50. package/api/types/SubworkflowNodeResultData.js +5 -0
  51. package/api/types/TestSuiteRunDeploymentReleaseTagExecConfigTypeEnum.d.ts +3 -0
  52. package/api/types/TestSuiteRunExternalExecConfigTypeEnum.d.ts +3 -0
  53. package/api/types/TestSuiteRunMetricErrorOutputTypeEnum.d.ts +3 -0
  54. package/api/types/TestSuiteRunMetricNumberOutputTypeEnum.d.ts +3 -0
  55. package/api/types/TestSuiteRunMetricStringOutputTypeEnum.d.ts +3 -0
  56. package/api/types/TestSuiteRunWorkflowReleaseTagExecConfigTypeEnum.d.ts +3 -0
  57. package/api/types/WorkflowNodeResultData.d.ts +4 -1
  58. package/api/types/WorkflowReleaseTagRead.d.ts +17 -0
  59. package/api/types/WorkflowReleaseTagRead.js +5 -0
  60. package/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +9 -0
  61. package/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +5 -0
  62. package/api/types/index.d.ts +8 -0
  63. package/api/types/index.js +8 -0
  64. package/dist/Client.d.ts +3 -0
  65. package/dist/Client.js +22 -17
  66. package/dist/api/resources/deployments/client/Client.d.ts +15 -0
  67. package/dist/api/resources/deployments/client/Client.js +144 -3
  68. package/dist/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.d.ts +17 -0
  69. package/dist/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js +5 -0
  70. package/dist/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +11 -0
  71. package/dist/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +5 -0
  72. package/dist/api/resources/deployments/client/requests/index.d.ts +2 -0
  73. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  74. package/dist/api/resources/documents/client/Client.js +5 -5
  75. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  76. package/dist/api/resources/index.d.ts +2 -0
  77. package/dist/api/resources/index.js +3 -1
  78. package/dist/api/resources/promptVersions/client/Client.d.ts +24 -0
  79. package/dist/api/resources/promptVersions/client/Client.js +102 -0
  80. package/dist/api/resources/promptVersions/client/index.d.ts +1 -0
  81. package/dist/api/resources/promptVersions/client/index.js +17 -0
  82. package/dist/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.d.ts +17 -0
  83. package/dist/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js +5 -0
  84. package/dist/api/resources/promptVersions/client/requests/index.d.ts +1 -0
  85. package/dist/api/resources/promptVersions/client/requests/index.js +2 -0
  86. package/dist/api/resources/promptVersions/index.d.ts +1 -0
  87. package/dist/api/resources/promptVersions/index.js +17 -0
  88. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  89. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  90. package/dist/api/resources/testSuites/client/Client.js +3 -3
  91. package/dist/api/resources/workflowDeployments/client/Client.d.ts +14 -0
  92. package/dist/api/resources/workflowDeployments/client/Client.js +99 -2
  93. package/dist/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +11 -0
  94. package/dist/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +5 -0
  95. package/dist/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  96. package/dist/api/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +7 -0
  97. package/dist/api/types/DeploymentReleaseTagDeploymentHistoryItem.js +5 -0
  98. package/dist/api/types/DeploymentReleaseTagRead.d.ts +17 -0
  99. package/dist/api/types/DeploymentReleaseTagRead.js +5 -0
  100. package/dist/api/types/DocumentStatus.d.ts +3 -0
  101. package/dist/api/types/MergeEnum.d.ts +4 -0
  102. package/dist/api/types/MergeEnum.js +5 -0
  103. package/dist/api/types/MergeNodeResult.d.ts +8 -0
  104. package/dist/api/types/MergeNodeResult.js +5 -0
  105. package/dist/api/types/ReleaseTagSource.d.ts +12 -0
  106. package/dist/api/types/ReleaseTagSource.js +10 -0
  107. package/dist/api/types/SearchResultDocument.d.ts +1 -1
  108. package/dist/api/types/SearchResultDocumentRequest.d.ts +2 -0
  109. package/dist/api/types/SubmitCompletionActualRequest.d.ts +2 -0
  110. package/dist/api/types/SubworkflowNodeResult.d.ts +2 -0
  111. package/dist/api/types/SubworkflowNodeResultData.d.ts +6 -0
  112. package/dist/api/types/SubworkflowNodeResultData.js +5 -0
  113. package/dist/api/types/TestSuiteRunDeploymentReleaseTagExecConfigTypeEnum.d.ts +3 -0
  114. package/dist/api/types/TestSuiteRunExternalExecConfigTypeEnum.d.ts +3 -0
  115. package/dist/api/types/TestSuiteRunMetricErrorOutputTypeEnum.d.ts +3 -0
  116. package/dist/api/types/TestSuiteRunMetricNumberOutputTypeEnum.d.ts +3 -0
  117. package/dist/api/types/TestSuiteRunMetricStringOutputTypeEnum.d.ts +3 -0
  118. package/dist/api/types/TestSuiteRunWorkflowReleaseTagExecConfigTypeEnum.d.ts +3 -0
  119. package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
  120. package/dist/api/types/WorkflowReleaseTagRead.d.ts +17 -0
  121. package/dist/api/types/WorkflowReleaseTagRead.js +5 -0
  122. package/dist/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +9 -0
  123. package/dist/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +5 -0
  124. package/dist/api/types/index.d.ts +8 -0
  125. package/dist/api/types/index.js +8 -0
  126. package/dist/serialization/resources/deployments/client/requests/DeploySandboxWorkflowRequest.d.ts +15 -0
  127. package/dist/serialization/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js +36 -0
  128. package/dist/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +12 -0
  129. package/dist/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +33 -0
  130. package/dist/serialization/resources/deployments/client/requests/index.d.ts +2 -0
  131. package/dist/serialization/resources/deployments/client/requests/index.js +5 -1
  132. package/dist/serialization/resources/index.d.ts +3 -0
  133. package/dist/serialization/resources/index.js +4 -1
  134. package/dist/serialization/resources/promptVersions/client/index.d.ts +1 -0
  135. package/dist/serialization/resources/promptVersions/client/index.js +17 -0
  136. package/dist/serialization/resources/promptVersions/client/requests/DeploySandboxPromptRequest.d.ts +15 -0
  137. package/dist/serialization/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js +36 -0
  138. package/dist/serialization/resources/promptVersions/client/requests/index.d.ts +1 -0
  139. package/dist/serialization/resources/promptVersions/client/requests/index.js +5 -0
  140. package/dist/serialization/resources/promptVersions/index.d.ts +1 -0
  141. package/dist/serialization/resources/promptVersions/index.js +17 -0
  142. package/dist/serialization/resources/workflowDeployments/client/index.d.ts +1 -0
  143. package/dist/serialization/resources/workflowDeployments/client/index.js +17 -0
  144. package/dist/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +12 -0
  145. package/dist/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +33 -0
  146. package/dist/serialization/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  147. package/dist/serialization/resources/workflowDeployments/client/requests/index.js +5 -0
  148. package/dist/serialization/resources/workflowDeployments/index.d.ts +1 -0
  149. package/dist/serialization/resources/workflowDeployments/index.js +1 -0
  150. package/dist/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +13 -0
  151. package/dist/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.js +34 -0
  152. package/dist/serialization/types/DeploymentReleaseTagRead.d.ts +16 -0
  153. package/dist/serialization/types/DeploymentReleaseTagRead.js +37 -0
  154. package/dist/serialization/types/MergeEnum.d.ts +10 -0
  155. package/dist/serialization/types/MergeEnum.js +31 -0
  156. package/dist/serialization/types/MergeNodeResult.d.ts +11 -0
  157. package/dist/serialization/types/MergeNodeResult.js +31 -0
  158. package/dist/serialization/types/ReleaseTagSource.d.ts +10 -0
  159. package/dist/serialization/types/ReleaseTagSource.js +31 -0
  160. package/dist/serialization/types/SearchResultDocument.d.ts +1 -1
  161. package/dist/serialization/types/SearchResultDocument.js +1 -1
  162. package/dist/serialization/types/SearchResultDocumentRequest.d.ts +1 -0
  163. package/dist/serialization/types/SearchResultDocumentRequest.js +1 -0
  164. package/dist/serialization/types/SubmitCompletionActualRequest.d.ts +1 -0
  165. package/dist/serialization/types/SubmitCompletionActualRequest.js +1 -0
  166. package/dist/serialization/types/SubworkflowNodeResult.d.ts +2 -0
  167. package/dist/serialization/types/SubworkflowNodeResult.js +4 -1
  168. package/dist/serialization/types/SubworkflowNodeResultData.d.ts +12 -0
  169. package/dist/serialization/types/SubworkflowNodeResultData.js +33 -0
  170. package/dist/serialization/types/WorkflowNodeResultData.d.ts +5 -1
  171. package/dist/serialization/types/WorkflowNodeResultData.js +2 -0
  172. package/dist/serialization/types/WorkflowReleaseTagRead.d.ts +16 -0
  173. package/dist/serialization/types/WorkflowReleaseTagRead.js +37 -0
  174. package/dist/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +13 -0
  175. package/dist/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +34 -0
  176. package/dist/serialization/types/index.d.ts +8 -0
  177. package/dist/serialization/types/index.js +8 -0
  178. package/package.json +1 -1
  179. package/serialization/resources/deployments/client/requests/DeploySandboxWorkflowRequest.d.ts +15 -0
  180. package/serialization/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js +36 -0
  181. package/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +12 -0
  182. package/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +33 -0
  183. package/serialization/resources/deployments/client/requests/index.d.ts +2 -0
  184. package/serialization/resources/deployments/client/requests/index.js +5 -1
  185. package/serialization/resources/index.d.ts +3 -0
  186. package/serialization/resources/index.js +4 -1
  187. package/serialization/resources/promptVersions/client/index.d.ts +1 -0
  188. package/serialization/resources/promptVersions/client/index.js +17 -0
  189. package/serialization/resources/promptVersions/client/requests/DeploySandboxPromptRequest.d.ts +15 -0
  190. package/serialization/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js +36 -0
  191. package/serialization/resources/promptVersions/client/requests/index.d.ts +1 -0
  192. package/serialization/resources/promptVersions/client/requests/index.js +5 -0
  193. package/serialization/resources/promptVersions/index.d.ts +1 -0
  194. package/serialization/resources/promptVersions/index.js +17 -0
  195. package/serialization/resources/workflowDeployments/client/index.d.ts +1 -0
  196. package/serialization/resources/workflowDeployments/client/index.js +17 -0
  197. package/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +12 -0
  198. package/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +33 -0
  199. package/serialization/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  200. package/serialization/resources/workflowDeployments/client/requests/index.js +5 -0
  201. package/serialization/resources/workflowDeployments/index.d.ts +1 -0
  202. package/serialization/resources/workflowDeployments/index.js +1 -0
  203. package/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +13 -0
  204. package/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.js +34 -0
  205. package/serialization/types/DeploymentReleaseTagRead.d.ts +16 -0
  206. package/serialization/types/DeploymentReleaseTagRead.js +37 -0
  207. package/serialization/types/MergeEnum.d.ts +10 -0
  208. package/serialization/types/MergeEnum.js +31 -0
  209. package/serialization/types/MergeNodeResult.d.ts +11 -0
  210. package/serialization/types/MergeNodeResult.js +31 -0
  211. package/serialization/types/ReleaseTagSource.d.ts +10 -0
  212. package/serialization/types/ReleaseTagSource.js +31 -0
  213. package/serialization/types/SearchResultDocument.d.ts +1 -1
  214. package/serialization/types/SearchResultDocument.js +1 -1
  215. package/serialization/types/SearchResultDocumentRequest.d.ts +1 -0
  216. package/serialization/types/SearchResultDocumentRequest.js +1 -0
  217. package/serialization/types/SubmitCompletionActualRequest.d.ts +1 -0
  218. package/serialization/types/SubmitCompletionActualRequest.js +1 -0
  219. package/serialization/types/SubworkflowNodeResult.d.ts +2 -0
  220. package/serialization/types/SubworkflowNodeResult.js +4 -1
  221. package/serialization/types/SubworkflowNodeResultData.d.ts +12 -0
  222. package/serialization/types/SubworkflowNodeResultData.js +33 -0
  223. package/serialization/types/WorkflowNodeResultData.d.ts +5 -1
  224. package/serialization/types/WorkflowNodeResultData.js +2 -0
  225. package/serialization/types/WorkflowReleaseTagRead.d.ts +16 -0
  226. package/serialization/types/WorkflowReleaseTagRead.js +37 -0
  227. package/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +13 -0
  228. package/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +34 -0
  229. package/serialization/types/index.d.ts +8 -0
  230. package/serialization/types/index.js +8 -0
@@ -78,7 +78,7 @@ class DocumentIndexes {
78
78
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
79
79
  .default, "v1/document-indexes"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -123,7 +123,7 @@ class DocumentIndexes {
123
123
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
124
124
  .default, "v1/document-indexes"),
125
125
  method: "POST",
126
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
126
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
127
  contentType: "application/json",
128
128
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
129
129
  unrecognizedObjectKeys: "strip",
@@ -170,7 +170,7 @@ class DocumentIndexes {
170
170
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
171
171
  .default, `v1/document-indexes/${id}`),
172
172
  method: "GET",
173
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
173
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
174
  contentType: "application/json",
175
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
176
176
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -214,7 +214,7 @@ class DocumentIndexes {
214
214
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
215
215
  .default, `v1/document-indexes/${id}`),
216
216
  method: "PUT",
217
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
217
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
218
  contentType: "application/json",
219
219
  body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
220
220
  unrecognizedObjectKeys: "strip",
@@ -264,7 +264,7 @@ class DocumentIndexes {
264
264
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
265
265
  .default, `v1/document-indexes/${id}`),
266
266
  method: "DELETE",
267
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
267
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
268
268
  contentType: "application/json",
269
269
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
270
270
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -303,7 +303,7 @@ class DocumentIndexes {
303
303
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
304
304
  .default, `v1/document-indexes/${id}`),
305
305
  method: "PATCH",
306
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
306
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
307
  contentType: "application/json",
308
308
  body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
309
309
  unrecognizedObjectKeys: "strip",
@@ -77,7 +77,7 @@ class Documents {
77
77
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
78
78
  .default, "v1/documents"),
79
79
  method: "GET",
80
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -125,7 +125,7 @@ class Documents {
125
125
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
126
126
  .default, `v1/documents/${id}`),
127
127
  method: "GET",
128
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
131
131
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -172,7 +172,7 @@ class Documents {
172
172
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
173
173
  .default, `v1/documents/${id}`),
174
174
  method: "DELETE",
175
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
176
176
  contentType: "application/json",
177
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
178
178
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -214,7 +214,7 @@ class Documents {
214
214
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
215
215
  .default, `v1/documents/${id}`),
216
216
  method: "PATCH",
217
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
217
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
218
  contentType: "application/json",
219
219
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
220
220
  unrecognizedObjectKeys: "strip",
@@ -293,7 +293,7 @@ class Documents {
293
293
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
294
294
  .documents, "v1/upload-document"),
295
295
  method: "POST",
296
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
297
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
298
298
  body: _request,
299
299
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -65,7 +65,7 @@ class FolderEntities {
65
65
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
66
66
  .default, `v1/folders/${folderId}/add-entity`),
67
67
  method: "POST",
68
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
69
  contentType: "application/json",
70
70
  body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
71
71
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -6,6 +6,7 @@ export * as workflowDeployments from "./workflowDeployments";
6
6
  export * from "./workflowDeployments/types";
7
7
  export * as documents from "./documents";
8
8
  export * as folderEntities from "./folderEntities";
9
+ export * as promptVersions from "./promptVersions";
9
10
  export * as sandboxes from "./sandboxes";
10
11
  export * as testSuiteRuns from "./testSuiteRuns";
11
12
  export * as testSuites from "./testSuites";
@@ -13,6 +14,7 @@ export * from "./deployments/client/requests";
13
14
  export * from "./documentIndexes/client/requests";
14
15
  export * from "./documents/client/requests";
15
16
  export * from "./folderEntities/client/requests";
17
+ export * from "./promptVersions/client/requests";
16
18
  export * from "./sandboxes/client/requests";
17
19
  export * from "./testSuiteRuns/client/requests";
18
20
  export * from "./testSuites/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.promptVersions = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -35,6 +35,7 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
35
35
  __exportStar(require("./workflowDeployments/types"), exports);
36
36
  exports.documents = __importStar(require("./documents"));
37
37
  exports.folderEntities = __importStar(require("./folderEntities"));
38
+ exports.promptVersions = __importStar(require("./promptVersions"));
38
39
  exports.sandboxes = __importStar(require("./sandboxes"));
39
40
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
40
41
  exports.testSuites = __importStar(require("./testSuites"));
@@ -42,6 +43,7 @@ __exportStar(require("./deployments/client/requests"), exports);
42
43
  __exportStar(require("./documentIndexes/client/requests"), exports);
43
44
  __exportStar(require("./documents/client/requests"), exports);
44
45
  __exportStar(require("./folderEntities/client/requests"), exports);
46
+ __exportStar(require("./promptVersions/client/requests"), exports);
45
47
  __exportStar(require("./sandboxes/client/requests"), exports);
46
48
  __exportStar(require("./testSuiteRuns/client/requests"), exports);
47
49
  __exportStar(require("./testSuites/client/requests"), exports);
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Vellum from "../../..";
7
+ export declare namespace PromptVersions {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
+ apiKey: core.Supplier<string>;
11
+ }
12
+ interface RequestOptions {
13
+ timeoutInSeconds?: number;
14
+ maxRetries?: number;
15
+ }
16
+ }
17
+ export declare class PromptVersions {
18
+ protected readonly _options: PromptVersions.Options;
19
+ constructor(_options: PromptVersions.Options);
20
+ deployPrompt(id: string, promptId: string, request?: Vellum.DeploySandboxPromptRequest, requestOptions?: PromptVersions.RequestOptions): Promise<Vellum.DeploymentRead>;
21
+ protected _getCustomAuthorizationHeaders(): Promise<{
22
+ X_API_KEY: string;
23
+ }>;
24
+ }
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.PromptVersions = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const serializers = __importStar(require("../../../../serialization"));
45
+ const url_join_1 = __importDefault(require("url-join"));
46
+ const errors = __importStar(require("../../../../errors"));
47
+ class PromptVersions {
48
+ constructor(_options) {
49
+ this._options = _options;
50
+ }
51
+ deployPrompt(id, promptId, request = {}, requestOptions) {
52
+ var _a;
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const _response = yield core.fetcher({
55
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
56
+ .default, `v1/sandboxes/${id}/prompts/${promptId}/deploy`),
57
+ method: "POST",
58
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
59
+ contentType: "application/json",
60
+ body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
61
+ unrecognizedObjectKeys: "strip",
62
+ }),
63
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
64
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
65
+ });
66
+ if (_response.ok) {
67
+ return yield serializers.DeploymentRead.parseOrThrow(_response.body, {
68
+ unrecognizedObjectKeys: "passthrough",
69
+ allowUnrecognizedUnionMembers: true,
70
+ allowUnrecognizedEnumValues: true,
71
+ breadcrumbsPrefix: ["response"],
72
+ });
73
+ }
74
+ if (_response.error.reason === "status-code") {
75
+ throw new errors.VellumError({
76
+ statusCode: _response.error.statusCode,
77
+ body: _response.error.body,
78
+ });
79
+ }
80
+ switch (_response.error.reason) {
81
+ case "non-json":
82
+ throw new errors.VellumError({
83
+ statusCode: _response.error.statusCode,
84
+ body: _response.error.rawBody,
85
+ });
86
+ case "timeout":
87
+ throw new errors.VellumTimeoutError();
88
+ case "unknown":
89
+ throw new errors.VellumError({
90
+ message: _response.error.errorMessage,
91
+ });
92
+ }
93
+ });
94
+ }
95
+ _getCustomAuthorizationHeaders() {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
98
+ return { X_API_KEY: apiKeyValue };
99
+ });
100
+ }
101
+ }
102
+ exports.PromptVersions = PromptVersions;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface DeploySandboxPromptRequest {
9
+ /** The Vellum-generated ID of the Prompt Deployment you'd like to update. Cannot specify both this and prompt_deployment_name. Leave null to create a new Prompt Deployment. */
10
+ promptDeploymentId?: string;
11
+ /** The unique name of the Prompt Deployment you'd like to either create or update. Cannot specify both this and prompt_deployment_id. If provided and matches an existing Prompt Deployment, that Prompt Deployment will be updated. Otherwise, a new Prompt Deployment will be created. */
12
+ promptDeploymentName?: string;
13
+ /** In the event that a new Prompt Deployment is created, this will be the label it's given. */
14
+ label?: string;
15
+ /** Optionally provide the release tags that you'd like to be associated with the latest release of the created/updated Prompt Deployment. */
16
+ releaseTags?: string[];
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 });
@@ -0,0 +1 @@
1
+ export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -76,7 +76,7 @@ class Sandboxes {
76
76
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
77
77
  .default, `v1/sandboxes/${id}/scenarios`),
78
78
  method: "POST",
79
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
80
  contentType: "application/json",
81
81
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
82
82
  unrecognizedObjectKeys: "strip",
@@ -126,7 +126,7 @@ class Sandboxes {
126
126
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
127
127
  .default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
128
128
  method: "DELETE",
129
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
130
  contentType: "application/json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
132
132
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -58,7 +58,7 @@ class TestSuiteRuns {
58
58
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
59
59
  .default, "v1/test-suite-runs"),
60
60
  method: "POST",
61
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
61
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
62
  contentType: "application/json",
63
63
  body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
64
64
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -106,7 +106,7 @@ class TestSuiteRuns {
106
106
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
107
107
  .default, `v1/test-suite-runs/${id}`),
108
108
  method: "GET",
109
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
109
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
110
110
  contentType: "application/json",
111
111
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
112
112
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -163,7 +163,7 @@ class TestSuiteRuns {
163
163
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
164
164
  .default, `v1/test-suite-runs/${id}/executions`),
165
165
  method: "GET",
166
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
167
  contentType: "application/json",
168
168
  queryParameters: _queryParams,
169
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class TestSuites {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, `v1/test-suites/${id}/test-cases`),
71
71
  method: "GET",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -126,7 +126,7 @@ class TestSuites {
126
126
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
127
127
  .default, `v1/test-suites/${id}/test-cases`),
128
128
  method: "POST",
129
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
130
  contentType: "application/json",
131
131
  body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
132
132
  unrecognizedObjectKeys: "strip",
@@ -176,7 +176,7 @@ class TestSuites {
176
176
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
177
177
  .default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
178
178
  method: "DELETE",
179
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
179
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
180
180
  contentType: "application/json",
181
181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
182
182
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -25,6 +25,20 @@ export declare class WorkflowDeployments {
25
25
  * await vellum.workflowDeployments.retrieve("id")
26
26
  */
27
27
  retrieve(id: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
28
+ /**
29
+ * Retrieve a Workflow Release Tag by tag name, associated with a specified Workflow Deployment.
30
+ *
31
+ * @example
32
+ * await vellum.workflowDeployments.retrieveWorkflowReleaseTag("id", "name")
33
+ */
34
+ retrieveWorkflowReleaseTag(id: string, name: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
35
+ /**
36
+ * Updates an existing Release Tag associated with the specified Workflow Deployment.
37
+ *
38
+ * @example
39
+ * await vellum.workflowDeployments.updateWorkflowReleaseTag("id", "name")
40
+ */
41
+ updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
28
42
  protected _getCustomAuthorizationHeaders(): Promise<{
29
43
  X_API_KEY: string;
30
44
  }>;
@@ -69,7 +69,7 @@ class WorkflowDeployments {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, "v1/workflow-deployments"),
71
71
  method: "GET",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -117,7 +117,7 @@ class WorkflowDeployments {
117
117
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
118
118
  .default, `v1/workflow-deployments/${id}`),
119
119
  method: "GET",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
123
123
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -151,6 +151,103 @@ class WorkflowDeployments {
151
151
  }
152
152
  });
153
153
  }
154
+ /**
155
+ * Retrieve a Workflow Release Tag by tag name, associated with a specified Workflow Deployment.
156
+ *
157
+ * @example
158
+ * await vellum.workflowDeployments.retrieveWorkflowReleaseTag("id", "name")
159
+ */
160
+ retrieveWorkflowReleaseTag(id, name, requestOptions) {
161
+ var _a;
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ const _response = yield core.fetcher({
164
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
165
+ .default, `v1/workflow-deployments/${id}/release-tags/${name}`),
166
+ method: "GET",
167
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
168
+ contentType: "application/json",
169
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
170
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
171
+ });
172
+ if (_response.ok) {
173
+ return yield serializers.WorkflowReleaseTagRead.parseOrThrow(_response.body, {
174
+ unrecognizedObjectKeys: "passthrough",
175
+ allowUnrecognizedUnionMembers: true,
176
+ allowUnrecognizedEnumValues: true,
177
+ breadcrumbsPrefix: ["response"],
178
+ });
179
+ }
180
+ if (_response.error.reason === "status-code") {
181
+ throw new errors.VellumError({
182
+ statusCode: _response.error.statusCode,
183
+ body: _response.error.body,
184
+ });
185
+ }
186
+ switch (_response.error.reason) {
187
+ case "non-json":
188
+ throw new errors.VellumError({
189
+ statusCode: _response.error.statusCode,
190
+ body: _response.error.rawBody,
191
+ });
192
+ case "timeout":
193
+ throw new errors.VellumTimeoutError();
194
+ case "unknown":
195
+ throw new errors.VellumError({
196
+ message: _response.error.errorMessage,
197
+ });
198
+ }
199
+ });
200
+ }
201
+ /**
202
+ * Updates an existing Release Tag associated with the specified Workflow Deployment.
203
+ *
204
+ * @example
205
+ * await vellum.workflowDeployments.updateWorkflowReleaseTag("id", "name")
206
+ */
207
+ updateWorkflowReleaseTag(id, name, request = {}, requestOptions) {
208
+ var _a;
209
+ return __awaiter(this, void 0, void 0, function* () {
210
+ const _response = yield core.fetcher({
211
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
212
+ .default, `v1/workflow-deployments/${id}/release-tags/${name}`),
213
+ method: "PATCH",
214
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
+ contentType: "application/json",
216
+ body: yield serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
217
+ unrecognizedObjectKeys: "strip",
218
+ }),
219
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
220
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
221
+ });
222
+ if (_response.ok) {
223
+ return yield serializers.WorkflowReleaseTagRead.parseOrThrow(_response.body, {
224
+ unrecognizedObjectKeys: "passthrough",
225
+ allowUnrecognizedUnionMembers: true,
226
+ allowUnrecognizedEnumValues: true,
227
+ breadcrumbsPrefix: ["response"],
228
+ });
229
+ }
230
+ if (_response.error.reason === "status-code") {
231
+ throw new errors.VellumError({
232
+ statusCode: _response.error.statusCode,
233
+ body: _response.error.body,
234
+ });
235
+ }
236
+ switch (_response.error.reason) {
237
+ case "non-json":
238
+ throw new errors.VellumError({
239
+ statusCode: _response.error.statusCode,
240
+ body: _response.error.rawBody,
241
+ });
242
+ case "timeout":
243
+ throw new errors.VellumTimeoutError();
244
+ case "unknown":
245
+ throw new errors.VellumError({
246
+ message: _response.error.errorMessage,
247
+ });
248
+ }
249
+ });
250
+ }
154
251
  _getCustomAuthorizationHeaders() {
155
252
  return __awaiter(this, void 0, void 0, function* () {
156
253
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface PatchedWorkflowReleaseTagUpdateRequest {
9
+ /** The ID of the Workflow Deployment History Item to tag */
10
+ historyItemId?: string;
11
+ }
@@ -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
1
  export { WorkflowDeploymentsListRequest } from "./WorkflowDeploymentsListRequest";
2
+ export { PatchedWorkflowReleaseTagUpdateRequest } from "./PatchedWorkflowReleaseTagUpdateRequest";