exa-js 1.8.17 → 1.8.18

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
@@ -287,6 +287,8 @@ interface components$1 {
287
287
  *
288
288
  * Any URLs provided will be crawled and used as additional context for the search. */
289
289
  query: string;
290
+ /** @description Whether to compute recall metrics for the search */
291
+ recall?: boolean;
290
292
  };
291
293
  };
292
294
  CreateWebsetSearchParameters: {
@@ -327,12 +329,11 @@ interface components$1 {
327
329
  *
328
330
  * Any URLs provided will be crawled and used as additional context for the search. */
329
331
  query: string;
332
+ /** @description Whether to compute recall metrics for the search */
333
+ recall?: boolean;
330
334
  };
331
335
  /** Custom */
332
336
  CustomEntity: {
333
- /** @description When you decide to use a custom entity, this is the description of the entity.
334
- *
335
- * The entity represents what type of results the will return. For example, if you want results to be Job Postings, you might use "Job Postings" as the entity description. */
336
337
  description: string;
337
338
  /**
338
339
  * @default custom
@@ -362,6 +363,11 @@ interface components$1 {
362
363
  }[];
363
364
  /** @description The result of the enrichment. */
364
365
  result: string[] | null;
366
+ /**
367
+ * @description The status of the enrichment result.
368
+ * @enum {string}
369
+ */
370
+ status: EnrichmentResultStatus;
365
371
  };
366
372
  Entity: components$1["schemas"]["CompanyEntity"] | components$1["schemas"]["PersonEntity"] | components$1["schemas"]["ArticleEntity"] | components$1["schemas"]["ResearchPaperEntity"] | components$1["schemas"]["CustomEntity"];
367
373
  /** Event */
@@ -557,6 +563,7 @@ interface components$1 {
557
563
  type: "webset.search.completed";
558
564
  };
559
565
  /** @enum {string} */
566
+ EventType: EventType;
560
567
  GetWebsetResponse: components$1["schemas"]["Webset"] & {
561
568
  /** @description When expand query parameter contains `items`, this will contain the items in the webset */
562
569
  items?: components$1["schemas"]["WebsetItem"][];
@@ -1332,13 +1339,37 @@ interface components$1 {
1332
1339
  object: "webset_search";
1333
1340
  /** @description The progress of the search */
1334
1341
  progress: {
1342
+ /** @description The number of results analyzed so far */
1343
+ analyzed: number;
1335
1344
  /** @description The completion percentage of the search */
1336
1345
  completion: number;
1337
1346
  /** @description The number of results found so far */
1338
1347
  found: number;
1348
+ /** @description The estimated time remaining in seconds, null if unknown */
1349
+ timeLeft: number | null;
1339
1350
  };
1340
1351
  /** @description The query used to create the search. */
1341
1352
  query: string;
1353
+ /** @description Recall metrics for the search, null if not yet computed or requested. */
1354
+ recall: {
1355
+ expected: {
1356
+ bounds: {
1357
+ /** @description The maximum estimated total number of potential matches */
1358
+ max: number;
1359
+ /** @description The minimum estimated total number of potential matches */
1360
+ min: number;
1361
+ };
1362
+ /**
1363
+ * @description The confidence in the estimate
1364
+ * @enum {string}
1365
+ */
1366
+ confidence: WebsetSearchRecallExpectedConfidence;
1367
+ /** @description The estimated total number of potential matches */
1368
+ total: number;
1369
+ };
1370
+ /** @description The reasoning for the estimate */
1371
+ reasoning: string;
1372
+ } | null;
1342
1373
  /**
1343
1374
  * WebsetSearchStatus
1344
1375
  * @description The status of the search
@@ -1449,6 +1480,11 @@ declare enum CreateWebsetSearchParametersExcludeSource {
1449
1480
  import = "import",
1450
1481
  webset = "webset"
1451
1482
  }
1483
+ declare enum EnrichmentResultStatus {
1484
+ pending = "pending",
1485
+ completed = "completed",
1486
+ canceled = "canceled"
1487
+ }
1452
1488
  declare enum EventType {
1453
1489
  webset_created = "webset.created",
1454
1490
  webset_deleted = "webset.deleted",
@@ -1564,6 +1600,11 @@ declare enum WebsetSearchExcludeSource {
1564
1600
  import = "import",
1565
1601
  webset = "webset"
1566
1602
  }
1603
+ declare enum WebsetSearchRecallExpectedConfidence {
1604
+ high = "high",
1605
+ medium = "medium",
1606
+ low = "low"
1607
+ }
1567
1608
  declare enum WebsetSearchStatus {
1568
1609
  created = "created",
1569
1610
  running = "running",
package/dist/index.d.ts CHANGED
@@ -287,6 +287,8 @@ interface components$1 {
287
287
  *
288
288
  * Any URLs provided will be crawled and used as additional context for the search. */
289
289
  query: string;
290
+ /** @description Whether to compute recall metrics for the search */
291
+ recall?: boolean;
290
292
  };
291
293
  };
292
294
  CreateWebsetSearchParameters: {
@@ -327,12 +329,11 @@ interface components$1 {
327
329
  *
328
330
  * Any URLs provided will be crawled and used as additional context for the search. */
329
331
  query: string;
332
+ /** @description Whether to compute recall metrics for the search */
333
+ recall?: boolean;
330
334
  };
331
335
  /** Custom */
332
336
  CustomEntity: {
333
- /** @description When you decide to use a custom entity, this is the description of the entity.
334
- *
335
- * The entity represents what type of results the will return. For example, if you want results to be Job Postings, you might use "Job Postings" as the entity description. */
336
337
  description: string;
337
338
  /**
338
339
  * @default custom
@@ -362,6 +363,11 @@ interface components$1 {
362
363
  }[];
363
364
  /** @description The result of the enrichment. */
364
365
  result: string[] | null;
366
+ /**
367
+ * @description The status of the enrichment result.
368
+ * @enum {string}
369
+ */
370
+ status: EnrichmentResultStatus;
365
371
  };
366
372
  Entity: components$1["schemas"]["CompanyEntity"] | components$1["schemas"]["PersonEntity"] | components$1["schemas"]["ArticleEntity"] | components$1["schemas"]["ResearchPaperEntity"] | components$1["schemas"]["CustomEntity"];
367
373
  /** Event */
@@ -557,6 +563,7 @@ interface components$1 {
557
563
  type: "webset.search.completed";
558
564
  };
559
565
  /** @enum {string} */
566
+ EventType: EventType;
560
567
  GetWebsetResponse: components$1["schemas"]["Webset"] & {
561
568
  /** @description When expand query parameter contains `items`, this will contain the items in the webset */
562
569
  items?: components$1["schemas"]["WebsetItem"][];
@@ -1332,13 +1339,37 @@ interface components$1 {
1332
1339
  object: "webset_search";
1333
1340
  /** @description The progress of the search */
1334
1341
  progress: {
1342
+ /** @description The number of results analyzed so far */
1343
+ analyzed: number;
1335
1344
  /** @description The completion percentage of the search */
1336
1345
  completion: number;
1337
1346
  /** @description The number of results found so far */
1338
1347
  found: number;
1348
+ /** @description The estimated time remaining in seconds, null if unknown */
1349
+ timeLeft: number | null;
1339
1350
  };
1340
1351
  /** @description The query used to create the search. */
1341
1352
  query: string;
1353
+ /** @description Recall metrics for the search, null if not yet computed or requested. */
1354
+ recall: {
1355
+ expected: {
1356
+ bounds: {
1357
+ /** @description The maximum estimated total number of potential matches */
1358
+ max: number;
1359
+ /** @description The minimum estimated total number of potential matches */
1360
+ min: number;
1361
+ };
1362
+ /**
1363
+ * @description The confidence in the estimate
1364
+ * @enum {string}
1365
+ */
1366
+ confidence: WebsetSearchRecallExpectedConfidence;
1367
+ /** @description The estimated total number of potential matches */
1368
+ total: number;
1369
+ };
1370
+ /** @description The reasoning for the estimate */
1371
+ reasoning: string;
1372
+ } | null;
1342
1373
  /**
1343
1374
  * WebsetSearchStatus
1344
1375
  * @description The status of the search
@@ -1449,6 +1480,11 @@ declare enum CreateWebsetSearchParametersExcludeSource {
1449
1480
  import = "import",
1450
1481
  webset = "webset"
1451
1482
  }
1483
+ declare enum EnrichmentResultStatus {
1484
+ pending = "pending",
1485
+ completed = "completed",
1486
+ canceled = "canceled"
1487
+ }
1452
1488
  declare enum EventType {
1453
1489
  webset_created = "webset.created",
1454
1490
  webset_deleted = "webset.deleted",
@@ -1564,6 +1600,11 @@ declare enum WebsetSearchExcludeSource {
1564
1600
  import = "import",
1565
1601
  webset = "webset"
1566
1602
  }
1603
+ declare enum WebsetSearchRecallExpectedConfidence {
1604
+ high = "high",
1605
+ medium = "medium",
1606
+ low = "low"
1607
+ }
1567
1608
  declare enum WebsetSearchStatus {
1568
1609
  created = "created",
1569
1610
  running = "running",