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
@@ -949,6 +949,67 @@ paths:
949
949
  servers:
950
950
  - url: https://predict.vellum.ai
951
951
  x-name: Predict
952
+ /v1/folder-entities:
953
+ get:
954
+ operationId: folder_entities_list
955
+ description: List all folder entities within a specified folder.
956
+ parameters:
957
+ - in: query
958
+ name: entity_status
959
+ schema:
960
+ type: string
961
+ enum:
962
+ - ACTIVE
963
+ - ARCHIVED
964
+ description: |-
965
+ Filter down to only those objects whose entities have a status matching the status specified.
966
+
967
+ * `ACTIVE` - Active
968
+ * `ARCHIVED` - Archived
969
+ - name: limit
970
+ required: false
971
+ in: query
972
+ description: Number of results to return per page.
973
+ schema:
974
+ type: integer
975
+ - name: offset
976
+ required: false
977
+ in: query
978
+ description: The initial index from which to return the results.
979
+ schema:
980
+ type: integer
981
+ - name: ordering
982
+ required: false
983
+ in: query
984
+ description: Which field to use when ordering the results.
985
+ schema:
986
+ type: string
987
+ - in: query
988
+ name: parent_folder_id
989
+ schema:
990
+ type: string
991
+ description: |-
992
+ Filter down to only those entities whose parent folder has the specified ID.
993
+
994
+ To filter by an entity's parent folder, provide the ID of the parent folder. To filter by the root directory, provide
995
+ a string representing the entity type of the root directory. Supported root directories include:
996
+ - PROMPT_SANDBOX
997
+ - WORKFLOW_SANDBOX
998
+ - DOCUMENT_INDEX
999
+ - TEST_SUITE
1000
+ required: true
1001
+ tags:
1002
+ - folder-entities
1003
+ responses:
1004
+ '200':
1005
+ content:
1006
+ application/json:
1007
+ schema:
1008
+ $ref: '#/components/schemas/PaginatedFolderEntityList'
1009
+ description: ''
1010
+ x-fern-availability: beta
1011
+ x-fern-audiences:
1012
+ - customers
952
1013
  /v1/folders/{folder_id}/add-entity:
953
1014
  post:
954
1015
  operationId: add_entity_to_folder
@@ -961,8 +1022,13 @@ paths:
961
1022
  name: folder_id
962
1023
  schema:
963
1024
  type: string
964
- description: The ID of the folder to which the entity should be added. This
965
- can be a UUID of a folder, or the name of a root directory (e.g. "PROMPT_SANDBOX").
1025
+ description: |-
1026
+ The ID of the folder to which the entity should be added. This can be a UUID of a folder, or the name of a root
1027
+ directory. Supported root directories include:
1028
+ - PROMPT_SANDBOX
1029
+ - WORKFLOW_SANDBOX
1030
+ - DOCUMENT_INDEX
1031
+ - TEST_SUITE
966
1032
  required: true
967
1033
  tags:
968
1034
  - folder-entities
@@ -1861,6 +1927,29 @@ paths:
1861
1927
  x-fern-availability: beta
1862
1928
  x-fern-audiences:
1863
1929
  - customers
1930
+ /v1/workspace-secrets/{id}:
1931
+ get:
1932
+ operationId: workspace_secrets_retrieve
1933
+ description: Used to retrieve a Workspace Secret given its ID or name.
1934
+ parameters:
1935
+ - in: path
1936
+ name: id
1937
+ schema:
1938
+ type: string
1939
+ description: Either the Workspace Secret's ID or its unique name
1940
+ required: true
1941
+ tags:
1942
+ - workspace-secrets
1943
+ responses:
1944
+ '200':
1945
+ content:
1946
+ application/json:
1947
+ schema:
1948
+ $ref: '#/components/schemas/WorkspaceSecretRead'
1949
+ description: ''
1950
+ x-fern-availability: beta
1951
+ x-fern-audiences:
1952
+ - internal
1864
1953
  components:
1865
1954
  schemas:
