exa-js 1.8.10 → 1.8.11

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
@@ -1749,7 +1749,7 @@ declare class ResearchClient extends ResearchBaseClient {
1749
1749
  */
1750
1750
  createTask(params: {
1751
1751
  instructions: string;
1752
- model?: ResearchCreateOpenAIResponseDtoModel;
1752
+ model?: "exa-research" | "exa-research-pro" | ResearchCreateOpenAIResponseDtoModel;
1753
1753
  output?: {
1754
1754
  inferSchema?: boolean;
1755
1755
  schema?: JSONSchema;
@@ -1771,7 +1771,7 @@ declare class ResearchClient extends ResearchBaseClient {
1771
1771
  }): Promise<SchemaResearchTaskDto>;
1772
1772
  getTask(id: string, options: {
1773
1773
  stream: true;
1774
- }): Promise<AsyncGenerator<ResearchTaskEventDtoType, any, any>>;
1774
+ }): Promise<AsyncGenerator<ResearchTaskEvent, any, any>>;
1775
1775
  /**
1776
1776
  * @deprecated This method is deprecated and may be removed in a future release.
1777
1777
  * @see getTask(id, {stream: true})
@@ -1943,48 +1943,52 @@ interface components {
1943
1943
  timeMs?: number;
1944
1944
  };
1945
1945
  ResearchTaskEventDto: {
1946
- stepId: string;
1947
- /** @description Agent generated plan or reasoning for upcoming actions. */
1948
- text: string;
1949
- /** @enum {string} */
1950
- type: ResearchTaskDtoOperationsType;
1951
- } | {
1952
- /** @description A completed subfield */
1953
- data: {
1954
- [key: string]: unknown;
1955
- };
1956
- stepId: string;
1957
- /** @enum {string} */
1958
- type: ResearchTaskDtoOperationsType;
1959
- } | {
1960
- /** @description What the agent hopes to find with this search query */
1961
- goal?: string;
1962
- /** @description Search query used */
1963
- query: string;
1964
- results?: {
1965
- id: string;
1966
- snippet: string;
1967
- title?: string;
1946
+ operation: {
1947
+ stepId: string;
1948
+ /** @description Agent generated plan or reasoning for upcoming actions. */
1949
+ text: string;
1950
+ /** @enum {string} */
1951
+ type: ResearchTaskDtoOperationsType;
1952
+ } | {
1953
+ /** @description A completed subfield */
1954
+ data: {
1955
+ [key: string]: unknown;
1956
+ };
1957
+ stepId: string;
1958
+ /** @enum {string} */
1959
+ type: ResearchTaskDtoOperationsType;
1960
+ } | {
1961
+ /** @description What the agent hopes to find with this search query */
1962
+ goal?: string;
1963
+ /** @description Search query used */
1964
+ query: string;
1965
+ results?: {
1966
+ id: string;
1967
+ snippet: string;
1968
+ title?: string;
1969
+ url: string;
1970
+ /** @enum {number} */
1971
+ version: ResearchTaskDtoOperationsResultsVersion;
1972
+ }[];
1973
+ stepId: string;
1974
+ /** @enum {string} */
1975
+ type: ResearchTaskDtoOperationsType;
1976
+ } | {
1977
+ /** @description What the agent hopes to find with this crawl */
1978
+ goal?: string;
1979
+ stepId: string;
1980
+ /** @enum {string} */
1981
+ type: ResearchTaskDtoOperationsType;
1968
1982
  url: string;
1969
- /** @enum {number} */
1970
- version: ResearchTaskDtoOperationsResultsVersion;
1971
- }[];
1972
- stepId: string;
1973
- /** @enum {string} */
1974
- type: ResearchTaskDtoOperationsType;
1975
- } | {
1976
- /** @description What the agent hopes to find with this crawl */
1977
- goal?: string;
1978
- stepId: string;
1979
- /** @enum {string} */
1980
- type: ResearchTaskDtoOperationsType;
1981
- url: string;
1982
- } | {
1983
- stepId: string;
1984
- /** @description Intermediate chain-of-thought style reasoning output */
1985
- thought: string;
1983
+ } | {
1984
+ stepId: string;
1985
+ /** @description Intermediate chain-of-thought style reasoning output */
1986
+ thought: string;
1987
+ /** @enum {string} */
1988
+ type: ResearchTaskDtoOperationsType;
1989
+ };
1986
1990
  /** @enum {string} */
1987
- type: ResearchTaskDtoOperationsType;
1991
+ type: ResearchTaskEventDtoType;
1988
1992
  } | {
1989
1993
  task: {
1990
1994
  /** @description Citations grouped by the root field they were used in */
@@ -2074,6 +2078,50 @@ interface components {
2074
2078
  /** @enum {string} */
2075
2079
  type: ResearchTaskEventDtoType;
2076
2080
  };
2081
+ ResearchTaskOperationDto: {
2082
+ stepId: string;
2083
+ /** @description Agent generated plan or reasoning for upcoming actions. */
2084
+ text: string;
2085
+ /** @enum {string} */
2086
+ type: ResearchTaskDtoOperationsType;
2087
+ } | {
2088
+ /** @description A completed subfield */
2089
+ data: {
2090
+ [key: string]: unknown;
2091
+ };
2092
+ stepId: string;
2093
+ /** @enum {string} */
2094
+ type: ResearchTaskDtoOperationsType;
2095
+ } | {
2096
+ /** @description What the agent hopes to find with this search query */
2097
+ goal?: string;
2098
+ /** @description Search query used */
2099
+ query: string;
2100
+ results?: {
2101
+ id: string;
2102
+ snippet: string;
2103
+ title?: string;
2104
+ url: string;
2105
+ /** @enum {number} */
2106
+ version: ResearchTaskDtoOperationsResultsVersion;
2107
+ }[];
2108
+ stepId: string;
2109
+ /** @enum {string} */
2110
+ type: ResearchTaskDtoOperationsType;
2111
+ } | {
2112
+ /** @description What the agent hopes to find with this crawl */
2113
+ goal?: string;
2114
+ stepId: string;
2115
+ /** @enum {string} */
2116
+ type: ResearchTaskDtoOperationsType;
2117
+ url: string;
2118
+ } | {
2119
+ stepId: string;
2120
+ /** @description Intermediate chain-of-thought style reasoning output */
2121
+ thought: string;
2122
+ /** @enum {string} */
2123
+ type: ResearchTaskDtoOperationsType;
2124
+ };
2077
2125
  };
2078
2126
  responses: never;
2079
2127
  parameters: never;
@@ -2119,10 +2167,16 @@ declare enum ResearchTaskDtoStatus {
2119
2167
  completed = "completed",
2120
2168
  failed = "failed"
2121
2169
  }
2170
+ declare enum ResearchTaskEventDtoType {
2171
+ operation = "operation"
2172
+ }
2122
2173
  declare enum ResearchTaskEventDtoType {
2123
2174
  completed = "completed"
2124
2175
  }
2125
2176
 
2177
+ type ResearchTaskEvent = components["schemas"]["ResearchTaskEventDto"];
2178
+ type ResearchTaskOperation = SchemaResearchTaskDto["operations"][0];
2179
+
2126
2180
  /**
2127
2181
  * HTTP status codes
2128
2182
  */
@@ -2619,4 +2673,4 @@ declare class Exa {
2619
2673
  private parseSSEStream;
2620
2674
  }
2621
2675
 
2622
- export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehaviorRefresh, type MonitorBehaviorSearch, type MonitorCadence, MonitorObject, type MonitorRefreshBehaviorContentsConfig, type MonitorRefreshBehaviorEnrichmentsConfig, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type RegularSearchOptions, ResearchClient, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, ResearchTaskEventDtoType as ResearchEvent, ResearchCreateOpenAIResponseDtoModel as ResearchModel, ResearchTaskDtoStatus as ResearchStatus, type SchemaResearchTaskDto as ResearchTask, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetArticleEntity, type WebsetCompanyEntity, type WebsetCustomEntity, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetEntity, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetPersonEntity, type WebsetResearchPaperEntity, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
2676
+ export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehaviorRefresh, type MonitorBehaviorSearch, type MonitorCadence, MonitorObject, type MonitorRefreshBehaviorContentsConfig, type MonitorRefreshBehaviorEnrichmentsConfig, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type RegularSearchOptions, ResearchClient, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, type SchemaResearchTaskDto as ResearchTask, type ResearchTaskEvent, ResearchTaskEventDtoType as ResearchTaskEventType, ResearchCreateOpenAIResponseDtoModel as ResearchTaskModel, type ResearchTaskOperation, ResearchTaskDtoOperationsType as ResearchTaskOperationType, ResearchTaskDtoStatus as ResearchTaskStatus, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetArticleEntity, type WebsetCompanyEntity, type WebsetCustomEntity, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetEntity, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetPersonEntity, type WebsetResearchPaperEntity, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
package/dist/index.d.ts CHANGED
@@ -1749,7 +1749,7 @@ declare class ResearchClient extends ResearchBaseClient {
1749
1749
  */
1750
1750
  createTask(params: {
1751
1751
  instructions: string;
1752
- model?: ResearchCreateOpenAIResponseDtoModel;
1752
+ model?: "exa-research" | "exa-research-pro" | ResearchCreateOpenAIResponseDtoModel;
1753
1753
  output?: {
1754
1754
  inferSchema?: boolean;
1755
1755
  schema?: JSONSchema;
@@ -1771,7 +1771,7 @@ declare class ResearchClient extends ResearchBaseClient {
1771
1771
  }): Promise<SchemaResearchTaskDto>;
1772
1772
  getTask(id: string, options: {
1773
1773
  stream: true;
1774
- }): Promise<AsyncGenerator<ResearchTaskEventDtoType, any, any>>;
1774
+ }): Promise<AsyncGenerator<ResearchTaskEvent, any, any>>;
1775
1775
  /**
1776
1776
  * @deprecated This method is deprecated and may be removed in a future release.
1777
1777
  * @see getTask(id, {stream: true})
@@ -1943,48 +1943,52 @@ interface components {
1943
1943
  timeMs?: number;
1944
1944
  };
1945
1945
  ResearchTaskEventDto: {
1946
- stepId: string;
1947
- /** @description Agent generated plan or reasoning for upcoming actions. */
1948
- text: string;
1949
- /** @enum {string} */
1950
- type: ResearchTaskDtoOperationsType;
1951
- } | {
1952
- /** @description A completed subfield */
1953
- data: {
1954
- [key: string]: unknown;
1955
- };
1956
- stepId: string;
1957
- /** @enum {string} */
1958
- type: ResearchTaskDtoOperationsType;
1959
- } | {
1960
- /** @description What the agent hopes to find with this search query */
1961
- goal?: string;
1962
- /** @description Search query used */
1963
- query: string;
1964
- results?: {
1965
- id: string;
1966
- snippet: string;
1967
- title?: string;
1946
+ operation: {
1947
+ stepId: string;
1948
+ /** @description Agent generated plan or reasoning for upcoming actions. */
1949
+ text: string;
1950
+ /** @enum {string} */
1951
+ type: ResearchTaskDtoOperationsType;
1952
+ } | {
1953
+ /** @description A completed subfield */
1954
+ data: {
1955
+ [key: string]: unknown;
1956
+ };
1957
+ stepId: string;
1958
+ /** @enum {string} */
1959
+ type: ResearchTaskDtoOperationsType;
1960
+ } | {
1961
+ /** @description What the agent hopes to find with this search query */
1962
+ goal?: string;
1963
+ /** @description Search query used */
1964
+ query: string;
1965
+ results?: {
1966
+ id: string;
1967
+ snippet: string;
1968
+ title?: string;
1969
+ url: string;
1970
+ /** @enum {number} */
1971
+ version: ResearchTaskDtoOperationsResultsVersion;
1972
+ }[];
1973
+ stepId: string;
1974
+ /** @enum {string} */
1975
+ type: ResearchTaskDtoOperationsType;
1976
+ } | {
1977
+ /** @description What the agent hopes to find with this crawl */
1978
+ goal?: string;
1979
+ stepId: string;
1980
+ /** @enum {string} */
1981
+ type: ResearchTaskDtoOperationsType;
1968
1982
  url: string;
1969
- /** @enum {number} */
1970
- version: ResearchTaskDtoOperationsResultsVersion;
1971
- }[];
1972
- stepId: string;
1973
- /** @enum {string} */
1974
- type: ResearchTaskDtoOperationsType;
1975
- } | {
1976
- /** @description What the agent hopes to find with this crawl */
1977
- goal?: string;
1978
- stepId: string;
1979
- /** @enum {string} */
1980
- type: ResearchTaskDtoOperationsType;
1981
- url: string;
1982
- } | {
1983
- stepId: string;
1984
- /** @description Intermediate chain-of-thought style reasoning output */
1985
- thought: string;
1983
+ } | {
1984
+ stepId: string;
1985
+ /** @description Intermediate chain-of-thought style reasoning output */
1986
+ thought: string;
1987
+ /** @enum {string} */
1988
+ type: ResearchTaskDtoOperationsType;
1989
+ };
1986
1990
  /** @enum {string} */
1987
- type: ResearchTaskDtoOperationsType;
1991
+ type: ResearchTaskEventDtoType;
1988
1992
  } | {
1989
1993
  task: {
1990
1994
  /** @description Citations grouped by the root field they were used in */
@@ -2074,6 +2078,50 @@ interface components {
2074
2078
  /** @enum {string} */
2075
2079
  type: ResearchTaskEventDtoType;
2076
2080
  };
2081
+ ResearchTaskOperationDto: {
2082
+ stepId: string;
2083
+ /** @description Agent generated plan or reasoning for upcoming actions. */
2084
+ text: string;
2085
+ /** @enum {string} */
2086
+ type: ResearchTaskDtoOperationsType;
2087
+ } | {
2088
+ /** @description A completed subfield */
2089
+ data: {
2090
+ [key: string]: unknown;
2091
+ };
2092
+ stepId: string;
2093
+ /** @enum {string} */
2094
+ type: ResearchTaskDtoOperationsType;
2095
+ } | {
2096
+ /** @description What the agent hopes to find with this search query */
2097
+ goal?: string;
2098
+ /** @description Search query used */
2099
+ query: string;
2100
+ results?: {
2101
+ id: string;
2102
+ snippet: string;
2103
+ title?: string;
2104
+ url: string;
2105
+ /** @enum {number} */
2106
+ version: ResearchTaskDtoOperationsResultsVersion;
2107
+ }[];
2108
+ stepId: string;
2109
+ /** @enum {string} */
2110
+ type: ResearchTaskDtoOperationsType;
2111
+ } | {
2112
+ /** @description What the agent hopes to find with this crawl */
2113
+ goal?: string;
2114
+ stepId: string;
2115
+ /** @enum {string} */
2116
+ type: ResearchTaskDtoOperationsType;
2117
+ url: string;
2118
+ } | {
2119
+ stepId: string;
2120
+ /** @description Intermediate chain-of-thought style reasoning output */
2121
+ thought: string;
2122
+ /** @enum {string} */
2123
+ type: ResearchTaskDtoOperationsType;
2124
+ };
2077
2125
  };
2078
2126
  responses: never;
2079
2127
  parameters: never;
@@ -2119,10 +2167,16 @@ declare enum ResearchTaskDtoStatus {
2119
2167
  completed = "completed",
2120
2168
  failed = "failed"
2121
2169
  }
2170
+ declare enum ResearchTaskEventDtoType {
2171
+ operation = "operation"
2172
+ }
2122
2173
  declare enum ResearchTaskEventDtoType {
2123
2174
  completed = "completed"
2124
2175
  }
2125
2176
 
2177
+ type ResearchTaskEvent = components["schemas"]["ResearchTaskEventDto"];
2178
+ type ResearchTaskOperation = SchemaResearchTaskDto["operations"][0];
2179
+
2126
2180
  /**
2127
2181
  * HTTP status codes
2128
2182
  */
@@ -2619,4 +2673,4 @@ declare class Exa {
2619
2673
  private parseSSEStream;
2620
2674
  }
2621
2675
 
2622
- export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehaviorRefresh, type MonitorBehaviorSearch, type MonitorCadence, MonitorObject, type MonitorRefreshBehaviorContentsConfig, type MonitorRefreshBehaviorEnrichmentsConfig, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type RegularSearchOptions, ResearchClient, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, ResearchTaskEventDtoType as ResearchEvent, ResearchCreateOpenAIResponseDtoModel as ResearchModel, ResearchTaskDtoStatus as ResearchStatus, type SchemaResearchTaskDto as ResearchTask, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetArticleEntity, type WebsetCompanyEntity, type WebsetCustomEntity, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetEntity, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetPersonEntity, type WebsetResearchPaperEntity, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
2676
+ export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehaviorRefresh, type MonitorBehaviorSearch, type MonitorCadence, MonitorObject, type MonitorRefreshBehaviorContentsConfig, type MonitorRefreshBehaviorEnrichmentsConfig, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type RegularSearchOptions, ResearchClient, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, type SchemaResearchTaskDto as ResearchTask, type ResearchTaskEvent, ResearchTaskEventDtoType as ResearchTaskEventType, ResearchCreateOpenAIResponseDtoModel as ResearchTaskModel, type ResearchTaskOperation, ResearchTaskDtoOperationsType as ResearchTaskOperationType, ResearchTaskDtoStatus as ResearchTaskStatus, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetArticleEntity, type WebsetCompanyEntity, type WebsetCustomEntity, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetEntity, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetPersonEntity, type WebsetResearchPaperEntity, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
package/dist/index.js CHANGED
@@ -42,8 +42,10 @@ __export(index_exports, {
42
42
  MonitorRunType: () => MonitorRunType,
43
43
  MonitorStatus: () => MonitorStatus,
44
44
  ResearchClient: () => ResearchClient,
45
- ResearchModel: () => ResearchCreateOpenAIResponseDtoModel,
46
- ResearchStatus: () => ResearchTaskDtoStatus,
45
+ ResearchTaskEventType: () => ResearchTaskEventDtoType,
46
+ ResearchTaskModel: () => ResearchCreateOpenAIResponseDtoModel,
47
+ ResearchTaskOperationType: () => ResearchTaskDtoOperationsType,
48
+ ResearchTaskStatus: () => ResearchTaskDtoStatus,
47
49
  UpdateMonitorStatus: () => UpdateMonitorStatus,
48
50
  WebhookStatus: () => WebhookStatus,
49
51
  WebsetEnrichmentFormat: () => WebsetEnrichmentFormat,
@@ -1011,12 +1013,40 @@ var ResearchCreateOpenAIResponseDtoModel = /* @__PURE__ */ ((ResearchCreateOpenA
1011
1013
  ResearchCreateOpenAIResponseDtoModel2["exa_research_pro"] = "exa-research-pro";
1012
1014
  return ResearchCreateOpenAIResponseDtoModel2;
1013
1015
  })(ResearchCreateOpenAIResponseDtoModel || {});
1016
+ var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
1017
+ ResearchTaskDtoOperationsType2["step_plan"] = "step-plan";
1018
+ return ResearchTaskDtoOperationsType2;
1019
+ })(ResearchTaskDtoOperationsType || {});
1020
+ var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
1021
+ ResearchTaskDtoOperationsType2["step_data"] = "step-data";
1022
+ return ResearchTaskDtoOperationsType2;
1023
+ })(ResearchTaskDtoOperationsType || {});
1024
+ var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
1025
+ ResearchTaskDtoOperationsType2["search"] = "search";
1026
+ return ResearchTaskDtoOperationsType2;
1027
+ })(ResearchTaskDtoOperationsType || {});
1028
+ var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
1029
+ ResearchTaskDtoOperationsType2["crawl"] = "crawl";
1030
+ return ResearchTaskDtoOperationsType2;
1031
+ })(ResearchTaskDtoOperationsType || {});
1032
+ var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
1033
+ ResearchTaskDtoOperationsType2["think"] = "think";
1034
+ return ResearchTaskDtoOperationsType2;
1035
+ })(ResearchTaskDtoOperationsType || {});
1014
1036
  var ResearchTaskDtoStatus = /* @__PURE__ */ ((ResearchTaskDtoStatus2) => {
1015
1037
  ResearchTaskDtoStatus2["running"] = "running";
1016
1038
  ResearchTaskDtoStatus2["completed"] = "completed";
1017
1039
  ResearchTaskDtoStatus2["failed"] = "failed";
1018
1040
  return ResearchTaskDtoStatus2;
1019
1041
  })(ResearchTaskDtoStatus || {});
