vellum-ai 0.4.1 → 0.4.3

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 (215) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +17 -22
  3. package/api/resources/deployments/client/Client.js +3 -3
  4. package/api/resources/documentIndexes/client/Client.d.ts +40 -0
  5. package/api/resources/documentIndexes/client/Client.js +46 -6
  6. package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +40 -0
  7. package/api/resources/documents/client/Client.js +5 -5
  8. package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +6 -0
  9. package/api/resources/folderEntities/client/Client.js +1 -1
  10. package/api/resources/index.d.ts +0 -1
  11. package/api/resources/index.js +1 -2
  12. package/api/resources/sandboxes/client/Client.d.ts +6 -0
  13. package/api/resources/sandboxes/client/Client.js +8 -2
  14. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +6 -0
  15. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  16. package/api/resources/testSuites/client/Client.js +3 -3
  17. package/api/resources/workflowDeployments/client/Client.js +2 -2
  18. package/api/types/index.d.ts +0 -20
  19. package/api/types/index.js +0 -20
  20. package/dist/Client.d.ts +0 -3
  21. package/dist/Client.js +17 -22
  22. package/dist/api/resources/deployments/client/Client.js +3 -3
  23. package/dist/api/resources/documentIndexes/client/Client.d.ts +40 -0
  24. package/dist/api/resources/documentIndexes/client/Client.js +46 -6
  25. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +40 -0
  26. package/dist/api/resources/documents/client/Client.js +5 -5
  27. package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +6 -0
  28. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  29. package/dist/api/resources/index.d.ts +0 -1
  30. package/dist/api/resources/index.js +1 -2
  31. package/dist/api/resources/sandboxes/client/Client.d.ts +6 -0
  32. package/dist/api/resources/sandboxes/client/Client.js +8 -2
  33. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +6 -0
  34. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  35. package/dist/api/resources/testSuites/client/Client.js +3 -3
  36. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  37. package/dist/api/types/index.d.ts +0 -20
  38. package/dist/api/types/index.js +0 -20
  39. package/dist/serialization/types/index.d.ts +0 -20
  40. package/dist/serialization/types/index.js +0 -20
  41. package/package.json +1 -1
  42. package/serialization/types/index.d.ts +0 -20
  43. package/serialization/types/index.js +0 -20
  44. package/api/resources/modelVersions/client/Client.d.ts +0 -30
  45. package/api/resources/modelVersions/client/Client.js +0 -105
  46. package/api/resources/modelVersions/client/index.d.ts +0 -1
  47. package/api/resources/modelVersions/client/index.js +0 -2
  48. package/api/resources/modelVersions/index.d.ts +0 -1
  49. package/api/resources/modelVersions/index.js +0 -17
  50. package/api/types/ChatHistoryPromptTemplateBlock.d.ts +0 -12
  51. package/api/types/ChatHistoryPromptTemplateBlock.js +0 -5
  52. package/api/types/ChatMessageEnum.d.ts +0 -4
  53. package/api/types/ChatMessageEnum.js +0 -5
  54. package/api/types/ChatMessagePromptTemplateBlock.d.ts +0 -12
  55. package/api/types/ChatMessagePromptTemplateBlock.js +0 -5
  56. package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -13
  57. package/api/types/ChatMessagePromptTemplateBlockProperties.js +0 -5
  58. package/api/types/FunctionDefinitionEnum.d.ts +0 -4
  59. package/api/types/FunctionDefinitionEnum.js +0 -5
  60. package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -12
  61. package/api/types/FunctionDefinitionPromptTemplateBlock.js +0 -5
  62. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -13
  63. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -5
  64. package/api/types/JinjaEnum.d.ts +0 -4
  65. package/api/types/JinjaEnum.js +0 -5
  66. package/api/types/JinjaPromptTemplateBlock.d.ts +0 -12
  67. package/api/types/JinjaPromptTemplateBlock.js +0 -5
  68. package/api/types/JinjaPromptTemplateBlockProperties.d.ts +0 -8
  69. package/api/types/JinjaPromptTemplateBlockProperties.js +0 -5
  70. package/api/types/ModelVersionBuildConfig.d.ts +0 -11
  71. package/api/types/ModelVersionBuildConfig.js +0 -5
  72. package/api/types/ModelVersionExecConfig.d.ts +0 -14
  73. package/api/types/ModelVersionExecConfig.js +0 -5
  74. package/api/types/ModelVersionExecConfigParameters.d.ts +0 -14
  75. package/api/types/ModelVersionExecConfigParameters.js +0 -5
  76. package/api/types/ModelVersionRead.d.ts +0 -37
  77. package/api/types/ModelVersionRead.js +0 -5
  78. package/api/types/ModelVersionReadStatusEnum.d.ts +0 -16
  79. package/api/types/ModelVersionReadStatusEnum.js +0 -12
  80. package/api/types/ModelVersionSandboxSnapshot.d.ts +0 -12
  81. package/api/types/ModelVersionSandboxSnapshot.js +0 -5
  82. package/api/types/PromptTemplateBlock.d.ts +0 -19
  83. package/api/types/PromptTemplateBlock.js +0 -5
  84. package/api/types/PromptTemplateBlockData.d.ts +0 -8
  85. package/api/types/PromptTemplateBlockData.js +0 -5
  86. package/api/types/PromptTemplateBlockState.d.ts +0 -12
  87. package/api/types/PromptTemplateBlockState.js +0 -10
  88. package/api/types/ProviderEnum.d.ts +0 -34
  89. package/api/types/ProviderEnum.js +0 -21
  90. package/dist/api/resources/modelVersions/client/Client.d.ts +0 -30
  91. package/dist/api/resources/modelVersions/client/Client.js +0 -105
  92. package/dist/api/resources/modelVersions/client/index.d.ts +0 -1
  93. package/dist/api/resources/modelVersions/client/index.js +0 -2
  94. package/dist/api/resources/modelVersions/index.d.ts +0 -1
  95. package/dist/api/resources/modelVersions/index.js +0 -17
  96. package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +0 -12
  97. package/dist/api/types/ChatHistoryPromptTemplateBlock.js +0 -5
  98. package/dist/api/types/ChatMessageEnum.d.ts +0 -4
  99. package/dist/api/types/ChatMessageEnum.js +0 -5
  100. package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +0 -12
  101. package/dist/api/types/ChatMessagePromptTemplateBlock.js +0 -5
  102. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -13
  103. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.js +0 -5
  104. package/dist/api/types/FunctionDefinitionEnum.d.ts +0 -4
  105. package/dist/api/types/FunctionDefinitionEnum.js +0 -5
  106. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -12
  107. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.js +0 -5
  108. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -13
  109. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -5
  110. package/dist/api/types/JinjaEnum.d.ts +0 -4
  111. package/dist/api/types/JinjaEnum.js +0 -5
  112. package/dist/api/types/JinjaPromptTemplateBlock.d.ts +0 -12
  113. package/dist/api/types/JinjaPromptTemplateBlock.js +0 -5
  114. package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +0 -8
  115. package/dist/api/types/JinjaPromptTemplateBlockProperties.js +0 -5
  116. package/dist/api/types/ModelVersionBuildConfig.d.ts +0 -11
  117. package/dist/api/types/ModelVersionBuildConfig.js +0 -5
  118. package/dist/api/types/ModelVersionExecConfig.d.ts +0 -14
  119. package/dist/api/types/ModelVersionExecConfig.js +0 -5
  120. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +0 -14
  121. package/dist/api/types/ModelVersionExecConfigParameters.js +0 -5
  122. package/dist/api/types/ModelVersionRead.d.ts +0 -37
  123. package/dist/api/types/ModelVersionRead.js +0 -5
  124. package/dist/api/types/ModelVersionReadStatusEnum.d.ts +0 -16
  125. package/dist/api/types/ModelVersionReadStatusEnum.js +0 -12
  126. package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +0 -12
  127. package/dist/api/types/ModelVersionSandboxSnapshot.js +0 -5
  128. package/dist/api/types/PromptTemplateBlock.d.ts +0 -19
  129. package/dist/api/types/PromptTemplateBlock.js +0 -5
  130. package/dist/api/types/PromptTemplateBlockData.d.ts +0 -8
  131. package/dist/api/types/PromptTemplateBlockData.js +0 -5
  132. package/dist/api/types/PromptTemplateBlockState.d.ts +0 -12
  133. package/dist/api/types/PromptTemplateBlockState.js +0 -10
  134. package/dist/api/types/ProviderEnum.d.ts +0 -34
  135. package/dist/api/types/ProviderEnum.js +0 -21
  136. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +0 -15
  137. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.js +0 -36
  138. package/dist/serialization/types/ChatMessageEnum.d.ts +0 -10
  139. package/dist/serialization/types/ChatMessageEnum.js +0 -31
  140. package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +0 -15
  141. package/dist/serialization/types/ChatMessagePromptTemplateBlock.js +0 -45
  142. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -16
  143. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js +0 -46
  144. package/dist/serialization/types/FunctionDefinitionEnum.d.ts +0 -10
  145. package/dist/serialization/types/FunctionDefinitionEnum.js +0 -31
  146. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -16
  147. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js +0 -37
  148. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -15
  149. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -36
  150. package/dist/serialization/types/JinjaEnum.d.ts +0 -10
  151. package/dist/serialization/types/JinjaEnum.js +0 -31
  152. package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +0 -16
  153. package/dist/serialization/types/JinjaPromptTemplateBlock.js +0 -37
  154. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +0 -14
  155. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.js +0 -35
  156. package/dist/serialization/types/ModelVersionBuildConfig.d.ts +0 -15
  157. package/dist/serialization/types/ModelVersionBuildConfig.js +0 -36
  158. package/dist/serialization/types/ModelVersionExecConfig.d.ts +0 -19
  159. package/dist/serialization/types/ModelVersionExecConfig.js +0 -40
  160. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +0 -20
  161. package/dist/serialization/types/ModelVersionExecConfigParameters.js +0 -41
  162. package/dist/serialization/types/ModelVersionRead.d.ts +0 -23
  163. package/dist/serialization/types/ModelVersionRead.js +0 -44
  164. package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +0 -10
  165. package/dist/serialization/types/ModelVersionReadStatusEnum.js +0 -31
  166. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +0 -15
  167. package/dist/serialization/types/ModelVersionSandboxSnapshot.js +0 -36
  168. package/dist/serialization/types/PromptTemplateBlock.d.ts +0 -25
  169. package/dist/serialization/types/PromptTemplateBlock.js +0 -53
  170. package/dist/serialization/types/PromptTemplateBlockData.d.ts +0 -13
  171. package/dist/serialization/types/PromptTemplateBlockData.js +0 -43
  172. package/dist/serialization/types/PromptTemplateBlockState.d.ts +0 -10
  173. package/dist/serialization/types/PromptTemplateBlockState.js +0 -31
  174. package/dist/serialization/types/ProviderEnum.d.ts +0 -10
  175. package/dist/serialization/types/ProviderEnum.js +0 -45
  176. package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +0 -15
  177. package/serialization/types/ChatHistoryPromptTemplateBlock.js +0 -36
  178. package/serialization/types/ChatMessageEnum.d.ts +0 -10
  179. package/serialization/types/ChatMessageEnum.js +0 -31
  180. package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +0 -15
  181. package/serialization/types/ChatMessagePromptTemplateBlock.js +0 -45
  182. package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -16
  183. package/serialization/types/ChatMessagePromptTemplateBlockProperties.js +0 -46
  184. package/serialization/types/FunctionDefinitionEnum.d.ts +0 -10
  185. package/serialization/types/FunctionDefinitionEnum.js +0 -31
  186. package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -16
  187. package/serialization/types/FunctionDefinitionPromptTemplateBlock.js +0 -37
  188. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -15
  189. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -36
  190. package/serialization/types/JinjaEnum.d.ts +0 -10
  191. package/serialization/types/JinjaEnum.js +0 -31
  192. package/serialization/types/JinjaPromptTemplateBlock.d.ts +0 -16
  193. package/serialization/types/JinjaPromptTemplateBlock.js +0 -37
  194. package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +0 -14
  195. package/serialization/types/JinjaPromptTemplateBlockProperties.js +0 -35
  196. package/serialization/types/ModelVersionBuildConfig.d.ts +0 -15
  197. package/serialization/types/ModelVersionBuildConfig.js +0 -36
  198. package/serialization/types/ModelVersionExecConfig.d.ts +0 -19
  199. package/serialization/types/ModelVersionExecConfig.js +0 -40
  200. package/serialization/types/ModelVersionExecConfigParameters.d.ts +0 -20
  201. package/serialization/types/ModelVersionExecConfigParameters.js +0 -41
  202. package/serialization/types/ModelVersionRead.d.ts +0 -23
  203. package/serialization/types/ModelVersionRead.js +0 -44
  204. package/serialization/types/ModelVersionReadStatusEnum.d.ts +0 -10
  205. package/serialization/types/ModelVersionReadStatusEnum.js +0 -31
  206. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +0 -15
  207. package/serialization/types/ModelVersionSandboxSnapshot.js +0 -36
  208. package/serialization/types/PromptTemplateBlock.d.ts +0 -25
  209. package/serialization/types/PromptTemplateBlock.js +0 -53
  210. package/serialization/types/PromptTemplateBlockData.d.ts +0 -13
  211. package/serialization/types/PromptTemplateBlockData.js +0 -43
  212. package/serialization/types/PromptTemplateBlockState.d.ts +0 -10
  213. package/serialization/types/PromptTemplateBlockState.js +0 -31
  214. package/serialization/types/ProviderEnum.d.ts +0 -10
  215. package/serialization/types/ProviderEnum.js +0 -45