1866
1955
  AdHocExecutePromptEvent:
@@ -1892,6 +1981,10 @@ components:
1892
1981
  $ref: '#/components/schemas/VellumVariableRequest'
1893
1982
  parameters:
1894
1983
  $ref: '#/components/schemas/PromptParametersRequest'
1984
+ settings:
1985
+ allOf:
1986
+ - $ref: '#/components/schemas/PromptSettingsRequest'
1987
+ nullable: true
1895
1988
  blocks:
1896
1989
  type: array
1897
1990
  items:
@@ -2004,6 +2097,10 @@ components:
2004
2097
  ApiNodeResultData:
2005
2098
  type: object
2006
2099
  properties:
2100
+ json:
2101
+ type: object
2102
+ additionalProperties: {}
2103
+ nullable: true
2007
2104
  text_output_id:
2008
2105
  type: string
2009
2106
  text:
@@ -2011,10 +2108,6 @@ components:
2011
2108
  nullable: true
2012
2109
  json_output_id:
2013
2110
  type: string
2014
- json:
2015
- type: object
2016
- additionalProperties: {}
2017
- nullable: true
2018
2111
  status_code_output_id:
2019
2112
  type: string
2020
2113
  status_code:
@@ -3966,6 +4059,218 @@ components:
3966
4059
  * `LENGTH` - LENGTH
3967
4060
  * `STOP` - STOP
3968
4061
  * `UNKNOWN` - UNKNOWN