1042
+ var ResearchTaskEventDtoType = /* @__PURE__ */ ((ResearchTaskEventDtoType2) => {
1043
+ ResearchTaskEventDtoType2["operation"] = "operation";
1044
+ return ResearchTaskEventDtoType2;
1045
+ })(ResearchTaskEventDtoType || {});
1046
+ var ResearchTaskEventDtoType = /* @__PURE__ */ ((ResearchTaskEventDtoType2) => {
1047
+ ResearchTaskEventDtoType2["completed"] = "completed";
1048
+ return ResearchTaskEventDtoType2;
1049
+ })(ResearchTaskEventDtoType || {});
1020
1050
 
1021
1051
  // src/index.ts
1022
1052
  var fetchImpl = typeof global !== "undefined" && global.fetch ? global.fetch : import_cross_fetch.default;
@@ -1469,8 +1499,10 @@ var index_default = Exa2;
1469
1499
  MonitorRunType,
1470
1500
  MonitorStatus,
1471
1501
  ResearchClient,
1472
- ResearchModel,
1473
- ResearchStatus,
1502
+ ResearchTaskEventType,
1503
+ ResearchTaskModel,
1504
+ ResearchTaskOperationType,
1505
+ ResearchTaskStatus,
1474
1506
  UpdateMonitorStatus,
1475
1507
  WebhookStatus,
1476
1508
  WebsetEnrichmentFormat,