exa-js 2.0.2 → 2.0.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.
package/dist/index.d.mts CHANGED
@@ -2871,9 +2871,12 @@ declare class WebsetsClient extends WebsetsBaseClient {
2871
2871
  /**
2872
2872
  * Preview a webset
2873
2873
  * @param params The preview parameters
2874
+ * @param options Optional parameters. Search = true allows you to retrieve a preview set of items that could be returned by the webset.
2874
2875
  * @returns The preview response showing how the query will be decomposed
2875
2876
  */
2876
- preview(params: PreviewWebsetParameters): Promise<PreviewWebsetResponse>;
2877
+ preview(params: PreviewWebsetParameters, options?: {
2878
+ search?: boolean;
2879
+ }): Promise<PreviewWebsetResponse>;
2877
2880
  /**
2878
2881
  * Get a Webset by ID
2879
2882
  * @param id The ID of the Webset
package/dist/index.d.ts CHANGED
@@ -2871,9 +2871,12 @@ declare class WebsetsClient extends WebsetsBaseClient {
2871
2871
  /**
2872
2872
  * Preview a webset
2873
2873
  * @param params The preview parameters
2874
+ * @param options Optional parameters. Search = true allows you to retrieve a preview set of items that could be returned by the webset.
2874
2875
  * @returns The preview response showing how the query will be decomposed
2875
2876
  */
2876
- preview(params: PreviewWebsetParameters): Promise<PreviewWebsetResponse>;
2877
+ preview(params: PreviewWebsetParameters, options?: {
2878
+ search?: boolean;
2879
+ }): Promise<PreviewWebsetResponse>;
2877
2880
  /**
2878
2881
  * Get a Webset by ID
2879
2882
  * @param id The ID of the Webset
package/dist/index.js CHANGED
@@ -74,7 +74,7 @@ var import_cross_fetch = __toESM(require("cross-fetch"));
74
74
  // package.json
75
75
  var package_default = {
76
76
  name: "exa-js",
77
- version: "2.0.2",
77
+ version: "2.0.3",
78
78
  description: "Exa SDK for Node.js and the browser",
79
79
  publishConfig: {
80
80
  access: "public"
@@ -1191,13 +1191,19 @@ var WebsetsClient = class extends WebsetsBaseClient {
1191
1191
  /**
1192
1192
  * Preview a webset
1193
1193
  * @param params The preview parameters
1194
+ * @param options Optional parameters. Search = true allows you to retrieve a preview set of items that could be returned by the webset.
1194
1195
  * @returns The preview response showing how the query will be decomposed
1195
1196
  */
1196
- async preview(params) {
1197
+ async preview(params, options) {
1198
+ const queryParams = {};
1199
+ if (options?.search !== void 0) {
1200
+ queryParams.search = options.search;
1201
+ }
1197
1202
  return this.request(
1198
1203
  "/v0/websets/preview",
1199
1204
  "POST",
1200
- params
1205
+ params,
1206
+ queryParams
1201
1207
  );
1202
1208
  }
1203
1209
  /**