4062
+ FolderEntity:
4063
+ oneOf:
4064
+ - $ref: '#/components/schemas/FolderEntityFolder'
4065
+ - $ref: '#/components/schemas/FolderEntityPromptSandbox'
4066
+ - $ref: '#/components/schemas/FolderEntityWorkflowSandbox'
4067
+ - $ref: '#/components/schemas/FolderEntityDocumentIndex'
4068
+ - $ref: '#/components/schemas/FolderEntityTestSuite'
4069
+ discriminator:
4070
+ propertyName: type
4071
+ mapping:
4072
+ FOLDER: '#/components/schemas/FolderEntityFolder'
4073
+ PROMPT_SANDBOX: '#/components/schemas/FolderEntityPromptSandbox'
4074
+ WORKFLOW_SANDBOX: '#/components/schemas/FolderEntityWorkflowSandbox'
4075
+ DOCUMENT_INDEX: '#/components/schemas/FolderEntityDocumentIndex'
4076
+ TEST_SUITE: '#/components/schemas/FolderEntityTestSuite'
4077
+ FolderEntityDocumentIndex:
4078
+ type: object
4079
+ description: A slim representation of a Document Index, as it exists within
4080
+ a Folder.
4081
+ properties:
4082
+ id:
4083
+ type: string
4084
+ format: uuid
4085
+ type:
4086
+ type: string
4087
+ data:
4088
+ $ref: '#/components/schemas/FolderEntityDocumentIndexData'
4089
+ required:
4090
+ - data
4091
+ - id
4092
+ - type
4093
+ FolderEntityDocumentIndexData:
4094
+ type: object
4095
+ properties:
4096
+ id:
4097
+ type: string
4098
+ format: uuid
4099
+ label:
4100
+ type: string
4101
+ created:
4102
+ type: string
4103
+ format: date-time
4104
+ modified:
4105
+ type: string
4106
+ format: date-time
4107
+ status:
4108
+ $ref: '#/components/schemas/EntityStatus'
4109
+ required:
4110
+ - created
4111
+ - id
4112
+ - label
4113
+ - modified
4114
+ - status
4115
+ FolderEntityFolder:
4116
+ type: object
4117
+ description: A slim representation of a Folder, as it exists within another
4118
+ Folder.
4119
+ properties:
4120
+ id:
4121
+ type: string
4122
+ format: uuid
4123
+ type:
4124
+ type: string
4125
+ data:
4126
+ $ref: '#/components/schemas/FolderEntityFolderData'
4127
+ required:
4128
+ - data
4129
+ - id
4130
+ - type
4131
+ FolderEntityFolderData:
4132
+ type: object
4133
+ properties:
4134
+ id:
4135
+ type: string
4136
+ format: uuid
4137
+ label:
4138
+ type: string
4139
+ created:
4140
+ type: string
4141
+ format: date-time
4142
+ modified:
4143
+ type: string
4144
+ format: date-time
4145
+ has_contents:
4146
+ type: boolean
4147
+ required:
4148
+ - created
4149
+ - has_contents
4150
+ - id
4151
+ - label
4152
+ - modified
4153
+ FolderEntityPromptSandbox:
4154
+ type: object
4155
+ description: A slim representation of a Prompt Sandbox, as it exists within
4156
+ a Folder.
4157
+ properties:
4158
+ id:
4159
+ type: string
4160
+ format: uuid
4161
+ type:
4162
+ type: string
4163
+ data:
4164
+ $ref: '#/components/schemas/FolderEntityPromptSandboxData'
4165
+ required:
4166
+ - data
4167
+ - id
4168
+ - type
4169
+ FolderEntityPromptSandboxData:
4170
+ type: object
4171
+ properties:
4172
+ id:
4173
+ type: string
4174
+ format: uuid
4175
+ label:
4176
+ type: string
4177
+ created:
4178
+ type: string
4179
+ format: date-time
4180
+ modified:
4181
+ type: string
4182
+ format: date-time
4183
+ status:
4184
+ $ref: '#/components/schemas/EntityStatus'
4185
+ last_deployed_on:
4186
+ type: string
4187
+ format: date-time
4188
+ nullable: true
4189
+ required:
4190
+ - created
4191
+ - id
4192
+ - label
4193
+ - modified
4194
+ - status
4195
+ FolderEntityTestSuite:
4196
+ type: object
4197
+ description: A slim representation of a Test Suite, as it exists within a Folder.
4198
+ properties:
4199
+ id:
4200
+ type: string
4201
+ format: uuid
4202
+ type:
4203
+ type: string
4204
+ data:
4205
+ $ref: '#/components/schemas/FolderEntityTestSuiteData'
4206
+ required:
4207
+ - data
4208
+ - id
4209
+ - type
4210
+ FolderEntityTestSuiteData:
4211
+ type: object
4212
+ properties:
4213
+ id:
4214
+ type: string
4215
+ format: uuid
4216
+ label:
4217
+ type: string
4218
+ created:
4219
+ type: string
4220
+ format: date-time
4221
+ modified:
4222
+ type: string
4223
+ format: date-time
4224
+ status:
4225
+ $ref: '#/components/schemas/EntityStatus'
4226
+ required:
4227
+ - created
4228
+ - id
4229
+ - label
4230
+ - modified
4231
+ - status
4232
+ FolderEntityWorkflowSandbox:
4233
+ type: object
4234
+ description: A slim representation of a Workflow Sandbox, as it exists within
4235
+ a Folder.
4236
+ properties:
4237
+ id:
4238
+ type: string
4239
+ format: uuid
4240
+ type:
4241
+ type: string
4242
+ data:
4243
+ $ref: '#/components/schemas/FolderEntityWorkflowSandboxData'
4244
+ required:
4245
+ - data
4246
+ - id
4247
+ - type
4248
+ FolderEntityWorkflowSandboxData:
4249
+ type: object
4250
+ properties:
4251
+ id:
4252
+ type: string
4253
+ format: uuid
4254
+ label:
4255
+ type: string
4256
+ created:
4257
+ type: string
4258
+ format: date-time
4259
+ modified:
4260
+ type: string
4261
+ format: date-time
4262
+ status:
4263
+ $ref: '#/components/schemas/EntityStatus'
4264
+ last_deployed_on:
4265
+ type: string
4266
+ format: date-time
4267
+ nullable: true
4268
+ required:
4269
+ - created
4270
+ - id
4271
+ - label
4272
+ - modified
4273
+ - status
3969
4274
  FulfilledAdHocExecutePromptEvent:
