@cyanheads/secedgar-mcp-server 0.18.1 → 0.19.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/AGENTS.md +36 -24
- package/CLAUDE.md +36 -24
- package/README.md +16 -12
- package/changelog/0.19.x/0.19.0.md +47 -0
- package/changelog/0.19.x/0.19.1.md +35 -0
- package/changelog/template.md +10 -3
- package/dist/config/server-config.js +2 -2
- package/dist/config/server-config.js.map +1 -1
- package/dist/index.js +27 -9
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/dataset-schema.d.ts +14 -0
- package/dist/mcp-server/tools/dataset-schema.d.ts.map +1 -0
- package/dist/mcp-server/tools/dataset-schema.js +16 -0
- package/dist/mcp-server/tools/dataset-schema.js.map +1 -0
- package/dist/mcp-server/tools/definitions/company-search.tool.d.ts +44 -14
- package/dist/mcp-server/tools/definitions/company-search.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/company-search.tool.js +197 -62
- package/dist/mcp-server/tools/definitions/company-search.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/compare-companies.tool.d.ts +26 -12
- package/dist/mcp-server/tools/definitions/compare-companies.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/compare-companies.tool.js +41 -39
- package/dist/mcp-server/tools/definitions/compare-companies.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/dataframe-describe.tool.d.ts +12 -3
- package/dist/mcp-server/tools/definitions/dataframe-describe.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/dataframe-describe.tool.js +23 -9
- package/dist/mcp-server/tools/definitions/dataframe-describe.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/dataframe-drop.tool.js +2 -2
- package/dist/mcp-server/tools/definitions/dataframe-drop.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/dataframe-query.tool.d.ts +16 -16
- package/dist/mcp-server/tools/definitions/dataframe-query.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/dataframe-query.tool.js +17 -17
- package/dist/mcp-server/tools/definitions/dataframe-query.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/fetch-frames.tool.d.ts +26 -12
- package/dist/mcp-server/tools/definitions/fetch-frames.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/fetch-frames.tool.js +15 -37
- package/dist/mcp-server/tools/definitions/fetch-frames.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/find-holders.tool.d.ts +36 -20
- package/dist/mcp-server/tools/definitions/find-holders.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/find-holders.tool.js +26 -41
- package/dist/mcp-server/tools/definitions/find-holders.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.d.ts +28 -12
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.js +30 -44
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-filing.tool.d.ts +50 -14
- package/dist/mcp-server/tools/definitions/get-filing.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-filing.tool.js +193 -59
- package/dist/mcp-server/tools/definitions/get-filing.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-financials.tool.d.ts +14 -6
- package/dist/mcp-server/tools/definitions/get-financials.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-financials.tool.js +38 -41
- package/dist/mcp-server/tools/definitions/get-financials.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-fund-holdings.tool.d.ts +28 -12
- package/dist/mcp-server/tools/definitions/get-fund-holdings.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-fund-holdings.tool.js +22 -35
- package/dist/mcp-server/tools/definitions/get-fund-holdings.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.d.ts +28 -12
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.js +22 -31
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.d.ts +36 -20
- package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.js +22 -39
- package/dist/mcp-server/tools/definitions/get-institutional-holdings.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-material-events.tool.d.ts +28 -12
- package/dist/mcp-server/tools/definitions/get-material-events.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-material-events.tool.js +23 -32
- package/dist/mcp-server/tools/definitions/get-material-events.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-snapshot.tool.d.ts +16 -7
- package/dist/mcp-server/tools/definitions/get-snapshot.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-snapshot.tool.js +24 -32
- package/dist/mcp-server/tools/definitions/get-snapshot.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +232 -101
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-concepts.tool.js +3 -3
- package/dist/mcp-server/tools/definitions/search-concepts.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-filings.tool.d.ts +46 -20
- package/dist/mcp-server/tools/definitions/search-filings.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-filings.tool.js +126 -68
- package/dist/mcp-server/tools/definitions/search-filings.tool.js.map +1 -1
- package/dist/mcp-server/tools/resolved-as.d.ts +10 -0
- package/dist/mcp-server/tools/resolved-as.d.ts.map +1 -0
- package/dist/mcp-server/tools/resolved-as.js +13 -0
- package/dist/mcp-server/tools/resolved-as.js.map +1 -0
- package/dist/mcp-server/tools/sec-upstream-errors.d.ts +44 -0
- package/dist/mcp-server/tools/sec-upstream-errors.d.ts.map +1 -0
- package/dist/mcp-server/tools/sec-upstream-errors.js +48 -0
- package/dist/mcp-server/tools/sec-upstream-errors.js.map +1 -0
- package/dist/services/canvas-bridge/canvas-bridge.d.ts +98 -45
- package/dist/services/canvas-bridge/canvas-bridge.d.ts.map +1 -1
- package/dist/services/canvas-bridge/canvas-bridge.js +137 -126
- package/dist/services/canvas-bridge/canvas-bridge.js.map +1 -1
- package/dist/services/canvas-bridge/sql-gate-extras.d.ts +4 -17
- package/dist/services/canvas-bridge/sql-gate-extras.d.ts.map +1 -1
- package/dist/services/canvas-bridge/sql-gate-extras.js +4 -22
- package/dist/services/canvas-bridge/sql-gate-extras.js.map +1 -1
- package/dist/services/edgar/concept-map.d.ts +10 -6
- package/dist/services/edgar/concept-map.d.ts.map +1 -1
- package/dist/services/edgar/concept-map.js +90 -22
- package/dist/services/edgar/concept-map.js.map +1 -1
- package/dist/services/edgar/data/former-tickers.json +24159 -0
- package/dist/services/edgar/edgar-api-service.d.ts +250 -62
- package/dist/services/edgar/edgar-api-service.d.ts.map +1 -1
- package/dist/services/edgar/edgar-api-service.js +808 -189
- package/dist/services/edgar/edgar-api-service.js.map +1 -1
- package/dist/services/edgar/filing-to-text.d.ts +71 -2
- package/dist/services/edgar/filing-to-text.d.ts.map +1 -1
- package/dist/services/edgar/filing-to-text.js +533 -5
- package/dist/services/edgar/filing-to-text.js.map +1 -1
- package/dist/services/edgar/former-tickers.d.ts +47 -0
- package/dist/services/edgar/former-tickers.d.ts.map +1 -0
- package/dist/services/edgar/former-tickers.js +77 -0
- package/dist/services/edgar/former-tickers.js.map +1 -0
- package/dist/services/edgar/listing-codes.d.ts +47 -0
- package/dist/services/edgar/listing-codes.d.ts.map +1 -0
- package/dist/services/edgar/listing-codes.js +110 -0
- package/dist/services/edgar/listing-codes.js.map +1 -0
- package/dist/services/edgar/mirror/edgar-mirror.d.ts +11 -1
- package/dist/services/edgar/mirror/edgar-mirror.d.ts.map +1 -1
- package/dist/services/edgar/mirror/edgar-mirror.js +19 -1
- package/dist/services/edgar/mirror/edgar-mirror.js.map +1 -1
- package/dist/services/edgar/mirror/tickers-sync.d.ts.map +1 -1
- package/dist/services/edgar/mirror/tickers-sync.js +1 -3
- package/dist/services/edgar/mirror/tickers-sync.js.map +1 -1
- package/dist/services/edgar/mirror/types.d.ts +3 -1
- package/dist/services/edgar/mirror/types.d.ts.map +1 -1
- package/dist/services/edgar/mirror/types.js +3 -1
- package/dist/services/edgar/mirror/types.js.map +1 -1
- package/dist/services/edgar/trigram-similarity.d.ts +5 -3
- package/dist/services/edgar/trigram-similarity.d.ts.map +1 -1
- package/dist/services/edgar/trigram-similarity.js +18 -17
- package/dist/services/edgar/trigram-similarity.js.map +1 -1
- package/dist/services/edgar/types.d.ts +20 -7
- package/dist/services/edgar/types.d.ts.map +1 -1
- package/package.json +6 -5
- package/server.json +3 -3
- package/skills/secedgar-guide/SKILL.md +3 -3
- package/dist/mcp-server/tools/escape-inline.d.ts +0 -35
- package/dist/mcp-server/tools/escape-inline.d.ts.map +0 -1
- package/dist/mcp-server/tools/escape-inline.js +0 -51
- package/dist/mcp-server/tools/escape-inline.js.map +0 -1
|
@@ -32,6 +32,37 @@ interface ReadOptions {
|
|
|
32
32
|
/** Read only the body's head (`tryGetFilingDocumentHead`). */
|
|
33
33
|
readonly cutoff?: HeadCutoff;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Most bytes each per-key cache of parsed SEC documents holds, by the estimates below —
|
|
37
|
+
* 448 MiB across the three; past its limit a cache drops the entries used longest ago.
|
|
38
|
+
* Every company-scoped read and every mirror point read (#234) goes through the submissions
|
|
39
|
+
* cache. The full-index share holds the heaviest run of quarters one pre-2001 browse reads
|
|
40
|
+
* (`FULL_INDEX_QUARTER_SCAN_CAP` in `search-filings.tool.ts`, 8: 1999Q1–2000Q4, about
|
|
41
|
+
* 221 MiB by `FULL_INDEX_ROW_BYTES`), so the next page of a browse reads no quarter again:
|
|
42
|
+
* a share smaller than one scan drops each quarter before the repeat reaches it.
|
|
43
|
+
* Exported for the cache tests.
|
|
44
|
+
*/
|
|
45
|
+
export declare const CACHE_BYTE_LIMITS: {
|
|
46
|
+
readonly submissions: number;
|
|
47
|
+
readonly archivePages: number;
|
|
48
|
+
readonly fullIndex: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Estimated heap one value of a parsed filings column set retains (`filings.recent` or an
|
|
52
|
+
* archive page), at least the most measured under Bun or Node. Exported for the cache tests.
|
|
53
|
+
*/
|
|
54
|
+
export declare const FILING_VALUE_BYTES = 24;
|
|
55
|
+
/**
|
|
56
|
+
* Estimated heap a parsed submissions document retains beyond its `recent` columns (entity
|
|
57
|
+
* metadata, the archive-page manifest), at least the most measured under Bun or Node.
|
|
58
|
+
* Exported for the cache tests.
|
|
59
|
+
*/
|
|
60
|
+
export declare const SUBMISSIONS_DOC_BYTES = 4096;
|
|
61
|
+
/**
|
|
62
|
+
* Estimated heap one parsed full-index row retains, at least the most measured under Bun or
|
|
63
|
+
* Node. Exported for the cache tests.
|
|
64
|
+
*/
|
|
65
|
+
export declare const FULL_INDEX_ROW_BYTES = 352;
|
|
35
66
|
/** A candidate suggestion from the trigram scan on no-result name search. */
|
|
36
67
|
export interface CompanySuggestion {
|
|
37
68
|
cik: string;
|
|
@@ -41,7 +72,10 @@ export interface CompanySuggestion {
|
|
|
41
72
|
/** A resolved candidate from EFTS entity-autocomplete (`resolveEntityByName`). */
|
|
42
73
|
export interface EntityNameMatch {
|
|
43
74
|
cik: string;
|
|
75
|
+
/** The entity's name, without the ticker list SEC appends to a listed entity's (#236). */
|
|
44
76
|
name: string;
|
|
77
|
+
/** The first ticker SEC lists for the entity; absent when it lists none. */
|
|
78
|
+
ticker?: string;
|
|
45
79
|
}
|
|
46
80
|
/** What EFTS entity-autocomplete answers for a name: its first page of hits and its count. */
|
|
47
81
|
export interface EntityNameResolution {
|
|
@@ -57,6 +91,23 @@ export interface EntityNameResolution {
|
|
|
57
91
|
relation: string;
|
|
58
92
|
} | undefined;
|
|
59
93
|
}
|
|
94
|
+
/** A filer whose 10-K subsidiaries exhibit (EX-21) holds a name (`findSubsidiaryParents`). */
|
|
95
|
+
export interface SubsidiaryParent {
|
|
96
|
+
/** Accession number of the newest such 10-K. */
|
|
97
|
+
accessionNumber: string;
|
|
98
|
+
cik: string;
|
|
99
|
+
/** Filing date of the newest such 10-K (YYYY-MM-DD). */
|
|
100
|
+
filingDate: string;
|
|
101
|
+
/** The filer's name as that 10-K records it; absent when it records none for this CIK. */
|
|
102
|
+
name?: string;
|
|
103
|
+
/** The filer's ticker in SEC's ticker file; absent when the file lists none. */
|
|
104
|
+
ticker?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* `name` as the phrase `findSubsidiaryParents` searches for: in double quotes, with any
|
|
108
|
+
* double quote inside it dropped, since one would end the phrase early.
|
|
109
|
+
*/
|
|
110
|
+
export declare function subsidiaryPhrase(name: string): string;
|
|
60
111
|
/** One fund series of a registrant, as listed in company_tickers_mf.json. */
|
|
61
112
|
export interface FundSeriesEntry {
|
|
62
113
|
seriesId: string;
|
|
@@ -108,6 +159,11 @@ export declare function foldNamePunctuation(name: string): string;
|
|
|
108
159
|
* lookarounds are fixed-width, so the scan stays linear in the name's length.
|
|
109
160
|
*/
|
|
110
161
|
export declare function joinSpacedInitials(name: string): string;
|
|
162
|
+
/**
|
|
163
|
+
* A letter or digit: the characters a name's word boundary falls between (#218). A query
|
|
164
|
+
* with none names no company.
|
|
165
|
+
*/
|
|
166
|
+
export declare const NAME_WORD_CHAR: RegExp;
|
|
111
167
|
/**
|
|
112
168
|
* Whether `name` contains `query` starting at a word boundary, so a substring hit never
|
|
113
169
|
* begins inside a word: `embassy bancorp, inc.` does not contain `sy bancorp, inc.` (#218).
|
|
@@ -115,6 +171,34 @@ export declare function joinSpacedInitials(name: string): string;
|
|
|
115
171
|
* can sit mid-word and a later one at a word start.
|
|
116
172
|
*/
|
|
117
173
|
export declare function containsFromWordStart(name: string, query: string): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Name-search tiers, strongest first: exact as written (`normalizeCompanySuffix` and
|
|
176
|
+
* `stripCompanySuffix` included), exact once folded (`foldNamePunctuation` on both sides,
|
|
177
|
+
* then the same two), exact once spaced initials join (`joinSpacedInitials` on the folded
|
|
178
|
+
* forms, then the same two), prefix of the joined form ending at a word boundary of the
|
|
179
|
+
* name, substring as written starting at a word boundary of the name (#210, #218, #219).
|
|
180
|
+
*/
|
|
181
|
+
export type NameTier = 0 | 1 | 2 | 3 | 4;
|
|
182
|
+
/** The loosest exact tier: 0–2 are exact, 3 is prefix, 4 is substring. */
|
|
183
|
+
export declare const LAST_EXACT_TIER: NameTier;
|
|
184
|
+
/** A name query's comparison forms, computed once per search for {@link nameTier}. */
|
|
185
|
+
export interface NameQuery {
|
|
186
|
+
readonly folded: string;
|
|
187
|
+
readonly foldedNormalized: string;
|
|
188
|
+
readonly joined: string;
|
|
189
|
+
readonly joinedNormalized: string;
|
|
190
|
+
readonly lower: string;
|
|
191
|
+
readonly lowerNormalized: string;
|
|
192
|
+
}
|
|
193
|
+
/** The comparison forms of `query` (trimmed) that {@link nameTier} reads. */
|
|
194
|
+
export declare function nameQuery(query: string): NameQuery;
|
|
195
|
+
/**
|
|
196
|
+
* The {@link NameTier} at which `name` (any case) matches `query`, or `undefined` when no
|
|
197
|
+
* tier reaches it. The three exact tiers also accept a suffix-normalized equality (#107)
|
|
198
|
+
* and the name minus its terminal suffix, so `Apple` names `Apple Inc.` exactly (#155);
|
|
199
|
+
* the query's own suffix is never dropped, so `Toro Co` never meets `TORO CORP.`.
|
|
200
|
+
*/
|
|
201
|
+
export declare function nameTier(name: string, query: NameQuery): NameTier | undefined;
|
|
118
202
|
/**
|
|
119
203
|
* Run a trigram similarity scan over the in-memory entry set. Each entry is scored
|
|
120
204
|
* on its name and on its ticker, and keeps the higher of the two — one ranked,
|
|
@@ -132,12 +216,34 @@ declare class EdgarApiService {
|
|
|
132
216
|
private gate;
|
|
133
217
|
private tickerCache;
|
|
134
218
|
private tickerCacheLoad;
|
|
135
|
-
/**
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
private
|
|
219
|
+
/**
|
|
220
|
+
* Per-CIK submissions doc cache, keyed by padded CIK (TTL = EDGAR_TICKER_CACHE_TTL), holding at
|
|
221
|
+
* most `CACHE_BYTE_LIMITS.submissions`. Mirror point reads take each filer's recency from it
|
|
222
|
+
* (#234), so every filer the mirror serves passes through it.
|
|
223
|
+
*/
|
|
224
|
+
private readonly submissionsCache;
|
|
225
|
+
/** The newest XBRL acceptance each cached submissions document records, worked out once per document (#234). */
|
|
226
|
+
private readonly xbrlRecency;
|
|
227
|
+
/** Each ticker index's word-order keys, built on the first query that reaches the tier (#236). */
|
|
228
|
+
private readonly wordOrderIndexes;
|
|
229
|
+
/**
|
|
230
|
+
* Filers whose recency read or live point read SEC just failed, keyed by padded CIK, each
|
|
231
|
+
* mapped to the instant the mirror stops answering for it unasked (#234), at most
|
|
232
|
+
* {@link FILER_FAILURE_LIMIT} of them.
|
|
233
|
+
*/
|
|
234
|
+
private readonly filerFailures;
|
|
235
|
+
/** Each filer's recency read in flight, which the point reads asking meanwhile share (#234). */
|
|
236
|
+
private readonly recencyLoads;
|
|
237
|
+
/**
|
|
238
|
+
* Per-page submissions archive cache, keyed by page name (TTL = EDGAR_TICKER_CACHE_TTL),
|
|
239
|
+
* holding at most `CACHE_BYTE_LIMITS.archivePages`.
|
|
240
|
+
*/
|
|
241
|
+
private readonly archivePageCache;
|
|
242
|
+
/**
|
|
243
|
+
* Per-quarter full-index cache, keyed by `${year}Q${quarter}` (TTL = EDGAR_TICKER_CACHE_TTL),
|
|
244
|
+
* holding at most `CACHE_BYTE_LIMITS.fullIndex`.
|
|
245
|
+
*/
|
|
246
|
+
private readonly fullIndexCache;
|
|
141
247
|
constructor();
|
|
142
248
|
/**
|
|
143
249
|
* Stop the pacer: queued requests reject with `RequestCancelled`, and so does
|
|
@@ -158,13 +264,22 @@ declare class EdgarApiService {
|
|
|
158
264
|
/**
|
|
159
265
|
* Resolve a query (ticker, name, or CIK) to company match(es).
|
|
160
266
|
* - Numeric input → direct CIK lookup
|
|
161
|
-
* - 1-5 uppercase
|
|
267
|
+
* - 1-5 letters in any case, or anything typed in uppercase → the ticker lookup (O(1)):
|
|
268
|
+
* the symbol as listed, else a dotted share class in its hyphenated form (#110), with a
|
|
269
|
+
* `reading` naming any earlier, different holder of the symbol (#237)
|
|
270
|
+
* - Typed in uppercase, unlisted → the ticker-spelling readings (`readTickerSpelling`,
|
|
271
|
+
* #235): a US venue code dropped (`UEC.N`), a preferred class run together (`CFGPH`), a
|
|
272
|
+
* root listed only as classes (`GLOP`), each match carrying `reading`; a non-US listing
|
|
273
|
+
* (`7203.T`) is no match
|
|
162
274
|
* - No letter or digit (`.`, `'`) → no match
|
|
163
275
|
* - Otherwise → name search (exact as written; exact once commas, periods, and
|
|
164
276
|
* apostrophes are folded out and whitespace runs collapse; exact once spaced initials
|
|
165
277
|
* join; prefix of the joined form ending at a word boundary; substring as written
|
|
166
|
-
* starting at one — resolved within the best tier a current name reaches)
|
|
167
|
-
*
|
|
278
|
+
* starting at one — resolved within the best tier a current name reaches). Typed in
|
|
279
|
+
* uppercase, a former ticker (#237) answers ahead of it unless a current name is the
|
|
280
|
+
* input exactly, or the former holder is listed no more and the names find one company
|
|
281
|
+
* - No name tier matching and two or more words → the word-order tier (#236)
|
|
282
|
+
* - Then, for input not typed in uppercase, the ticker lookup, then a former ticker
|
|
168
283
|
* Returns a single match, an array of multiple matches, or an empty array (no match).
|
|
169
284
|
* Multiple matches are every candidate of that tier, deduplicated by CIK, current names
|
|
170
285
|
* first, never cut: a consumer shows the first ten through `ambiguousMatches` and counts
|
|
@@ -173,6 +288,8 @@ declare class EdgarApiService {
|
|
|
173
288
|
* the thrown error at the handler layer — call `suggestCompanies` there.
|
|
174
289
|
*/
|
|
175
290
|
resolveCik(query: string, scope: CallScope): Promise<CikMatch | CikMatch[]>;
|
|
291
|
+
/** The word-order keys of one ticker index's entries, built once per index (#236). */
|
|
292
|
+
private wordOrderIndex;
|
|
176
293
|
/**
|
|
177
294
|
* Resolve an entity name to CIK candidates via EFTS entity-autocomplete
|
|
178
295
|
* (`search-index?keysTyped=`). Covers any EDGAR filer — institutional managers,
|
|
@@ -185,9 +302,22 @@ declare class EdgarApiService {
|
|
|
185
302
|
* Distinct from `searchFilings`: same URL path, different query param (`keysTyped`)
|
|
186
303
|
* and response shape (`_source.entity`, not the filing-document `_source`). A
|
|
187
304
|
* failure of the search backend throws `efts_degraded_response` like a search's,
|
|
188
|
-
* never reads as no match (#206). The name is escaped like a search's `q` (#205).
|
|
305
|
+
* never reads as no match (#206). The name is escaped like a search's `q` (#205). A
|
|
306
|
+
* listed entity's name comes back without the ticker list SEC appends to it, its first
|
|
307
|
+
* ticker beside it (#236).
|
|
189
308
|
*/
|
|
190
309
|
resolveEntityByName(name: string, scope: CallScope): Promise<EntityNameResolution>;
|
|
310
|
+
/**
|
|
311
|
+
* The filers whose 10-K subsidiaries exhibit (EX-21) holds `name` as a phrase (#236): one
|
|
312
|
+
* EDGAR full-text search for {@link subsidiaryPhrase} over 10-Ks, its first 100 documents.
|
|
313
|
+
* Only an exhibit whose type is EX-21 names a parent — the other 10-K documents that
|
|
314
|
+
* mention a private company are mostly a lender's schedule of investments or a
|
|
315
|
+
* competitor's or customer's narrative. Each filer of such an exhibit counts, since a
|
|
316
|
+
* combined report lists every co-registrant, and is reported at its newest one. Filers
|
|
317
|
+
* SEC's ticker file lists come first, then the newest exhibit, then search order. Fails
|
|
318
|
+
* as `searchFilings` fails.
|
|
319
|
+
*/
|
|
320
|
+
findSubsidiaryParents(name: string, scope: CallScope): Promise<SubsidiaryParent[]>;
|
|
191
321
|
/** Reverse lookup: CIK → ticker symbol. */
|
|
192
322
|
cikToTicker(cik: string, scope: CallScope): Promise<string | undefined>;
|
|
193
323
|
/**
|
|
@@ -221,7 +351,9 @@ declare class EdgarApiService {
|
|
|
221
351
|
* the last year or 1,000 filings, whichever holds more — + the `files[]`
|
|
222
352
|
* archive-page manifest). Cached per CIK within
|
|
223
353
|
* the ticker-cache TTL — the doc is large and re-read on every archive-paging
|
|
224
|
-
* scan (#78)
|
|
354
|
+
* scan (#78) and by every mirror point read (#234) — within
|
|
355
|
+
* `CACHE_BYTE_LIMITS.submissions`, the documents used longest ago dropped first. A 404
|
|
356
|
+
* throws (uncached) so a bad CIK still surfaces. A body without
|
|
225
357
|
* the shape the readers index fails as `sec_unreachable` (#186). Like every cache
|
|
226
358
|
* here, written only by a completed read — a cancelled or rejected one caches nothing.
|
|
227
359
|
*/
|
|
@@ -232,7 +364,8 @@ declare class EdgarApiService {
|
|
|
232
364
|
* `recent` window. Read through `SubmissionsArchiveWalk`. The page body is a flat parallel-array object
|
|
233
365
|
* field-compatible with `FilingsRecent`; one without its six indexed columns fails
|
|
234
366
|
* as `sec_unreachable`, uncached (#186). Cached per page within the ticker-cache
|
|
235
|
-
* TTL (pages are large and effectively immutable once archived)
|
|
367
|
+
* TTL (pages are large and effectively immutable once archived) and
|
|
368
|
+
* `CACHE_BYTE_LIMITS.archivePages`, the pages used longest ago dropped first.
|
|
236
369
|
*/
|
|
237
370
|
fetchArchivePage(name: string, scope: CallScope): Promise<FilingsRecent>;
|
|
238
371
|
/**
|
|
@@ -242,9 +375,12 @@ declare class EdgarApiService {
|
|
|
242
375
|
* full-text only reaches 2001, but the quarterly indexes reach 1993. The file
|
|
243
376
|
* is not form-filterable server-side (a whole-quarter download), so callers
|
|
244
377
|
* bound how many quarters they scan and filter client-side (#77). Cached per
|
|
245
|
-
* quarter within the ticker-cache TTL — an archived quarter is immutable
|
|
378
|
+
* quarter within the ticker-cache TTL — an archived quarter is immutable — and
|
|
379
|
+
* `CACHE_BYTE_LIMITS.fullIndex`, the quarters used longest ago dropped first.
|
|
246
380
|
*/
|
|
247
381
|
fetchFullIndexQuarter(year: number, quarter: number, scope: CallScope): Promise<FullIndexEntry[]>;
|
|
382
|
+
/** The document cached under `key` while within the ticker-cache TTL; an expired entry is dropped. */
|
|
383
|
+
private readFresh;
|
|
248
384
|
/** True when a cache entry loaded at `at` is still within the ticker-cache TTL. */
|
|
249
385
|
private isFresh;
|
|
250
386
|
searchFilings(params: {
|
|
@@ -331,57 +467,100 @@ declare class EdgarApiService {
|
|
|
331
467
|
* Fetch every XBRL fact a company has reported. Returns `null` on 404.
|
|
332
468
|
* Backs the whole-company reads (`get_snapshot`, `compare_companies`) and the
|
|
333
469
|
* no-data error path, which surfaces the namespaces and tags a filer uses.
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
* anything but an array is dropped (#141).
|
|
470
|
+
* Routed through the local mirror by {@link pointRead}; the mirror stores one row
|
|
471
|
+
* per (cik, taxonomy, tag) and reassembles the API shape off a `cik` point lookup.
|
|
472
|
+
* A concept unit that arrives as anything but an array is dropped (#141).
|
|
338
473
|
*/
|
|
339
474
|
tryGetCompanyFacts(cik: string, scope: CallScope): Promise<CompanyFactsResponse | null>;
|
|
340
475
|
/**
|
|
341
476
|
* Fetch XBRL data for a concept. Returns `null` if the company does not report this tag.
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* A payload whose every unit arrives malformed comes
|
|
345
|
-
* tag is named but carries nothing (#141).
|
|
477
|
+
* Routed through the local mirror by {@link pointRead}: where the store answers, a tag
|
|
478
|
+
* it lacks for a filer it holds is `null` with no live read, as SEC's 404 for an
|
|
479
|
+
* unreported tag would be (#234). A payload whose every unit arrives malformed comes
|
|
480
|
+
* back with no units — the tag is named but carries nothing (#141).
|
|
346
481
|
*/
|
|
347
482
|
tryGetCompanyConcept(cik: string, taxonomy: string, tag: string, scope: CallScope): Promise<CompanyConceptResponse | null>;
|
|
348
483
|
/**
|
|
349
484
|
* Fetch cross-company frame data. Returns `null` if no companies report this combination.
|
|
350
|
-
* A frame is a full scan of the company-facts store, so
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
* the
|
|
485
|
+
* A frame is a full scan of the company-facts store, so the mirror serves it only once
|
|
486
|
+
* that layer is fully synced (`companyFactsComplete()`): a partial or mid-sync store
|
|
487
|
+
* would yield a silently incomplete frame, so frames read live until it is complete,
|
|
488
|
+
* and strict mode (`mirrorFallbackLive` off) throws instead (#29). On a complete store:
|
|
489
|
+
* - Strict mode → the store's frame, `null` on a miss; nothing is sent.
|
|
490
|
+
* - A period whose filing window was still open at the companyfacts checkpoint
|
|
491
|
+
* ({@link frameWindowClosesMs}), or a store with no checkpoint → live, since filers
|
|
492
|
+
* may have reported for it since (#234). On any failure but the caller's cancel the
|
|
493
|
+
* store's frame answers, or the live failure stands when the store has none.
|
|
494
|
+
* - A closed period → the store's frame, which applies the holder-form rules the live
|
|
495
|
+
* frames API cannot (#123, #142); live on a miss.
|
|
355
496
|
*/
|
|
356
497
|
tryGetFrames(taxonomy: string, tag: string, unit: string, period: string, scope: CallScope): Promise<FramesResponse | null>;
|
|
357
498
|
/**
|
|
358
|
-
* Route a
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
*
|
|
363
|
-
* -
|
|
364
|
-
* -
|
|
365
|
-
*
|
|
366
|
-
* -
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
|
|
370
|
-
|
|
499
|
+
* Route a point read of one filer (`tryGetCompanyConcept`, `tryGetCompanyFacts`; `cik`
|
|
500
|
+
* zero-padded) through the local mirror (#234):
|
|
501
|
+
* - No mirror → live.
|
|
502
|
+
* - The company-facts layer has never synced → live; strict mode (`mirrorFallbackLive`
|
|
503
|
+
* off) throws instead.
|
|
504
|
+
* - Strict mode → the store, `null` on a miss; nothing is sent.
|
|
505
|
+
* - A filer the store does not hold → live, failing as the live read does, since the
|
|
506
|
+
* store has nothing to answer with.
|
|
507
|
+
* - The call's SEC-failure budget already spent, or no sign the filer has filed XBRL
|
|
508
|
+
* since the store's facts were compiled ({@link filerMayHaveFiled}) → the store; a tag
|
|
509
|
+
* it lacks is `null`, as SEC answers for a tag the filer does not report.
|
|
510
|
+
* - Otherwise → live. A 404 answers the store's row where it holds one, since SEC never
|
|
511
|
+
* drops a fact from a filer's companyfacts once reported, and `null` where it does not.
|
|
512
|
+
* On any failure but the caller's cancel the store answers, and goes on answering for
|
|
513
|
+
* that filer without asking SEC for {@link FILER_RETRY_MS}, or the failure's
|
|
514
|
+
* `retryAfter` when longer — so a rate-limit refusal never turns an answer the store
|
|
515
|
+
* holds into a failure — unless the call's own spent failure budget ended the read
|
|
516
|
+
* ({@link markFilerFailed}).
|
|
517
|
+
*/
|
|
518
|
+
private pointRead;
|
|
519
|
+
/**
|
|
520
|
+
* Whether SEC may hold facts for the filer that the store lacks: its newest XBRL filing
|
|
521
|
+
* ({@link filerRecency}) was accepted on or after the day before the companyfacts
|
|
522
|
+
* checkpoint — the bulk archive's `Last-Modified` — a margin for filings accepted while
|
|
523
|
+
* SEC compiled it. A store with no checkpoint answers yes, reading nothing; a failed
|
|
524
|
+
* recency read answers no, so the store answers.
|
|
525
|
+
*/
|
|
526
|
+
private filerMayHaveFiled;
|
|
527
|
+
/**
|
|
528
|
+
* The filer's newest XBRL acceptance in ms ({@link latestXbrlAcceptanceMs}) from its
|
|
529
|
+
* submissions document, read through `getSubmissions` and its cache — so a call that
|
|
530
|
+
* already holds the document sends nothing, and otherwise one read goes out per filer
|
|
531
|
+
* per TTL — or `undefined` while a failure marks the filer ({@link markFilerFailed}).
|
|
532
|
+
* Point reads asking while a read is in flight share it: a read the same call started,
|
|
533
|
+
* or another call's that cannot outspend this call's SEC-failure budget, the waiter
|
|
534
|
+
* charged the failure time it spent waiting; a read that could outlast the waiter's
|
|
535
|
+
* budget is not joined, and the call reads for itself. A shared read is cancelled only
|
|
536
|
+
* by the call that started it, and then each waiter asks again under its own scope. The
|
|
537
|
+
* caller's own cancel rethrows untouched.
|
|
538
|
+
*/
|
|
539
|
+
private filerRecency;
|
|
540
|
+
/** One recency read; any failure but the caller's cancel answers `undefined`, marking the filer ({@link markFilerFailed}). */
|
|
541
|
+
private readFilerRecency;
|
|
542
|
+
/**
|
|
543
|
+
* Have the store answer for the filer without asking SEC — no recency read, no live
|
|
544
|
+
* point read — for {@link FILER_RETRY_MS}, or the failure's `retryAfter` when longer.
|
|
545
|
+
* A failure the call's own failure budget ended ({@link budgetEndedFailures}) marks
|
|
546
|
+
* nothing: SEC failed none of its attempts, so it says nothing about the filer.
|
|
547
|
+
*/
|
|
548
|
+
private markFilerFailed;
|
|
371
549
|
/**
|
|
372
550
|
* Paced fetch with retry/backoff. Returns the body's text on 2xx — only its head
|
|
373
551
|
* when `cutoff` is given — and `null` on 404. A body the ladder has no use for — a
|
|
374
552
|
* 404's, a retried 5xx's, a 429's, one that lands as the caller cancels — is
|
|
375
553
|
* cancelled unread (#188); an error the last attempt earns carries a bounded head
|
|
376
|
-
* of its body, read like any other (#202).
|
|
377
|
-
* (#181): a 5xx, an attempt that got no HTTP
|
|
378
|
-
* read, and — for a request that opts in
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
* other two `sec_unreachable`. Other
|
|
383
|
-
*
|
|
384
|
-
* `RequestCancelled` — those are
|
|
554
|
+
* of its body on its `cause`, for the log only, read like any other (#202, #244).
|
|
555
|
+
* The body is read inside the ladder (#181): a 5xx, an attempt that got no HTTP
|
|
556
|
+
* response, a 2xx whose body failed to read, and — for a request that opts in
|
|
557
|
+
* with `backendFailure` — a 2xx whose whole body relays a transient failure of
|
|
558
|
+
* the search backend (#206) all retry up to `MAX_RETRIES` attempts, and then
|
|
559
|
+
* the last attempt decides — a 5xx throws `sec_unavailable` (#233), a backend
|
|
560
|
+
* failure `efts_degraded_response`, the other two `sec_unreachable`. Other
|
|
561
|
+
* non-OK statuses throw at once, as does the local refusal while SEC's
|
|
562
|
+
* rate-limit block is active, and the pacer's `RequestCancelled` — those are
|
|
563
|
+
* `McpError`s from `send()`, never retried.
|
|
385
564
|
*
|
|
386
565
|
* Every failed attempt and every backoff is charged to the call's failure budget,
|
|
387
566
|
* and the ladder ends early once the budget cannot cover another backoff and
|
|
@@ -393,14 +572,17 @@ declare class EdgarApiService {
|
|
|
393
572
|
/**
|
|
394
573
|
* The error a request's last attempt earned: `sec_unreachable` for no response or
|
|
395
574
|
* an unreadable body; `efts_degraded_response` for a body relaying a failure of the
|
|
396
|
-
* search backend (#206); for
|
|
397
|
-
* the
|
|
398
|
-
*
|
|
575
|
+
* search backend (#206); `sec_unavailable` for a 500, 502, 503, or 504, its message
|
|
576
|
+
* naming the attempt the ladder ended on and, when the failure budget stopped it,
|
|
577
|
+
* the budget (#179, #233); for any other HTTP answer, its status-classified
|
|
578
|
+
* `McpError`, with the 403 and 429 hints. Every HTTP answer keeps the status
|
|
579
|
+
* mapping's `data`: `url`, `status`, and SEC's `Retry-After` when it sends one.
|
|
399
580
|
*
|
|
400
581
|
* An HTTP answer's body is read under `scope` for the error's diagnostic
|
|
401
|
-
* (`errorBodyHead`, #202)
|
|
402
|
-
*
|
|
403
|
-
*
|
|
582
|
+
* (`errorBodyHead`, #202), which rides the error's `cause` to the log and never its
|
|
583
|
+
* `data` (#244) — except a 429's, and the one `scope` is `null` for: a retried 5xx
|
|
584
|
+
* whose body was released before its backoff. Either is built without a body, the
|
|
585
|
+
* 429's cancelled unread (#188).
|
|
404
586
|
*/
|
|
405
587
|
private ladderFailure;
|
|
406
588
|
/**
|
|
@@ -444,16 +626,22 @@ declare class EdgarApiService {
|
|
|
444
626
|
/** Refetch a failed live fund slice and rebuild the index on the cached base. */
|
|
445
627
|
private reloadFundSlice;
|
|
446
628
|
/**
|
|
447
|
-
* Everything the ticker index holds but the live fund slice
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
*
|
|
629
|
+
* Everything the ticker index holds but the live fund slice. `liveFunds` says whether
|
|
630
|
+
* company_tickers_mf.json supplements it — everywhere but strict mirror mode — as the
|
|
631
|
+
* only source of series and class IDs, since the mirror stores a fund symbol as a bare
|
|
632
|
+
* ticker → CIK row (#43).
|
|
633
|
+
* - No mirror, or its ticker layer not synced → company_tickers.json, failing as that
|
|
634
|
+
* read does; strict mode (`mirrorFallbackLive` off) throws instead.
|
|
635
|
+
* - Strict mode → the mirror's rows, its fund rows its only fund tickers; nothing is sent.
|
|
636
|
+
* - Otherwise → company_tickers.json, read every TTL as with no mirror, plus the mirror's
|
|
637
|
+
* fund rows, which rank behind the live fund slice and still resolve a symbol it lacks
|
|
638
|
+
* (#135). When the ticker file fails — a rate-limit refusal included — the index is
|
|
639
|
+
* built from all the mirror's rows and stands for the TTL, with one warning (#234).
|
|
640
|
+
* The load runs under the shared ticker load's scope, which no caller can cancel.
|
|
455
641
|
*/
|
|
456
642
|
private loadTickerBase;
|
|
643
|
+
/** company_tickers.json as equity rows; a 200 holding no ticker entry fails as `sec_unreachable`. */
|
|
644
|
+
private fetchTickerFile;
|
|
457
645
|
/**
|
|
458
646
|
* Fetch company_tickers_mf.json (ETFs and mutual funds) as fund rows carrying
|
|
459
647
|
* series and class IDs. Never throws: operating-company resolution must not
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edgar-api-service.d.ts","sourceRoot":"","sources":["../../../src/services/edgar/edgar-api-service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"edgar-api-service.d.ts","sourceRoot":"","sources":["../../../src/services/edgar/edgar-api-service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsBH,OAAO,EAA0B,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGpE,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,gBAAgB,EACtB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EACV,QAAQ,EACR,sBAAsB,EAEtB,oBAAoB,EAGpB,YAAY,EACZ,WA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