exa-js 1.8.20 → 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 +97 -1
- package/dist/index.d.ts +97 -1
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -292,6 +292,18 @@ 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
|
+
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
|
+
};
|
|
304
|
+
/** @enum {string} */
|
|
305
|
+
source: CreateWebsetSearchParametersScopeSource;
|
|
306
|
+
}[];
|
|
295
307
|
};
|
|
296
308
|
};
|
|
297
309
|
CreateWebsetSearchParameters: {
|
|
@@ -335,6 +347,18 @@ interface components$1 {
|
|
|
335
347
|
/** @description Whether to provide an estimate of how many total relevant results could exist for this search.
|
|
336
348
|
* Result of the analysis will be available in the `recall` field within the search request. */
|
|
337
349
|
recall?: boolean;
|
|
350
|
+
/** @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. */
|
|
351
|
+
scope?: {
|
|
352
|
+
/** @description The ID of the source to search. */
|
|
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
|
+
};
|
|
359
|
+
/** @enum {string} */
|
|
360
|
+
source: CreateWebsetSearchParametersScopeSource;
|
|
361
|
+
}[];
|
|
338
362
|
};
|
|
339
363
|
/** Custom */
|
|
340
364
|
CustomEntity: {
|
|
@@ -868,6 +892,41 @@ interface components$1 {
|
|
|
868
892
|
*/
|
|
869
893
|
type: "person";
|
|
870
894
|
};
|
|
895
|
+
PreviewWebsetParameters: {
|
|
896
|
+
/** @description Entity used to inform the decomposition.
|
|
897
|
+
*
|
|
898
|
+
* 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. */
|
|
899
|
+
entity?: components$1["schemas"]["Entity"];
|
|
900
|
+
/** @description Natural language search query describing what you are looking for.
|
|
901
|
+
*
|
|
902
|
+
* Be specific and descriptive about your requirements, characteristics, and any constraints that help narrow down the results. */
|
|
903
|
+
query: string;
|
|
904
|
+
};
|
|
905
|
+
PreviewWebsetResponse: {
|
|
906
|
+
/** @description Detected enrichments from the query. */
|
|
907
|
+
enrichments: {
|
|
908
|
+
/** @description Description of the enrichment. */
|
|
909
|
+
description: string;
|
|
910
|
+
/**
|
|
911
|
+
* @description Format of the enrichment.
|
|
912
|
+
* @enum {string}
|
|
913
|
+
*/
|
|
914
|
+
format: PreviewWebsetResponseEnrichmentsFormat;
|
|
915
|
+
/** @description When format is options, the options detected from the query. */
|
|
916
|
+
options?: {
|
|
917
|
+
/** @description Label of the option. */
|
|
918
|
+
label: string;
|
|
919
|
+
}[];
|
|
920
|
+
}[];
|
|
921
|
+
search: {
|
|
922
|
+
/** @description Detected criteria from the query. */
|
|
923
|
+
criteria: {
|
|
924
|
+
description: string;
|
|
925
|
+
}[];
|
|
926
|
+
/** @description Detected entity from the query. */
|
|
927
|
+
entity: components$1["schemas"]["CompanyEntity"] | components$1["schemas"]["PersonEntity"] | components$1["schemas"]["ArticleEntity"] | components$1["schemas"]["ResearchPaperEntity"] | components$1["schemas"]["CustomEntity"];
|
|
928
|
+
};
|
|
929
|
+
};
|
|
871
930
|
/** Research Paper */
|
|
872
931
|
ResearchPaperEntity: {
|
|
873
932
|
/**
|
|
@@ -1384,6 +1443,17 @@ interface components$1 {
|
|
|
1384
1443
|
/** @description The reasoning for the estimate */
|
|
1385
1444
|
reasoning: string;
|
|
1386
1445
|
} | null;
|
|
1446
|
+
/** @description The scope of the search. By default, there is no scope - thus searching the web.
|
|
1447
|
+
*
|
|
1448
|
+
* If provided during creation, the search will only be performed on the sources provided. */
|
|
1449
|
+
scope: {
|
|
1450
|
+
id: string;
|
|
1451
|
+
/**
|
|
1452
|
+
* @default import
|
|
1453
|
+
* @enum {string}
|
|
1454
|
+
*/
|
|
1455
|
+
source: ScopeSourceType;
|
|
1456
|
+
}[];
|
|
1387
1457
|
/**
|
|
1388
1458
|
* WebsetSearchStatus
|
|
1389
1459
|
* @description The status of the search
|
|
@@ -1436,6 +1506,8 @@ type MonitorBehavior = components$1["schemas"]["MonitorBehavior"];
|
|
|
1436
1506
|
type MonitorCadence = components$1["schemas"]["MonitorCadence"];
|
|
1437
1507
|
type MonitorRun = components$1["schemas"]["MonitorRun"];
|
|
1438
1508
|
type PersonEntity = components$1["schemas"]["PersonEntity"];
|
|
1509
|
+
type PreviewWebsetParameters = components$1["schemas"]["PreviewWebsetParameters"];
|
|
1510
|
+
type PreviewWebsetResponse = components$1["schemas"]["PreviewWebsetResponse"];
|
|
1439
1511
|
type ResearchPaperEntity = components$1["schemas"]["ResearchPaperEntity"];
|
|
1440
1512
|
type UpdateImport = components$1["schemas"]["UpdateImport"];
|
|
1441
1513
|
type UpdateMonitor = components$1["schemas"]["UpdateMonitor"];
|
|
@@ -1490,10 +1562,18 @@ declare enum CreateWebsetParametersSearchExcludeSource {
|
|
|
1490
1562
|
import = "import",
|
|
1491
1563
|
webset = "webset"
|
|
1492
1564
|
}
|
|
1565
|
+
declare enum ScopeSourceType {
|
|
1566
|
+
import = "import",
|
|
1567
|
+
webset = "webset"
|
|
1568
|
+
}
|
|
1493
1569
|
declare enum CreateWebsetSearchParametersExcludeSource {
|
|
1494
1570
|
import = "import",
|
|
1495
1571
|
webset = "webset"
|
|
1496
1572
|
}
|
|
1573
|
+
declare enum CreateWebsetSearchParametersScopeSource {
|
|
1574
|
+
import = "import",
|
|
1575
|
+
webset = "webset"
|
|
1576
|
+
}
|
|
1497
1577
|
declare enum EnrichmentResultStatus {
|
|
1498
1578
|
pending = "pending",
|
|
1499
1579
|
completed = "completed",
|
|
@@ -1555,6 +1635,14 @@ declare enum MonitorRunType {
|
|
|
1555
1635
|
search = "search",
|
|
1556
1636
|
refresh = "refresh"
|
|
1557
1637
|
}
|
|
1638
|
+
declare enum PreviewWebsetResponseEnrichmentsFormat {
|
|
1639
|
+
text = "text",
|
|
1640
|
+
date = "date",
|
|
1641
|
+
number = "number",
|
|
1642
|
+
options = "options",
|
|
1643
|
+
email = "email",
|
|
1644
|
+
phone = "phone"
|
|
1645
|
+
}
|
|
1558
1646
|
declare enum UpdateMonitorStatus {
|
|
1559
1647
|
enabled = "enabled",
|
|
1560
1648
|
disabled = "disabled"
|
|
@@ -1582,6 +1670,7 @@ declare enum WebhookAttemptEventType {
|
|
|
1582
1670
|
}
|
|
1583
1671
|
declare enum WebsetStatus {
|
|
1584
1672
|
idle = "idle",
|
|
1673
|
+
pending = "pending",
|
|
1585
1674
|
running = "running",
|
|
1586
1675
|
paused = "paused"
|
|
1587
1676
|
}
|
|
@@ -1618,6 +1707,7 @@ declare enum WebsetSearchRecallExpectedConfidence {
|
|
|
1618
1707
|
}
|
|
1619
1708
|
declare enum WebsetSearchStatus {
|
|
1620
1709
|
created = "created",
|
|
1710
|
+
pending = "pending",
|
|
1621
1711
|
running = "running",
|
|
1622
1712
|
completed = "completed",
|
|
1623
1713
|
canceled = "canceled"
|
|
@@ -2106,6 +2196,12 @@ declare class WebsetsClient extends WebsetsBaseClient {
|
|
|
2106
2196
|
* @returns The created Webset
|
|
2107
2197
|
*/
|
|
2108
2198
|
create(params: CreateWebsetParameters): Promise<Webset>;
|
|
2199
|
+
/**
|
|
2200
|
+
* Preview a webset
|
|
2201
|
+
* @param params The preview parameters
|
|
2202
|
+
* @returns The preview response showing how the query will be decomposed
|
|
2203
|
+
*/
|
|
2204
|
+
preview(params: PreviewWebsetParameters): Promise<PreviewWebsetResponse>;
|
|
2109
2205
|
/**
|
|
2110
2206
|
* Get a Webset by ID
|
|
2111
2207
|
* @param id The ID of the Webset
|
|
@@ -3140,4 +3236,4 @@ declare class Exa {
|
|
|
3140
3236
|
private parseSSEStream;
|
|
3141
3237
|
}
|
|
3142
3238
|
|
|
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 };
|
|
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
|
@@ -292,6 +292,18 @@ 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
|
+
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
|
+
};
|
|
304
|
+
/** @enum {string} */
|
|
305
|
+
source: CreateWebsetSearchParametersScopeSource;
|
|
306
|
+
}[];
|
|
295
307
|
};
|
|
296
308
|
};
|
|
297
309
|
CreateWebsetSearchParameters: {
|
|
@@ -335,6 +347,18 @@ interface components$1 {
|
|
|
335
347
|
/** @description Whether to provide an estimate of how many total relevant results could exist for this search.
|
|
336
348
|
* Result of the analysis will be available in the `recall` field within the search request. */
|
|
337
349
|
recall?: boolean;
|
|
350
|
+
/** @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. */
|
|
351
|
+
scope?: {
|
|
352
|
+
/** @description The ID of the source to search. */
|
|
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
|
+
};
|
|
359
|
+
/** @enum {string} */
|
|
360
|
+
source: CreateWebsetSearchParametersScopeSource;
|
|
361
|
+
}[];
|
|
338
362
|
};
|
|
339
363
|
/** Custom */
|
|
340
364
|
CustomEntity: {
|
|
@@ -868,6 +892,41 @@ interface components$1 {
|
|
|
868
892
|
*/
|
|
869
893
|
type: "person";
|
|
870
894
|
};
|
|
895
|
+
PreviewWebsetParameters: {
|
|
896
|
+
/** @description Entity used to inform the decomposition.
|
|
897
|
+
*
|
|
898
|
+
* 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. */
|
|
899
|
+
entity?: components$1["schemas"]["Entity"];
|
|
900
|
+
/** @description Natural language search query describing what you are looking for.
|
|
901
|
+
*
|
|
902
|
+
* Be specific and descriptive about your requirements, characteristics, and any constraints that help narrow down the results. */
|
|
903
|
+
query: string;
|
|
904
|
+
};
|
|
905
|
+
PreviewWebsetResponse: {
|
|
906
|
+
/** @description Detected enrichments from the query. */
|
|
907
|
+
enrichments: {
|
|
908
|
+
/** @description Description of the enrichment. */
|
|
909
|
+
description: string;
|
|
910
|
+
/**
|
|
911
|
+
* @description Format of the enrichment.
|
|
912
|
+
* @enum {string}
|
|
913
|
+
*/
|
|
914
|
+
format: PreviewWebsetResponseEnrichmentsFormat;
|
|
915
|
+
/** @description When format is options, the options detected from the query. */
|
|
916
|
+
options?: {
|
|
917
|
+
/** @description Label of the option. */
|
|
918
|
+
label: string;
|
|
919
|
+
}[];
|
|
920
|
+
}[];
|
|
921
|
+
search: {
|
|
922
|
+
/** @description Detected criteria from the query. */
|
|
923
|
+
criteria: {
|
|
924
|
+
description: string;
|
|
925
|
+
}[];
|
|
926
|
+
/** @description Detected entity from the query. */
|
|
927
|
+
entity: components$1["schemas"]["CompanyEntity"] | components$1["schemas"]["PersonEntity"] | components$1["schemas"]["ArticleEntity"] | components$1["schemas"]["ResearchPaperEntity"] | components$1["schemas"]["CustomEntity"];
|
|
928
|
+
};
|
|
929
|
+
};
|
|
871
930
|
/** Research Paper */
|
|
872
931
|
ResearchPaperEntity: {
|
|
873
932
|
/**
|
|
@@ -1384,6 +1443,17 @@ interface components$1 {
|
|
|
1384
1443
|
/** @description The reasoning for the estimate */
|
|
1385
1444
|
reasoning: string;
|
|
1386
1445
|
} | null;
|
|
1446
|
+
/** @description The scope of the search. By default, there is no scope - thus searching the web.
|
|
1447
|
+
*
|
|
1448
|
+
* If provided during creation, the search will only be performed on the sources provided. */
|
|
1449
|
+
scope: {
|
|
1450
|
+
id: string;
|
|
1451
|
+
/**
|
|
1452
|
+
* @default import
|
|
1453
|
+
* @enum {string}
|
|
1454
|
+
*/
|
|
1455
|
+
source: ScopeSourceType;
|
|
1456
|
+
}[];
|
|
1387
1457
|
/**
|
|
1388
1458
|
* WebsetSearchStatus
|
|
1389
1459
|
* @description The status of the search
|
|
@@ -1436,6 +1506,8 @@ type MonitorBehavior = components$1["schemas"]["MonitorBehavior"];
|
|
|
1436
1506
|
type MonitorCadence = components$1["schemas"]["MonitorCadence"];
|
|
1437
1507
|
type MonitorRun = components$1["schemas"]["MonitorRun"];
|
|
1438
1508
|
type PersonEntity = components$1["schemas"]["PersonEntity"];
|
|
1509
|
+
type PreviewWebsetParameters = components$1["schemas"]["PreviewWebsetParameters"];
|
|
1510
|
+
type PreviewWebsetResponse = components$1["schemas"]["PreviewWebsetResponse"];
|
|
1439
1511
|
type ResearchPaperEntity = components$1["schemas"]["ResearchPaperEntity"];
|
|
1440
1512
|
type UpdateImport = components$1["schemas"]["UpdateImport"];
|
|
1441
1513
|
type UpdateMonitor = components$1["schemas"]["UpdateMonitor"];
|
|
@@ -1490,10 +1562,18 @@ declare enum CreateWebsetParametersSearchExcludeSource {
|
|
|
1490
1562
|
import = "import",
|
|
1491
1563
|
webset = "webset"
|
|
1492
1564
|
}
|
|
1565
|
+
declare enum ScopeSourceType {
|
|
1566
|
+
import = "import",
|
|
1567
|
+
webset = "webset"
|
|
1568
|
+
}
|
|
1493
1569
|
declare enum CreateWebsetSearchParametersExcludeSource {
|
|
1494
1570
|
import = "import",
|
|
1495
1571
|
webset = "webset"
|
|
1496
1572
|
}
|
|
1573
|
+
declare enum CreateWebsetSearchParametersScopeSource {
|
|
1574
|
+
import = "import",
|
|
1575
|
+
webset = "webset"
|
|
1576
|
+
}
|
|
1497
1577
|
declare enum EnrichmentResultStatus {
|
|
1498
1578
|
pending = "pending",
|
|
1499
1579
|
completed = "completed",
|
|
@@ -1555,6 +1635,14 @@ declare enum MonitorRunType {
|
|
|
1555
1635
|
search = "search",
|
|
1556
1636
|
refresh = "refresh"
|
|
1557
1637
|
}
|
|
1638
|
+
declare enum PreviewWebsetResponseEnrichmentsFormat {
|
|
1639
|
+
text = "text",
|
|
1640
|
+
date = "date",
|
|
1641
|
+
number = "number",
|
|
1642
|
+
options = "options",
|
|
1643
|
+
email = "email",
|
|
1644
|
+
phone = "phone"
|
|
1645
|
+
}
|
|
1558
1646
|
declare enum UpdateMonitorStatus {
|
|
1559
1647
|
enabled = "enabled",
|
|
1560
1648
|
disabled = "disabled"
|
|
@@ -1582,6 +1670,7 @@ declare enum WebhookAttemptEventType {
|
|
|
1582
1670
|
}
|
|
1583
1671
|
declare enum WebsetStatus {
|
|
1584
1672
|
idle = "idle",
|
|
1673
|
+
pending = "pending",
|
|
1585
1674
|
running = "running",
|
|
1586
1675
|
paused = "paused"
|
|
1587
1676
|
}
|
|
@@ -1618,6 +1707,7 @@ declare enum WebsetSearchRecallExpectedConfidence {
|
|
|
1618
1707
|
}
|
|
1619
1708
|
declare enum WebsetSearchStatus {
|
|
1620
1709
|
created = "created",
|
|
1710
|
+
pending = "pending",
|
|
1621
1711
|
running = "running",
|
|
1622
1712
|
completed = "completed",
|
|
1623
1713
|
canceled = "canceled"
|
|
@@ -2106,6 +2196,12 @@ declare class WebsetsClient extends WebsetsBaseClient {
|
|
|
2106
2196
|
* @returns The created Webset
|
|
2107
2197
|
*/
|
|
2108
2198
|
create(params: CreateWebsetParameters): Promise<Webset>;
|
|
2199
|
+
/**
|
|
2200
|
+
* Preview a webset
|
|
2201
|
+
* @param params The preview parameters
|
|
2202
|
+
* @returns The preview response showing how the query will be decomposed
|
|
2203
|
+
*/
|
|
2204
|
+
preview(params: PreviewWebsetParameters): Promise<PreviewWebsetResponse>;
|
|
2109
2205
|
/**
|
|
2110
2206
|
* Get a Webset by ID
|
|
2111
2207
|
* @param id The ID of the Webset
|
|
@@ -3140,4 +3236,4 @@ declare class Exa {
|
|
|
3140
3236
|
private parseSSEStream;
|
|
3141
3237
|
}
|
|
3142
3238
|
|
|
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 };
|
|
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,
|
|
@@ -50,7 +51,9 @@ __export(index_exports, {
|
|
|
50
51
|
MonitorRunStatus: () => MonitorRunStatus,
|
|
51
52
|
MonitorRunType: () => MonitorRunType,
|
|
52
53
|
MonitorStatus: () => MonitorStatus,
|
|
54
|
+
PreviewWebsetResponseEnrichmentsFormat: () => PreviewWebsetResponseEnrichmentsFormat,
|
|
53
55
|
ResearchClient: () => ResearchClient,
|
|
56
|
+
ScopeSourceType: () => ScopeSourceType,
|
|
54
57
|
UpdateMonitorStatus: () => UpdateMonitorStatus,
|
|
55
58
|
WebhookStatus: () => WebhookStatus,
|
|
56
59
|
WebsetEnrichmentFormat: () => WebsetEnrichmentFormat,
|
|
@@ -250,11 +253,21 @@ var CreateWebsetParametersSearchExcludeSource = /* @__PURE__ */ ((CreateWebsetPa
|
|
|
250
253
|
CreateWebsetParametersSearchExcludeSource2["webset"] = "webset";
|
|
251
254
|
return CreateWebsetParametersSearchExcludeSource2;
|
|
252
255
|
})(CreateWebsetParametersSearchExcludeSource || {});
|
|
256
|
+
var ScopeSourceType = /* @__PURE__ */ ((ScopeSourceType2) => {
|
|
257
|
+
ScopeSourceType2["import"] = "import";
|
|
258
|
+
ScopeSourceType2["webset"] = "webset";
|
|
259
|
+
return ScopeSourceType2;
|
|
260
|
+
})(ScopeSourceType || {});
|
|
253
261
|
var CreateWebsetSearchParametersExcludeSource = /* @__PURE__ */ ((CreateWebsetSearchParametersExcludeSource2) => {
|
|
254
262
|
CreateWebsetSearchParametersExcludeSource2["import"] = "import";
|
|
255
263
|
CreateWebsetSearchParametersExcludeSource2["webset"] = "webset";
|
|
256
264
|
return CreateWebsetSearchParametersExcludeSource2;
|
|
257
265
|
})(CreateWebsetSearchParametersExcludeSource || {});
|
|
266
|
+
var CreateWebsetSearchParametersScopeSource = /* @__PURE__ */ ((CreateWebsetSearchParametersScopeSource2) => {
|
|
267
|
+
CreateWebsetSearchParametersScopeSource2["import"] = "import";
|
|
268
|
+
CreateWebsetSearchParametersScopeSource2["webset"] = "webset";
|
|
269
|
+
return CreateWebsetSearchParametersScopeSource2;
|
|
270
|
+
})(CreateWebsetSearchParametersScopeSource || {});
|
|
258
271
|
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
259
272
|
EventType2["webset_created"] = "webset.created";
|
|
260
273
|
EventType2["webset_deleted"] = "webset.deleted";
|
|
@@ -321,6 +334,15 @@ var MonitorRunType = /* @__PURE__ */ ((MonitorRunType2) => {
|
|
|
321
334
|
MonitorRunType2["refresh"] = "refresh";
|
|
322
335
|
return MonitorRunType2;
|
|
323
336
|
})(MonitorRunType || {});
|
|
337
|
+
var PreviewWebsetResponseEnrichmentsFormat = /* @__PURE__ */ ((PreviewWebsetResponseEnrichmentsFormat2) => {
|
|
338
|
+
PreviewWebsetResponseEnrichmentsFormat2["text"] = "text";
|
|
339
|
+
PreviewWebsetResponseEnrichmentsFormat2["date"] = "date";
|
|
340
|
+
PreviewWebsetResponseEnrichmentsFormat2["number"] = "number";
|
|
341
|
+
PreviewWebsetResponseEnrichmentsFormat2["options"] = "options";
|
|
342
|
+
PreviewWebsetResponseEnrichmentsFormat2["email"] = "email";
|
|
343
|
+
PreviewWebsetResponseEnrichmentsFormat2["phone"] = "phone";
|
|
344
|
+
return PreviewWebsetResponseEnrichmentsFormat2;
|
|
345
|
+
})(PreviewWebsetResponseEnrichmentsFormat || {});
|
|
324
346
|
var UpdateMonitorStatus = /* @__PURE__ */ ((UpdateMonitorStatus2) => {
|
|
325
347
|
UpdateMonitorStatus2["enabled"] = "enabled";
|
|
326
348
|
UpdateMonitorStatus2["disabled"] = "disabled";
|
|
@@ -333,6 +355,7 @@ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
|
|
|
333
355
|
})(WebhookStatus || {});
|
|
334
356
|
var WebsetStatus = /* @__PURE__ */ ((WebsetStatus2) => {
|
|
335
357
|
WebsetStatus2["idle"] = "idle";
|
|
358
|
+
WebsetStatus2["pending"] = "pending";
|
|
336
359
|
WebsetStatus2["running"] = "running";
|
|
337
360
|
WebsetStatus2["paused"] = "paused";
|
|
338
361
|
return WebsetStatus2;
|
|
@@ -365,6 +388,7 @@ var WebsetItemEvaluationSatisfied = /* @__PURE__ */ ((WebsetItemEvaluationSatisf
|
|
|
365
388
|
})(WebsetItemEvaluationSatisfied || {});
|
|
366
389
|
var WebsetSearchStatus = /* @__PURE__ */ ((WebsetSearchStatus2) => {
|
|
367
390
|
WebsetSearchStatus2["created"] = "created";
|
|
391
|
+
WebsetSearchStatus2["pending"] = "pending";
|
|
368
392
|
WebsetSearchStatus2["running"] = "running";
|
|
369
393
|
WebsetSearchStatus2["completed"] = "completed";
|
|
370
394
|
WebsetSearchStatus2["canceled"] = "canceled";
|
|
@@ -902,6 +926,14 @@ var WebsetsClient = class extends WebsetsBaseClient {
|
|
|
902
926
|
async create(params) {
|
|
903
927
|
return this.request("/v0/websets", "POST", params);
|
|
904
928
|
}
|
|
929
|
+
/**
|
|
930
|
+
* Preview a webset
|
|
931
|
+
* @param params The preview parameters
|
|
932
|
+
* @returns The preview response showing how the query will be decomposed
|
|
933
|
+
*/
|
|
934
|
+
async preview(params) {
|
|
935
|
+
return this.request("/v0/websets/preview", "POST", params);
|
|
936
|
+
}
|
|
905
937
|
/**
|
|
906
938
|
* Get a Webset by ID
|
|
907
939
|
* @param id The ID of the Webset
|
|
@@ -1639,6 +1671,7 @@ var index_default = Exa2;
|
|
|
1639
1671
|
CreateWebsetParametersImportSource,
|
|
1640
1672
|
CreateWebsetParametersSearchExcludeSource,
|
|
1641
1673
|
CreateWebsetSearchParametersExcludeSource,
|
|
1674
|
+
CreateWebsetSearchParametersScopeSource,
|
|
1642
1675
|
EventType,
|
|
1643
1676
|
EventsClient,
|
|
1644
1677
|
Exa,
|
|
@@ -1654,7 +1687,9 @@ var index_default = Exa2;
|
|
|
1654
1687
|
MonitorRunStatus,
|
|
1655
1688
|
MonitorRunType,
|
|
1656
1689
|
MonitorStatus,
|
|
1690
|
+
PreviewWebsetResponseEnrichmentsFormat,
|
|
1657
1691
|
ResearchClient,
|
|
1692
|
+
ScopeSourceType,
|
|
1658
1693
|
UpdateMonitorStatus,
|
|
1659
1694
|
WebhookStatus,
|
|
1660
1695
|
WebsetEnrichmentFormat,
|