3970
4275
  type: object
3971
4276
  description: The final data event returned indicating that the stream has ended
@@ -6076,6 +6381,26 @@ components:
6076
6381
  type: array
6077
6382
  items:
6078
6383
  $ref: '#/components/schemas/DocumentIndexRead'
6384
+ PaginatedFolderEntityList:
6385
+ type: object
6386
+ properties:
6387
+ count:
6388
+ type: integer
6389
+ example: 123
6390
+ next:
6391
+ type: string
6392
+ nullable: true
6393
+ format: uri
6394
+ example: http://api.example.org/accounts/?offset=400&limit=100
6395
+ previous:
6396
+ type: string
6397
+ nullable: true
6398
+ format: uri
6399
+ example: http://api.example.org/accounts/?offset=200&limit=100
6400
+ results:
6401
+ type: array
6402
+ items:
6403
+ $ref: '#/components/schemas/FolderEntity'
6079
6404
  PaginatedSlimDeploymentReadList:
6080
6405
  type: object
6081
6406
  properties:
@@ -6603,6 +6928,13 @@ components:
6603
6928
  - key
6604
6929
  - type
6605
6930
  - value
6931
+ PromptSettingsRequest:
6932
+ type: object
6933
+ properties:
6934
+ timeout:
6935
+ type: number
6936
+ format: double
6937
+ nullable: true
6606
6938
  RawPromptExecutionOverridesRequest:
6607
6939
  type: object
6608
6940
  properties:
@@ -7297,6 +7629,16 @@ components:
7297
7629
  minimum: 0.0
7298
7630
  default: 0.2
7299
7631
  description: The relative weight to give to keywords
7632
+ SecretTypeEnum:
7633
+ enum:
7634
+ - USER_DEFINED
7635
+ - HMAC
7636
+ - INTERNAL_API_KEY
7637
+ type: string
7638
+ description: |-
7639
+ * `USER_DEFINED` - User Defined
7640
+ * `HMAC` - Hmac
7641
+ * `INTERNAL_API_KEY` - Internal Api Key
7300
7642
  SentenceChunkerConfig:
7301
7643
  type: object
7302
7644
  description: Configuration for sentence chunking
@@ -9460,12 +9802,14 @@ components:
9460
9802
  enum:
9461
9803
  - INVALID_REQUEST
9462
9804
  - PROVIDER_ERROR
9805
+ - REQUEST_TIMEOUT
9463
9806
  - INTERNAL_SERVER_ERROR
9464
9807
  - USER_DEFINED_ERROR
9465
9808
  type: string
9466
9809
  description: |-
9467
9810
  * `INVALID_REQUEST` - INVALID_REQUEST
9468
9811
  * `PROVIDER_ERROR` - PROVIDER_ERROR
9812
+ * `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
9469
9813
  * `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
9470
9814
  * `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
9471
9815
  VellumErrorRequest:
@@ -10682,6 +11026,30 @@ components:
10682
11026
  mapping:
10683
11027
  WORKFLOW: '#/components/schemas/WorkflowExecutionWorkflowResultEvent'
10684
11028
  NODE: '#/components/schemas/WorkflowExecutionNodeResultEvent'
11029
+ WorkspaceSecretRead:
11030
+ type: object
11031
+ properties:
11032
+ id:
11033
+ type: string
11034
+ format: uuid
11035
+ readOnly: true
11036
+ modified:
11037
+ type: string
11038
+ format: date-time
11039
+ readOnly: true
11040
+ name:
11041
+ type: string
11042
+ maxLength: 250
11043
+ label:
11044
+ type: string
11045
+ secret_type:
11046
+ $ref: '#/components/schemas/SecretTypeEnum'
11047
+ required:
11048
+ - id
11049
+ - label
11050
+ - modified
11051
+ - name
11052
+ - secret_type
10685
11053
  hkunlp-instructor-xlEnum:
10686
11054
  type: string
10687
11055
  enum:
package/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/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
  }