vellum-ai 0.14.88 → 0.14.89

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 (130) hide show
  1. package/Client.d.ts +37 -8
  2. package/Client.js +88 -19
  3. package/api/client/requests/CodeExecutor.d.ts +9 -2
  4. package/api/client/requests/ExecuteApiRequest.d.ts +1 -1
  5. package/api/client/requests/ExecutePromptRequest.d.ts +5 -1
  6. package/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
  7. package/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
  8. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
  9. package/api/client/requests/GenerateBodyRequest.d.ts +9 -1
  10. package/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
  11. package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  12. package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  13. package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
  14. package/api/resources/adHoc/client/Client.d.ts +18 -3
  15. package/api/resources/adHoc/client/Client.js +24 -5
  16. package/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
  17. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
  18. package/api/resources/containerImages/client/Client.d.ts +7 -3
  19. package/api/resources/containerImages/client/Client.js +24 -8
  20. package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
  21. package/api/resources/deployments/client/Client.d.ts +9 -1
  22. package/api/resources/deployments/client/Client.js +45 -9
  23. package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
  24. package/api/resources/documentIndexes/client/Client.d.ts +9 -58
  25. package/api/resources/documentIndexes/client/Client.js +45 -66
  26. package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
  27. package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
  28. package/api/resources/documents/client/Client.d.ts +4 -5
  29. package/api/resources/documents/client/Client.js +26 -11
  30. package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
  31. package/api/resources/folderEntities/client/Client.d.ts +4 -0
  32. package/api/resources/folderEntities/client/Client.js +10 -2
  33. package/api/resources/metricDefinitions/client/Client.d.ts +9 -1
  34. package/api/resources/metricDefinitions/client/Client.js +15 -3
  35. package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
  36. package/api/resources/mlModels/client/Client.d.ts +4 -0
  37. package/api/resources/mlModels/client/Client.js +6 -2
  38. package/api/resources/organizations/client/Client.d.ts +4 -0
  39. package/api/resources/organizations/client/Client.js +6 -2
  40. package/api/resources/prompts/client/Client.d.ts +12 -1
  41. package/api/resources/prompts/client/Client.js +19 -4
  42. package/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
  43. package/api/resources/releaseReviews/client/Client.d.ts +4 -0
  44. package/api/resources/releaseReviews/client/Client.js +6 -2
  45. package/api/resources/sandboxes/client/Client.d.ts +6 -21
  46. package/api/resources/sandboxes/client/Client.js +17 -24
  47. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
  48. package/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
  49. package/api/resources/testSuiteRuns/client/Client.js +15 -3
  50. package/api/resources/testSuites/client/Client.d.ts +13 -15
  51. package/api/resources/testSuites/client/Client.js +30 -20
  52. package/api/resources/workflowDeployments/client/Client.d.ts +4 -0
  53. package/api/resources/workflowDeployments/client/Client.js +40 -8
  54. package/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
  55. package/api/resources/workflowSandboxes/client/Client.js +10 -2
  56. package/api/resources/workflows/client/Client.d.ts +4 -5
  57. package/api/resources/workflows/client/Client.js +11 -8
  58. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
  59. package/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
  60. package/api/resources/workspaceSecrets/client/Client.js +11 -3
  61. package/api/resources/workspaces/client/Client.d.ts +4 -0
  62. package/api/resources/workspaces/client/Client.js +6 -2
  63. package/dist/Client.d.ts +37 -8
  64. package/dist/Client.js +88 -19
  65. package/dist/api/client/requests/CodeExecutor.d.ts +9 -2
  66. package/dist/api/client/requests/ExecuteApiRequest.d.ts +1 -1
  67. package/dist/api/client/requests/ExecutePromptRequest.d.ts +5 -1
  68. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
  69. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
  70. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
  71. package/dist/api/client/requests/GenerateBodyRequest.d.ts +9 -1
  72. package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
  73. package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  74. package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  75. package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
  76. package/dist/api/resources/adHoc/client/Client.d.ts +18 -3
  77. package/dist/api/resources/adHoc/client/Client.js +24 -5
  78. package/dist/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
  79. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
  80. package/dist/api/resources/containerImages/client/Client.d.ts +7 -3
  81. package/dist/api/resources/containerImages/client/Client.js +24 -8
  82. package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
  83. package/dist/api/resources/deployments/client/Client.d.ts +9 -1
  84. package/dist/api/resources/deployments/client/Client.js +45 -9
  85. package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
  86. package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -58
  87. package/dist/api/resources/documentIndexes/client/Client.js +45 -66
  88. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
  89. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
  90. package/dist/api/resources/documents/client/Client.d.ts +4 -5
  91. package/dist/api/resources/documents/client/Client.js +26 -11
  92. package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
  93. package/dist/api/resources/folderEntities/client/Client.d.ts +4 -0
  94. package/dist/api/resources/folderEntities/client/Client.js +10 -2
  95. package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -1
  96. package/dist/api/resources/metricDefinitions/client/Client.js +15 -3
  97. package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
  98. package/dist/api/resources/mlModels/client/Client.d.ts +4 -0
  99. package/dist/api/resources/mlModels/client/Client.js +6 -2
  100. package/dist/api/resources/organizations/client/Client.d.ts +4 -0
  101. package/dist/api/resources/organizations/client/Client.js +6 -2
  102. package/dist/api/resources/prompts/client/Client.d.ts +12 -1
  103. package/dist/api/resources/prompts/client/Client.js +19 -4
  104. package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
  105. package/dist/api/resources/releaseReviews/client/Client.d.ts +4 -0
  106. package/dist/api/resources/releaseReviews/client/Client.js +6 -2
  107. package/dist/api/resources/sandboxes/client/Client.d.ts +6 -21
  108. package/dist/api/resources/sandboxes/client/Client.js +17 -24
  109. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
  110. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
  111. package/dist/api/resources/testSuiteRuns/client/Client.js +15 -3
  112. package/dist/api/resources/testSuites/client/Client.d.ts +13 -15
  113. package/dist/api/resources/testSuites/client/Client.js +30 -20
  114. package/dist/api/resources/workflowDeployments/client/Client.d.ts +4 -0
  115. package/dist/api/resources/workflowDeployments/client/Client.js +40 -8
  116. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
  117. package/dist/api/resources/workflowSandboxes/client/Client.js +10 -2
  118. package/dist/api/resources/workflows/client/Client.d.ts +4 -5
  119. package/dist/api/resources/workflows/client/Client.js +11 -8
  120. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
  121. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
  122. package/dist/api/resources/workspaceSecrets/client/Client.js +11 -3
  123. package/dist/api/resources/workspaces/client/Client.d.ts +4 -0
  124. package/dist/api/resources/workspaces/client/Client.js +6 -2
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +116 -187
  129. package/version.d.ts +1 -1
  130. package/version.js +1 -1
