exa-js 1.8.20 → 1.8.21

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
@@ -292,6 +292,13 @@ interface components$1 {
292
292
  /** @description Whether to provide an estimate of how many total relevant results could exist for this search.
293
293
  * Result of the analysis will be available in the `recall` field within the search request. */
294
294
  recall?: boolean;
295
+ /** @description Limit the search to specific sources (existing imports or websets). Any results found within these sources matching the search criteria will be included in the Webset. */
296
+ scope?: {
297
+ /** @description The ID of the source to search. */
298
+ id: string;
299
+ /** @enum {string} */
300
+ source: ScopeSourceType;
301
+ }[];
295
302
  };
296
303
  };
297
304
  CreateWebsetSearchParameters: {
@@ -335,6 +342,13 @@ interface components$1 {
335
342
  /** @description Whether to provide an estimate of how many total relevant results could exist for this search.
336
343
  * Result of the analysis will be available in the `recall` field within the search request. */
337
344
  recall?: boolean;
345
+ /** @description Limit the search to specific sources (existing imports). Any results found within these sources matching the search criteria will be included in the Webset. */
346
+ scope?: {
347
+ /** @description The ID of the source to search. */
348
+ id: string;
349
+ /** @enum {string} */
350
+ source: ScopeSourceType;
351
+ }[];
338
352
  };
339
353
  /** Custom */
340
354
  CustomEntity: {
@@ -868,6 +882,41 @@ interface components$1 {
868
882
  */
869
883
  type: "person";
870
884
  };
885
+ PreviewWebsetParameters: {
886
+ /** @description Entity used to inform the decomposition.
887
+ *
888
+ * It is not required to provide it, we automatically detect the entity from all the information provided in the query. Only use this when you need more fine control. */
889
+ entity?: components$1["schemas"]["Entity"];
890
+ /** @description Natural language search query describing what you are looking for.
891
+ *
892
+ * Be specific and descriptive about your requirements, characteristics, and any constraints that help narrow down the results. */
893
+ query: string;
894
+ };
895
+ PreviewWebsetResponse: {
896
+ /** @description Detected enrichments from the query. */
897
+ enrichments: {
898
+ /** @description Description of the enrichment. */
899
+ description: string;
900
+ /**
901
+ * @description Format of the enrichment.
902
+ * @enum {string}
903
+ */
904
+ format: PreviewWebsetResponseEnrichmentsFormat;
905
+ /** @description When format is options, the options detected from the query. */
906
+ options?: {
907
+ /** @description Label of the option. */
908
+ label: string;
909
+ }[];
910
+ }[];
911
+ search: {
912
+ /** @description Detected criteria from the query. */
913
+ criteria: {
914
+ description: string;
915
+ }[];
916
+ /** @description Detected entity from the query. */
917
+ entity: components$1["schemas"]["CompanyEntity"] | components$1["schemas"]["PersonEntity"] | components$1["schemas"]["ArticleEntity"] | components$1["schemas"]["ResearchPaperEntity"] | components$1["schemas"]["CustomEntity"];
918
+ };
919
+ };
871
920
  /** Research Paper */
872
921
  ResearchPaperEntity: {
873
922
  /**
@@ -1384,6 +1433,17 @@ interface components$1 {
1384
1433
  /** @description The reasoning for the estimate */
1385
1434
  reasoning: string;
1386
1435
  } | null;
1436
+ /** @description The scope of the search. By default, there is no scope - thus searching the web.
1437
+ *
1438
+ * If provided during creation, the search will only be performed on the sources provided. */
1439
+ scope: {
1440
+ id: string;
1441
+ /**
1442
+ * @default import
1443
+ * @enum {string}
1444
+ */
1445
+ source: ScopeSourceType;
1446
+ }[];
1387
1447
  /**
1388
1448
  * WebsetSearchStatus
1389
1449
  * @description The status of the search
@@ -1436,6 +1496,8 @@ type MonitorBehavior = components$1["schemas"]["MonitorBehavior"];
1436
1496
  type MonitorCadence = components$1["schemas"]["MonitorCadence"];
1437
1497
  type MonitorRun = components$1["schemas"]["MonitorRun"];
1438
1498
  type PersonEntity = components$1["schemas"]["PersonEntity"];
1499
+ type PreviewWebsetParameters = components$1["schemas"]["PreviewWebsetParameters"];
1500
+ type PreviewWebsetResponse = components$1["schemas"]["PreviewWebsetResponse"];
1439
1501
  type ResearchPaperEntity = components$1["schemas"]["ResearchPaperEntity"];
1440
1502
  type UpdateImport = components$1["schemas"]["UpdateImport"];
1441
1503
  type UpdateMonitor = components$1["schemas"]["UpdateMonitor"];
@@ -1490,6 +1552,9 @@ declare enum CreateWebsetParametersSearchExcludeSource {
1490
1552
  import = "import",
1491
1553
  webset = "webset"
1492
1554
  }
1555
+ declare enum ScopeSourceType {
1556
+ import = "import"
1557
+ }
1493
1558
  declare enum CreateWebsetSearchParametersExcludeSource {
1494
1559
  import = "import",
1495
1560
  webset = "webset"
@@ -1555,6 +1620,14 @@ declare enum MonitorRunType {
1555
1620
  search = "search",
1556
1621
  refresh = "refresh"
1557
1622
  }
1623
+ declare enum PreviewWebsetResponseEnrichmentsFormat {
1624
+ text = "text",
1625
+ date = "date",
1626
+ number = "number",
1627
+ options = "options",
1628
+ email = "email",
1629
+ phone = "phone"
1630
+ }
1558
1631
  declare enum UpdateMonitorStatus {
1559
1632
  enabled = "enabled",
1560
1633
  disabled = "disabled"
@@ -1582,6 +1655,7 @@ declare enum WebhookAttemptEventType {
1582
1655
  }
1583
1656
  declare enum WebsetStatus {
1584
1657
  idle = "idle",
1658
+ pending = "pending",
1585
1659
  running = "running",
1586
1660
  paused = "paused"
1587
1661
  }
@@ -1618,6 +1692,7 @@ declare enum WebsetSearchRecallExpectedConfidence {
1618
1692
  }
1619
1693
  declare enum WebsetSearchStatus {
1620
1694
  created = "created",
1695
+ pending = "pending",
1621
1696
  running = "running",
1622
1697
  completed = "completed",
1623
1698
  canceled = "canceled"
@@ -2106,6 +2181,12 @@ declare class WebsetsClient extends WebsetsBaseClient {
2106
2181
  * @returns The created Webset
2107
2182
  */
2108
2183
  create(params: CreateWebsetParameters): Promise<Webset>;
2184
+ /**
2185
+ * Preview a webset
2186
+ * @param params The preview parameters
2187
+ * @returns The preview response showing how the query will be decomposed
2188
+ */
2189
+ preview(params: PreviewWebsetParameters): Promise<PreviewWebsetResponse>;
2109
2190
  /**
2110
2191
  * Get a Webset by ID
2111
2192
  * @param id The ID of the Webset
@@ -3140,4 +3221,4 @@ declare class Exa {
3140
3221
  private parseSSEStream;
3141
3222
  }
3142
3223
 
3143
- export { type AnswerOptions, type AnswerOptionsTyped, type AnswerResponse, type AnswerResponseTyped, type AnswerStreamChunk, type AnswerStreamResponse, type ArticleEntity, type BaseSearchOptions, type CompanyEntity, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateImportParameters, CreateImportParametersFormat, type CreateImportResponse, type CreateImportWithCsvParameters, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, CreateWebsetParametersImportSource, CreateWebsetParametersSearchExcludeSource, type CreateWebsetSearchParameters, CreateWebsetSearchParametersExcludeSource, type CsvDataInput, type CustomEntity, type Default, type EnrichmentResult, type Entity, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type Import, ImportFailedReason, ImportFormat, ImportObject, ImportStatus, ImportsClient, type JSONSchema, type ListEventsResponse, type ListImportsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetItemsOptions, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehavior, type MonitorCadence, MonitorObject, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type PersonEntity, type RegularSearchOptions, ResearchClient, type ResearchCreateTaskParamsTyped, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, type ResearchPaperEntity, type SchemaResearchTaskDto as ResearchTask, type ResearchTaskEvent, type ResearchTaskOperation, type ResearchTaskOutputTyped, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryContentsOptionsTyped, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateImport, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type WaitUntilCompletedOptions, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
3224
+ export { type AnswerOptions, type AnswerOptionsTyped, type AnswerResponse, type AnswerResponseTyped, type AnswerStreamChunk, type AnswerStreamResponse, type ArticleEntity, type BaseSearchOptions, type CompanyEntity, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateImportParameters, CreateImportParametersFormat, type CreateImportResponse, type CreateImportWithCsvParameters, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, CreateWebsetParametersImportSource, CreateWebsetParametersSearchExcludeSource, type CreateWebsetSearchParameters, CreateWebsetSearchParametersExcludeSource, type CsvDataInput, type CustomEntity, type Default, type EnrichmentResult, type Entity, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type Import, ImportFailedReason, ImportFormat, ImportObject, ImportStatus, ImportsClient, type JSONSchema, type ListEventsResponse, type ListImportsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetItemsOptions, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehavior, type MonitorCadence, MonitorObject, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type PersonEntity, type PreviewWebsetParameters, type PreviewWebsetResponse, PreviewWebsetResponseEnrichmentsFormat, type RegularSearchOptions, ResearchClient, type ResearchCreateTaskParamsTyped, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, type ResearchPaperEntity, type SchemaResearchTaskDto as ResearchTask, type ResearchTaskEvent, type ResearchTaskOperation, type ResearchTaskOutputTyped, ScopeSourceType, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryContentsOptionsTyped, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateImport, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type WaitUntilCompletedOptions, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
package/dist/index.d.ts CHANGED
@@ -292,6 +292,13 @@ interface components$1 {
292
292
  /** @description Whether to provide an estimate of how many total relevant results could exist for this search.
293
293
  * Result of the analysis will be available in the `recall` field within the search request. */
294
294
  recall?: boolean;
295
+ /** @description Limit the search to specific sources (existing imports or websets). Any results found within these sources matching the search criteria will be included in the Webset. */
296
+ scope?: {
297
+ /** @description The ID of the source to search. */
298
+ id: string;
299
+ /** @enum {string} */
300
+ source: ScopeSourceType;
301
+ }[];
295
302
  };
296
303
  };