package/Client.d.ts CHANGED
@@ -8,7 +8,6 @@ import { Deployments } from "./api/resources/deployments/client/Client";
8
8
  import { DocumentIndexes } from "./api/resources/documentIndexes/client/Client";
9
9
  import { Documents } from "./api/resources/documents/client/Client";
10
10
  import { FolderEntities } from "./api/resources/folderEntities/client/Client";
11
- import { ModelVersions } from "./api/resources/modelVersions/client/Client";
12
11
  import { Sandboxes } from "./api/resources/sandboxes/client/Client";
13
12
  import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
14
13
  import { TestSuites } from "./api/resources/testSuites/client/Client";
@@ -119,8 +118,6 @@ export declare class VellumClient {
119
118
  get documents(): Documents;
120
119
  protected _folderEntities: FolderEntities | undefined;
121
120
  get folderEntities(): FolderEntities;
122
- protected _modelVersions: ModelVersions | undefined;
123
- get modelVersions(): ModelVersions;
124
121
  protected _sandboxes: Sandboxes | undefined;
125
122
  get sandboxes(): Sandboxes;
126
123
  protected _testSuiteRuns: TestSuiteRuns | undefined;
package/Client.js CHANGED
@@ -49,11 +49,10 @@ const Client_1 = require("./api/resources/deployments/client/Client");
49
49
  const Client_2 = require("./api/resources/documentIndexes/client/Client");
50
50
  const Client_3 = require("./api/resources/documents/client/Client");
51
51
  const Client_4 = require("./api/resources/folderEntities/client/Client");
52
- const Client_5 = require("./api/resources/modelVersions/client/Client");
53
- const Client_6 = require("./api/resources/sandboxes/client/Client");
54
- const Client_7 = require("./api/resources/testSuiteRuns/client/Client");
55
- const Client_8 = require("./api/resources/testSuites/client/Client");
56
- const Client_9 = require("./api/resources/workflowDeployments/client/Client");
52
+ const Client_5 = require("./api/resources/sandboxes/client/Client");
53
+ const Client_6 = require("./api/resources/testSuiteRuns/client/Client");
54
+ const Client_7 = require("./api/resources/testSuites/client/Client");
55
+ const Client_8 = require("./api/resources/workflowDeployments/client/Client");
57
56
  class VellumClient {
58
57
  constructor(_options) {
59
58
  this._options = _options;
@@ -72,7 +71,7 @@ class VellumClient {
72
71
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
73
72
  .predict, "v1/execute-prompt"),
74
73
  method: "POST",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
75
  contentType: "application/json",
77
76
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
78
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -128,7 +127,7 @@ class VellumClient {
128
127
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
129
128
  .predict, "v1/execute-prompt-stream"),
130
129
  method: "POST",
131
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
131
  contentType: "application/json",
133
132
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
134
133
  unrecognizedObjectKeys: "strip",
@@ -196,7 +195,7 @@ class VellumClient {
196
195
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
197
196
  .predict, "v1/execute-workflow"),
198
197
  method: "POST",
199
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
198
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
199
  contentType: "application/json",
201
200
  body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
202
201
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -250,7 +249,7 @@ class VellumClient {
250
249
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
251
250
  .predict, "v1/execute-workflow-stream"),
252
251
  method: "POST",
253
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
253
  contentType: "application/json",
255
254
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
256
255
  unrecognizedObjectKeys: "strip",
@@ -326,7 +325,7 @@ class VellumClient {
326
325
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
327
326
  .predict, "v1/generate"),
328
327
  method: "POST",
329
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
328
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
330
329
  contentType: "application/json",
331
330
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
332
331
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -384,7 +383,7 @@ class VellumClient {
384
383
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
385
384
  .predict, "v1/generate-stream"),
386
385
  method: "POST",
387
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
386
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
388
387
  contentType: "application/json",
389
388
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
390
389
  responseType: "streaming",
@@ -457,7 +456,7 @@ class VellumClient {
457
456
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
458
457
  .predict, "v1/search"),
459
458
  method: "POST",
460
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
459
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
461
460
  contentType: "application/json",
462
461
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
463
462
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -521,7 +520,7 @@ class VellumClient {
521
520
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
522
521
  .predict, "v1/submit-completion-actuals"),
523
522
  method: "POST",
524
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
523
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
525
524
  contentType: "application/json",
526
525
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
527
526
  unrecognizedObjectKeys: "strip",
@@ -579,7 +578,7 @@ class VellumClient {
579
578
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
580
579
  .predict, "v1/submit-workflow-execution-actuals"),
581
580
  method: "POST",
582
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
581
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
583
582
  contentType: "application/json",
584
583
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
585
584
  unrecognizedObjectKeys: "strip",
@@ -627,25 +626,21 @@ class VellumClient {
627
626
  var _a;
628
627
  return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new Client_4.FolderEntities(this._options)));
629
628
  }
630
- get modelVersions() {
631
- var _a;
632
- return ((_a = this._modelVersions) !== null && _a !== void 0 ? _a : (this._modelVersions = new Client_5.ModelVersions(this._options)));
633
- }
634
629
  get sandboxes() {
635
630
  var _a;
636
- return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_6.Sandboxes(this._options)));
631
+ return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_5.Sandboxes(this._options)));
637
632
  }
