exa-js 1.8.21 → 1.8.23

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
@@ -296,8 +296,13 @@ interface components$1 {
296
296
  scope?: {
297
297
  /** @description The ID of the source to search. */
298
298
  id: string;
299
+ relationship?: {
300
+ /** @description What the relationship of the entities you hope to find is relative to the entities contained in the provided source. */
301
+ definition: string;
302
+ limit: number;
303
+ };
299
304
  /** @enum {string} */
300
- source: ScopeSourceType;
305
+ source: CreateWebsetSearchParametersScopeSource;
301
306
  }[];
302
307
  };
303
308
  };
@@ -346,8 +351,13 @@ interface components$1 {
346
351
  scope?: {
347
352
  /** @description The ID of the source to search. */
348
353
  id: string;
354
+ relationship?: {
355
+ /** @description What the relationship of the entities you hope to find is relative to the entities contained in the provided source. */
356
+ definition: string;
357
+ limit: number;
358
+ };
349
359
  /** @enum {string} */
350
- source: ScopeSourceType;
360
+ source: CreateWebsetSearchParametersScopeSource;
351
361
  }[];
352
362
  };
353
363
  /** Custom */
@@ -1455,6 +1465,8 @@ interface components$1 {
1455
1465
  * @description The date and time the search was updated
1456
1466
  */
1457
1467
  updatedAt: string;
1468
+ /** @description The unique identifier for the Webset this search belongs to */
1469
+ websetId: string;
1458
1470
  };
1459
1471
  /** @enum {string} */
1460
1472
  WebsetSearchBehavior: WebsetSearchBehavior;
@@ -1553,12 +1565,17 @@ declare enum CreateWebsetParametersSearchExcludeSource {
1553
1565
  webset = "webset"
1554
1566
  }
1555
1567
  declare enum ScopeSourceType {
1556
- import = "import"
1568
+ import = "import",
1569
+ webset = "webset"
1557
1570
  }
1558
1571
  declare enum CreateWebsetSearchParametersExcludeSource {
1559
1572
  import = "import",
1560
1573
  webset = "webset"
1561
1574
  }
1575
+ declare enum CreateWebsetSearchParametersScopeSource {
1576
+ import = "import",
1577
+ webset = "webset"
1578
+ }
1562
1579
  declare enum EnrichmentResultStatus {
1563
1580
  pending = "pending",
1564
1581
  completed = "completed",
@@ -3221,4 +3238,4 @@ declare class Exa {
3221
3238
  private parseSSEStream;
3222
3239
  }
3223
3240
 
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 };
3241
+ 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, CreateWebsetSearchParametersScopeSource, 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
@@ -296,8 +296,13 @@ interface components$1 {
296
296
  scope?: {
297
297
  /** @description The ID of the source to search. */
298
298
  id: string;
299
+ relationship?: {
300
+ /** @description What the relationship of the entities you hope to find is relative to the entities contained in the provided source. */
301
+ definition: string;
302
+ limit: number;
303
+ };
299
304
  /** @enum {string} */
300
- source: ScopeSourceType;
305
+ source: CreateWebsetSearchParametersScopeSource;
301
306
  }[];
302
307
  };
303
308
  };
@@ -346,8 +351,13 @@ interface components$1 {
346
351
  scope?: {
347
352
  /** @description The ID of the source to search. */
348
353
  id: string;
354
+ relationship?: {
355
+ /** @description What the relationship of the entities you hope to find is relative to the entities contained in the provided source. */
356
+ definition: string;
357
+ limit: number;
358
+ };
349
359
  /** @enum {string} */
350
- source: ScopeSourceType;
360
+ source: CreateWebsetSearchParametersScopeSource;
351
361
  }[];
352
362
  };
353
363
  /** Custom */
@@ -1455,6 +1465,8 @@ interface components$1 {
1455
1465
  * @description The date and time the search was updated
1456
1466
  */
1457
1467
  updatedAt: string;
1468
+ /** @description The unique identifier for the Webset this search belongs to */
1469
+ websetId: string;
1458
1470
  };
