gloomberb 0.19.6 → 0.20.1
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/LICENSE +0 -4
- package/package.json +6 -5
- package/patches/electrobun-devkit@2.0.5.patch +408 -0
- package/src/api-client/bond-trades.ts +59 -0
- package/src/api-client/crypto-markets.ts +20 -2
- package/src/api-client/data.ts +21 -0
- package/src/api-client/fund-facts.ts +23 -1
- package/src/api-client/index.ts +2 -0
- package/src/api-client/types/account.ts +86 -0
- package/src/api-client/types/assist.ts +32 -0
- package/src/api-client/types/auth.ts +63 -0
- package/src/api-client/types/billing.ts +54 -0
- package/src/api-client/types/chat.ts +180 -0
- package/src/api-client/types/congress.ts +107 -0
- package/src/api-client/types/credit.ts +110 -0
- package/src/api-client/types/econ.ts +158 -0
- package/src/api-client/types/equity-diagnostic.ts +73 -0
- package/src/api-client/types/filings-and-calls.ts +356 -0
- package/src/api-client/types/index.ts +25 -0
- package/src/api-client/types/jobs.ts +147 -0
- package/src/api-client/types/market.ts +122 -0
- package/src/api-client/types/news.ts +91 -0
- package/src/api-client/types/notes-and-theses.ts +172 -0
- package/src/api-client/types/quotes.ts +28 -0
- package/src/api-client/types/scanners.ts +125 -0
- package/src/api-client/types/screener.ts +65 -0
- package/src/api-client/types/search.ts +107 -0
- package/src/api-client/types/sync.ts +14 -0
- package/src/api-client/types/team-collections.ts +43 -0
- package/src/api-client/types/team-views.ts +32 -0
- package/src/api-client/types/teams.ts +135 -0
- package/src/api-client/types/ticker-data.ts +57 -0
- package/src/api-client/types/tweets.ts +59 -0
- package/src/api-client/types/world-venues.ts +23 -0
- package/src/app/runtime/desktop-deeplink.ts +41 -6
- package/src/app/runtime/plugin-seed.ts +119 -0
- package/src/app/runtime/startup.ts +45 -9
- package/src/app/star-prompt/status-line.tsx +1 -1
- package/src/app.tsx +2 -7
- package/src/architecture/ui-tokens-allowlist.json +0 -8
- package/src/cli/board-coins.ts +38 -5
- package/src/cli/commands/crypto-hints.ts +8 -1
- package/src/cli/commands/market.ts +29 -26
- package/src/cli/commands/overview.ts +13 -6
- package/src/cli/commands/ticker.ts +78 -18
- package/src/cli/company-name-hint.ts +19 -0
- package/src/cli/desktop-pane-shot-browser.ts +69 -3
- package/src/cli/entry.ts +10 -4
- package/src/cli/glossary.ts +25 -0
- package/src/cli/helpers.ts +4 -2
- package/src/cli/not-a-ticker.ts +26 -1
- package/src/cli/pane-functions/catalog.ts +3 -1
- package/src/cli/pane-functions/freshness.ts +45 -29
- package/src/cli/pane-functions/market-session.ts +14 -5
- package/src/cli/restore-plugins.ts +164 -51
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +11 -2
- package/src/components/chart-table/header.tsx +10 -1
- package/src/components/chart-table/layout.ts +14 -5
- package/src/components/command-bar/panel/index.tsx +13 -0
- package/src/components/command-bar/panel/layout.ts +7 -0
- package/src/components/command-bar/panel/runtime.ts +1 -0
- package/src/components/command-bar/panel/types.ts +2 -0
- package/src/components/data-table/export.ts +4 -1
- package/src/components/layout/detached-pane-shell.tsx +10 -37
- package/src/components/layout/double-escape-close.ts +90 -0
- package/src/components/layout/header.tsx +3 -2
- package/src/components/layout/market-summary.ts +6 -3
- package/src/components/layout/pane/footer/index.tsx +2 -6
- package/src/components/layout/pane/footer/model.ts +6 -12
- package/src/components/layout/shell/active-drag.ts +53 -11
- package/src/components/layout/shell/drag/magnets.ts +128 -19
- package/src/components/layout/shell/pane/actions.ts +6 -2
- package/src/components/layout/shell/pane/management-shortcuts.ts +13 -51
- package/src/components/layout/status-bar.tsx +4 -78
- package/src/components/layout/status-widget-space.ts +5 -5
- package/src/components/onboarding/portfolio-step/positions-panel.tsx +1 -1
- package/src/components/ui/data-table/index.tsx +5 -1
- package/src/components/ui/data-table/render-cell.ts +19 -0
- package/src/components/ui/delayed-mark.tsx +59 -7
- package/src/components/ui/icon.tsx +1 -8
- package/src/components/ui/menu.tsx +6 -1
- package/src/i18n/es.ts +6 -3
- package/src/i18n/ja.ts +6 -3
- package/src/i18n/ko.ts +6 -3
- package/src/i18n/zh-cn.ts +6 -3
- package/src/i18n/zh-tw.ts +6 -3
- package/src/market-data/fund-facts.ts +7 -1
- package/src/market-data/market/change-basis.ts +20 -0
- package/src/market-data/market/format.ts +62 -2
- package/src/market-data/market/futures-week.ts +3 -1
- package/src/plugins/builtin/chart-composer/headless.ts +57 -17
- package/src/plugins/builtin/chart-composer/session-range.ts +82 -3
- package/src/plugins/builtin/chat/content/composer.tsx +21 -27
- package/src/plugins/builtin/chat/content/index.tsx +31 -3
- package/src/plugins/builtin/chat/content/shortcuts.ts +4 -2
- package/src/plugins/builtin/chat/content/snapshot.ts +0 -3
- package/src/plugins/builtin/cloud/auth-actions.tsx +51 -23
- package/src/plugins/builtin/cloud/trial-offer-status-widget.tsx +3 -3
- package/src/plugins/builtin/cloud/upgrade-status-widget.tsx +32 -25
- package/src/plugins/builtin/congress-trades/model.ts +2 -1
- package/src/plugins/builtin/congress-trades/pane.tsx +3 -0
- package/src/plugins/builtin/correlation/compute.ts +8 -2
- package/src/plugins/builtin/correlation/headless.ts +10 -9
- package/src/plugins/builtin/correlation/history.ts +30 -0
- package/src/plugins/builtin/correlation/matrix/model.ts +10 -10
- package/src/plugins/builtin/correlation/relationship/model.ts +3 -6
- package/src/plugins/builtin/correlation/relationship/pane.tsx +1 -2
- package/src/plugins/builtin/crypto-board/client.ts +6 -1
- package/src/plugins/builtin/crypto-board/defi-view.tsx +12 -1
- package/src/plugins/builtin/crypto-board/defi.ts +44 -7
- package/src/plugins/builtin/crypto-board/headless.ts +83 -12
- package/src/plugins/builtin/crypto-board/model.ts +30 -6
- package/src/plugins/builtin/crypto-board/pane.tsx +13 -2
- package/src/plugins/builtin/custom-view/index.tsx +1 -1
- package/src/plugins/builtin/custom-view/loader.ts +85 -8
- package/src/plugins/builtin/custom-view/view-spec.ts +28 -0
- package/src/plugins/builtin/equity-screener/criterion-editor.tsx +13 -4
- package/src/plugins/builtin/equity-screener/headless.ts +33 -1
- package/src/plugins/builtin/equity-screener/model.ts +58 -15
- package/src/plugins/builtin/equity-screener/pane.tsx +36 -6
- package/src/plugins/builtin/executives/format.ts +5 -4
- package/src/plugins/builtin/executives/pane.tsx +1 -1
- package/src/plugins/builtin/help/index.tsx +55 -1
- package/src/plugins/builtin/insider/model.ts +30 -2
- package/src/plugins/builtin/jobs/model.ts +2 -2
- package/src/plugins/builtin/mna/model.ts +2 -2
- package/src/plugins/builtin/notes/files.ts +2 -0
- package/src/plugins/builtin/notes/owner.tsx +20 -1
- package/src/plugins/builtin/notes/quick-notes-pane.tsx +22 -4
- package/src/plugins/builtin/notes/store.ts +6 -1
- package/src/plugins/builtin/perps/headless.ts +8 -2
- package/src/plugins/builtin/portfolio-list/header.tsx +1 -1
- package/src/plugins/builtin/research/corporate-actions-pane.tsx +29 -25
- package/src/plugins/builtin/risk-factors/index.tsx +2 -28
- package/src/plugins/builtin/risk-factors/lock-note.ts +58 -0
- package/src/plugins/builtin/risk-factors/pane.tsx +10 -3
- package/src/plugins/builtin/scanner/hilo-model.ts +4 -3
- package/src/plugins/builtin/sec/fund-facts.ts +45 -11
- package/src/plugins/builtin/sec/headless.ts +30 -1
- package/src/plugins/builtin/sec/index.tsx +26 -5
- package/src/plugins/builtin/series-inventory.ts +1 -0
- package/src/plugins/builtin/shared/earnings-report.ts +7 -2
- package/src/plugins/builtin/shared/pro-lock-note.ts +5 -1
- package/src/plugins/builtin/shared/use-quote-board.ts +85 -46
- package/src/plugins/builtin/short-interest/headless.ts +1 -1
- package/src/plugins/builtin/short-interest/model.ts +15 -6
- package/src/plugins/builtin/short-interest/types.ts +2 -0
- package/src/plugins/builtin/thirteenf/overlap-pane.tsx +3 -0
- package/src/plugins/builtin/thirteenf/pane.tsx +3 -0
- package/src/plugins/builtin/ticker-detail/overview/model.ts +19 -9
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +4 -4
- package/src/plugins/builtin/time-sales/headless.ts +23 -7
- package/src/plugins/builtin/time-sales/index.tsx +2 -2
- package/src/plugins/builtin/trace-bonds/detail.tsx +198 -0
- package/src/plugins/builtin/trace-bonds/headless.ts +62 -4
- package/src/plugins/builtin/trace-bonds/history.ts +155 -0
- package/src/plugins/builtin/trace-bonds/pane.tsx +64 -5
- package/src/plugins/extracted-plugins.ts +49 -24
- package/src/plugins/installer.ts +234 -32
- package/src/plugins/plugin-names.ts +11 -2
- package/src/plugins/running-installs.ts +34 -0
- package/src/plugins/seed-progress.ts +72 -0
- package/src/remote/controller.ts +9 -2
- package/src/remote/schema.ts +2 -1
- package/src/renderers/cloudflare/http-proxy.ts +67 -8
- package/src/renderers/cloudflare/proxy-session.ts +1 -1
- package/src/renderers/cloudflare/worker.ts +29 -2
- package/src/renderers/dom/desktop/icons.tsx +0 -2
- package/src/renderers/dom/styles.css +0 -3
- package/src/renderers/electrobun/bun/desktop/backend.ts +14 -0
- package/src/renderers/electrobun/bun/desktop/host-requests.ts +14 -7
- package/src/renderers/electrobun/bun/desktop/initialization.ts +24 -14
- package/src/renderers/electrobun/bun/desktop/install-records.ts +59 -0
- package/src/renderers/electrobun/bun/desktop/installer-folder.ts +208 -592
- package/src/renderers/electrobun/bun/desktop/macos-objc.ts +14 -0
- package/src/renderers/electrobun/bun/desktop/update.ts +1 -1
- package/src/renderers/electrobun/bun/index.ts +24 -13
- package/src/renderers/electrobun/bun/window/context-menu-thread.ts +84 -0
- package/src/renderers/electrobun/bun/window/create.ts +23 -3
- package/src/renderers/electrobun/bun/window/electrobun-window-host.ts +4 -4
- package/src/renderers/electrobun/bun/window/events.ts +4 -4
- package/src/renderers/electrobun/bun/window/frame.ts +2 -1
- package/src/renderers/electrobun/bun/window/native-call-thread.ts +224 -0
- package/src/renderers/electrobun/bun/window/native-min-size.ts +322 -0
- package/src/renderers/electrobun/bun/window/native-timing.ts +10 -0
- package/src/renderers/electrobun/bun/window/script-for-webview.ts +15 -0
- package/src/renderers/electrobun/bun/window/webview-script-thread.ts +82 -0
- package/src/renderers/electrobun/shared/protocol.ts +13 -2
- package/src/renderers/electrobun/view/backend-rpc.ts +8 -1
- package/src/renderers/electrobun/view/cli-pane-shot-frame.tsx +1 -1
- package/src/renderers/electrobun/view/main.tsx +4 -3
- package/src/renderers/opentui/start.tsx +3 -0
- package/src/sources/gloomberb-cloud/index.ts +5 -7
- package/src/sources/provider-router/batches.ts +18 -3
- package/src/sources/provider-router/financials.ts +18 -4
- package/src/telemetry/stall-reports.ts +21 -4
- package/src/types/data-provider.ts +14 -0
- package/src/types/financials.ts +15 -3
- package/src/types/headless.ts +2 -0
- package/src/utils/double-escape-close.ts +38 -16
- package/src/utils/format.ts +23 -3
- package/src/utils/main-thread-stall.ts +21 -5
- package/src/utils/perf-marks.ts +88 -9
- package/src/utils/price-earnings.ts +18 -0
- package/src/utils/reported-money.ts +9 -2
- package/src/utils/sec.ts +34 -3
- package/patches/electrobun@1.18.1.patch +0 -633
- package/src/api-client/types.ts +0 -2441
- package/src/plugins/seed-notice.ts +0 -20
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
type CloudEconImpact = "high" | "medium" | "low";
|
|
2
|
+
|
|
3
|
+
export interface CloudEconEventPayload {
|
|
4
|
+
id: string;
|
|
5
|
+
date: string;
|
|
6
|
+
time: string;
|
|
7
|
+
country: string;
|
|
8
|
+
event: string;
|
|
9
|
+
actual: string | null;
|
|
10
|
+
forecast: string | null;
|
|
11
|
+
prior: string | null;
|
|
12
|
+
impact: CloudEconImpact;
|
|
13
|
+
/** Rows the calendar adds beside its feeds: a central bank's kept decision or a statistics office's listed release. */
|
|
14
|
+
kind?: "central-bank-decision" | "statistics-release";
|
|
15
|
+
/** The publisher's own clock time and its IANA zone; null when it states no time. */
|
|
16
|
+
localTime?: string | null;
|
|
17
|
+
timeZone?: string;
|
|
18
|
+
/** Why a row has no time, when its publisher states none. */
|
|
19
|
+
timeNote?: string | null;
|
|
20
|
+
priorAsOf?: string | null;
|
|
21
|
+
referencePeriod?: string | null;
|
|
22
|
+
/** Who publishes the release (Freddie Mac for the 30-year mortgage rate), and its page when one is named. */
|
|
23
|
+
source?: { name: string; url?: string };
|
|
24
|
+
/**
|
|
25
|
+
* The indicator this release is of, the same from one release to the next
|
|
26
|
+
* (`us-unemployment-rate` on every month's row), where `id` names the one
|
|
27
|
+
* row. Absent from a server that names none; exports leave the column empty.
|
|
28
|
+
*/
|
|
29
|
+
indicatorId?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Where the forecast (the consensus) was read from, `week-feed` or
|
|
32
|
+
* `release-calendar`, and when that feed was read. Absent on a row with no
|
|
33
|
+
* forecast and on one kept before the read was recorded.
|
|
34
|
+
*/
|
|
35
|
+
consensus?: { source: string; readAt: string } | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** One currency's short-term rate, as GET /cloud/econ/short-rates serves it. */
|
|
39
|
+
export interface CloudShortRate {
|
|
40
|
+
currency: string;
|
|
41
|
+
/** "SOFR", "TIIE 28d". */
|
|
42
|
+
name: string;
|
|
43
|
+
/** "overnight" or the term the rate is for. */
|
|
44
|
+
tenor: string;
|
|
45
|
+
tenorDays: number;
|
|
46
|
+
/** Days in the year the rate is quoted over. */
|
|
47
|
+
dayCountBasis: 360 | 365;
|
|
48
|
+
publisher: string;
|
|
49
|
+
sourceUrl: string;
|
|
50
|
+
/** Percent a year; null when it could not be read. */
|
|
51
|
+
value: number | null;
|
|
52
|
+
/** The day the rate is for. */
|
|
53
|
+
asOf: string | null;
|
|
54
|
+
fetchedAt: string | null;
|
|
55
|
+
stale: boolean;
|
|
56
|
+
unavailableReason: string | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface CloudShortRatesPayload {
|
|
60
|
+
generatedAt: string;
|
|
61
|
+
rates: CloudShortRate[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** CPI, payrolls and FOMC statement days as published, as GET /cloud/econ/release-days serves them. */
|
|
65
|
+
export interface CloudMacroReleaseDaysPayload {
|
|
66
|
+
/** When the publishers' pages were read, ISO. */
|
|
67
|
+
checkedAt: string;
|
|
68
|
+
/** The last New York day the lists are complete for. */
|
|
69
|
+
coveredThrough: string;
|
|
70
|
+
sources: string[];
|
|
71
|
+
/** New York dates, oldest first. Brazil's IPCA days when the server can vouch for them. */
|
|
72
|
+
releases: Record<"cpi" | "jobs" | "fomc", string[]> & { ipca?: string[] };
|
|
73
|
+
/** Each kind's figures by New York release day, for the days they are known. */
|
|
74
|
+
figures?: Partial<Record<"cpi" | "jobs" | "fomc" | "ipca", Record<string, {
|
|
75
|
+
event: string;
|
|
76
|
+
actual: string | null;
|
|
77
|
+
forecast: string | null;
|
|
78
|
+
prior: string | null;
|
|
79
|
+
/** Above the consensus (hot), below it (cool), at it (in-line); null without both. */
|
|
80
|
+
surprise: "hot" | "cool" | "in-line" | null;
|
|
81
|
+
}>>>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface CloudFredObservationPayload {
|
|
85
|
+
date: string;
|
|
86
|
+
value: number | null;
|
|
87
|
+
/**
|
|
88
|
+
* Who published a value FRED does not list yet, such as a Treasury yield
|
|
89
|
+
* Gloom Cloud read from the Treasury first. Absent on FRED's own values.
|
|
90
|
+
*/
|
|
91
|
+
publisher?: string;
|
|
92
|
+
/** When that publisher's value was first read, ISO in UTC. */
|
|
93
|
+
publishedAt?: string;
|
|
94
|
+
/**
|
|
95
|
+
* The day FRED's source released this value (`YYYY-MM-DD`), on the newest
|
|
96
|
+
* observation of a weekly to annual series: September's permits are dated
|
|
97
|
+
* 1 Sep and were released 20 Oct. Absent on daily series and older points.
|
|
98
|
+
*/
|
|
99
|
+
releasedOn?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface CloudFredSeriesInfoPayload {
|
|
103
|
+
id: string;
|
|
104
|
+
title: string;
|
|
105
|
+
units: string;
|
|
106
|
+
frequency: string;
|
|
107
|
+
seasonalAdjustment: string;
|
|
108
|
+
source: string;
|
|
109
|
+
notes: string;
|
|
110
|
+
lastUpdated?: string;
|
|
111
|
+
observationStart?: string;
|
|
112
|
+
observationEnd?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface CloudFredSeriesPayload {
|
|
116
|
+
observations: CloudFredObservationPayload[];
|
|
117
|
+
info: CloudFredSeriesInfoPayload | null;
|
|
118
|
+
fetchedAt?: string;
|
|
119
|
+
stale?: boolean;
|
|
120
|
+
coverage?: { observations: "available"; info: "available" | "unavailable" };
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** The FRED series Gloom Cloud serves, from `GET /cloud/econ/series`; any other id is refused. */
|
|
124
|
+
export interface CloudFredSeriesCatalogPayload {
|
|
125
|
+
series: Array<{ id: string; title?: string | null; group?: string | null }>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* One month of Robert Shiller's dataset. FRED carries no long-run S&P earnings,
|
|
130
|
+
* so this is what every earnings-based valuation ratio is built from.
|
|
131
|
+
*/
|
|
132
|
+
interface CloudShillerObservationPayload {
|
|
133
|
+
date: string;
|
|
134
|
+
price: number | null;
|
|
135
|
+
dividend: number | null;
|
|
136
|
+
earnings: number | null;
|
|
137
|
+
cpi: number | null;
|
|
138
|
+
longRate: number | null;
|
|
139
|
+
cape: number | null;
|
|
140
|
+
/** CAPE earnings yield over the real 10-year rate; Shiller's equity risk premium. */
|
|
141
|
+
excessCapeYield: number | null;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface CloudShillerPayload {
|
|
145
|
+
observations: CloudShillerObservationPayload[];
|
|
146
|
+
sourceUrl: string;
|
|
147
|
+
fetchedAt: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface CloudYieldPointPayload {
|
|
151
|
+
maturity: string;
|
|
152
|
+
maturityYears: number;
|
|
153
|
+
yield: number | null;
|
|
154
|
+
/** FRED observation date. Absent on servers older than the field. */
|
|
155
|
+
asOf?: string | null;
|
|
156
|
+
fetchedAt?: string;
|
|
157
|
+
stale?: boolean;
|
|
158
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/** Cache reuse policy for one Equity Diagnostic request. */
|
|
2
|
+
export type CloudEquityDiagnosticMode = "cache-first" | "refresh";
|
|
3
|
+
|
|
4
|
+
export type CloudEquityDiagnosticFindingKind =
|
|
5
|
+
"red_flag" | "green_flag" | "anomaly";
|
|
6
|
+
|
|
7
|
+
/** 3 is the most severe. */
|
|
8
|
+
type CloudEquityDiagnosticSeverity = 1 | 2 | 3;
|
|
9
|
+
|
|
10
|
+
export interface CloudEquityDiagnosticFinding {
|
|
11
|
+
id: string;
|
|
12
|
+
kind: CloudEquityDiagnosticFindingKind;
|
|
13
|
+
severity: CloudEquityDiagnosticSeverity;
|
|
14
|
+
confidence: number;
|
|
15
|
+
title: string;
|
|
16
|
+
/** What the data says, with no reading attached. */
|
|
17
|
+
observation: string;
|
|
18
|
+
/** What the observation may mean; kept apart from the observation on purpose. */
|
|
19
|
+
interpretation: string;
|
|
20
|
+
/** Ids into `evidence`; unresolved ids are dropped by the client. */
|
|
21
|
+
evidenceIds: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface CloudEquityDiagnosticCoverage {
|
|
25
|
+
dataset: string;
|
|
26
|
+
status: "available" | "no_data" | "unsupported" | "failed";
|
|
27
|
+
asOf?: string;
|
|
28
|
+
provider?: string;
|
|
29
|
+
note?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** The server owns citation URLs; the client never builds them. */
|
|
33
|
+
export interface CloudEquityDiagnosticEvidence {
|
|
34
|
+
id: string;
|
|
35
|
+
dataset: string;
|
|
36
|
+
label: string;
|
|
37
|
+
asOf?: string;
|
|
38
|
+
provider?: string;
|
|
39
|
+
url?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface CloudEquityDiagnosticPending {
|
|
43
|
+
status: "generating";
|
|
44
|
+
retryAfterMs: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface CloudEquityDiagnosticResponse {
|
|
48
|
+
schemaVersion: 1;
|
|
49
|
+
access: "preview" | "full";
|
|
50
|
+
symbol: string;
|
|
51
|
+
exchange: string;
|
|
52
|
+
companyName?: string;
|
|
53
|
+
status: "complete" | "partial" | "insufficient_data";
|
|
54
|
+
verdict: "risk_skewed" | "balanced" | "opportunity_skewed" | "unclear";
|
|
55
|
+
summary: string;
|
|
56
|
+
confidence: number;
|
|
57
|
+
findings: CloudEquityDiagnosticFinding[];
|
|
58
|
+
watchItems: string[];
|
|
59
|
+
coverage: CloudEquityDiagnosticCoverage[];
|
|
60
|
+
evidence: CloudEquityDiagnosticEvidence[];
|
|
61
|
+
generatedAt: string;
|
|
62
|
+
expiresAt: string;
|
|
63
|
+
/** Before this instant a `refresh` request may still answer from cache. */
|
|
64
|
+
refreshAllowedAt: string;
|
|
65
|
+
cached: boolean;
|
|
66
|
+
stale: boolean;
|
|
67
|
+
promptVersion: 1;
|
|
68
|
+
/** The model that answered. Diagnostic only: never rendered to the user. */
|
|
69
|
+
model: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type CloudEquityDiagnosticResult =
|
|
73
|
+
CloudEquityDiagnosticPending | CloudEquityDiagnosticResponse;
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import type { CompanyFrom } from "../../types/company-from";
|
|
2
|
+
|
|
3
|
+
export interface CloudEarningsCallPayload {
|
|
4
|
+
id: string;
|
|
5
|
+
ticker: string;
|
|
6
|
+
companyName: string | null;
|
|
7
|
+
fiscalYear: number | null;
|
|
8
|
+
fiscalQuarter: number | null;
|
|
9
|
+
callAt: string | null;
|
|
10
|
+
status: string;
|
|
11
|
+
durationSeconds: number | null;
|
|
12
|
+
wordCount: number | null;
|
|
13
|
+
hasTranscript: boolean;
|
|
14
|
+
sentiment: number | null;
|
|
15
|
+
/** The replay or event page the transcript came from. */
|
|
16
|
+
webcastUrl?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Whether `callAt` is the call's start or its day alone (00:00 UTC of that
|
|
19
|
+
* New York day). Absent from a server that predates it.
|
|
20
|
+
*/
|
|
21
|
+
callTimeKnown?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* "other" for an event that is not an earnings call (a deal call, a
|
|
24
|
+
* conference, an investor day), named by eventLabel and with no fiscal
|
|
25
|
+
* period; null when unclear. Older servers omit both.
|
|
26
|
+
*/
|
|
27
|
+
eventKind?: "earnings" | "other" | null;
|
|
28
|
+
eventLabel?: string | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface CloudEarningsCallListPayload {
|
|
32
|
+
calls: CloudEarningsCallPayload[];
|
|
33
|
+
/** Set when asking about a company started a search that is still running. */
|
|
34
|
+
pending?: boolean;
|
|
35
|
+
/** Set when the requested symbol is not one the SEC knows. */
|
|
36
|
+
unknownTicker?: boolean;
|
|
37
|
+
/** The company's home line the calls are read from, when not the listing asked (a receipt, a foreign line). */
|
|
38
|
+
companyFrom?: CompanyFrom;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** One row of a proxy statement's Summary Compensation Table, in dollars. */
|
|
42
|
+
export interface CloudExecutiveRowPayload {
|
|
43
|
+
name: string;
|
|
44
|
+
title: string;
|
|
45
|
+
salary: number | null;
|
|
46
|
+
bonus: number | null;
|
|
47
|
+
stockAwards: number | null;
|
|
48
|
+
optionAwards: number | null;
|
|
49
|
+
nonEquityIncentive: number | null;
|
|
50
|
+
pensionAndDeferred: number | null;
|
|
51
|
+
allOther: number | null;
|
|
52
|
+
total: number | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface CloudProxyStatementSummaryPayload {
|
|
56
|
+
id: string;
|
|
57
|
+
ticker: string;
|
|
58
|
+
company: {
|
|
59
|
+
ticker: string;
|
|
60
|
+
cik: string | null;
|
|
61
|
+
name: string;
|
|
62
|
+
shortName: string;
|
|
63
|
+
};
|
|
64
|
+
/** Year of the filing date: what people call "the 2026 proxy". */
|
|
65
|
+
proxyYear: number;
|
|
66
|
+
fiscalYear: number | null;
|
|
67
|
+
fiscalYearLabel: string | null;
|
|
68
|
+
filedAt: string;
|
|
69
|
+
meetingDate: string | null;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
ceoName: string | null;
|
|
72
|
+
ceoTitle: string | null;
|
|
73
|
+
ceoTotal: number | null;
|
|
74
|
+
ceoPriorYearTotal: number | null;
|
|
75
|
+
payRatio: number | null;
|
|
76
|
+
medianEmployeePay: number | null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface CloudProxyStatementPayload extends CloudProxyStatementSummaryPayload {
|
|
80
|
+
/**
|
|
81
|
+
* `preview` for an account without Pro: each executive's total pay from
|
|
82
|
+
* the latest proxy, with the breakdown, the year before, the pay ratio,
|
|
83
|
+
* say-on-pay, highlights, key figures and other years null or empty.
|
|
84
|
+
* Absent on Pro's full statement.
|
|
85
|
+
*/
|
|
86
|
+
access?: "preview";
|
|
87
|
+
docUrl: string;
|
|
88
|
+
ceo: (CloudExecutiveRowPayload & { priorYearTotal: number | null }) | null;
|
|
89
|
+
namedExecutives: CloudExecutiveRowPayload[];
|
|
90
|
+
sayOnPayPriorSupport: number | null;
|
|
91
|
+
highlights: string | null;
|
|
92
|
+
keyFigures: CloudTranscriptKeyFigurePayload[];
|
|
93
|
+
otherYears: CloudProxyStatementSummaryPayload[];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface CloudRiskFactorPayload {
|
|
97
|
+
heading: string;
|
|
98
|
+
group: string | null;
|
|
99
|
+
excerpt: string;
|
|
100
|
+
words: number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface CloudRiskNotePayload {
|
|
104
|
+
/** Position of the risk in `risks` (or in the prior year's list, for removed). */
|
|
105
|
+
index: number;
|
|
106
|
+
text: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface CloudRiskReportSummaryPayload {
|
|
110
|
+
id: string;
|
|
111
|
+
ticker: string;
|
|
112
|
+
company: {
|
|
113
|
+
ticker: string;
|
|
114
|
+
cik: string | null;
|
|
115
|
+
name: string;
|
|
116
|
+
shortName: string;
|
|
117
|
+
};
|
|
118
|
+
/** Year of the filing date: "the 2026 10-K". */
|
|
119
|
+
reportYear: number;
|
|
120
|
+
filedAt: string;
|
|
121
|
+
updatedAt: string;
|
|
122
|
+
riskCount: number;
|
|
123
|
+
groupCount: number;
|
|
124
|
+
wordCount: number;
|
|
125
|
+
addedCount: number | null;
|
|
126
|
+
removedCount: number | null;
|
|
127
|
+
rewordedCount: number | null;
|
|
128
|
+
overview: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* The 10-K lists no risk factors (a smaller reporting company need not):
|
|
131
|
+
* no risks, and `overview` says so. Older servers leave it out and send a
|
|
132
|
+
* risk count of 0.
|
|
133
|
+
*/
|
|
134
|
+
listsNoRiskFactors?: boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface CloudRiskReportPayload extends CloudRiskReportSummaryPayload {
|
|
138
|
+
docUrl: string;
|
|
139
|
+
groups: string[];
|
|
140
|
+
risks: CloudRiskFactorPayload[];
|
|
141
|
+
diff: {
|
|
142
|
+
added: number[];
|
|
143
|
+
removed: Array<{ heading: string; group: string | null; excerpt: string }>;
|
|
144
|
+
reworded: Array<{
|
|
145
|
+
index: number;
|
|
146
|
+
similarity: number;
|
|
147
|
+
headingChanged: boolean;
|
|
148
|
+
priorHeading: string | null;
|
|
149
|
+
}>;
|
|
150
|
+
matched: number;
|
|
151
|
+
priorRiskCount: number;
|
|
152
|
+
} | null;
|
|
153
|
+
notes: {
|
|
154
|
+
added: CloudRiskNotePayload[];
|
|
155
|
+
removed: CloudRiskNotePayload[];
|
|
156
|
+
reworded: CloudRiskNotePayload[];
|
|
157
|
+
top: CloudRiskNotePayload[];
|
|
158
|
+
};
|
|
159
|
+
otherYears: CloudRiskReportSummaryPayload[];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface CloudRiskReportListPayload {
|
|
163
|
+
company: {
|
|
164
|
+
ticker: string;
|
|
165
|
+
cik: string | null;
|
|
166
|
+
name: string;
|
|
167
|
+
shortName: string;
|
|
168
|
+
} | null;
|
|
169
|
+
reports: CloudRiskReportSummaryPayload[];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface CloudFilingPersonPayload {
|
|
173
|
+
name: string;
|
|
174
|
+
role: string;
|
|
175
|
+
action: string;
|
|
176
|
+
effective: string | null;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** An 8-K, classified by its items and, when it carried news, read. */
|
|
180
|
+
export interface CloudFilingEventPayload {
|
|
181
|
+
id: string;
|
|
182
|
+
ticker: string;
|
|
183
|
+
company: {
|
|
184
|
+
ticker: string;
|
|
185
|
+
cik: string | null;
|
|
186
|
+
name: string;
|
|
187
|
+
shortName: string;
|
|
188
|
+
};
|
|
189
|
+
filedAt: string;
|
|
190
|
+
/** Verified SEC filing calendar date; filedAt may instead be an acceptance instant. */
|
|
191
|
+
filingDate?: string | null;
|
|
192
|
+
/** "8-K", or "8-K/A" for an amendment. Older servers omit it. */
|
|
193
|
+
form?: string;
|
|
194
|
+
docUrl: string;
|
|
195
|
+
items: string[];
|
|
196
|
+
labels: string[];
|
|
197
|
+
kinds: string[];
|
|
198
|
+
material: boolean;
|
|
199
|
+
headline: string | null;
|
|
200
|
+
summary: string | null;
|
|
201
|
+
people: CloudFilingPersonPayload[];
|
|
202
|
+
/** True when the headline and points are the model's reading rather than the item labels. */
|
|
203
|
+
read: boolean;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface CloudProxyStatementListPayload {
|
|
207
|
+
company: {
|
|
208
|
+
ticker: string;
|
|
209
|
+
cik: string | null;
|
|
210
|
+
name: string;
|
|
211
|
+
shortName: string;
|
|
212
|
+
};
|
|
213
|
+
proxies: CloudProxyStatementSummaryPayload[];
|
|
214
|
+
/** `preview` for an account without Pro: the latest proxy alone, without the year before or the pay ratio. */
|
|
215
|
+
access?: "preview";
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface CloudTranscriptTurnPayload {
|
|
219
|
+
speaker: string;
|
|
220
|
+
role?: string;
|
|
221
|
+
company?: string;
|
|
222
|
+
text: string;
|
|
223
|
+
/** `text` cut where the speaker paused or changed topic; absent on older transcripts. */
|
|
224
|
+
paragraphs?: string[];
|
|
225
|
+
isQa: boolean;
|
|
226
|
+
/** Offset into the recording; null when the company published the transcript as a document. */
|
|
227
|
+
startSeconds: number | null;
|
|
228
|
+
/** Where each of `paragraphs` starts in the recording, in seconds; absent without timings or on older servers. */
|
|
229
|
+
paragraphStarts?: number[];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
interface CloudTranscriptKeyFigurePayload {
|
|
233
|
+
/** What the number is, e.g. "Q3 revenue guidance". */
|
|
234
|
+
label: string;
|
|
235
|
+
/** As management said it, e.g. "$108B ± 2%". */
|
|
236
|
+
value: string;
|
|
237
|
+
/** Comparison or qualifier, e.g. "vs $96B in Q2". */
|
|
238
|
+
note?: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
interface CloudTranscriptParticipantPayload {
|
|
242
|
+
name: string;
|
|
243
|
+
role?: string;
|
|
244
|
+
company?: string;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface CloudEarningsTranscriptPayload {
|
|
248
|
+
id: string;
|
|
249
|
+
ticker: string;
|
|
250
|
+
companyName: string | null;
|
|
251
|
+
fiscalYear: number | null;
|
|
252
|
+
fiscalQuarter: number | null;
|
|
253
|
+
/**
|
|
254
|
+
* "other" for an event that is not an earnings call (a deal call, a
|
|
255
|
+
* conference, an investor day), named by eventLabel and with no fiscal
|
|
256
|
+
* period; null when unclear. Older servers omit both.
|
|
257
|
+
*/
|
|
258
|
+
eventKind?: "earnings" | "other" | null;
|
|
259
|
+
eventLabel?: string | null;
|
|
260
|
+
callAt: string | null;
|
|
261
|
+
timing: string | null;
|
|
262
|
+
webcastUrl: string | null;
|
|
263
|
+
durationSeconds: number | null;
|
|
264
|
+
status: string;
|
|
265
|
+
fullText: string;
|
|
266
|
+
turns: CloudTranscriptTurnPayload[];
|
|
267
|
+
participants: CloudTranscriptParticipantPayload[];
|
|
268
|
+
/** The numbers management gave, picked for a card; empty on older transcripts. */
|
|
269
|
+
keyFigures?: CloudTranscriptKeyFigurePayload[];
|
|
270
|
+
summary: string | null;
|
|
271
|
+
guidance: string | null;
|
|
272
|
+
riskFactors: string | null;
|
|
273
|
+
analystFocus: string | null;
|
|
274
|
+
notable: string | null;
|
|
275
|
+
sentiment: number | null;
|
|
276
|
+
sentimentRationale: string | null;
|
|
277
|
+
qaStartTurn: number | null;
|
|
278
|
+
wordCount: number | null;
|
|
279
|
+
asrModel: string | null;
|
|
280
|
+
updatedAt: string | null;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* A call's audio to play beside its transcript. `kind` names what it is; a
|
|
285
|
+
* stored recording is the only kind so far.
|
|
286
|
+
*/
|
|
287
|
+
export interface CloudEarningsCallAudioPayload {
|
|
288
|
+
kind: "recording";
|
|
289
|
+
/** A signed address that plays until `expiresAt`, seeking included. */
|
|
290
|
+
url: string;
|
|
291
|
+
expiresAt: string;
|
|
292
|
+
durationSeconds: number | null;
|
|
293
|
+
bytes?: number;
|
|
294
|
+
contentType?: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
interface CloudSecFilingPayload {
|
|
298
|
+
accessionNumber: string;
|
|
299
|
+
form: string;
|
|
300
|
+
filingDate: string;
|
|
301
|
+
acceptedAt?: string;
|
|
302
|
+
/** Unmodified SEC acceptanceDateTime; a missing timezone is not inferred. */
|
|
303
|
+
acceptedAtRaw?: string;
|
|
304
|
+
primaryDocument?: string;
|
|
305
|
+
primaryDocDescription?: string;
|
|
306
|
+
items?: string;
|
|
307
|
+
/** SEC's period of report, YYYY-MM-DD: a 10-Q's or 10-K's balance-sheet date. Absent from older servers. */
|
|
308
|
+
reportDate?: string;
|
|
309
|
+
cik: string;
|
|
310
|
+
companyName?: string;
|
|
311
|
+
filingUrl: string;
|
|
312
|
+
primaryDocumentUrl?: string;
|
|
313
|
+
/** The filing's SEC file number for this company, empty when it has none. Absent from older servers. */
|
|
314
|
+
fileNumber?: string;
|
|
315
|
+
/** In a fund's list from a trust that runs several funds: filed for the fund's own series. Absent from older servers. */
|
|
316
|
+
fundSeries?: boolean;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
interface CloudSecDocumentPayload {
|
|
320
|
+
sequence?: string;
|
|
321
|
+
type: string;
|
|
322
|
+
description?: string;
|
|
323
|
+
document: string;
|
|
324
|
+
url: string;
|
|
325
|
+
size?: string;
|
|
326
|
+
isPrimary: boolean;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export interface CloudSecFilingsResponse {
|
|
330
|
+
filings: CloudSecFilingPayload[];
|
|
331
|
+
hasMore: boolean;
|
|
332
|
+
nextOffset: number;
|
|
333
|
+
/** The company's home line the filings are read from, when not the listing asked (a foreign line). */
|
|
334
|
+
companyFrom?: CompanyFrom;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export interface CloudSecDocumentsResponse {
|
|
338
|
+
documents: CloudSecDocumentPayload[];
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
interface CloudSecForm4Payload {
|
|
342
|
+
filingDate: string;
|
|
343
|
+
reportedName: string;
|
|
344
|
+
title: string;
|
|
345
|
+
transactionType: "P" | "S" | "A" | "D" | "";
|
|
346
|
+
shares: number;
|
|
347
|
+
pricePerShare: number | null;
|
|
348
|
+
totalValue: number | null;
|
|
349
|
+
sharesOwned: number | null;
|
|
350
|
+
form: string;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export interface CloudSecContentResponse {
|
|
354
|
+
content: string | null;
|
|
355
|
+
form4: CloudSecForm4Payload | null;
|
|
356
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type * from "./account";
|
|
2
|
+
export type * from "./assist";
|
|
3
|
+
export type * from "./auth";
|
|
4
|
+
export type * from "./billing";
|
|
5
|
+
export type * from "./chat";
|
|
6
|
+
export type * from "./congress";
|
|
7
|
+
export type * from "./credit";
|
|
8
|
+
export type * from "./econ";
|
|
9
|
+
export type * from "./equity-diagnostic";
|
|
10
|
+
export type * from "./filings-and-calls";
|
|
11
|
+
export type * from "./jobs";
|
|
12
|
+
export type * from "./market";
|
|
13
|
+
export type * from "./news";
|
|
14
|
+
export type * from "./notes-and-theses";
|
|
15
|
+
export type * from "./quotes";
|
|
16
|
+
export type * from "./scanners";
|
|
17
|
+
export type * from "./screener";
|
|
18
|
+
export type * from "./search";
|
|
19
|
+
export type * from "./sync";
|
|
20
|
+
export type * from "./team-collections";
|
|
21
|
+
export type * from "./team-views";
|
|
22
|
+
export type * from "./teams";
|
|
23
|
+
export type * from "./ticker-data";
|
|
24
|
+
export type * from "./tweets";
|
|
25
|
+
export type * from "./world-venues";
|