638
633
  get testSuiteRuns() {
639
634
  var _a;
640
- return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_7.TestSuiteRuns(this._options)));
635
+ return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_6.TestSuiteRuns(this._options)));
641
636
  }
642
637
  get testSuites() {
643
638
  var _a;
644
- return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_8.TestSuites(this._options)));
639
+ return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_7.TestSuites(this._options)));
645
640
  }
646
641
  get workflowDeployments() {
647
642
  var _a;
648
- return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_9.WorkflowDeployments(this._options)));
643
+ return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_8.WorkflowDeployments(this._options)));
649
644
  }
650
645
  _getCustomAuthorizationHeaders() {
651
646
  return __awaiter(this, void 0, void 0, function* () {
@@ -70,7 +70,7 @@ class Deployments {
70
70
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
71
71
  .default, "v1/deployments"),
72
72
  method: "GET",
73
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
74
  contentType: "application/json",
75
75
  queryParameters: _queryParams,
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -118,7 +118,7 @@ class Deployments {
118
118
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
119
119
  .default, `v1/deployments/${id}`),
120
120
  method: "GET",
121
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
122
122
  contentType: "application/json",
123
123
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
124
124
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -170,7 +170,7 @@ class Deployments {
170
170
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
171
171
  .default, "v1/deployments/provider-payload"),
172
172
  method: "POST",
173
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
173
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
174
  contentType: "application/json",
175
175
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
176
176
  unrecognizedObjectKeys: "strip",
@@ -49,6 +49,46 @@ export declare class DocumentIndexes {
49
49
  * }
50
50
  * }
51
51
  * })