1459
1471
  /** @enum {string} */
1460
1472
  WebsetSearchBehavior: WebsetSearchBehavior;
@@ -1553,12 +1565,17 @@ declare enum CreateWebsetParametersSearchExcludeSource {
1553
1565
  webset = "webset"
1554
1566
  }
1555
1567
  declare enum ScopeSourceType {
1556
- import = "import"
1568
+ import = "import",
1569
+ webset = "webset"
1557
1570
  }
1558
1571
  declare enum CreateWebsetSearchParametersExcludeSource {
1559
1572
  import = "import",
1560
1573
  webset = "webset"
1561
1574
  }
1575
+ declare enum CreateWebsetSearchParametersScopeSource {
1576
+ import = "import",
1577
+ webset = "webset"
1578
+ }
1562
1579
  declare enum EnrichmentResultStatus {
1563
1580
  pending = "pending",
1564
1581
  completed = "completed",
@@ -3221,4 +3238,4 @@ declare class Exa {
3221
3238
  private parseSSEStream;
3222
3239
  }
3223
3240
 
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 };
3241
+ 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, CreateWebsetSearchParametersScopeSource, 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
@@ -35,6 +35,7 @@ __export(index_exports, {
35
35
  CreateWebsetParametersImportSource: () => CreateWebsetParametersImportSource,
36
36
  CreateWebsetParametersSearchExcludeSource: () => CreateWebsetParametersSearchExcludeSource,
37
37
  CreateWebsetSearchParametersExcludeSource: () => CreateWebsetSearchParametersExcludeSource,
38
+ CreateWebsetSearchParametersScopeSource: () => CreateWebsetSearchParametersScopeSource,
38
39
  EventType: () => EventType,
39
40
  EventsClient: () => EventsClient,
40
41
  Exa: () => Exa2,
@@ -254,6 +255,7 @@ var CreateWebsetParametersSearchExcludeSource = /* @__PURE__ */ ((CreateWebsetPa
254
255
  })(CreateWebsetParametersSearchExcludeSource || {});
255
256
  var ScopeSourceType = /* @__PURE__ */ ((ScopeSourceType2) => {
256
257
  ScopeSourceType2["import"] = "import";
258
+ ScopeSourceType2["webset"] = "webset";
257
259
  return ScopeSourceType2;
258
260
  })(ScopeSourceType || {});
259
261
  var CreateWebsetSearchParametersExcludeSource = /* @__PURE__ */ ((CreateWebsetSearchParametersExcludeSource2) => {
@@ -261,6 +263,11 @@ var CreateWebsetSearchParametersExcludeSource = /* @__PURE__ */ ((CreateWebsetSe
261
263
  CreateWebsetSearchParametersExcludeSource2["webset"] = "webset";
262
264
  return CreateWebsetSearchParametersExcludeSource2;
263
265
  })(CreateWebsetSearchParametersExcludeSource || {});
266
+ var CreateWebsetSearchParametersScopeSource = /* @__PURE__ */ ((CreateWebsetSearchParametersScopeSource2) => {
267
+ CreateWebsetSearchParametersScopeSource2["import"] = "import";
268
+ CreateWebsetSearchParametersScopeSource2["webset"] = "webset";
269
+ return CreateWebsetSearchParametersScopeSource2;
270
+ })(CreateWebsetSearchParametersScopeSource || {});
264
271
  var EventType = /* @__PURE__ */ ((EventType2) => {
265
272
  EventType2["webset_created"] = "webset.created";
266
273
  EventType2["webset_deleted"] = "webset.deleted";
@@ -1664,6 +1671,7 @@ var index_default = Exa2;
1664
1671
  CreateWebsetParametersImportSource,
1665
1672
  CreateWebsetParametersSearchExcludeSource,
1666
1673
  CreateWebsetSearchParametersExcludeSource,
1674
+ CreateWebsetSearchParametersScopeSource,
1667
1675
  EventType,
1668
1676
  EventsClient,
1669
1677
  Exa,