297
304
  CreateWebsetSearchParameters: {
@@ -335,6 +342,13 @@ interface components$1 {
335
342
  /** @description Whether to provide an estimate of how many total relevant results could exist for this search.
336
343
  * Result of the analysis will be available in the `recall` field within the search request. */
337
344
  recall?: boolean;
345
+ /** @description Limit the search to specific sources (existing imports). Any results found within these sources matching the search criteria will be included in the Webset. */
346
+ scope?: {
347
+ /** @description The ID of the source to search. */
348
+ id: string;
349
+ /** @enum {string} */
350
+ source: ScopeSourceType;
351
+ }[];
338
352
  };
339
353
  /** Custom */
340
354
  CustomEntity: {
@@ -868,6 +882,41 @@ interface components$1 {
868
882
  */
869
883
  type: "person";
870
884
  };
885
+ PreviewWebsetParameters: {
886
+ /** @description Entity used to inform the decomposition.
887
+ *
888
+ * It is not required to provide it, we automatically detect the entity from all the information provided in the query. Only use this when you need more fine control. */
889
+ entity?: components$1["schemas"]["Entity"];
890
+ /** @description Natural language search query describing what you are looking for.
891
+ *
892
+ * Be specific and descriptive about your requirements, characteristics, and any constraints that help narrow down the results. */
893
+ query: string;
894
+ };
895
+ PreviewWebsetResponse: {
896
+ /** @description Detected enrichments from the query. */
897
+ enrichments: {
898
+ /** @description Description of the enrichment. */
899
+ description: string;
900
+ /**
901
+ * @description Format of the enrichment.
902
+ * @enum {string}
903
+ */
904
+ format: PreviewWebsetResponseEnrichmentsFormat;
905
+ /** @description When format is options, the options detected from the query. */
906
+ options?: {
907
+ /** @description Label of the option. */
908
+ label: string;
909
+ }[];
910
+ }[];
911
+ search: {
912
+ /** @description Detected criteria from the query. */
913
+ criteria: {
914
+ description: string;
915
+ }[];
916
+ /** @description Detected entity from the query. */
917
+ entity: components$1["schemas"]["CompanyEntity"] | components$1["schemas"]["PersonEntity"] | components$1["schemas"]["ArticleEntity"] | components$1["schemas"]["ResearchPaperEntity"] | components$1["schemas"]["CustomEntity"];
918
+ };
919
+ };
871
920
  /** Research Paper */
872
921
  ResearchPaperEntity: {
873
922
  /**
@@ -1384,6 +1433,17 @@ interface components$1 {
1384
1433
  /** @description The reasoning for the estimate */
1385
1434
  reasoning: string;
1386
1435
  } | null;
1436
+ /** @description The scope of the search. By default, there is no scope - thus searching the web.
1437
+ *
1438
+ * If provided during creation, the search will only be performed on the sources provided. */
1439
+ scope: {
1440
+ id: string;
1441
+ /**
1442
+ * @default import
1443
+ * @enum {string}
1444
+ */
1445
+ source: ScopeSourceType;
1446
+ }[];
1387
1447
  /**
1388
1448
  * WebsetSearchStatus
1389
1449
  * @description The status of the search
@@ -1436,6 +1496,8 @@ type MonitorBehavior = components$1["schemas"]["MonitorBehavior"];
1436
1496
  type MonitorCadence = components$1["schemas"]["MonitorCadence"];
1437
1497
  type MonitorRun = components$1["schemas"]["MonitorRun"];
1438
1498
  type PersonEntity = components$1["schemas"]["PersonEntity"];
1499
+ type PreviewWebsetParameters = components$1["schemas"]["PreviewWebsetParameters"];
1500
+ type PreviewWebsetResponse = components$1["schemas"]["PreviewWebsetResponse"];
1439
1501
  type ResearchPaperEntity = components$1["schemas"]["ResearchPaperEntity"];
1440
1502
  type UpdateImport = components$1["schemas"]["UpdateImport"];
1441
1503
  type UpdateMonitor = components$1["schemas"]["UpdateMonitor"];
@@ -1490,6 +1552,9 @@ declare enum CreateWebsetParametersSearchExcludeSource {
1490
1552
  import = "import",
1491
1553
  webset = "webset"
1492
1554
  }
1555
+ declare enum ScopeSourceType {
1556
+ import = "import"
1557
+ }
1493
1558
  declare enum CreateWebsetSearchParametersExcludeSource {
1494
1559
  import = "import",
1495
1560
  webset = "webset"
@@ -1555,6 +1620,14 @@ declare enum MonitorRunType {
1555
1620
  search = "search",
1556
1621
  refresh = "refresh"
1557
1622
  }
1623
+ declare enum PreviewWebsetResponseEnrichmentsFormat {
1624
+ text = "text",
1625
+ date = "date",
1626
+ number = "number",
1627
+ options = "options",
1628
+ email = "email",
1629
+ phone = "phone"
1630
+ }
1558
1631
  declare enum UpdateMonitorStatus {
1559
1632
  enabled = "enabled",
1560
1633
  disabled = "disabled"
@@ -1582,6 +1655,7 @@ declare enum WebhookAttemptEventType {
1582
1655
  }
1583
1656
  declare enum WebsetStatus {
1584
1657
  idle = "idle",
1658
+ pending = "pending",
1585
1659
  running = "running",
1586
1660
  paused = "paused"
1587
1661
  }
@@ -1618,6 +1692,7 @@ declare enum WebsetSearchRecallExpectedConfidence {
1618
1692
  }
1619
1693
  declare enum WebsetSearchStatus {
1620
1694
  created = "created",
1695
+ pending = "pending",
1621
1696
  running = "running",
1622
1697
  completed = "completed",
1623
1698
  canceled = "canceled"
@@ -2106,6 +2181,12 @@ declare class WebsetsClient extends WebsetsBaseClient {
2106
2181
  * @returns The created Webset
2107
2182
  */
2108
2183
  create(params: CreateWebsetParameters): Promise<Webset>;
2184
+ /**
2185
+ * Preview a webset
2186
+ * @param params The preview parameters
2187
+ * @returns The preview response showing how the query will be decomposed
2188
+ */
2189
+ preview(params: PreviewWebsetParameters): Promise<PreviewWebsetResponse>;
2109
2190
  /**
2110
2191
  * Get a Webset by ID
2111
2192
  * @param id The ID of the Webset
@@ -3140,4 +3221,4 @@ declare class Exa {
3140
3221
  private parseSSEStream;
3141
3222
  }
3142
3223
 
3143
- export { type AnswerOptions, type AnswerOptionsTyped, type AnswerResponse, type AnswerResponseTyped, type AnswerStreamChunk, type AnswerStreamResponse, type ArticleEntity, type BaseSearchOptions, type CompanyEntity, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateImportParameters, CreateImportParametersFormat, type CreateImportResponse, type CreateImportWithCsvParameters, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, CreateWebsetParametersImportSource, CreateWebsetParametersSearchExcludeSource, type CreateWebsetSearchParameters, CreateWebsetSearchParametersExcludeSource, type CsvDataInput, type CustomEntity, type Default, type EnrichmentResult, type Entity, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type Import, ImportFailedReason, ImportFormat, ImportObject, ImportStatus, ImportsClient, type JSONSchema, type ListEventsResponse, type ListImportsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetItemsOptions, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehavior, type MonitorCadence, MonitorObject, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type PersonEntity, type RegularSearchOptions, ResearchClient, type ResearchCreateTaskParamsTyped, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, type ResearchPaperEntity, type SchemaResearchTaskDto as ResearchTask, type ResearchTaskEvent, type ResearchTaskOperation, type ResearchTaskOutputTyped, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryContentsOptionsTyped, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateImport, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type WaitUntilCompletedOptions, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
3224
+ export { type AnswerOptions, type AnswerOptionsTyped, type AnswerResponse, type AnswerResponseTyped, type AnswerStreamChunk, type AnswerStreamResponse, type ArticleEntity, type BaseSearchOptions, type CompanyEntity, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateImportParameters, CreateImportParametersFormat, type CreateImportResponse, type CreateImportWithCsvParameters, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, CreateWebsetParametersImportSource, CreateWebsetParametersSearchExcludeSource, type CreateWebsetSearchParameters, CreateWebsetSearchParametersExcludeSource, type CsvDataInput, type CustomEntity, type Default, type EnrichmentResult, type Entity, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type Import, ImportFailedReason, ImportFormat, ImportObject, ImportStatus, ImportsClient, type JSONSchema, type ListEventsResponse, type ListImportsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetItemsOptions, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehavior, type MonitorCadence, MonitorObject, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type PersonEntity, type PreviewWebsetParameters, type PreviewWebsetResponse, PreviewWebsetResponseEnrichmentsFormat, type RegularSearchOptions, ResearchClient, type ResearchCreateTaskParamsTyped, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, type ResearchPaperEntity, type SchemaResearchTaskDto as ResearchTask, type ResearchTaskEvent, type ResearchTaskOperation, type ResearchTaskOutputTyped, ScopeSourceType, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryContentsOptionsTyped, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateImport, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type WaitUntilCompletedOptions, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
package/dist/index.js CHANGED
@@ -50,7 +50,9 @@ __export(index_exports, {
50
50
  MonitorRunStatus: () => MonitorRunStatus,
51
51
  MonitorRunType: () => MonitorRunType,
52
52
  MonitorStatus: () => MonitorStatus,
53
+ PreviewWebsetResponseEnrichmentsFormat: () => PreviewWebsetResponseEnrichmentsFormat,
53
54
  ResearchClient: () => ResearchClient,
55
+ ScopeSourceType: () => ScopeSourceType,
54
56
  UpdateMonitorStatus: () => UpdateMonitorStatus,
55
57
  WebhookStatus: () => WebhookStatus,
56
58
  WebsetEnrichmentFormat: () => WebsetEnrichmentFormat,
@@ -250,6 +252,10 @@ var CreateWebsetParametersSearchExcludeSource = /* @__PURE__ */ ((CreateWebsetPa
250
252
  CreateWebsetParametersSearchExcludeSource2["webset"] = "webset";
251
253
  return CreateWebsetParametersSearchExcludeSource2;
252
254
  })(CreateWebsetParametersSearchExcludeSource || {});
255
+ var ScopeSourceType = /* @__PURE__ */ ((ScopeSourceType2) => {
256
+ ScopeSourceType2["import"] = "import";
257
+ return ScopeSourceType2;
258
+ })(ScopeSourceType || {});
253
259
  var CreateWebsetSearchParametersExcludeSource = /* @__PURE__ */ ((CreateWebsetSearchParametersExcludeSource2) => {
254
260
  CreateWebsetSearchParametersExcludeSource2["import"] = "import";
255
261
  CreateWebsetSearchParametersExcludeSource2["webset"] = "webset";
@@ -321,6 +327,15 @@ var MonitorRunType = /* @__PURE__ */ ((MonitorRunType2) => {
321
327
  MonitorRunType2["refresh"] = "refresh";
322
328
  return MonitorRunType2;
323
329
  })(MonitorRunType || {});
330
+ var PreviewWebsetResponseEnrichmentsFormat = /* @__PURE__ */ ((PreviewWebsetResponseEnrichmentsFormat2) => {
331
+ PreviewWebsetResponseEnrichmentsFormat2["text"] = "text";
332
+ PreviewWebsetResponseEnrichmentsFormat2["date"] = "date";
333
+ PreviewWebsetResponseEnrichmentsFormat2["number"] = "number";
334
+ PreviewWebsetResponseEnrichmentsFormat2["options"] = "options";
335
+ PreviewWebsetResponseEnrichmentsFormat2["email"] = "email";
336
+ PreviewWebsetResponseEnrichmentsFormat2["phone"] = "phone";
337
+ return PreviewWebsetResponseEnrichmentsFormat2;
338
+ })(PreviewWebsetResponseEnrichmentsFormat || {});
324
339
  var UpdateMonitorStatus = /* @__PURE__ */ ((UpdateMonitorStatus2) => {
325
340
  UpdateMonitorStatus2["enabled"] = "enabled";
326
341
  UpdateMonitorStatus2["disabled"] = "disabled";
@@ -333,6 +348,7 @@ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
333
348
  })(WebhookStatus || {});
334
349
  var WebsetStatus = /* @__PURE__ */ ((WebsetStatus2) => {
335
350
  WebsetStatus2["idle"] = "idle";
351
+ WebsetStatus2["pending"] = "pending";
336
352
  WebsetStatus2["running"] = "running";
337
353
  WebsetStatus2["paused"] = "paused";
338
354
  return WebsetStatus2;
@@ -365,6 +381,7 @@ var WebsetItemEvaluationSatisfied = /* @__PURE__ */ ((WebsetItemEvaluationSatisf
365
381
  })(WebsetItemEvaluationSatisfied || {});
366
382
  var WebsetSearchStatus = /* @__PURE__ */ ((WebsetSearchStatus2) => {
367
383
  WebsetSearchStatus2["created"] = "created";
384
+ WebsetSearchStatus2["pending"] = "pending";
368
385
  WebsetSearchStatus2["running"] = "running";
369
386
  WebsetSearchStatus2["completed"] = "completed";
370
387
  WebsetSearchStatus2["canceled"] = "canceled";
@@ -902,6 +919,14 @@ var WebsetsClient = class extends WebsetsBaseClient {
902
919
  async create(params) {
903
920
  return this.request("/v0/websets", "POST", params);
904
921
  }
922
+ /**
923
+ * Preview a webset
924
+ * @param params The preview parameters
925
+ * @returns The preview response showing how the query will be decomposed
926
+ */
927
+ async preview(params) {
928
+ return this.request("/v0/websets/preview", "POST", params);
929
+ }
905
930
  /**
906
931
  * Get a Webset by ID
907
932
  * @param id The ID of the Webset
@@ -1654,7 +1679,9 @@ var index_default = Exa2;
1654
1679
  MonitorRunStatus,
1655
1680
  MonitorRunType,
1656
1681
  MonitorStatus,
1682
+ PreviewWebsetResponseEnrichmentsFormat,
1657
1683
  ResearchClient,
1684
+ ScopeSourceType,
1658
1685
  UpdateMonitorStatus,
1659
1686
  WebhookStatus,
1660
1687
  WebsetEnrichmentFormat,