52
+ *
53
+ * @example
54
+ * await vellum.documentIndexes.create({
55
+ * label: "My Document Index",
56
+ * name: "my-document-index",
57
+ * indexingConfig: {
58
+ * "chunking": {
59
+ * "chunker_name": "sentence-chunker",
60
+ * "chunker_config": {
61
+ * "character_limit": 1000,
62
+ * "min_overlap_ratio": 0.5
63
+ * }
64
+ * },
65
+ * "vectorizer": {
66
+ * "model_name": "sentence-transformers/multi-qa-mpnet-base-dot-v1",
67
+ * "config": {}
68
+ * }
69
+ * }
70
+ * })
71
+ *
72
+ * @example
73
+ * await vellum.documentIndexes.create({
74
+ * label: "My Document Index",
75
+ * name: "my-document-index",
76
+ * indexingConfig: {
77
+ * "chunking": {
78
+ * "chunker_name": "sentence-chunker",
79
+ * "chunker_config": {
80
+ * "character_limit": 1000,
81
+ * "min_overlap_ratio": 0.5
82
+ * }
83
+ * },
84
+ * "vectorizer": {
85
+ * "model_name": "text-embedding-ada-002",
86
+ * "config": {
87
+ * "add_openai_api_key": true
88
+ * }
89
+ * }
90
+ * }
91
+ * })
52
92
  */
