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
@@ -69,7 +69,7 @@ class WorkflowDeployments {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, "v1/workflow-deployments"),
71
71
  method: "GET",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.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,
@@ -117,7 +117,7 @@ class WorkflowDeployments {
117
117
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
118
118
  .default, `v1/workflow-deployments/${id}`),
119
119
  method: "GET",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
123
123
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -8,14 +8,10 @@ export * from "./ArrayEnum";
8
8
  export * from "./ArrayVariableValueItem";
9
9
  export * from "./ChatHistoryEnum";
10
10
  export * from "./ChatHistoryInputRequest";
11
- export * from "./ChatHistoryPromptTemplateBlock";
12
11
  export * from "./ChatHistoryVariableValue";
13
12
  export * from "./ChatMessage";
14
13
  export * from "./ChatMessageContent";
15
14
  export * from "./ChatMessageContentRequest";
16
- export * from "./ChatMessageEnum";
17
- export * from "./ChatMessagePromptTemplateBlock";
18
- export * from "./ChatMessagePromptTemplateBlockProperties";
19
15
  export * from "./ChatMessageRequest";
20
16
  export * from "./ChatMessageRole";
21
17
  export * from "./CodeExecutionNodeArrayResult";
@@ -76,9 +72,6 @@ export * from "./FunctionCallChatMessageContentValue";
76
72
  export * from "./FunctionCallChatMessageContentValueRequest";
77
73
  export * from "./FunctionCallEnum";
78
74
  export * from "./FunctionCallVariableValue";
79
- export * from "./FunctionDefinitionEnum";
80
- export * from "./FunctionDefinitionPromptTemplateBlock";
81
- export * from "./FunctionDefinitionPromptTemplateBlockProperties";
82
75
  export * from "./GenerateErrorResponse";
83
76
  export * from "./GenerateOptionsRequest";
84
77
  export * from "./GenerateRequest";
@@ -99,9 +92,6 @@ export * from "./InitiatedExecutePromptEvent";
99
92
  export * from "./InitiatedPromptExecutionMeta";
100
93
  export * from "./InitiatedWorkflowNodeResultEvent";
101
94
  export * from "./JsonInputRequest";
102
- export * from "./JinjaEnum";
103
- export * from "./JinjaPromptTemplateBlock";
104
- export * from "./JinjaPromptTemplateBlockProperties";
105
95
  export * from "./JsonEnum";
106
96
  export * from "./JsonVariableValue";
107
97
  export * from "./LogicalOperator";
@@ -110,12 +100,6 @@ export * from "./MlModelUsage";
110
100
  export * from "./MetadataFilterConfigRequest";
111
101
  export * from "./MetadataFilterRuleCombinator";
112
102
  export * from "./MetadataFilterRuleRequest";
113
- export * from "./ModelVersionBuildConfig";
114
- export * from "./ModelVersionExecConfig";
115
- export * from "./ModelVersionExecConfigParameters";
116
- export * from "./ModelVersionRead";
117
- export * from "./ModelVersionReadStatusEnum";
118
- export * from "./ModelVersionSandboxSnapshot";
119
103
  export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
120
104
  export * from "./NamedScenarioInputRequest";
121
105
  export * from "./NamedScenarioInputStringVariableValueRequest";
@@ -171,10 +155,6 @@ export * from "./PromptExecutionMeta";
171
155
  export * from "./PromptNodeResult";
172
156
  export * from "./PromptNodeResultData";
173
157
  export * from "./PromptOutput";
174
- export * from "./PromptTemplateBlock";
175
- export * from "./PromptTemplateBlockData";
176
- export * from "./PromptTemplateBlockState";
177
- export * from "./ProviderEnum";
178
158
  export * from "./RawPromptExecutionOverridesRequest";
179
159
  export * from "./RejectedEnum";
180
160
  export * from "./RejectedExecutePromptEvent";
@@ -24,14 +24,10 @@ __exportStar(require("./ArrayEnum"), exports);
24
24
  __exportStar(require("./ArrayVariableValueItem"), exports);
25
25
  __exportStar(require("./ChatHistoryEnum"), exports);
26
26
  __exportStar(require("./ChatHistoryInputRequest"), exports);
