vellum-ai 0.8.24 → 0.8.26

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 (257) hide show
  1. package/.mock/definition/__package__.yml +175 -1
  2. package/.mock/definition/adHoc.yml +1 -0
  3. package/.mock/definition/folderEntities.yml +91 -2
  4. package/.mock/definition/workspaceSecrets.yml +34 -0
  5. package/.mock/openapi/openapi.yml +374 -6
  6. package/Client.d.ts +6 -3
  7. package/Client.js +16 -11
  8. package/api/resources/adHoc/client/Client.d.ts +3 -3
  9. package/api/resources/adHoc/client/Client.js +2 -2
  10. package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +4 -0
  11. package/api/resources/deployments/client/Client.d.ts +3 -3
  12. package/api/resources/deployments/client/Client.js +6 -6
  13. package/api/resources/documentIndexes/client/Client.d.ts +3 -3
  14. package/api/resources/documentIndexes/client/Client.js +9 -9
  15. package/api/resources/documents/client/Client.d.ts +3 -3
  16. package/api/resources/documents/client/Client.js +6 -6
  17. package/api/resources/folderEntities/client/Client.d.ts +22 -4
  18. package/api/resources/folderEntities/client/Client.js +80 -4
  19. package/api/resources/folderEntities/client/requests/FolderEntitiesListRequest.d.ts +43 -0
  20. package/api/resources/folderEntities/client/requests/FolderEntitiesListRequest.js +5 -0
  21. package/api/resources/folderEntities/client/requests/index.d.ts +1 -0
  22. package/api/resources/folderEntities/index.d.ts +1 -0
  23. package/api/resources/folderEntities/index.js +1 -0
  24. package/api/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.d.ts +8 -0
  25. package/api/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.js +10 -0
  26. package/api/resources/folderEntities/types/index.d.ts +1 -0
  27. package/api/resources/folderEntities/types/index.js +17 -0
  28. package/api/resources/index.d.ts +3 -1
  29. package/api/resources/index.js +4 -2
  30. package/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  31. package/api/resources/metricDefinitions/client/Client.js +2 -2
  32. package/api/resources/sandboxes/client/Client.d.ts +3 -3
  33. package/api/resources/sandboxes/client/Client.js +4 -4
  34. package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  35. package/api/resources/testSuiteRuns/client/Client.js +4 -4
  36. package/api/resources/testSuites/client/Client.d.ts +3 -3
  37. package/api/resources/testSuites/client/Client.js +5 -5
  38. package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  39. package/api/resources/workflowDeployments/client/Client.js +5 -5
  40. package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  41. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  42. package/api/resources/workspaceSecrets/client/Client.d.ts +37 -0
  43. package/api/resources/workspaceSecrets/client/Client.js +110 -0
  44. package/api/resources/workspaceSecrets/client/index.d.ts +1 -0
  45. package/api/resources/workspaceSecrets/client/index.js +2 -0
  46. package/api/resources/workspaceSecrets/index.d.ts +1 -0
  47. package/api/resources/workspaceSecrets/index.js +17 -0
  48. package/api/types/ApiNodeResultData.d.ts +1 -1
  49. package/api/types/FolderEntity.d.ts +5 -0
  50. package/api/types/FolderEntity.js +5 -0
  51. package/api/types/FolderEntityDocumentIndex.d.ts +12 -0
  52. package/api/types/FolderEntityDocumentIndex.js +5 -0
  53. package/api/types/FolderEntityDocumentIndexData.d.ts +11 -0
  54. package/api/types/FolderEntityDocumentIndexData.js +5 -0
  55. package/api/types/FolderEntityFolder.d.ts +12 -0
  56. package/api/types/FolderEntityFolder.js +5 -0
  57. package/api/types/FolderEntityFolderData.d.ts +10 -0
  58. package/api/types/FolderEntityFolderData.js +5 -0
  59. package/api/types/FolderEntityPromptSandbox.d.ts +12 -0
  60. package/api/types/FolderEntityPromptSandbox.js +5 -0
  61. package/api/types/FolderEntityPromptSandboxData.d.ts +12 -0
  62. package/api/types/FolderEntityPromptSandboxData.js +5 -0
  63. package/api/types/FolderEntityTestSuite.d.ts +12 -0
  64. package/api/types/FolderEntityTestSuite.js +5 -0
  65. package/api/types/FolderEntityTestSuiteData.d.ts +11 -0
  66. package/api/types/FolderEntityTestSuiteData.js +5 -0
  67. package/api/types/FolderEntityWorkflowSandbox.d.ts +12 -0
  68. package/api/types/FolderEntityWorkflowSandbox.js +5 -0
  69. package/api/types/FolderEntityWorkflowSandboxData.d.ts +12 -0
  70. package/api/types/FolderEntityWorkflowSandboxData.js +5 -0
  71. package/api/types/PaginatedFolderEntityList.d.ts +10 -0
  72. package/api/types/PaginatedFolderEntityList.js +5 -0
  73. package/api/types/PromptSettingsRequest.d.ts +6 -0
  74. package/api/types/PromptSettingsRequest.js +5 -0
  75. package/api/types/SecretTypeEnum.d.ts +14 -0
  76. package/api/types/SecretTypeEnum.js +11 -0
  77. package/api/types/VellumErrorCodeEnum.d.ts +3 -1
  78. package/api/types/VellumErrorCodeEnum.js +1 -0
  79. package/api/types/WorkspaceSecretRead.d.ts +11 -0
  80. package/api/types/WorkspaceSecretRead.js +5 -0
  81. package/api/types/index.d.ts +15 -0
  82. package/api/types/index.js +15 -0
  83. package/dist/Client.d.ts +6 -3
  84. package/dist/Client.js +16 -11
  85. package/dist/api/resources/adHoc/client/Client.d.ts +3 -3
  86. package/dist/api/resources/adHoc/client/Client.js +2 -2
  87. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +4 -0
  88. package/dist/api/resources/deployments/client/Client.d.ts +3 -3
  89. package/dist/api/resources/deployments/client/Client.js +6 -6
  90. package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
  91. package/dist/api/resources/documentIndexes/client/Client.js +9 -9
  92. package/dist/api/resources/documents/client/Client.d.ts +3 -3
  93. package/dist/api/resources/documents/client/Client.js +6 -6
  94. package/dist/api/resources/folderEntities/client/Client.d.ts +22 -4
  95. package/dist/api/resources/folderEntities/client/Client.js +80 -4
  96. package/dist/api/resources/folderEntities/client/requests/FolderEntitiesListRequest.d.ts +43 -0
  97. package/dist/api/resources/folderEntities/client/requests/FolderEntitiesListRequest.js +5 -0
  98. package/dist/api/resources/folderEntities/client/requests/index.d.ts +1 -0
  99. package/dist/api/resources/folderEntities/index.d.ts +1 -0
  100. package/dist/api/resources/folderEntities/index.js +1 -0
  101. package/dist/api/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.d.ts +8 -0
  102. package/dist/api/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.js +10 -0
  103. package/dist/api/resources/folderEntities/types/index.d.ts +1 -0
  104. package/dist/api/resources/folderEntities/types/index.js +17 -0
  105. package/dist/api/resources/index.d.ts +3 -1
  106. package/dist/api/resources/index.js +4 -2
  107. package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  108. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  109. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
  110. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  111. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  112. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  113. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  114. package/dist/api/resources/testSuites/client/Client.js +5 -5
  115. package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  116. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  117. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  118. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  119. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +37 -0
  120. package/dist/api/resources/workspaceSecrets/client/Client.js +110 -0
  121. package/dist/api/resources/workspaceSecrets/client/index.d.ts +1 -0
  122. package/dist/api/resources/workspaceSecrets/client/index.js +2 -0
  123. package/dist/api/resources/workspaceSecrets/index.d.ts +1 -0
  124. package/dist/api/resources/workspaceSecrets/index.js +17 -0
  125. package/dist/api/types/ApiNodeResultData.d.ts +1 -1
  126. package/dist/api/types/FolderEntity.d.ts +5 -0
  127. package/dist/api/types/FolderEntity.js +5 -0
  128. package/dist/api/types/FolderEntityDocumentIndex.d.ts +12 -0
  129. package/dist/api/types/FolderEntityDocumentIndex.js +5 -0
  130. package/dist/api/types/FolderEntityDocumentIndexData.d.ts +11 -0
  131. package/dist/api/types/FolderEntityDocumentIndexData.js +5 -0
  132. package/dist/api/types/FolderEntityFolder.d.ts +12 -0
  133. package/dist/api/types/FolderEntityFolder.js +5 -0
  134. package/dist/api/types/FolderEntityFolderData.d.ts +10 -0
  135. package/dist/api/types/FolderEntityFolderData.js +5 -0
  136. package/dist/api/types/FolderEntityPromptSandbox.d.ts +12 -0
  137. package/dist/api/types/FolderEntityPromptSandbox.js +5 -0
  138. package/dist/api/types/FolderEntityPromptSandboxData.d.ts +12 -0
  139. package/dist/api/types/FolderEntityPromptSandboxData.js +5 -0
  140. package/dist/api/types/FolderEntityTestSuite.d.ts +12 -0
  141. package/dist/api/types/FolderEntityTestSuite.js +5 -0
  142. package/dist/api/types/FolderEntityTestSuiteData.d.ts +11 -0
  143. package/dist/api/types/FolderEntityTestSuiteData.js +5 -0
  144. package/dist/api/types/FolderEntityWorkflowSandbox.d.ts +12 -0
  145. package/dist/api/types/FolderEntityWorkflowSandbox.js +5 -0
  146. package/dist/api/types/FolderEntityWorkflowSandboxData.d.ts +12 -0
  147. package/dist/api/types/FolderEntityWorkflowSandboxData.js +5 -0
  148. package/dist/api/types/PaginatedFolderEntityList.d.ts +10 -0
  149. package/dist/api/types/PaginatedFolderEntityList.js +5 -0
  150. package/dist/api/types/PromptSettingsRequest.d.ts +6 -0
  151. package/dist/api/types/PromptSettingsRequest.js +5 -0
  152. package/dist/api/types/SecretTypeEnum.d.ts +14 -0
  153. package/dist/api/types/SecretTypeEnum.js +11 -0
  154. package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
  155. package/dist/api/types/VellumErrorCodeEnum.js +1 -0
  156. package/dist/api/types/WorkspaceSecretRead.d.ts +11 -0
  157. package/dist/api/types/WorkspaceSecretRead.js +5 -0
  158. package/dist/api/types/index.d.ts +15 -0
  159. package/dist/api/types/index.js +15 -0
  160. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +2 -0
  161. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +2 -0
  162. package/dist/serialization/resources/folderEntities/index.d.ts +1 -0
  163. package/dist/serialization/resources/folderEntities/index.js +1 -0
  164. package/dist/serialization/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.d.ts +10 -0
  165. package/dist/serialization/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.js +31 -0
  166. package/dist/serialization/resources/folderEntities/types/index.d.ts +1 -0
  167. package/dist/serialization/resources/folderEntities/types/index.js +17 -0
  168. package/dist/serialization/resources/index.d.ts +2 -1
  169. package/dist/serialization/resources/index.js +3 -2
  170. package/dist/serialization/types/ApiNodeResultData.d.ts +1 -1
  171. package/dist/serialization/types/ApiNodeResultData.js +1 -1
  172. package/dist/serialization/types/FolderEntity.d.ts +15 -0
  173. package/dist/serialization/types/FolderEntity.js +42 -0
  174. package/dist/serialization/types/FolderEntityDocumentIndex.d.ts +15 -0
  175. package/dist/serialization/types/FolderEntityDocumentIndex.js +36 -0
  176. package/dist/serialization/types/FolderEntityDocumentIndexData.d.ts +17 -0
  177. package/dist/serialization/types/FolderEntityDocumentIndexData.js +38 -0
  178. package/dist/serialization/types/FolderEntityFolder.d.ts +15 -0
  179. package/dist/serialization/types/FolderEntityFolder.js +36 -0
  180. package/dist/serialization/types/FolderEntityFolderData.d.ts +16 -0
  181. package/dist/serialization/types/FolderEntityFolderData.js +37 -0
  182. package/dist/serialization/types/FolderEntityPromptSandbox.d.ts +15 -0
  183. package/dist/serialization/types/FolderEntityPromptSandbox.js +36 -0
  184. package/dist/serialization/types/FolderEntityPromptSandboxData.d.ts +18 -0
  185. package/dist/serialization/types/FolderEntityPromptSandboxData.js +39 -0
  186. package/dist/serialization/types/FolderEntityTestSuite.d.ts +15 -0
  187. package/dist/serialization/types/FolderEntityTestSuite.js +36 -0
  188. package/dist/serialization/types/FolderEntityTestSuiteData.d.ts +17 -0
  189. package/dist/serialization/types/FolderEntityTestSuiteData.js +38 -0
  190. package/dist/serialization/types/FolderEntityWorkflowSandbox.d.ts +15 -0
  191. package/dist/serialization/types/FolderEntityWorkflowSandbox.js +36 -0
  192. package/dist/serialization/types/FolderEntityWorkflowSandboxData.d.ts +18 -0
  193. package/dist/serialization/types/FolderEntityWorkflowSandboxData.js +39 -0
  194. package/dist/serialization/types/PaginatedFolderEntityList.d.ts +16 -0
  195. package/dist/serialization/types/PaginatedFolderEntityList.js +37 -0
  196. package/dist/serialization/types/PromptSettingsRequest.d.ts +12 -0
  197. package/dist/serialization/types/PromptSettingsRequest.js +33 -0
  198. package/dist/serialization/types/SecretTypeEnum.d.ts +10 -0
  199. package/dist/serialization/types/SecretTypeEnum.js +31 -0
  200. package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
  201. package/dist/serialization/types/VellumErrorCodeEnum.js +7 -1
  202. package/dist/serialization/types/WorkspaceSecretRead.d.ts +17 -0
  203. package/dist/serialization/types/WorkspaceSecretRead.js +38 -0
  204. package/dist/serialization/types/index.d.ts +15 -0
  205. package/dist/serialization/types/index.js +15 -0
  206. package/dist/version.d.ts +1 -1
  207. package/dist/version.js +1 -1
  208. package/package.json +1 -1
  209. package/reference.md +142 -1
  210. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +2 -0
  211. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +2 -0
  212. package/serialization/resources/folderEntities/index.d.ts +1 -0
  213. package/serialization/resources/folderEntities/index.js +1 -0
  214. package/serialization/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.d.ts +10 -0
  215. package/serialization/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.js +31 -0
  216. package/serialization/resources/folderEntities/types/index.d.ts +1 -0
  217. package/serialization/resources/folderEntities/types/index.js +17 -0
  218. package/serialization/resources/index.d.ts +2 -1
  219. package/serialization/resources/index.js +3 -2
  220. package/serialization/types/ApiNodeResultData.d.ts +1 -1
  221. package/serialization/types/ApiNodeResultData.js +1 -1
  222. package/serialization/types/FolderEntity.d.ts +15 -0
  223. package/serialization/types/FolderEntity.js +42 -0
  224. package/serialization/types/FolderEntityDocumentIndex.d.ts +15 -0
  225. package/serialization/types/FolderEntityDocumentIndex.js +36 -0
  226. package/serialization/types/FolderEntityDocumentIndexData.d.ts +17 -0
  227. package/serialization/types/FolderEntityDocumentIndexData.js +38 -0
  228. package/serialization/types/FolderEntityFolder.d.ts +15 -0
  229. package/serialization/types/FolderEntityFolder.js +36 -0
  230. package/serialization/types/FolderEntityFolderData.d.ts +16 -0
  231. package/serialization/types/FolderEntityFolderData.js +37 -0
  232. package/serialization/types/FolderEntityPromptSandbox.d.ts +15 -0
  233. package/serialization/types/FolderEntityPromptSandbox.js +36 -0
  234. package/serialization/types/FolderEntityPromptSandboxData.d.ts +18 -0
  235. package/serialization/types/FolderEntityPromptSandboxData.js +39 -0
  236. package/serialization/types/FolderEntityTestSuite.d.ts +15 -0
  237. package/serialization/types/FolderEntityTestSuite.js +36 -0
  238. package/serialization/types/FolderEntityTestSuiteData.d.ts +17 -0
  239. package/serialization/types/FolderEntityTestSuiteData.js +38 -0
  240. package/serialization/types/FolderEntityWorkflowSandbox.d.ts +15 -0
  241. package/serialization/types/FolderEntityWorkflowSandbox.js +36 -0
  242. package/serialization/types/FolderEntityWorkflowSandboxData.d.ts +18 -0
  243. package/serialization/types/FolderEntityWorkflowSandboxData.js +39 -0
  244. package/serialization/types/PaginatedFolderEntityList.d.ts +16 -0
  245. package/serialization/types/PaginatedFolderEntityList.js +37 -0
  246. package/serialization/types/PromptSettingsRequest.d.ts +12 -0
  247. package/serialization/types/PromptSettingsRequest.js +33 -0
  248. package/serialization/types/SecretTypeEnum.d.ts +10 -0
  249. package/serialization/types/SecretTypeEnum.js +31 -0
  250. package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
  251. package/serialization/types/VellumErrorCodeEnum.js +7 -1
  252. package/serialization/types/WorkspaceSecretRead.d.ts +17 -0
  253. package/serialization/types/WorkspaceSecretRead.js +38 -0
  254. package/serialization/types/index.d.ts +15 -0
  255. package/serialization/types/index.js +15 -0
  256. package/version.d.ts +1 -1
  257. package/version.js +1 -1
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A slim representation of a Folder, as it exists within another Folder.
7
+ */
8
+ export interface FolderEntityFolder {
9
+ id: string;
10
+ type: "FOLDER";
11
+ data: Vellum.FolderEntityFolderData;
12
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface FolderEntityFolderData {
5
+ id: string;
6
+ label: string;
7
+ created: Date;
8
+ modified: Date;
9
+ hasContents: boolean;
10
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A slim representation of a Prompt Sandbox, as it exists within a Folder.
7
+ */
8
+ export interface FolderEntityPromptSandbox {
9
+ id: string;
10
+ type: "PROMPT_SANDBOX";
11
+ data: Vellum.FolderEntityPromptSandboxData;
12
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface FolderEntityPromptSandboxData {
6
+ id: string;
7
+ label: string;
8
+ created: Date;
9
+ modified: Date;
10
+ status: Vellum.EntityStatus;
11
+ lastDeployedOn?: Date;
12
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A slim representation of a Test Suite, as it exists within a Folder.
7
+ */
8
+ export interface FolderEntityTestSuite {
9
+ id: string;
10
+ type: "TEST_SUITE";
11
+ data: Vellum.FolderEntityTestSuiteData;
12
+ }
@@ -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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface FolderEntityTestSuiteData {
6
+ id: string;
7
+ label: string;
8
+ created: Date;
9
+ modified: Date;
10
+ status: Vellum.EntityStatus;
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 });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A slim representation of a Workflow Sandbox, as it exists within a Folder.
7
+ */
8
+ export interface FolderEntityWorkflowSandbox {
9
+ id: string;
10
+ type: "WORKFLOW_SANDBOX";
11
+ data: Vellum.FolderEntityWorkflowSandboxData;
12
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface FolderEntityWorkflowSandboxData {
6
+ id: string;
7
+ label: string;
8
+ created: Date;
9
+ modified: Date;
10
+ status: Vellum.EntityStatus;
11
+ lastDeployedOn?: Date;
12
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface PaginatedFolderEntityList {
6
+ count?: number;
7
+ next?: string;
8
+ previous?: string;
9
+ results?: Vellum.FolderEntity[];
10
+ }
@@ -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,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PromptSettingsRequest {
5
+ timeout?: number;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * - `USER_DEFINED` - User Defined
6
+ * - `HMAC` - Hmac
7
+ * - `INTERNAL_API_KEY` - Internal Api Key
8
+ */
9
+ export declare type SecretTypeEnum = "USER_DEFINED" | "HMAC" | "INTERNAL_API_KEY";
10
+ export declare const SecretTypeEnum: {
11
+ readonly UserDefined: "USER_DEFINED";
12
+ readonly Hmac: "HMAC";
13
+ readonly InternalApiKey: "INTERNAL_API_KEY";
14
+ };
@@ -0,0 +1,11 @@
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.SecretTypeEnum = void 0;
7
+ exports.SecretTypeEnum = {
8
+ UserDefined: "USER_DEFINED",
9
+ Hmac: "HMAC",
10
+ InternalApiKey: "INTERNAL_API_KEY",
11
+ };
@@ -4,13 +4,15 @@
4
4
  /**
5
5
  * - `INVALID_REQUEST` - INVALID_REQUEST
6
6
  * - `PROVIDER_ERROR` - PROVIDER_ERROR
7
+ * - `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
7
8
  * - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
8
9
  * - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
9
10
  */
10
- export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
11
+ export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "REQUEST_TIMEOUT" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
11
12
  export declare const VellumErrorCodeEnum: {
12
13
  readonly InvalidRequest: "INVALID_REQUEST";
13
14
  readonly ProviderError: "PROVIDER_ERROR";
15
+ readonly RequestTimeout: "REQUEST_TIMEOUT";
14
16
  readonly InternalServerError: "INTERNAL_SERVER_ERROR";
15
17
  readonly UserDefinedError: "USER_DEFINED_ERROR";
16
18
  };
@@ -7,6 +7,7 @@ exports.VellumErrorCodeEnum = void 0;
7
7
  exports.VellumErrorCodeEnum = {
8
8
  InvalidRequest: "INVALID_REQUEST",
9
9
  ProviderError: "PROVIDER_ERROR",
10
+ RequestTimeout: "REQUEST_TIMEOUT",
10
11
  InternalServerError: "INTERNAL_SERVER_ERROR",
11
12
  UserDefinedError: "USER_DEFINED_ERROR",
12
13
  };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface WorkspaceSecretRead {
6
+ id: string;
7
+ modified: Date;
8
+ name: string;
9
+ label: string;
10
+ secretType: Vellum.SecretTypeEnum;
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 });
@@ -94,6 +94,17 @@ export * from "./ExecutionVellumValue";
94
94
  export * from "./ExternalTestCaseExecution";
95
95
  export * from "./ExternalTestCaseExecutionRequest";
96
96
  export * from "./FinishReasonEnum";
97
+ export * from "./FolderEntity";
98
+ export * from "./FolderEntityDocumentIndex";
99
+ export * from "./FolderEntityDocumentIndexData";
100
+ export * from "./FolderEntityFolder";
101
+ export * from "./FolderEntityFolderData";
102
+ export * from "./FolderEntityPromptSandbox";
103
+ export * from "./FolderEntityPromptSandboxData";
104
+ export * from "./FolderEntityTestSuite";
105
+ export * from "./FolderEntityTestSuiteData";
106
+ export * from "./FolderEntityWorkflowSandbox";
107
+ export * from "./FolderEntityWorkflowSandboxData";
97
108
  export * from "./FulfilledAdHocExecutePromptEvent";
98
109
  export * from "./FulfilledEnum";
99
110
  export * from "./FulfilledExecutePromptEvent";
@@ -220,6 +231,7 @@ export * from "./OpenAiVectorizerTextEmbedding3SmallRequest";
220
231
  export * from "./OpenAiVectorizerTextEmbeddingAda002";
221
232
  export * from "./OpenAiVectorizerTextEmbeddingAda002Request";
222
233
  export * from "./PaginatedDocumentIndexReadList";
234
+ export * from "./PaginatedFolderEntityList";
223
235
  export * from "./PaginatedSlimDeploymentReadList";
224
236
  export * from "./PaginatedSlimDocumentList";
225
237
  export * from "./PaginatedSlimWorkflowDeploymentList";
@@ -245,6 +257,7 @@ export * from "./PromptRequestChatHistoryInputRequest";
245
257
  export * from "./PromptRequestInputRequest";
246
258
  export * from "./PromptRequestJsonInputRequest";
247
259
  export * from "./PromptRequestStringInputRequest";
260
+ export * from "./PromptSettingsRequest";
248
261
  export * from "./RawPromptExecutionOverridesRequest";
249
262
  export * from "./ReductoChunkerConfig";
250
263
  export * from "./ReductoChunkerConfigRequest";
@@ -284,6 +297,7 @@ export * from "./SearchResultsVariableValue";
284
297
  export * from "./SearchResultsVellumValue";
285
298
  export * from "./SearchResultsVellumValueRequest";
286
299
  export * from "./SearchWeightsRequest";
300
+ export * from "./SecretTypeEnum";
287
301
  export * from "./SentenceChunkerConfig";
288
302
  export * from "./SentenceChunkerConfigRequest";
289
303
  export * from "./SentenceChunking";
@@ -449,3 +463,4 @@ export * from "./WorkflowResultEventOutputDataNumber";
449
463
  export * from "./WorkflowResultEventOutputDataSearchResults";
450
464
  export * from "./WorkflowResultEventOutputDataString";
451
465
  export * from "./WorkflowStreamEvent";
466
+ export * from "./WorkspaceSecretRead";
@@ -110,6 +110,17 @@ __exportStar(require("./ExecutionVellumValue"), exports);
110
110
  __exportStar(require("./ExternalTestCaseExecution"), exports);
111
111
  __exportStar(require("./ExternalTestCaseExecutionRequest"), exports);
112
112
  __exportStar(require("./FinishReasonEnum"), exports);
113
+ __exportStar(require("./FolderEntity"), exports);
114
+ __exportStar(require("./FolderEntityDocumentIndex"), exports);
115
+ __exportStar(require("./FolderEntityDocumentIndexData"), exports);
116
+ __exportStar(require("./FolderEntityFolder"), exports);
117
+ __exportStar(require("./FolderEntityFolderData"), exports);
118
+ __exportStar(require("./FolderEntityPromptSandbox"), exports);
119
+ __exportStar(require("./FolderEntityPromptSandboxData"), exports);
120
+ __exportStar(require("./FolderEntityTestSuite"), exports);
121
+ __exportStar(require("./FolderEntityTestSuiteData"), exports);
122
+ __exportStar(require("./FolderEntityWorkflowSandbox"), exports);
123
+ __exportStar(require("./FolderEntityWorkflowSandboxData"), exports);
113
124
  __exportStar(require("./FulfilledAdHocExecutePromptEvent"), exports);
114
125
  __exportStar(require("./FulfilledEnum"), exports);
115
126
  __exportStar(require("./FulfilledExecutePromptEvent"), exports);
@@ -236,6 +247,7 @@ __exportStar(require("./OpenAiVectorizerTextEmbedding3SmallRequest"), exports);
236
247
  __exportStar(require("./OpenAiVectorizerTextEmbeddingAda002"), exports);
237
248
  __exportStar(require("./OpenAiVectorizerTextEmbeddingAda002Request"), exports);
238
249
  __exportStar(require("./PaginatedDocumentIndexReadList"), exports);
250
+ __exportStar(require("./PaginatedFolderEntityList"), exports);
239
251
  __exportStar(require("./PaginatedSlimDeploymentReadList"), exports);
240
252
  __exportStar(require("./PaginatedSlimDocumentList"), exports);
241
253
  __exportStar(require("./PaginatedSlimWorkflowDeploymentList"), exports);
@@ -261,6 +273,7 @@ __exportStar(require("./PromptRequestChatHistoryInputRequest"), exports);
261
273
  __exportStar(require("./PromptRequestInputRequest"), exports);
262
274
  __exportStar(require("./PromptRequestJsonInputRequest"), exports);
263
275
  __exportStar(require("./PromptRequestStringInputRequest"), exports);
276
+ __exportStar(require("./PromptSettingsRequest"), exports);
264
277
  __exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
265
278
  __exportStar(require("./ReductoChunkerConfig"), exports);
266
279
  __exportStar(require("./ReductoChunkerConfigRequest"), exports);
@@ -300,6 +313,7 @@ __exportStar(require("./SearchResultsVariableValue"), exports);
300
313
  __exportStar(require("./SearchResultsVellumValue"), exports);
301
314
  __exportStar(require("./SearchResultsVellumValueRequest"), exports);
302
315
  __exportStar(require("./SearchWeightsRequest"), exports);
316
+ __exportStar(require("./SecretTypeEnum"), exports);
303
317
  __exportStar(require("./SentenceChunkerConfig"), exports);
304
318
  __exportStar(require("./SentenceChunkerConfigRequest"), exports);
305
319
  __exportStar(require("./SentenceChunking"), exports);
@@ -465,3 +479,4 @@ __exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
465
479
  __exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
466
480
  __exportStar(require("./WorkflowResultEventOutputDataString"), exports);
467
481
  __exportStar(require("./WorkflowStreamEvent"), exports);
482
+ __exportStar(require("./WorkspaceSecretRead"), exports);
package/dist/Client.d.ts CHANGED
@@ -15,10 +15,11 @@ import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
15
15
  import { TestSuites } from "./api/resources/testSuites/client/Client";
16
16
  import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/Client";
17
17
  import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Client";
18
+ import { WorkspaceSecrets } from "./api/resources/workspaceSecrets/client/Client";
18
19
  export declare namespace VellumClient {
19
20
  interface Options {
20
21
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
21
- apiKey: core.Supplier<string>;
22
+ apiKey?: core.Supplier<string | undefined>;
22
23
  }
23
24
  interface RequestOptions {
24
25
  /** The maximum time to wait for a response in seconds. */
@@ -31,7 +32,7 @@ export declare namespace VellumClient {
31
32
  }
32
33
  export declare class VellumClient {
33
34
  protected readonly _options: VellumClient.Options;
34
- constructor(_options: VellumClient.Options);
35
+ constructor(_options?: VellumClient.Options);
35
36
  /**
36
37
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
37
38
  *
@@ -207,7 +208,9 @@ export declare class VellumClient {
207
208
  get workflowDeployments(): WorkflowDeployments;
208
209
  protected _workflowSandboxes: WorkflowSandboxes | undefined;
209
210
  get workflowSandboxes(): WorkflowSandboxes;
211
+ protected _workspaceSecrets: WorkspaceSecrets | undefined;
212
+ get workspaceSecrets(): WorkspaceSecrets;
210
213
  protected _getCustomAuthorizationHeaders(): Promise<{
211
- X_API_KEY: string;
214
+ X_API_KEY: string | undefined;
212
215
  }>;
213
216
  }
package/dist/Client.js CHANGED
@@ -56,8 +56,9 @@ const Client_8 = require("./api/resources/testSuiteRuns/client/Client");
56
56
  const Client_9 = require("./api/resources/testSuites/client/Client");
57
57
  const Client_10 = require("./api/resources/workflowDeployments/client/Client");
58
58
  const Client_11 = require("./api/resources/workflowSandboxes/client/Client");
59
+ const Client_12 = require("./api/resources/workspaceSecrets/client/Client");
59
60
  class VellumClient {
60
- constructor(_options) {
61
+ constructor(_options = {}) {
61
62
  this._options = _options;
62
63
  }
63
64
  /**
@@ -91,7 +92,7 @@ class VellumClient {
91
92
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
92
93
  .default, "v1/execute-code"),
93
94
  method: "POST",
94
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
95
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
95
96
  contentType: "application/json",
96
97
  requestType: "json",
97
98
  body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -160,7 +161,7 @@ class VellumClient {
160
161
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
161
162
  .predict, "v1/execute-prompt"),
162
163
  method: "POST",
163
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
164
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
164
165
  contentType: "application/json",
165
166
  requestType: "json",
166
167
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -218,7 +219,7 @@ class VellumClient {
218
219
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
219
220
  .predict, "v1/execute-prompt-stream"),
220
221
  method: "POST",
221
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
222
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
222
223
  contentType: "application/json",
223
224
  requestType: "json",
224
225
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -303,7 +304,7 @@ class VellumClient {
303
304
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
304
305
  .predict, "v1/execute-workflow"),
305
306
  method: "POST",
306
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
308
  contentType: "application/json",
308
309
  requestType: "json",
309
310
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -359,7 +360,7 @@ class VellumClient {
359
360
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
360
361
  .predict, "v1/execute-workflow-stream"),
361
362
  method: "POST",
362
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
364
  contentType: "application/json",
364
365
  requestType: "json",
365
366
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -446,7 +447,7 @@ class VellumClient {
446
447
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
447
448
  .predict, "v1/generate"),
448
449
  method: "POST",
449
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
450
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
450
451
  contentType: "application/json",
451
452
  requestType: "json",
452
453
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -507,7 +508,7 @@ class VellumClient {
507
508
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
508
509
  .predict, "v1/generate-stream"),
509
510
  method: "POST",
510
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
511
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
511
512
  contentType: "application/json",
512
513
  requestType: "json",
513
514
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -588,7 +589,7 @@ class VellumClient {
588
589
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
589
590
  .predict, "v1/search"),
590
591
  method: "POST",
591
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
592
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
592
593
  contentType: "application/json",
593
594
  requestType: "json",
594
595
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -656,7 +657,7 @@ class VellumClient {
656
657
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
657
658
  .predict, "v1/submit-completion-actuals"),
658
659
  method: "POST",
659
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
660
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
660
661
  contentType: "application/json",
661
662
  requestType: "json",
662
663
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -719,7 +720,7 @@ class VellumClient {
719
720
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
720
721
  .predict, "v1/submit-workflow-execution-actuals"),
721
722
  method: "POST",
722
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
723
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
723
724
  contentType: "application/json",
724
725
  requestType: "json",
725
726
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -797,6 +798,10 @@ class VellumClient {
797
798
  var _a;
798
799
  return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_11.WorkflowSandboxes(this._options)));
799
800
  }
801
+ get workspaceSecrets() {
802
+ var _a;
803
+ return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_12.WorkspaceSecrets(this._options)));
804
+ }
800
805
  _getCustomAuthorizationHeaders() {
801
806
  return __awaiter(this, void 0, void 0, function* () {
802
807
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace AdHoc {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,12 +20,12 @@ export declare namespace AdHoc {
20
20
  }
21
21
  export declare class AdHoc {
22
22
  protected readonly _options: AdHoc.Options;
23
- constructor(_options: AdHoc.Options);
23
+ constructor(_options?: AdHoc.Options);
24
24
  /**
25
25
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
26
26
  */
27
27
  adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStreamRequest, requestOptions?: AdHoc.RequestOptions): Promise<core.Stream<Vellum.AdHocExecutePromptEvent>>;
28
28
  protected _getCustomAuthorizationHeaders(): Promise<{
29
- X_API_KEY: string;
29
+ X_API_KEY: string | undefined;
30
30
  }>;
31
31
  }
@@ -46,7 +46,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const url_join_1 = __importDefault(require("url-join"));
47
47
  const errors = __importStar(require("../../../../errors/index"));
48
48
  class AdHoc {
49
- constructor(_options) {
49
+ constructor(_options = {}) {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
@@ -59,7 +59,7 @@ class AdHoc {
59
59
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
60
60
  .default, "v1/ad-hoc/execute-prompt-stream"),
61
61
  method: "POST",
62
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.24", "User-Agent": "vellum-ai/0.8.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -43,6 +43,9 @@ import * as Vellum from "../../../../index";
43
43
  * }
44
44
  * }
45
45
  * },
46
+ * settings: {
47
+ * timeout: 1.1
48
+ * },
46
49
  * blocks: [{
47
50
  * blockType: "JINJA",
48
51
  * properties: {
@@ -70,6 +73,7 @@ export interface AdHocExecutePromptStreamRequest {
70
73
  inputValues: Vellum.PromptRequestInputRequest[];
71
74
  inputVariables: Vellum.VellumVariableRequest[];
72
75
  parameters: Vellum.PromptParametersRequest;
76
+ settings?: Vellum.PromptSettingsRequest;
73
77
  blocks: Vellum.PromptBlockRequest[];
74
78
  expandMeta?: Vellum.AdHocExpandMetaRequest;
75
79
  }
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace Deployments {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace Deployments {
20
20
  }
21
21
  export declare class Deployments {
22
22
  protected readonly _options: Deployments.Options;
23
- constructor(_options: Deployments.Options);
23
+ constructor(_options?: Deployments.Options);
24
24
  /**
25
25
  * Used to list all Prompt Deployments.
26
26
  *
@@ -95,6 +95,6 @@ export declare class Deployments {
95
95
  */
96
96
  retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
97
97
  protected _getCustomAuthorizationHeaders(): Promise<{
98
- X_API_KEY: string;
98
+ X_API_KEY: string | undefined;
99
99
  }>;
100
100
  }