53
93
  create(request: Vellum.DocumentIndexCreateRequest, requestOptions?: DocumentIndexes.RequestOptions): Promise<Vellum.DocumentIndexRead>;
54
94
  /**
@@ -75,7 +75,7 @@ class DocumentIndexes {
75
75
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
76
76
  .default, "v1/document-indexes"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -135,6 +135,46 @@ class DocumentIndexes {
135
135
  * }
136
136
  * }
137
137
  * })
138
+ *
139
+ * @example
140
+ * await vellum.documentIndexes.create({
141
+ * label: "My Document Index",
142
+ * name: "my-document-index",
143
+ * indexingConfig: {
144
+ * "chunking": {
145
+ * "chunker_name": "sentence-chunker",
146
+ * "chunker_config": {
147
+ * "character_limit": 1000,
148
+ * "min_overlap_ratio": 0.5
149
+ * }
150
+ * },
151
+ * "vectorizer": {
152
+ * "model_name": "sentence-transformers/multi-qa-mpnet-base-dot-v1",
153
+ * "config": {}
154
+ * }
155
+ * }
156
+ * })
157
+ *
158
+ * @example
159
+ * await vellum.documentIndexes.create({
160
+ * label: "My Document Index",
161
+ * name: "my-document-index",
162
+ * indexingConfig: {
163
+ * "chunking": {
164
+ * "chunker_name": "sentence-chunker",
165
+ * "chunker_config": {
166
+ * "character_limit": 1000,
167
+ * "min_overlap_ratio": 0.5
168
+ * }
169
+ * },
170
+ * "vectorizer": {
171
+ * "model_name": "text-embedding-ada-002",
172
+ * "config": {
173
+ * "add_openai_api_key": true
174
+ * }
175
+ * }
176
+ * }
177
+ * })
138
178
  */