27
- __exportStar(require("./ChatHistoryPromptTemplateBlock"), exports);
28
27
  __exportStar(require("./ChatHistoryVariableValue"), exports);
29
28
  __exportStar(require("./ChatMessage"), exports);
30
29
  __exportStar(require("./ChatMessageContent"), exports);
31
30
  __exportStar(require("./ChatMessageContentRequest"), exports);
32
- __exportStar(require("./ChatMessageEnum"), exports);
33
- __exportStar(require("./ChatMessagePromptTemplateBlock"), exports);
34
- __exportStar(require("./ChatMessagePromptTemplateBlockProperties"), exports);
35
31
  __exportStar(require("./ChatMessageRequest"), exports);
36
32
  __exportStar(require("./ChatMessageRole"), exports);
37
33
  __exportStar(require("./CodeExecutionNodeArrayResult"), exports);
@@ -92,9 +88,6 @@ __exportStar(require("./FunctionCallChatMessageContentValue"), exports);
92
88
  __exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
93
89
  __exportStar(require("./FunctionCallEnum"), exports);
94
90
  __exportStar(require("./FunctionCallVariableValue"), exports);
95
- __exportStar(require("./FunctionDefinitionEnum"), exports);
96
- __exportStar(require("./FunctionDefinitionPromptTemplateBlock"), exports);
97
- __exportStar(require("./FunctionDefinitionPromptTemplateBlockProperties"), exports);
98
91
  __exportStar(require("./GenerateErrorResponse"), exports);
99
92
  __exportStar(require("./GenerateOptionsRequest"), exports);
100
93
  __exportStar(require("./GenerateRequest"), exports);
@@ -115,9 +108,6 @@ __exportStar(require("./InitiatedExecutePromptEvent"), exports);
115
108
  __exportStar(require("./InitiatedPromptExecutionMeta"), exports);
116
109
  __exportStar(require("./InitiatedWorkflowNodeResultEvent"), exports);
117
110
  __exportStar(require("./JsonInputRequest"), exports);
118
- __exportStar(require("./JinjaEnum"), exports);
119
- __exportStar(require("./JinjaPromptTemplateBlock"), exports);
120
- __exportStar(require("./JinjaPromptTemplateBlockProperties"), exports);
121
111
  __exportStar(require("./JsonEnum"), exports);
122
112
  __exportStar(require("./JsonVariableValue"), exports);
123
113
  __exportStar(require("./LogicalOperator"), exports);
@@ -126,12 +116,6 @@ __exportStar(require("./MlModelUsage"), exports);
126
116
  __exportStar(require("./MetadataFilterConfigRequest"), exports);
127
117
  __exportStar(require("./MetadataFilterRuleCombinator"), exports);
128
118
  __exportStar(require("./MetadataFilterRuleRequest"), exports);
129
- __exportStar(require("./ModelVersionBuildConfig"), exports);
130
- __exportStar(require("./ModelVersionExecConfig"), exports);
131
- __exportStar(require("./ModelVersionExecConfigParameters"), exports);
132
- __exportStar(require("./ModelVersionRead"), exports);
133
- __exportStar(require("./ModelVersionReadStatusEnum"), exports);
134
- __exportStar(require("./ModelVersionSandboxSnapshot"), exports);
135
119
  __exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
136
120
  __exportStar(require("./NamedScenarioInputRequest"), exports);
137
121
  __exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
@@ -187,10 +171,6 @@ __exportStar(require("./PromptExecutionMeta"), exports);
187
171
  __exportStar(require("./PromptNodeResult"), exports);
188
172
  __exportStar(require("./PromptNodeResultData"), exports);
189
173
  __exportStar(require("./PromptOutput"), exports);
190
- __exportStar(require("./PromptTemplateBlock"), exports);
191
- __exportStar(require("./PromptTemplateBlockData"), exports);
192
- __exportStar(require("./PromptTemplateBlockState"), exports);
193
- __exportStar(require("./ProviderEnum"), exports);
194
174
  __exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
195
175
  __exportStar(require("./RejectedEnum"), exports);
196
176
  __exportStar(require("./RejectedExecutePromptEvent"), exports);
package/dist/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/dist/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"));