vellum-ai 0.0.26 → 0.0.27

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.
@@ -186,6 +186,9 @@ class Documents {
186
186
  _request.append("keywords", _item);
187
187
  }
188
188
  }
189
+ if (request.metadata != null) {
190
+ _request.append("metadata", request.metadata);
191
+ }
189
192
  const _response = await core.fetcher({
190
193
  url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/upload-document"),
191
194
  method: "POST",
@@ -10,4 +10,6 @@ export interface UploadDocumentBodyRequest {
10
10
  label: string;
11
11
  /** Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches. */
12
12
  keywords?: string[];
13
+ /** A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later. */
14
+ metadata?: string;
13
15
  }
@@ -186,6 +186,9 @@ class Documents {
186
186
  _request.append("keywords", _item);
187
187
  }
188
188
  }
189
+ if (request.metadata != null) {
190
+ _request.append("metadata", request.metadata);
191
+ }
189
192
  const _response = await core.fetcher({
190
193
  url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/upload-document"),
191
194
  method: "POST",
@@ -10,4 +10,6 @@ export interface UploadDocumentBodyRequest {
10
10
  label: string;
11
11
  /** Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches. */
12
12
  keywords?: string[];
13
+ /** A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later. */
14
+ metadata?: string;
13
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.26",
3
+ "version": "v0.0.27",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",