139
179
  create(request, requestOptions) {
140
180
  var _a;
@@ -143,7 +183,7 @@ class DocumentIndexes {
143
183
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
144
184
  .default, "v1/document-indexes"),
145
185
  method: "POST",
146
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
186
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
147
187
  contentType: "application/json",
148
188
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
149
189
  unrecognizedObjectKeys: "strip",
@@ -193,7 +233,7 @@ class DocumentIndexes {
193
233
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
194
234
  .default, `v1/document-indexes/${id}`),
195
235
  method: "GET",
196
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
236
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
197
237
  contentType: "application/json",
198
238
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
199
239
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -242,7 +282,7 @@ class DocumentIndexes {
242
282
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
243
283
  .default, `v1/document-indexes/${id}`),
244
284
  method: "PUT",
245
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
285
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
246
286
  contentType: "application/json",
247
287
  body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
248
288
  unrecognizedObjectKeys: "strip",
@@ -292,7 +332,7 @@ class DocumentIndexes {
292
332
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
293
333
  .default, `v1/document-indexes/${id}`),
294
334
  method: "DELETE",
295
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
335
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
336
  contentType: "application/json",
297
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
298
338
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -334,7 +374,7 @@ class DocumentIndexes {
334
374
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
335
375
  .default, `v1/document-indexes/${id}`),
336
376
  method: "PATCH",
337
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
377
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
378
  contentType: "application/json",
339
379
  body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
340
380
  unrecognizedObjectKeys: "strip",
@@ -25,6 +25,46 @@ import * as Vellum from "../../../..";
25
25
  * }
