exa-js 2.0.3 → 2.0.6
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 +22 -3
- package/dist/index.d.ts +22 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -771,7 +771,7 @@ interface components {
|
|
|
771
771
|
*
|
|
772
772
|
* You can use this to reference the Webset by your own internal identifiers. */
|
|
773
773
|
externalId?: string;
|
|
774
|
-
/** @description
|
|
774
|
+
/** @description Attach/load data from existing Imports or Websets into this Webset. For CSV Imports, this schedules ingestion and creates a staging pool of items (ImportItems do not automatically appear as Webset Items; searches create Webset Items). This does not filter searches. To filter a search to only look within an Import or Webset, use search.scope instead. */
|
|
775
775
|
import?: {
|
|
776
776
|
/** @description The ID of the source to search. */
|
|
777
777
|
id: string;
|
|
@@ -815,13 +815,14 @@ interface components {
|
|
|
815
815
|
/** @description Whether to provide an estimate of how many total relevant results could exist for this search.
|
|
816
816
|
* Result of the analysis will be available in the `recall` field within the search request. */
|
|
817
817
|
recall?: boolean;
|
|
818
|
-
/** @description Limit
|
|
818
|
+
/** @description Limit this search to only consider candidates from the listed sources (existing Imports or Websets). Scope applies per-search; if you run another search and want to stay within the same dataset, pass scope again. When scope is present, the search behavior is OVERRIDE (replaces results rather than appending). Note: Using the same Import in both top-level import and search.scope will return a 400 error. */
|
|
819
819
|
scope?: {
|
|
820
820
|
/** @description The ID of the source to search. */
|
|
821
821
|
id: string;
|
|
822
822
|
relationship?: {
|
|
823
|
-
/** @description What the relationship of the entities you hope to find is relative to the entities contained in the provided source. */
|
|
823
|
+
/** @description What the relationship of the entities you hope to find is relative to the entities contained in the provided source. Only needed for hop searches (graph traversal) from the source entities to related targets. Examples: "investors of", "current employer", "employees at". Omit for simple filtering within the source. */
|
|
824
824
|
definition: string;
|
|
825
|
+
/** @description Number of related entities to find per source entity (fanout). Only used for hop searches. Range: 1-10. */
|
|
825
826
|
limit: number;
|
|
826
827
|
};
|
|
827
828
|
/** @enum {string} */
|
|
@@ -1550,6 +1551,11 @@ interface components {
|
|
|
1550
1551
|
};
|
|
1551
1552
|
PreviewWebsetParameters: {
|
|
1552
1553
|
search: {
|
|
1554
|
+
/**
|
|
1555
|
+
* @description When query parameter search=true, the number of preview items to return.
|
|
1556
|
+
* @default 10
|
|
1557
|
+
*/
|
|
1558
|
+
count: number;
|
|
1553
1559
|
/** @description Entity used to inform the decomposition.
|
|
1554
1560
|
*
|
|
1555
1561
|
* 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. */
|
|
@@ -1576,6 +1582,8 @@ interface components {
|
|
|
1576
1582
|
label: string;
|
|
1577
1583
|
}[];
|
|
1578
1584
|
}[];
|
|
1585
|
+
/** @description Preview items matching the search criteria. */
|
|
1586
|
+
items: components["schemas"]["WebsetItemPreview"][];
|
|
1579
1587
|
search: {
|
|
1580
1588
|
/** @description Detected criteria from the query. */
|
|
1581
1589
|
criteria: {
|
|
@@ -2013,6 +2021,17 @@ interface components {
|
|
|
2013
2021
|
*/
|
|
2014
2022
|
url: string;
|
|
2015
2023
|
};
|
|
2024
|
+
WebsetItemPreview: {
|
|
2025
|
+
/**
|
|
2026
|
+
* Format: date-time
|
|
2027
|
+
* @description The date and time the preview was created
|
|
2028
|
+
*/
|
|
2029
|
+
createdAt: string;
|
|
2030
|
+
/** @description The unique identifier for the preview item */
|
|
2031
|
+
id: string;
|
|
2032
|
+
/** @description The properties of the preview item */
|
|
2033
|
+
properties: components["schemas"]["WebsetItemPersonProperties"] | components["schemas"]["WebsetItemCompanyProperties"] | components["schemas"]["WebsetItemArticleProperties"] | components["schemas"]["WebsetItemResearchPaperProperties"] | components["schemas"]["WebsetItemCustomProperties"];
|
|
2034
|
+
};
|
|
2016
2035
|
WebsetItemResearchPaperProperties: {
|
|
2017
2036
|
/** @description The text content of the research paper */
|
|
2018
2037
|
content: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -771,7 +771,7 @@ interface components {
|
|
|
771
771
|
*
|
|
772
772
|
* You can use this to reference the Webset by your own internal identifiers. */
|
|
773
773
|
externalId?: string;
|
|
774
|
-
/** @description
|
|
774
|
+
/** @description Attach/load data from existing Imports or Websets into this Webset. For CSV Imports, this schedules ingestion and creates a staging pool of items (ImportItems do not automatically appear as Webset Items; searches create Webset Items). This does not filter searches. To filter a search to only look within an Import or Webset, use search.scope instead. */
|
|
775
775
|
import?: {
|
|
776
776
|
/** @description The ID of the source to search. */
|
|
777
777
|
id: string;
|
|
@@ -815,13 +815,14 @@ interface components {
|
|
|
815
815
|
/** @description Whether to provide an estimate of how many total relevant results could exist for this search.
|
|
816
816
|
* Result of the analysis will be available in the `recall` field within the search request. */
|
|
817
817
|
recall?: boolean;
|
|
818
|
-
/** @description Limit
|
|
818
|
+
/** @description Limit this search to only consider candidates from the listed sources (existing Imports or Websets). Scope applies per-search; if you run another search and want to stay within the same dataset, pass scope again. When scope is present, the search behavior is OVERRIDE (replaces results rather than appending). Note: Using the same Import in both top-level import and search.scope will return a 400 error. */
|
|
819
819
|
scope?: {
|
|
820
820
|
/** @description The ID of the source to search. */
|
|
821
821
|
id: string;
|
|
822
822
|
relationship?: {
|
|
823
|
-
/** @description What the relationship of the entities you hope to find is relative to the entities contained in the provided source. */
|
|
823
|
+
/** @description What the relationship of the entities you hope to find is relative to the entities contained in the provided source. Only needed for hop searches (graph traversal) from the source entities to related targets. Examples: "investors of", "current employer", "employees at". Omit for simple filtering within the source. */
|
|
824
824
|
definition: string;
|
|
825
|
+
/** @description Number of related entities to find per source entity (fanout). Only used for hop searches. Range: 1-10. */
|
|
825
826
|
limit: number;
|
|
826
827
|
};
|
|
827
828
|
/** @enum {string} */
|
|
@@ -1550,6 +1551,11 @@ interface components {
|
|
|
1550
1551
|
};
|
|
1551
1552
|
PreviewWebsetParameters: {
|
|
1552
1553
|
search: {
|
|
1554
|
+
/**
|
|
1555
|
+
* @description When query parameter search=true, the number of preview items to return.
|
|
1556
|
+
* @default 10
|
|
1557
|
+
*/
|
|
1558
|
+
count: number;
|
|
1553
1559
|
/** @description Entity used to inform the decomposition.
|
|
1554
1560
|
*
|
|
1555
1561
|
* 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. */
|
|
@@ -1576,6 +1582,8 @@ interface components {
|
|
|
1576
1582
|
label: string;
|
|
1577
1583
|
}[];
|
|
1578
1584
|
}[];
|
|
1585
|
+
/** @description Preview items matching the search criteria. */
|
|
1586
|
+
items: components["schemas"]["WebsetItemPreview"][];
|
|
1579
1587
|
search: {
|
|
1580
1588
|
/** @description Detected criteria from the query. */
|
|
1581
1589
|
criteria: {
|
|
@@ -2013,6 +2021,17 @@ interface components {
|
|
|
2013
2021
|
*/
|
|
2014
2022
|
url: string;
|
|
2015
2023
|
};
|
|
2024
|
+
WebsetItemPreview: {
|
|
2025
|
+
/**
|
|
2026
|
+
* Format: date-time
|
|
2027
|
+
* @description The date and time the preview was created
|
|
2028
|
+
*/
|
|
2029
|
+
createdAt: string;
|
|
2030
|
+
/** @description The unique identifier for the preview item */
|
|
2031
|
+
id: string;
|
|
2032
|
+
/** @description The properties of the preview item */
|
|
2033
|
+
properties: components["schemas"]["WebsetItemPersonProperties"] | components["schemas"]["WebsetItemCompanyProperties"] | components["schemas"]["WebsetItemArticleProperties"] | components["schemas"]["WebsetItemResearchPaperProperties"] | components["schemas"]["WebsetItemCustomProperties"];
|
|
2034
|
+
};
|
|
2016
2035
|
WebsetItemResearchPaperProperties: {
|
|
2017
2036
|
/** @description The text content of the research paper */
|
|
2018
2037
|
content: string | null;
|
package/dist/index.js
CHANGED