sentisense 0.56.0 → 0.58.0
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/README.md +1 -0
- package/dist/cli.cjs +12 -1
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +71 -2
- package/dist/index.d.ts +71 -2
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -274,6 +274,18 @@ interface ChartDataPoint {
|
|
|
274
274
|
* `null` for daily / weekly bars (3M and longer) that span whole sessions.
|
|
275
275
|
*/
|
|
276
276
|
session?: "pre" | "regular" | "post" | null;
|
|
277
|
+
/**
|
|
278
|
+
* True when the bar is restated to the stock's current share count rather than served as it
|
|
279
|
+
* printed at the time. Always true on this endpoint.
|
|
280
|
+
*
|
|
281
|
+
* A stock that has split since a bar was printed would otherwise show that bar on a different
|
|
282
|
+
* basis from the current one, so both prices and volume are converted to current shares. The
|
|
283
|
+
* practical consequence is on `volume`: for a stock with a large cumulative split factor, older
|
|
284
|
+
* bars can report share counts many times the raw prints of the day, which is the restatement
|
|
285
|
+
* and not an error. Prices through `5Y` are split-adjusted; `10Y` and `MAX` are split- and
|
|
286
|
+
* dividend-adjusted.
|
|
287
|
+
*/
|
|
288
|
+
adjusted?: boolean;
|
|
277
289
|
}
|
|
278
290
|
interface ChartData {
|
|
279
291
|
ticker: string;
|
|
@@ -284,6 +296,22 @@ interface MarketStatus {
|
|
|
284
296
|
status: string;
|
|
285
297
|
[key: string]: unknown;
|
|
286
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* How one period's EPS was restated to the current share basis, on the rows that carry it.
|
|
301
|
+
*
|
|
302
|
+
* Reproduce the original figure by dividing the served value by `multiplier`.
|
|
303
|
+
*/
|
|
304
|
+
interface EpsBasisRepair {
|
|
305
|
+
/** Which EPS fields on the row were restated, in the order `epsBasic`, `epsDiluted`, `eps`. */
|
|
306
|
+
fields: string[];
|
|
307
|
+
/** Restated value divided by the value the provider reported: `0.25` for a 4-for-1 split. */
|
|
308
|
+
multiplier: number;
|
|
309
|
+
/**
|
|
310
|
+
* Execution dates of the splits the provider had not applied to this row's EPS, newest first,
|
|
311
|
+
* as `YYYY-MM-DD`.
|
|
312
|
+
*/
|
|
313
|
+
splitExecutionDates: string[];
|
|
314
|
+
}
|
|
287
315
|
/**
|
|
288
316
|
* One period of filed financial statement data from `stocks.getFundamentals()`.
|
|
289
317
|
*
|
|
@@ -332,6 +360,26 @@ interface Fundamentals {
|
|
|
332
360
|
epsBasic?: number | null;
|
|
333
361
|
/** Diluted earnings per share. `null` when the provider reports no diluted figure. */
|
|
334
362
|
epsDiluted?: number | null;
|
|
363
|
+
/**
|
|
364
|
+
* Present when this row's EPS was restated, and `null` on almost every row.
|
|
365
|
+
*
|
|
366
|
+
* Per-period EPS is served as the provider reports it, and is restated for a small list of
|
|
367
|
+
* named issuers and nowhere else. A provider that restates a company's share counts for a
|
|
368
|
+
* split but leaves some older rows' EPS on the pre-split basis produces rows that contradict
|
|
369
|
+
* themselves; where that has been checked against the company's own filing, the EPS on the
|
|
370
|
+
* affected rows is divided by the split ratio so it agrees with the share count beside it.
|
|
371
|
+
* Share counts and net income are never changed.
|
|
372
|
+
*
|
|
373
|
+
* `null` means no EPS repair was applied to this row. It does NOT mean the row's EPS and share
|
|
374
|
+
* count are known to be on the same basis: an unlisted issuer, a row whose figures did not
|
|
375
|
+
* qualify, and a row whose split history could not be read all carry `null`.
|
|
376
|
+
*
|
|
377
|
+
* This marker describes per-period EPS only. The repair never changes `epsTTM` or the other
|
|
378
|
+
* trailing-twelve-month figures, and the marker never describes a trailing adjustment: those are
|
|
379
|
+
* assembled separately, and whether they carry a split adjustment of their own depends on which
|
|
380
|
+
* source served them.
|
|
381
|
+
*/
|
|
382
|
+
epsBasisRepair?: EpsBasisRepair | null;
|
|
335
383
|
/**
|
|
336
384
|
* The provider's bottom-line income line, which can differ from `netIncome` in size and in
|
|
337
385
|
* sign. Published as the provider states it; it is not promised to reconcile with either EPS
|
|
@@ -1051,6 +1099,18 @@ interface GetStoriesOptions {
|
|
|
1051
1099
|
/** Look-back window in hours, for example 48 for the last two days. */
|
|
1052
1100
|
filterHours?: number;
|
|
1053
1101
|
}
|
|
1102
|
+
interface SearchStoriesOptions {
|
|
1103
|
+
/**
|
|
1104
|
+
* Free text, for example `fed decision` or `kb/company/1 guidance`. Explicit entity ids are
|
|
1105
|
+
* read first, then entities recognised in the text, then the remaining words as keywords that
|
|
1106
|
+
* must all appear in the story's own title or summary. A blank query is rejected with a 400.
|
|
1107
|
+
*/
|
|
1108
|
+
query: string;
|
|
1109
|
+
/** Look-back window in days, 1 to 30, defaulting to 7. Stories older than 30 days are archived and not searchable. */
|
|
1110
|
+
days?: number;
|
|
1111
|
+
/** Maximum number of stories, defaulting to 20 and capped at 50. */
|
|
1112
|
+
limit?: number;
|
|
1113
|
+
}
|
|
1054
1114
|
interface GetStoriesByTickerOptions {
|
|
1055
1115
|
limit?: number;
|
|
1056
1116
|
}
|
|
@@ -3046,6 +3106,15 @@ declare class Documents {
|
|
|
3046
3106
|
* exported for that array.
|
|
3047
3107
|
*/
|
|
3048
3108
|
getStoryDetail(clusterId: string): Promise<unknown>;
|
|
3109
|
+
/**
|
|
3110
|
+
* Free-text search across the AI-curated stories, newest first.
|
|
3111
|
+
*
|
|
3112
|
+
* The query is parsed like {@link Documents.search}: explicit entity ids first, then entities
|
|
3113
|
+
* recognised in the text, then the remaining words as keywords that must all appear in the
|
|
3114
|
+
* story's own title or summary. The rows are the same {@link Story} shape {@link
|
|
3115
|
+
* Documents.getStories} returns, so an `id` can go straight to {@link Documents.getStoryDetail}.
|
|
3116
|
+
*/
|
|
3117
|
+
searchStories(options: SearchStoriesOptions): Promise<Story[]>;
|
|
3049
3118
|
/** Get stories for a specific stock. */
|
|
3050
3119
|
getStoriesByTicker(ticker: string, options?: GetStoriesByTickerOptions): Promise<Story[]>;
|
|
3051
3120
|
}
|
|
@@ -4134,6 +4203,6 @@ declare class APIError extends SentiSenseError {
|
|
|
4134
4203
|
constructor(message: string, status: number, code?: string);
|
|
4135
4204
|
}
|
|
4136
4205
|
|
|
4137
|
-
declare const VERSION = "0.
|
|
4206
|
+
declare const VERSION = "0.58.0";
|
|
4138
4207
|
|
|
4139
|
-
export { type AISummary, APIError, type AnalystAction, type AnalystCall, type AnalystCalledItCall, type AnalystCalledItMove, type AnalystConsensus, type AnalystConsensusHistory, type AnalystConsensusHistoryPoint, type AnalystCoverage, type AnalystCoverageAnalyst, type AnalystCoverageBookEntry, type AnalystCoverageFirm, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, type AnalystFirmRating, type AnalystFirmTenure, type AnalystNote, type AnalystProfile, type AnalystRatingBuckets, type AssetMetadata, AuthenticationError, type CalendarMeta, type ChartData, type ChartDataPoint, type ClusterBuy, type CompanyKpisData, type CongressTrade, DeepHistoryUnavailableError, type Document, type DocumentSearchResponse, type DocumentSource, type EarningsCalendarResponse, type EarningsEvent, type EarningsKpiHighlight, type EarningsOutcomeStatistics, type EarningsQuarter, type EarningsReaction, type EarningsReactionsResponse, type EarningsSource, type EarningsStatistics, type EarningsStatisticsBaseline, type EarningsStatisticsDeviation, type EarningsStatisticsThresholds, type EarningsStatisticsWindow, type EntitySearchResult, type EntitySearchType, type EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfScreenerExecuteResponse, type EtfScreenerRow, type EtfSentimentAggregate, type EtfSentimentReading, type FeaturedScreen, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystCalledItOptions, type GetAnalystCallsOptions, type GetAnalystConsensusHistoryOptions, type GetAnalystCoverageOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsStatisticsOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetOptionsHistoryOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticianMemberOptions, type GetPoliticiansOptions, type GetRankedEarningsOptions, type GetRecentEarningsOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, type IndexConstituent, type IndexHistoryPoint, type IndexHistoryResponse, type IndexListResponse, type IndexListing, type IndexSnapshot, type InsiderActivityResponse, type InsiderActivitySummary, type InsiderTrade, type Insight, type InsightPreviewResponse, type InstitutionList, type InstitutionListResponse, type InstitutionSummary, type InstitutionalFlow, type InstitutionalFlows, type InstitutionalFlowsResponse, type KBEntity, type KpiCoverageEntry, type KpiCoverageResponse, type KpiDataPoint, type KpiSeries, type KpiTypeEntry, type ListInstitutionsOptions, type LockedInsight, type MarketMood, type MarketStatus, type MarketSummary, type MetricDistribution, type MetricDistributionOptions, type MetricType, type MetricsBreakdown, type MetricsOptions, NotFoundError, type OptionsAggregate, type OptionsContext, type OptionsHistory, type OptionsHistoryWindow, type OptionsOiWalls, type OptionsOverview, type OptionsOverviewRow, type OptionsSummary, type OptionsUnusualContract, type OptionsWall, type PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, type RankedEarnings, type RankedEarningsSection, type RankedReportedEarnings, type RankedUpcomingEarnings, RateLimitError, type RatingBase, type RatingDimension, type RatingDimensionKey, type RatingFlag, type RatingNotRatedReason, type RatingSubLeg, type RecentEarningsEntry, type RiskAdjustment, type RiskCondition, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, type SearchEntitiesOptions, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockNotRated, type StockPrice, type StockProfile, type StockQuote, type StockRating, type StockRatingResponse, type StockSocialDominance, type Story, type StoryCluster, type StoryTimelineEntry, TemporarilyUnavailableError, type TickerHolders, type TrackerEvent, type TrackerGeoEntry, type TrackerHeadlineMetric, type TrackerListResponse, type TrackerListing, type TrackerMetricValue, type TrackerSignal, type TrackerSnapshot, type TrackerSnapshotResponse, type TrackerSourceRef, type TrackerTableRow, type TrackerTimeSeriesPoint, type TtmFundamentals, VERSION, type WeightedConsensus, type WeightedNetFlow, SentiSense as default };
|
|
4208
|
+
export { type AISummary, APIError, type AnalystAction, type AnalystCall, type AnalystCalledItCall, type AnalystCalledItMove, type AnalystConsensus, type AnalystConsensusHistory, type AnalystConsensusHistoryPoint, type AnalystCoverage, type AnalystCoverageAnalyst, type AnalystCoverageBookEntry, type AnalystCoverageFirm, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, type AnalystFirmRating, type AnalystFirmTenure, type AnalystNote, type AnalystProfile, type AnalystRatingBuckets, type AssetMetadata, AuthenticationError, type CalendarMeta, type ChartData, type ChartDataPoint, type ClusterBuy, type CompanyKpisData, type CongressTrade, DeepHistoryUnavailableError, type Document, type DocumentSearchResponse, type DocumentSource, type EarningsCalendarResponse, type EarningsEvent, type EarningsKpiHighlight, type EarningsOutcomeStatistics, type EarningsQuarter, type EarningsReaction, type EarningsReactionsResponse, type EarningsSource, type EarningsStatistics, type EarningsStatisticsBaseline, type EarningsStatisticsDeviation, type EarningsStatisticsThresholds, type EarningsStatisticsWindow, type EntitySearchResult, type EntitySearchType, type EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfScreenerExecuteResponse, type EtfScreenerRow, type EtfSentimentAggregate, type EtfSentimentReading, type FeaturedScreen, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystCalledItOptions, type GetAnalystCallsOptions, type GetAnalystConsensusHistoryOptions, type GetAnalystCoverageOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsStatisticsOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetOptionsHistoryOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticianMemberOptions, type GetPoliticiansOptions, type GetRankedEarningsOptions, type GetRecentEarningsOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, type IndexConstituent, type IndexHistoryPoint, type IndexHistoryResponse, type IndexListResponse, type IndexListing, type IndexSnapshot, type InsiderActivityResponse, type InsiderActivitySummary, type InsiderTrade, type Insight, type InsightPreviewResponse, type InstitutionList, type InstitutionListResponse, type InstitutionSummary, type InstitutionalFlow, type InstitutionalFlows, type InstitutionalFlowsResponse, type KBEntity, type KpiCoverageEntry, type KpiCoverageResponse, type KpiDataPoint, type KpiSeries, type KpiTypeEntry, type ListInstitutionsOptions, type LockedInsight, type MarketMood, type MarketStatus, type MarketSummary, type MetricDistribution, type MetricDistributionOptions, type MetricType, type MetricsBreakdown, type MetricsOptions, NotFoundError, type OptionsAggregate, type OptionsContext, type OptionsHistory, type OptionsHistoryWindow, type OptionsOiWalls, type OptionsOverview, type OptionsOverviewRow, type OptionsSummary, type OptionsUnusualContract, type OptionsWall, type PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, type RankedEarnings, type RankedEarningsSection, type RankedReportedEarnings, type RankedUpcomingEarnings, RateLimitError, type RatingBase, type RatingDimension, type RatingDimensionKey, type RatingFlag, type RatingNotRatedReason, type RatingSubLeg, type RecentEarningsEntry, type RiskAdjustment, type RiskCondition, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, type SearchEntitiesOptions, type SearchStoriesOptions, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockNotRated, type StockPrice, type StockProfile, type StockQuote, type StockRating, type StockRatingResponse, type StockSocialDominance, type Story, type StoryCluster, type StoryTimelineEntry, TemporarilyUnavailableError, type TickerHolders, type TrackerEvent, type TrackerGeoEntry, type TrackerHeadlineMetric, type TrackerListResponse, type TrackerListing, type TrackerMetricValue, type TrackerSignal, type TrackerSnapshot, type TrackerSnapshotResponse, type TrackerSourceRef, type TrackerTableRow, type TrackerTimeSeriesPoint, type TtmFundamentals, VERSION, type WeightedConsensus, type WeightedNetFlow, SentiSense as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -274,6 +274,18 @@ interface ChartDataPoint {
|
|
|
274
274
|
* `null` for daily / weekly bars (3M and longer) that span whole sessions.
|
|
275
275
|
*/
|
|
276
276
|
session?: "pre" | "regular" | "post" | null;
|
|
277
|
+
/**
|
|
278
|
+
* True when the bar is restated to the stock's current share count rather than served as it
|
|
279
|
+
* printed at the time. Always true on this endpoint.
|
|
280
|
+
*
|
|
281
|
+
* A stock that has split since a bar was printed would otherwise show that bar on a different
|
|
282
|
+
* basis from the current one, so both prices and volume are converted to current shares. The
|
|
283
|
+
* practical consequence is on `volume`: for a stock with a large cumulative split factor, older
|
|
284
|
+
* bars can report share counts many times the raw prints of the day, which is the restatement
|
|
285
|
+
* and not an error. Prices through `5Y` are split-adjusted; `10Y` and `MAX` are split- and
|
|
286
|
+
* dividend-adjusted.
|
|
287
|
+
*/
|
|
288
|
+
adjusted?: boolean;
|
|
277
289
|
}
|
|
278
290
|
interface ChartData {
|
|
279
291
|
ticker: string;
|
|
@@ -284,6 +296,22 @@ interface MarketStatus {
|
|
|
284
296
|
status: string;
|
|
285
297
|
[key: string]: unknown;
|
|
286
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* How one period's EPS was restated to the current share basis, on the rows that carry it.
|
|
301
|
+
*
|
|
302
|
+
* Reproduce the original figure by dividing the served value by `multiplier`.
|
|
303
|
+
*/
|
|
304
|
+
interface EpsBasisRepair {
|
|
305
|
+
/** Which EPS fields on the row were restated, in the order `epsBasic`, `epsDiluted`, `eps`. */
|
|
306
|
+
fields: string[];
|
|
307
|
+
/** Restated value divided by the value the provider reported: `0.25` for a 4-for-1 split. */
|
|
308
|
+
multiplier: number;
|
|
309
|
+
/**
|
|
310
|
+
* Execution dates of the splits the provider had not applied to this row's EPS, newest first,
|
|
311
|
+
* as `YYYY-MM-DD`.
|
|
312
|
+
*/
|
|
313
|
+
splitExecutionDates: string[];
|
|
314
|
+
}
|
|
287
315
|
/**
|
|
288
316
|
* One period of filed financial statement data from `stocks.getFundamentals()`.
|
|
289
317
|
*
|
|
@@ -332,6 +360,26 @@ interface Fundamentals {
|
|
|
332
360
|
epsBasic?: number | null;
|
|
333
361
|
/** Diluted earnings per share. `null` when the provider reports no diluted figure. */
|
|
334
362
|
epsDiluted?: number | null;
|
|
363
|
+
/**
|
|
364
|
+
* Present when this row's EPS was restated, and `null` on almost every row.
|
|
365
|
+
*
|
|
366
|
+
* Per-period EPS is served as the provider reports it, and is restated for a small list of
|
|
367
|
+
* named issuers and nowhere else. A provider that restates a company's share counts for a
|
|
368
|
+
* split but leaves some older rows' EPS on the pre-split basis produces rows that contradict
|
|
369
|
+
* themselves; where that has been checked against the company's own filing, the EPS on the
|
|
370
|
+
* affected rows is divided by the split ratio so it agrees with the share count beside it.
|
|
371
|
+
* Share counts and net income are never changed.
|
|
372
|
+
*
|
|
373
|
+
* `null` means no EPS repair was applied to this row. It does NOT mean the row's EPS and share
|
|
374
|
+
* count are known to be on the same basis: an unlisted issuer, a row whose figures did not
|
|
375
|
+
* qualify, and a row whose split history could not be read all carry `null`.
|
|
376
|
+
*
|
|
377
|
+
* This marker describes per-period EPS only. The repair never changes `epsTTM` or the other
|
|
378
|
+
* trailing-twelve-month figures, and the marker never describes a trailing adjustment: those are
|
|
379
|
+
* assembled separately, and whether they carry a split adjustment of their own depends on which
|
|
380
|
+
* source served them.
|
|
381
|
+
*/
|
|
382
|
+
epsBasisRepair?: EpsBasisRepair | null;
|
|
335
383
|
/**
|
|
336
384
|
* The provider's bottom-line income line, which can differ from `netIncome` in size and in
|
|
337
385
|
* sign. Published as the provider states it; it is not promised to reconcile with either EPS
|
|
@@ -1051,6 +1099,18 @@ interface GetStoriesOptions {
|
|
|
1051
1099
|
/** Look-back window in hours, for example 48 for the last two days. */
|
|
1052
1100
|
filterHours?: number;
|
|
1053
1101
|
}
|
|
1102
|
+
interface SearchStoriesOptions {
|
|
1103
|
+
/**
|
|
1104
|
+
* Free text, for example `fed decision` or `kb/company/1 guidance`. Explicit entity ids are
|
|
1105
|
+
* read first, then entities recognised in the text, then the remaining words as keywords that
|
|
1106
|
+
* must all appear in the story's own title or summary. A blank query is rejected with a 400.
|
|
1107
|
+
*/
|
|
1108
|
+
query: string;
|
|
1109
|
+
/** Look-back window in days, 1 to 30, defaulting to 7. Stories older than 30 days are archived and not searchable. */
|
|
1110
|
+
days?: number;
|
|
1111
|
+
/** Maximum number of stories, defaulting to 20 and capped at 50. */
|
|
1112
|
+
limit?: number;
|
|
1113
|
+
}
|
|
1054
1114
|
interface GetStoriesByTickerOptions {
|
|
1055
1115
|
limit?: number;
|
|
1056
1116
|
}
|
|
@@ -3046,6 +3106,15 @@ declare class Documents {
|
|
|
3046
3106
|
* exported for that array.
|
|
3047
3107
|
*/
|
|
3048
3108
|
getStoryDetail(clusterId: string): Promise<unknown>;
|
|
3109
|
+
/**
|
|
3110
|
+
* Free-text search across the AI-curated stories, newest first.
|
|
3111
|
+
*
|
|
3112
|
+
* The query is parsed like {@link Documents.search}: explicit entity ids first, then entities
|
|
3113
|
+
* recognised in the text, then the remaining words as keywords that must all appear in the
|
|
3114
|
+
* story's own title or summary. The rows are the same {@link Story} shape {@link
|
|
3115
|
+
* Documents.getStories} returns, so an `id` can go straight to {@link Documents.getStoryDetail}.
|
|
3116
|
+
*/
|
|
3117
|
+
searchStories(options: SearchStoriesOptions): Promise<Story[]>;
|
|
3049
3118
|
/** Get stories for a specific stock. */
|
|
3050
3119
|
getStoriesByTicker(ticker: string, options?: GetStoriesByTickerOptions): Promise<Story[]>;
|
|
3051
3120
|
}
|
|
@@ -4134,6 +4203,6 @@ declare class APIError extends SentiSenseError {
|
|
|
4134
4203
|
constructor(message: string, status: number, code?: string);
|
|
4135
4204
|
}
|
|
4136
4205
|
|
|
4137
|
-
declare const VERSION = "0.
|
|
4206
|
+
declare const VERSION = "0.58.0";
|
|
4138
4207
|
|
|
4139
|
-
export { type AISummary, APIError, type AnalystAction, type AnalystCall, type AnalystCalledItCall, type AnalystCalledItMove, type AnalystConsensus, type AnalystConsensusHistory, type AnalystConsensusHistoryPoint, type AnalystCoverage, type AnalystCoverageAnalyst, type AnalystCoverageBookEntry, type AnalystCoverageFirm, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, type AnalystFirmRating, type AnalystFirmTenure, type AnalystNote, type AnalystProfile, type AnalystRatingBuckets, type AssetMetadata, AuthenticationError, type CalendarMeta, type ChartData, type ChartDataPoint, type ClusterBuy, type CompanyKpisData, type CongressTrade, DeepHistoryUnavailableError, type Document, type DocumentSearchResponse, type DocumentSource, type EarningsCalendarResponse, type EarningsEvent, type EarningsKpiHighlight, type EarningsOutcomeStatistics, type EarningsQuarter, type EarningsReaction, type EarningsReactionsResponse, type EarningsSource, type EarningsStatistics, type EarningsStatisticsBaseline, type EarningsStatisticsDeviation, type EarningsStatisticsThresholds, type EarningsStatisticsWindow, type EntitySearchResult, type EntitySearchType, type EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfScreenerExecuteResponse, type EtfScreenerRow, type EtfSentimentAggregate, type EtfSentimentReading, type FeaturedScreen, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystCalledItOptions, type GetAnalystCallsOptions, type GetAnalystConsensusHistoryOptions, type GetAnalystCoverageOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsStatisticsOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetOptionsHistoryOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticianMemberOptions, type GetPoliticiansOptions, type GetRankedEarningsOptions, type GetRecentEarningsOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, type IndexConstituent, type IndexHistoryPoint, type IndexHistoryResponse, type IndexListResponse, type IndexListing, type IndexSnapshot, type InsiderActivityResponse, type InsiderActivitySummary, type InsiderTrade, type Insight, type InsightPreviewResponse, type InstitutionList, type InstitutionListResponse, type InstitutionSummary, type InstitutionalFlow, type InstitutionalFlows, type InstitutionalFlowsResponse, type KBEntity, type KpiCoverageEntry, type KpiCoverageResponse, type KpiDataPoint, type KpiSeries, type KpiTypeEntry, type ListInstitutionsOptions, type LockedInsight, type MarketMood, type MarketStatus, type MarketSummary, type MetricDistribution, type MetricDistributionOptions, type MetricType, type MetricsBreakdown, type MetricsOptions, NotFoundError, type OptionsAggregate, type OptionsContext, type OptionsHistory, type OptionsHistoryWindow, type OptionsOiWalls, type OptionsOverview, type OptionsOverviewRow, type OptionsSummary, type OptionsUnusualContract, type OptionsWall, type PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, type RankedEarnings, type RankedEarningsSection, type RankedReportedEarnings, type RankedUpcomingEarnings, RateLimitError, type RatingBase, type RatingDimension, type RatingDimensionKey, type RatingFlag, type RatingNotRatedReason, type RatingSubLeg, type RecentEarningsEntry, type RiskAdjustment, type RiskCondition, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, type SearchEntitiesOptions, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockNotRated, type StockPrice, type StockProfile, type StockQuote, type StockRating, type StockRatingResponse, type StockSocialDominance, type Story, type StoryCluster, type StoryTimelineEntry, TemporarilyUnavailableError, type TickerHolders, type TrackerEvent, type TrackerGeoEntry, type TrackerHeadlineMetric, type TrackerListResponse, type TrackerListing, type TrackerMetricValue, type TrackerSignal, type TrackerSnapshot, type TrackerSnapshotResponse, type TrackerSourceRef, type TrackerTableRow, type TrackerTimeSeriesPoint, type TtmFundamentals, VERSION, type WeightedConsensus, type WeightedNetFlow, SentiSense as default };
|
|
4208
|
+
export { type AISummary, APIError, type AnalystAction, type AnalystCall, type AnalystCalledItCall, type AnalystCalledItMove, type AnalystConsensus, type AnalystConsensusHistory, type AnalystConsensusHistoryPoint, type AnalystCoverage, type AnalystCoverageAnalyst, type AnalystCoverageBookEntry, type AnalystCoverageFirm, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, type AnalystFirmRating, type AnalystFirmTenure, type AnalystNote, type AnalystProfile, type AnalystRatingBuckets, type AssetMetadata, AuthenticationError, type CalendarMeta, type ChartData, type ChartDataPoint, type ClusterBuy, type CompanyKpisData, type CongressTrade, DeepHistoryUnavailableError, type Document, type DocumentSearchResponse, type DocumentSource, type EarningsCalendarResponse, type EarningsEvent, type EarningsKpiHighlight, type EarningsOutcomeStatistics, type EarningsQuarter, type EarningsReaction, type EarningsReactionsResponse, type EarningsSource, type EarningsStatistics, type EarningsStatisticsBaseline, type EarningsStatisticsDeviation, type EarningsStatisticsThresholds, type EarningsStatisticsWindow, type EntitySearchResult, type EntitySearchType, type EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfScreenerExecuteResponse, type EtfScreenerRow, type EtfSentimentAggregate, type EtfSentimentReading, type FeaturedScreen, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystCalledItOptions, type GetAnalystCallsOptions, type GetAnalystConsensusHistoryOptions, type GetAnalystCoverageOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsStatisticsOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetOptionsHistoryOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticianMemberOptions, type GetPoliticiansOptions, type GetRankedEarningsOptions, type GetRecentEarningsOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, type IndexConstituent, type IndexHistoryPoint, type IndexHistoryResponse, type IndexListResponse, type IndexListing, type IndexSnapshot, type InsiderActivityResponse, type InsiderActivitySummary, type InsiderTrade, type Insight, type InsightPreviewResponse, type InstitutionList, type InstitutionListResponse, type InstitutionSummary, type InstitutionalFlow, type InstitutionalFlows, type InstitutionalFlowsResponse, type KBEntity, type KpiCoverageEntry, type KpiCoverageResponse, type KpiDataPoint, type KpiSeries, type KpiTypeEntry, type ListInstitutionsOptions, type LockedInsight, type MarketMood, type MarketStatus, type MarketSummary, type MetricDistribution, type MetricDistributionOptions, type MetricType, type MetricsBreakdown, type MetricsOptions, NotFoundError, type OptionsAggregate, type OptionsContext, type OptionsHistory, type OptionsHistoryWindow, type OptionsOiWalls, type OptionsOverview, type OptionsOverviewRow, type OptionsSummary, type OptionsUnusualContract, type OptionsWall, type PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, type RankedEarnings, type RankedEarningsSection, type RankedReportedEarnings, type RankedUpcomingEarnings, RateLimitError, type RatingBase, type RatingDimension, type RatingDimensionKey, type RatingFlag, type RatingNotRatedReason, type RatingSubLeg, type RecentEarningsEntry, type RiskAdjustment, type RiskCondition, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, type SearchEntitiesOptions, type SearchStoriesOptions, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockNotRated, type StockPrice, type StockProfile, type StockQuote, type StockRating, type StockRatingResponse, type StockSocialDominance, type Story, type StoryCluster, type StoryTimelineEntry, TemporarilyUnavailableError, type TickerHolders, type TrackerEvent, type TrackerGeoEntry, type TrackerHeadlineMetric, type TrackerListResponse, type TrackerListing, type TrackerMetricValue, type TrackerSignal, type TrackerSnapshot, type TrackerSnapshotResponse, type TrackerSourceRef, type TrackerTableRow, type TrackerTimeSeriesPoint, type TtmFundamentals, VERSION, type WeightedConsensus, type WeightedNetFlow, SentiSense as default };
|
package/dist/index.mjs
CHANGED
|
@@ -271,6 +271,17 @@ var Documents = class {
|
|
|
271
271
|
async getStoryDetail(clusterId) {
|
|
272
272
|
return this.client.get(`/api/v1/documents/stories/${encodeURIComponent(clusterId)}`);
|
|
273
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Free-text search across the AI-curated stories, newest first.
|
|
276
|
+
*
|
|
277
|
+
* The query is parsed like {@link Documents.search}: explicit entity ids first, then entities
|
|
278
|
+
* recognised in the text, then the remaining words as keywords that must all appear in the
|
|
279
|
+
* story's own title or summary. The rows are the same {@link Story} shape {@link
|
|
280
|
+
* Documents.getStories} returns, so an `id` can go straight to {@link Documents.getStoryDetail}.
|
|
281
|
+
*/
|
|
282
|
+
async searchStories(options) {
|
|
283
|
+
return this.client.get("/api/v1/documents/stories/search", options);
|
|
284
|
+
}
|
|
274
285
|
/** Get stories for a specific stock. */
|
|
275
286
|
async getStoriesByTicker(ticker, options) {
|
|
276
287
|
return this.client.get(
|
|
@@ -1300,7 +1311,7 @@ var Trackers = class {
|
|
|
1300
1311
|
};
|
|
1301
1312
|
|
|
1302
1313
|
// src/version.ts
|
|
1303
|
-
var VERSION = "0.
|
|
1314
|
+
var VERSION = "0.58.0";
|
|
1304
1315
|
|
|
1305
1316
|
// src/client.ts
|
|
1306
1317
|
var DEFAULT_BASE_URL = "https://app.sentisense.ai";
|