26
26
  * }
27
27
  * }
28
+ *
29
+ * @example
30
+ * {
31
+ * label: "My Document Index",
32
+ * name: "my-document-index",
33
+ * indexingConfig: {
34
+ * "chunking": {
35
+ * "chunker_name": "sentence-chunker",
36
+ * "chunker_config": {
37
+ * "character_limit": 1000,
38
+ * "min_overlap_ratio": 0.5
39
+ * }
40
+ * },
41
+ * "vectorizer": {
42
+ * "model_name": "sentence-transformers/multi-qa-mpnet-base-dot-v1",
43
+ * "config": {}
44
+ * }
45
+ * }
46
+ * }
47
+ *
48
+ * @example
49
+ * {
50
+ * label: "My Document Index",
51
+ * name: "my-document-index",
52
+ * indexingConfig: {
53
+ * "chunking": {
54
+ * "chunker_name": "sentence-chunker",
55
+ * "chunker_config": {
56
+ * "character_limit": 1000,
57
+ * "min_overlap_ratio": 0.5
58
+ * }
59
+ * },
60
+ * "vectorizer": {
61
+ * "model_name": "text-embedding-ada-002",
62
+ * "config": {
63
+ * "add_openai_api_key": true
64
+ * }
65
+ * }
66
+ * }
67
+ * }
28
68
  */
29
69
  export interface DocumentIndexCreateRequest {
30
70
  /** A human-readable label for the document index */
@@ -77,7 +77,7 @@ class Documents {
77
77
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
78
78
  .default, "v1/documents"),
79
79
  method: "GET",
80
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -125,7 +125,7 @@ class Documents {
125
125
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
126
126
  .default, `v1/documents/${id}`),
127
127
  method: "GET",
128
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
131
131
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -166,7 +166,7 @@ class Documents {
166
166
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
167
167
  .default, `v1/documents/${id}`),
168
168
  method: "DELETE",
169
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
169
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
170
170
  contentType: "application/json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
172
172
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -208,7 +208,7 @@ class Documents {
208
208
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
209
209
  .default, `v1/documents/${id}`),
210
210
  method: "PATCH",
211
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
211
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
212
212
  contentType: "application/json",
213
213
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
214
214
  unrecognizedObjectKeys: "strip",
@@ -287,7 +287,7 @@ class Documents {
287
287
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
288
288
  .documents, "v1/upload-document"),
289
289
  method: "POST",
290
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
290
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
291
291
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
292
292
  body: _request,
293
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * label: "label"
8
+ * }
9
+ */
4
10
  export interface UploadDocumentBodyRequest {
5
11
  /** Optionally include the names of all indexes that you'd like this document to be included in */
6
12
  addToIndexNames?: string[];
@@ -65,7 +65,7 @@ class FolderEntities {
65
65
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
66
66
  .default, `v1/folders/${folderId}/add-entity`),
67
67
  method: "POST",
68
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
69
  contentType: "application/json",
70
70
  body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
71
71
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -6,7 +6,6 @@ export * as workflowDeployments from "./workflowDeployments";
6
6
  export * from "./workflowDeployments/types";
7
7
  export * as documents from "./documents";
8
8
  export * as folderEntities from "./folderEntities";
9
- export * as modelVersions from "./modelVersions";
10
9
  export * as sandboxes from "./sandboxes";
11
10
  export * as testSuiteRuns from "./testSuiteRuns";
12
11
  export * as testSuites from "./testSuites";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.modelVersions = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -35,7 +35,6 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
35
35
  __exportStar(require("./workflowDeployments/types"), exports);
36
36
  exports.documents = __importStar(require("./documents"));
37
37
  exports.folderEntities = __importStar(require("./folderEntities"));
38
- exports.modelVersions = __importStar(require("./modelVersions"));
39
38
  exports.sandboxes = __importStar(require("./sandboxes"));
40
39
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
41
40
  exports.testSuites = __importStar(require("./testSuites"));
@@ -31,6 +31,12 @@ export declare class Sandboxes {
31
31
  * label: "Scenario 1",
32
32
  * inputs: []
33
33
  * })
