exa-js 1.8.21 → 1.8.22
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 +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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:
|
|
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:
|
|
360
|
+
source: CreateWebsetSearchParametersScopeSource;
|
|
351
361
|
}[];
|
|
352
362
|
};
|
|
353
363
|
/** Custom */
|
|
@@ -1553,12 +1563,17 @@ declare enum CreateWebsetParametersSearchExcludeSource {
|
|
|
1553
1563
|
webset = "webset"
|
|
1554
1564
|
}
|
|
1555
1565
|
declare enum ScopeSourceType {
|
|
1556
|
-
import = "import"
|
|
1566
|
+
import = "import",
|
|
1567
|
+
webset = "webset"
|
|
1557
1568
|
}
|
|
1558
1569
|
declare enum CreateWebsetSearchParametersExcludeSource {
|
|
1559
1570
|
import = "import",
|
|
1560
1571
|
webset = "webset"
|
|
1561
1572
|
}
|
|
1573
|
+
declare enum CreateWebsetSearchParametersScopeSource {
|
|
1574
|
+
import = "import",
|
|
1575
|
+
webset = "webset"
|
|
1576
|
+
}
|
|
1562
1577
|
declare enum EnrichmentResultStatus {
|
|
1563
1578
|
pending = "pending",
|
|
1564
1579
|
completed = "completed",
|
|
@@ -3221,4 +3236,4 @@ declare class Exa {
|
|
|
3221
3236
|
private parseSSEStream;
|
|
3222
3237
|
}
|
|
3223
3238
|
|
|
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 };
|
|
3239
|
+
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:
|
|
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:
|
|
360
|
+
source: CreateWebsetSearchParametersScopeSource;
|
|
351
361
|
}[];
|
|
352
362
|
};
|
|
353
363
|
/** Custom */
|
|
@@ -1553,12 +1563,17 @@ declare enum CreateWebsetParametersSearchExcludeSource {
|
|
|
1553
1563
|
webset = "webset"
|
|
1554
1564
|
}
|
|
1555
1565
|
declare enum ScopeSourceType {
|
|
1556
|
-
import = "import"
|
|
1566
|
+
import = "import",
|
|
1567
|
+
webset = "webset"
|
|
1557
1568
|
}
|
|
1558
1569
|
declare enum CreateWebsetSearchParametersExcludeSource {
|
|
1559
1570
|
import = "import",
|
|
1560
1571
|
webset = "webset"
|
|
1561
1572
|
}
|
|
1573
|
+
declare enum CreateWebsetSearchParametersScopeSource {
|
|
1574
|
+
import = "import",
|
|
1575
|
+
webset = "webset"
|
|
1576
|
+
}
|
|
1562
1577
|
declare enum EnrichmentResultStatus {
|
|
1563
1578
|
pending = "pending",
|
|
1564
1579
|
completed = "completed",
|
|
@@ -3221,4 +3236,4 @@ declare class Exa {
|
|
|
3221
3236
|
private parseSSEStream;
|
|
3222
3237
|
}
|
|
3223
3238
|
|
|
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 };
|
|
3239
|
+
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,
|