@@ -10,6 +10,8 @@ export declare namespace WorkspaceSecrets {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace WorkspaceSecrets {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.WorkspaceSecrets = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
54
  const serializers = __importStar(require("../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class WorkspaceSecrets {
58
58
  constructor(_options) {
@@ -77,7 +77,11 @@ class WorkspaceSecrets {
77
77
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
78
78
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
79
79
  method: "GET",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
81
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
82
+ unrecognizedObjectKeys: "strip",
83
+ })
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
85
  contentType: "application/json",
82
86
  requestType: "json",
83
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -139,7 +143,11 @@ class WorkspaceSecrets {
139
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
140
144
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
141
145
  method: "PATCH",
142
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
147
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
148
+ unrecognizedObjectKeys: "strip",
149
+ })
150
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
151
  contentType: "application/json",
144
152
  requestType: "json",
145
153
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -10,6 +10,8 @@ export declare namespace Workspaces {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace Workspaces {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.Workspaces = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
54
  const serializers = __importStar(require("../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class Workspaces {
58
58
  constructor(_options) {
@@ -76,7 +76,11 @@ class Workspaces {
76
76
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
77
77
  .default, "v1/workspaces/identity"),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
80
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
81
+ unrecognizedObjectKeys: "strip",
82
+ })
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.89", "User-Agent": "vellum-ai/0.14.89", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
84
  contentType: "application/json",
81
85
  requestType: "json",
82
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.88";
1
+ export declare const SDK_VERSION = "0.14.89";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.14.88";
4
+ exports.SDK_VERSION = "0.14.89";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.14.88",
3
+ "version": "0.14.89",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -35,6 +35,9 @@ await client.submitWorkflowExecutionActuals({
35
35
  {
36
36
  outputType: "STRING",
37
37
  },
38
+ {
39
+ outputType: "STRING",
40
+ },
38
41
  ],
39
42
  });
40
43
  ```
@@ -89,17 +92,27 @@ await client.submitWorkflowExecutionActuals({
89
92
 
90
93
  ```typescript
91
94
  await client.adHoc.adhocExecutePrompt({
92
- mlModel: "ml_model",
95
+ mlModel: "x",
93
96
  inputValues: [
94
97
  {
95
- key: "key",
98
+ key: "x",
99
+ type: "STRING",
100
+ value: "value",
101
+ },
102
+ {
103
+ key: "x",
96
104
  type: "STRING",
97
105
  value: "value",
98
106
  },
99
107
  ],
100
108
  inputVariables: [
101
109
  {
102
- id: "id",
110
+ id: "x",
111
+ key: "key",
112
+ type: "STRING",
113
+ },
114
+ {
115
+ id: "x",
103
116
  key: "key",
104
117
  type: "STRING",
105
118
  },
@@ -110,6 +123,10 @@ await client.adHoc.adhocExecutePrompt({
110
123
  blockType: "JINJA",
111
124
  template: "template",
112
125
  },
126
+ {
127
+ blockType: "JINJA",
128
+ template: "template",
129
+ },
113
130
  ],
114
131
  });
115
132
  ```
@@ -160,17 +177,27 @@ await client.adHoc.adhocExecutePrompt({
160
177
 
161
178
  ```typescript
162
179
  const response = await client.adHoc.adhocExecutePromptStream({
163
- mlModel: "ml_model",
180
+ mlModel: "x",
164
181
  inputValues: [
165
182
  {
166
- key: "key",
183
+ key: "x",
184
+ type: "STRING",
185
+ value: "value",
186
+ },
187
+ {
188
+ key: "x",
167
189
  type: "STRING",
168
190
  value: "value",
169
191
  },
170
192
  ],
171
193
  inputVariables: [
172
194
  {
173
- id: "id",
195
+ id: "x",
196
+ key: "key",
197
+ type: "STRING",
198
+ },
199
+ {
200
+ id: "x",
174
201
  key: "key",
175
202
  type: "STRING",
176
203
  },
@@ -181,6 +208,10 @@ const response = await client.adHoc.adhocExecutePromptStream({
181
208
  blockType: "JINJA",
182
209
  template: "template",
183
210
  },
211
+ {
212
+ blockType: "JINJA",
213
+ template: "template",
214
+ },
184
215
  ],
185
216
  });
186
217
  for await (const item of response) {
@@ -402,9 +433,9 @@ await client.containerImages.dockerServiceToken();
402
433
 
403
434
  ```typescript
404
435
  await client.containerImages.pushContainerImage({
405
- name: "name",
406
- sha: "sha",
407
- tags: ["tags"],
436
+ name: "x",
437
+ sha: "x",
438
+ tags: ["tags", "tags"],
408
439
  });
409
440
  ```
410
441
 
@@ -972,7 +1003,12 @@ We encourage you to seek advise from Vellum Support before integrating with this
972
1003
  await client.deployments.retrieveProviderPayload({
973
1004
  inputs: [
974
1005
  {
975
- name: "name",
1006
+ name: "x",
1007
+ type: "STRING",
1008
+ value: "value",
1009
+ },
1010
+ {
1011
+ name: "x",
976
1012
  type: "STRING",
977
1013
  value: "value",
978
1014
  },
@@ -1106,23 +1142,12 @@ Creates a new document index.
1106
1142
 
1107
1143
  ```typescript
1108
1144
  await client.documentIndexes.create({
1109
- label: "My Document Index",
1110
- name: "my-document-index",
1145
+ label: "x",
1146
+ name: "x",
1111
1147
  indexingConfig: {
1112
1148
  vectorizer: {
1113
- modelName: "hkunlp/instructor-xl",
1114
- config: {
1115
- instructionDomain: "",
1116
- instructionQueryTextType: "plain_text",
1117
- instructionDocumentTextType: "plain_text",
1118
- },
1119
- },
1120
- chunking: {
1121
- chunkerName: "sentence-chunker",
1122
- chunkerConfig: {
1123
- characterLimit: 1000,
1124
- minOverlapRatio: 0.5,
1125
- },
1149
+ config: {},
1150
+ modelName: "text-embedding-3-small",
1126
1151
  },
1127
1152
  },
1128
1153
  });
@@ -1252,7 +1277,7 @@ Used to fully update a Document Index given its ID or name.
1252
1277
 
1253
1278
  ```typescript
1254
1279
  await client.documentIndexes.update("id", {
1255
- label: "label",
1280
+ label: "x",
1256
1281
  });
1257
1282
  ```
1258
1283
 
@@ -1834,81 +1859,6 @@ await client.documents.partialUpdate("id");
1834
1859
  </dl>
1835
1860
  </details>
1836
1861
 
1837
- <details><summary><code>client.documents.<a href="/src/api/resources/documents/client/Client.ts">upload</a>(contents, { ...params }) -> Vellum.UploadDocumentResponse</code></summary>
1838
- <dl>
1839
- <dd>
1840
-
1841
- #### 📝 Description
1842
-
1843
- <dl>
1844
- <dd>
1845
-
1846
- <dl>
1847
- <dd>
1848
-
1849
- Upload a document to be indexed and used for search.
1850
-
1851
- **Note:** Uses a base url of `https://documents.vellum.ai`.
1852
-
1853
- </dd>
1854
- </dl>
1855
- </dd>
1856
- </dl>
1857
-
1858
- #### 🔌 Usage
1859
-
1860
- <dl>
1861
- <dd>
1862
-
1863
- <dl>
1864
- <dd>
1865
-
1866
- ```typescript
1867
- await client.documents.upload(fs.createReadStream("/path/to/your/file"), {
1868
- label: "label",
1869
- });
1870
- ```
1871
-
1872
- </dd>
1873
- </dl>
1874
- </dd>
1875
- </dl>
1876
-
1877
- #### ⚙️ Parameters
1878
-
1879
- <dl>
1880
- <dd>
1881
-
1882
- <dl>
1883
- <dd>
1884
-
1885
- **contents:** `File | fs.ReadStream | Blob`
1886
-
1887
- </dd>
1888
- </dl>
1889
-
1890
- <dl>
1891
- <dd>
1892
-
1893
- **request:** `Vellum.UploadDocumentBodyRequest`
1894
-
1895
- </dd>
1896
- </dl>
1897
-
1898
- <dl>
1899
- <dd>
1900
-
1901
- **requestOptions:** `Documents.RequestOptions`
1902
-
1903
- </dd>
1904
- </dl>
1905
- </dd>
1906
- </dl>
1907
-
1908
- </dd>
1909
- </dl>
1910
- </details>
1911
-
1912
1862
  ## FolderEntities
1913
1863
 
1914
1864
  <details><summary><code>client.folderEntities.<a href="/src/api/resources/folderEntities/client/Client.ts">list</a>({ ...params }) -> Vellum.PaginatedFolderEntityList</code></summary>
@@ -2077,7 +2027,12 @@ directory. Supported root directories include:
2077
2027
  await client.metricDefinitions.executeMetricDefinition("id", {
2078
2028
  inputs: [
2079
2029
  {
2080
- name: "name",
2030
+ name: "x",
2031
+ type: "STRING",
2032
+ value: "value",
2033
+ },
2034
+ {
2035
+ name: "x",
2081
2036
  type: "STRING",
2082
2037
  value: "value",
2083
2038
  },
@@ -2409,7 +2364,12 @@ await client.prompts.push({
2409
2364
  mlModel: "ml_model",
2410
2365
  inputVariables: [
2411
2366
  {
2412
- id: "id",
2367
+ id: "x",
2368
+ key: "key",
2369
+ type: "STRING",
2370
+ },
2371
+ {
2372
+ id: "x",
2413
2373
  key: "key",
2414
2374
  type: "STRING",
2415
2375
  },
@@ -2420,6 +2380,10 @@ await client.prompts.push({
2420
2380
  blockType: "JINJA",
2421
2381
  template: "template",
2422
2382
  },
2383
+ {
2384
+ blockType: "JINJA",
2385
+ template: "template",
2386
+ },
2423
2387
  ],
2424
2388
  },
2425
2389
  });
@@ -2558,17 +2522,14 @@ or overwritten with default values.
2558
2522
 
2559
2523
  ```typescript
2560
2524
  await client.sandboxes.upsertSandboxScenario("id", {
2561
- label: "Scenario 1",
2562
2525
  inputs: [
2563
2526
  {
2564
2527
  type: "STRING",
2565
- value: "Hello, world!",
2566
- name: "var_1",
2528
+ name: "x",
2567
2529
  },
2568
2530
  {
2569
2531
  type: "STRING",
2570
- value: "Why hello, there!",
2571
- name: "var_2",
2532
+ name: "x",
2572
2533
  },
2573
2534
  ],
2574
2535
  });
@@ -2984,32 +2945,24 @@ or overwritten with default values.
2984
2945
 
2985
2946
  ```typescript
2986
2947
  await client.testSuites.upsertTestSuiteTestCase("id", {
2987
- label: "Test Case 1",
2988
2948
  inputValues: [
2989
2949
  {
2990
2950
  type: "STRING",
2991
- value: "What are your favorite colors?",
2992
- name: "var_1",
2951
+ name: "x",
2952
+ },
2953
+ {
2954
+ type: "STRING",
2955
+ name: "x",
2993
2956
  },
2994
2957
  ],
2995
2958
  evaluationValues: [
2996
2959
  {
2997
- type: "ARRAY",
2998
- value: [
2999
- {
3000
- type: "STRING",
3001
- value: "Red",
3002
- },
3003
- {
3004
- type: "STRING",
3005
- value: "Green",
3006
- },
3007
- {
3008
- type: "STRING",
3009
- value: "Blue",
3010
- },
3011
- ],
3012
- name: "var_2",
2960
+ type: "STRING",
2961
+ name: "x",
2962
+ },
2963
+ {
2964
+ type: "STRING",
2965
+ name: "x",
3013
2966
  },
3014
2967
  ],
3015
2968
  });
@@ -3091,13 +3044,47 @@ const response = await client.testSuites.testSuiteTestCasesBulk("id", [
3091
3044
  inputValues: [
3092
3045
  {
3093
3046
  type: "STRING",
3094
- name: "name",
3047
+ name: "x",
3048
+ },
3049
+ {
3050
+ type: "STRING",
3051
+ name: "x",
3052
+ },
3053
+ ],
3054
+ evaluationValues: [
3055
+ {
3056
+ type: "STRING",
3057
+ name: "x",
3058
+ },
3059
+ {
3060
+ type: "STRING",
3061
+ name: "x",
3062
+ },
3063
+ ],
3064
+ },
3065
+ },
3066
+ {
3067
+ id: "id",
3068
+ type: "CREATE",
3069
+ data: {
3070
+ inputValues: [
3071
+ {
3072
+ type: "STRING",
3073
+ name: "x",
3074
+ },
3075
+ {
3076
+ type: "STRING",
3077
+ name: "x",
3095
3078
  },
3096
3079
  ],
3097
3080
  evaluationValues: [
3098
3081
  {
3099
3082
  type: "STRING",
3100
- name: "name",
3083
+ name: "x",
3084
+ },
3085
+ {
3086
+ type: "STRING",
3087
+ name: "x",
3101
3088
  },
3102
3089
  ],
3103
3090
  },
@@ -3956,64 +3943,6 @@ await client.workflowSandboxes.listWorkflowSandboxExamples();
3956
3943
 
3957
3944
  ## Workflows
3958
3945
 
3959
- <details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">push</a>(artifact, { ...params }) -> Vellum.WorkflowPushResponse</code></summary>
3960
- <dl>
3961
- <dd>
3962
-
3963
- #### 🔌 Usage
3964
-
3965
- <dl>
3966
- <dd>
3967
-
3968
- <dl>
3969
- <dd>
3970
-
3971
- ```typescript
3972
- await client.workflows.push(fs.createReadStream("/path/to/your/file"), {
3973
- execConfig: "exec_config",
3974
- });
3975
- ```
3976
-
3977
- </dd>
3978
- </dl>
3979
- </dd>
3980
- </dl>
3981
-
3982
- #### ⚙️ Parameters
3983
-
3984
- <dl>
3985
- <dd>
3986
-
3987
- <dl>
3988
- <dd>
3989
-
3990
- **artifact:** `File | fs.ReadStream | Blob | undefined`
3991
-
3992
- </dd>
3993
- </dl>
3994
-
3995
- <dl>
3996
- <dd>
3997
-
3998
- **request:** `Vellum.WorkflowPushRequest`
3999
-
4000
- </dd>
4001
- </dl>
4002
-
4003
- <dl>
4004
- <dd>
4005
-
4006
- **requestOptions:** `Workflows.RequestOptions`
4007
-
4008
- </dd>
4009
- </dl>
4010
- </dd>
4011
- </dl>
4012
-
4013
- </dd>
4014
- </dl>
4015
- </details>
4016
-
4017
3946
  ## WorkspaceSecrets
4018
3947
 
4019
3948
  <details><summary><code>client.workspaceSecrets.<a href="/src/api/resources/workspaceSecrets/client/Client.ts">retrieve</a>(id) -> Vellum.WorkspaceSecretRead</code></summary>
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.88";
1
+ export declare const SDK_VERSION = "0.14.89";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.14.88";
4
+ exports.SDK_VERSION = "0.14.89";