34
+ *
35
+ * @example
36
+ * await vellum.sandboxes.upsertSandboxScenario("id", {
37
+ * label: "Scenario 2",
38
+ * inputs: []
39
+ * })
34
40
  */
35
41
  upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequestRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.SandboxScenario>;
36
42
  /**
@@ -62,6 +62,12 @@ class Sandboxes {
62
62
  * label: "Scenario 1",
63
63
  * inputs: []
64
64
  * })
65
+ *
66
+ * @example
67
+ * await vellum.sandboxes.upsertSandboxScenario("id", {
68
+ * label: "Scenario 2",
69
+ * inputs: []
70
+ * })
65
71
  */
66
72
  upsertSandboxScenario(id, request, requestOptions) {
67
73
  var _a;
@@ -70,7 +76,7 @@ class Sandboxes {
70
76
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
71
77
  .default, `v1/sandboxes/${id}/scenarios`),
72
78
  method: "POST",
73
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
80
  contentType: "application/json",
75
81
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
76
82
  unrecognizedObjectKeys: "strip",
@@ -120,7 +126,7 @@ class Sandboxes {
120
126
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
121
127
  .default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
122
128
  method: "DELETE",
123
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
124
130
  contentType: "application/json",
125
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
126
132
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -8,6 +8,12 @@ import * as Vellum from "../../../..";
8
8
  * label: "Scenario 1",
9
9
  * inputs: []
10
10
  * }
11
+ *
12
+ * @example
13
+ * {
14
+ * label: "Scenario 2",
15
+ * inputs: []
16
+ * }
11
17
  */
12
18
  export interface UpsertSandboxScenarioRequestRequest {
13
19
  label?: string;
@@ -58,7 +58,7 @@ class TestSuiteRuns {
58
58
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
59
59
  .default, "v1/test-suite-runs"),
60
60
  method: "POST",
61
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
61
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
62
  contentType: "application/json",
63
63
  body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
64
64
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -106,7 +106,7 @@ class TestSuiteRuns {
106
106
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
107
107
  .default, `v1/test-suite-runs/${id}`),
108
108
  method: "GET",
109
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
109
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
110
110
  contentType: "application/json",
111
111
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
112
112
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -163,7 +163,7 @@ class TestSuiteRuns {
163
163
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
164
164
  .default, `v1/test-suite-runs/${id}/executions`),
165
165
  method: "GET",
166
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
167
  contentType: "application/json",
168
168
  queryParameters: _queryParams,
169
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class TestSuites {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, `v1/test-suites/${id}/test-cases`),
71
71
  method: "GET",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -126,7 +126,7 @@ class TestSuites {
126
126
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
127
127
  .default, `v1/test-suites/${id}/test-cases`),
128
128
  method: "POST",
129
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
130
  contentType: "application/json",
131
131
  body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
132
132
  unrecognizedObjectKeys: "strip",
@@ -176,7 +176,7 @@ class TestSuites {
176
176
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
177
177
  .default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
178
178
  method: "DELETE",
179
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
179
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
180
180
  contentType: "application/json",
181
181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
182
182
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,