Skip to content

Commit 61e4a6b

Browse files
authored
chore: regenerate the schema and models (#231)
## Summary Regenerates the client against the API as of v1.15.11, which is live in prod. Prod's `/openapi.json` matches the spec this was generated from, apart from the version string, so the surface is already served. It picks up drift since the 2026-10-03 regeneration, mostly from server v1.15.8: one new field, one removed field, and description updates. ## Changes **Regenerated `models/` and `api/`** (generated output, no hand-written changes): - `SearchHit.accession_number` (optional) is added. - `FilingLinks.folder` is removed. The server replaced it with `manifest`, which lists every file in the filing's public folder with its URL. - Description-only updates, no shape change: - `build_fact_grid` / `CreateViewRequest`: canonical concepts and the `form` / `fiscal_*` filters are shared-repository only, and a tenant graph refuses them. - `describe_filing`, `read_text`, `search_text`: `form='8-K'` with `fiscal_year` reads the latest filed in that calendar year, and a CIK may stand in for the ticker. - `ReopenPeriodOperation.period`: only the latest closed period can be reopened. No facade under `robosystems_client/clients/` changes. ## Compatibility ADDITIVE, plus one **generated-tier removal: `FilingLinks.folder`**. Under the two-tier SDK contract this rides a client **minor**, named in the release notes, not a major: - it is generated surface, not the stable tier (no facade or root export uses it, and `robosystems-integration-template`'s emit path does not import it); - no consumer reads it: the three frontend apps, the integration template, the MCP client and both SDK facades were checked. The `.folder` reads in `robosystems-app` are the documents feature's own field. Release-note lines: - *Removed `FilingLinks.folder`; use `FilingLinks.manifest`.* - *Added `SearchHit.accession_number`.* ## Testing - `just test-all`: 617 passed, 17 skipped, and ruff, format and basedpyright are clean. The pre-push hook re-ran the same gate. - The regeneration itself was run by the maintainer against the local stack, which is current with `origin/main`. Its OpenAPI spec was compared to prod's and is identical apart from the version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013YNThRaaQ38JWrphvVCH8N
2 parents d3b3965 + 60c397a commit 61e4a6b

9 files changed

Lines changed: 71 additions & 59 deletions

File tree

‎robosystems_client/api/robo_ledger_analytical_views/build_fact_grid.py‎

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,12 @@ def sync_detailed(
111111
) -> Response[ErrorResponse | OperationEnvelopeViewResponse]:
112112
"""Build Fact Grid
113113
114-
Queries LadybugDB `Fact` nodes by element qnames or canonical concepts, with filters for periods,
115-
entities, form, and fiscal context. Returns deduplicated facts plus the aspects they span —
116-
arranging them into a table is the consumer's job, since collapsing cells safely requires the full
117-
aspect signature. Works on both roboledger tenant graphs (post-materialization) and the SEC shared
118-
repository.
114+
Queries LadybugDB `Fact` nodes by element qnames, with filters for periods and entities. Returns
115+
deduplicated facts plus the aspects they span — arranging them into a table is the consumer's job,
116+
since collapsing cells safely requires the full aspect signature. Works on both roboledger tenant
117+
graphs (post-materialization) and the SEC shared repository. Canonical concepts and the form and
118+
fiscal-period filters exist on shared repositories only: a ledger's graph carries none of them, and
119+
a query by them there is refused rather than answered with nothing.
119120
120121
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
121122
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -155,11 +156,12 @@ def sync(
155156
) -> ErrorResponse | OperationEnvelopeViewResponse | None:
156157
"""Build Fact Grid
157158
158-
Queries LadybugDB `Fact` nodes by element qnames or canonical concepts, with filters for periods,
159-
entities, form, and fiscal context. Returns deduplicated facts plus the aspects they span —
160-
arranging them into a table is the consumer's job, since collapsing cells safely requires the full
161-
aspect signature. Works on both roboledger tenant graphs (post-materialization) and the SEC shared
162-
repository.
159+
Queries LadybugDB `Fact` nodes by element qnames, with filters for periods and entities. Returns
160+
deduplicated facts plus the aspects they span — arranging them into a table is the consumer's job,
161+
since collapsing cells safely requires the full aspect signature. Works on both roboledger tenant
162+
graphs (post-materialization) and the SEC shared repository. Canonical concepts and the form and
163+
fiscal-period filters exist on shared repositories only: a ledger's graph carries none of them, and
164+
a query by them there is refused rather than answered with nothing.
163165
164166
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
165167
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -194,11 +196,12 @@ async def asyncio_detailed(
194196
) -> Response[ErrorResponse | OperationEnvelopeViewResponse]:
195197
"""Build Fact Grid
196198
197-
Queries LadybugDB `Fact` nodes by element qnames or canonical concepts, with filters for periods,
198-
entities, form, and fiscal context. Returns deduplicated facts plus the aspects they span —
199-
arranging them into a table is the consumer's job, since collapsing cells safely requires the full
200-
aspect signature. Works on both roboledger tenant graphs (post-materialization) and the SEC shared
201-
repository.
199+
Queries LadybugDB `Fact` nodes by element qnames, with filters for periods and entities. Returns
200+
deduplicated facts plus the aspects they span — arranging them into a table is the consumer's job,
201+
since collapsing cells safely requires the full aspect signature. Works on both roboledger tenant
202+
graphs (post-materialization) and the SEC shared repository. Canonical concepts and the form and
203+
fiscal-period filters exist on shared repositories only: a ledger's graph carries none of them, and
204+
a query by them there is refused rather than answered with nothing.
202205
203206
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
204207
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -236,11 +239,12 @@ async def asyncio(
236239
) -> ErrorResponse | OperationEnvelopeViewResponse | None:
237240
"""Build Fact Grid
238241
239-
Queries LadybugDB `Fact` nodes by element qnames or canonical concepts, with filters for periods,
240-
entities, form, and fiscal context. Returns deduplicated facts plus the aspects they span —
241-
arranging them into a table is the consumer's job, since collapsing cells safely requires the full
242-
aspect signature. Works on both roboledger tenant graphs (post-materialization) and the SEC shared
243-
repository.
242+
Queries LadybugDB `Fact` nodes by element qnames, with filters for periods and entities. Returns
243+
deduplicated facts plus the aspects they span — arranging them into a table is the consumer's job,
244+
since collapsing cells safely requires the full aspect signature. Works on both roboledger tenant
245+
graphs (post-materialization) and the SEC shared repository. Canonical concepts and the form and
246+
fiscal-period filters exist on shared repositories only: a ledger's graph carries none of them, and
247+
a query by them there is refused rather than answered with nothing.
244248
245249
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
246250
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.

‎robosystems_client/api/robo_ledger_analytical_views/describe_filing.py‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ def sync_detailed(
118118
text` pages from. On the SEC shared repository the filing is read from its public folder — its own
119119
document, from any processed year — and a `ticker` picks it: the latest annual report, narrowed by
120120
`fiscal_year` / `period_type`, or one `accession`, or with `form: 8-K` the latest earnings release
121-
and its exhibits. SEC only: a ledger files no document, and its sections read through `disclosures`
122-
and `information-block`.
121+
and its exhibits (`fiscal_year` is then the calendar year it was filed, and a CIK may stand in for
122+
the ticker). SEC only: a ledger files no document, and its sections read through `disclosures` and
123+
`information-block`.
123124
124125
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
125126
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -165,8 +166,9 @@ def sync(
165166
text` pages from. On the SEC shared repository the filing is read from its public folder — its own
166167
document, from any processed year — and a `ticker` picks it: the latest annual report, narrowed by
167168
`fiscal_year` / `period_type`, or one `accession`, or with `form: 8-K` the latest earnings release
168-
and its exhibits. SEC only: a ledger files no document, and its sections read through `disclosures`
169-
and `information-block`.
169+
and its exhibits (`fiscal_year` is then the calendar year it was filed, and a CIK may stand in for
170+
the ticker). SEC only: a ledger files no document, and its sections read through `disclosures` and
171+
`information-block`.
170172
171173
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
172174
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -207,8 +209,9 @@ async def asyncio_detailed(
207209
text` pages from. On the SEC shared repository the filing is read from its public folder — its own
208210
document, from any processed year — and a `ticker` picks it: the latest annual report, narrowed by
209211
`fiscal_year` / `period_type`, or one `accession`, or with `form: 8-K` the latest earnings release
210-
and its exhibits. SEC only: a ledger files no document, and its sections read through `disclosures`
211-
and `information-block`.
212+
and its exhibits (`fiscal_year` is then the calendar year it was filed, and a CIK may stand in for
213+
the ticker). SEC only: a ledger files no document, and its sections read through `disclosures` and
214+
`information-block`.
212215
213216
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
214217
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -252,8 +255,9 @@ async def asyncio(
252255
text` pages from. On the SEC shared repository the filing is read from its public folder — its own
253256
document, from any processed year — and a `ticker` picks it: the latest annual report, narrowed by
254257
`fiscal_year` / `period_type`, or one `accession`, or with `form: 8-K` the latest earnings release
255-
and its exhibits. SEC only: a ledger files no document, and its sections read through `disclosures`
256-
and `information-block`.
258+
and its exhibits (`fiscal_year` is then the calendar year it was filed, and a CIK may stand in for
259+
the ticker). SEC only: a ledger files no document, and its sections read through `disclosures` and
260+
`information-block`.
257261
258262
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
259263
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.

‎robosystems_client/models/create_view_request.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ class CreateViewRequest:
2121
Attributes:
2222
elements (list[str] | Unset): Element qnames (e.g., 'us-gaap:Assets'). Can combine with canonical_concepts.
2323
canonical_concepts (list[str] | Unset): Canonical concept names (e.g., 'revenue', 'net_income'). Matches all
24-
mapped qnames.
24+
mapped qnames. Shared repositories only.
2525
periods (list[str] | Unset): Period end dates (YYYY-MM-DD format)
2626
entity (None | str | Unset): Filter by entity ticker, CIK, or name
2727
entities (list[str] | Unset): Filter by multiple entity tickers (e.g., ['NVDA', 'AAPL'])
28-
form (None | str | Unset): Filter by SEC filing form type (e.g., '10-K', '10-Q')
29-
fiscal_year (int | None | Unset): Filter by fiscal year (e.g., 2024)
30-
fiscal_period (None | str | Unset): Filter by fiscal period (e.g., 'FY', 'Q1', 'Q2', 'Q3')
28+
form (None | str | Unset): Filter by SEC filing form type (e.g., '10-K', '10-Q'). Shared repositories only.
29+
fiscal_year (int | None | Unset): Filter by fiscal year (e.g., 2024). Shared repositories only.
30+
fiscal_period (None | str | Unset): Filter by fiscal period (e.g., 'FY', 'Q1', 'Q2', 'Q3'). Shared repositories
31+
only.
3132
period_type (None | str | Unset): Filter by period type: 'annual', 'quarterly', or 'instant'
3233
include_summary (bool | Unset): Include summary statistics per element Default: False.
3334
limit (int | Unset): Maximum facts to return. Applied after deduplication and sorting, so truncation keeps the

‎robosystems_client/models/describe_filing_request.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class DescribeFilingRequest:
2525
default) or quarterly (10-Q as well)
2626
accession (None | str | Unset): SEC only, with ticker: one filing by accession number — a report, or an 8-K from
2727
resolved_report.recent_releases
28-
form (None | str | Unset): SEC only, with ticker: '8-K' reads the latest earnings release
28+
form (None | str | Unset): SEC only, with ticker: '8-K' reads the latest earnings release, or with fiscal_year
29+
the latest filed in that calendar year
2930
"""
3031

3132
ticker: None | str | Unset = UNSET

‎robosystems_client/models/filing_links.py‎

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class FilingLinks:
2525
tavi (None | str | Unset):
2626
as_filed (None | str | Unset): The primary document as filed
2727
exhibits (FilingLinksExhibitsType0 | None | Unset): An 8-K's exhibits by exhibit number (EX-99.1)
28-
manifest (None | str | Unset):
29-
folder (None | str | Unset):
28+
manifest (None | str | Unset): Every file in the filing's public folder, with its URL
3029
edgar (None | str | Unset): The filing's folder on EDGAR
3130
"""
3231

@@ -36,7 +35,6 @@ class FilingLinks:
3635
as_filed: None | str | Unset = UNSET
3736
exhibits: FilingLinksExhibitsType0 | None | Unset = UNSET
3837
manifest: None | str | Unset = UNSET
39-
folder: None | str | Unset = UNSET
4038
edgar: None | str | Unset = UNSET
4139
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
4240

@@ -81,12 +79,6 @@ def to_dict(self) -> dict[str, Any]:
8179
else:
8280
manifest = self.manifest
8381

84-
folder: None | str | Unset
85-
if isinstance(self.folder, Unset):
86-
folder = UNSET
87-
else:
88-
folder = self.folder
89-
9082
edgar: None | str | Unset
9183
if isinstance(self.edgar, Unset):
9284
edgar = UNSET
@@ -108,8 +100,6 @@ def to_dict(self) -> dict[str, Any]:
108100
field_dict["exhibits"] = exhibits
109101
if manifest is not UNSET:
110102
field_dict["manifest"] = manifest
111-
if folder is not UNSET:
112-
field_dict["folder"] = folder
113103
if edgar is not UNSET:
114104
field_dict["edgar"] = edgar
115105

@@ -183,15 +173,6 @@ def _parse_manifest(data: object) -> None | str | Unset:
183173

184174
manifest = _parse_manifest(d.pop("manifest", UNSET))
185175

186-
def _parse_folder(data: object) -> None | str | Unset:
187-
if data is None:
188-
return data
189-
if isinstance(data, Unset):
190-
return data
191-
return cast(None | str | Unset, data)
192-
193-
folder = _parse_folder(d.pop("folder", UNSET))
194-
195176
def _parse_edgar(data: object) -> None | str | Unset:
196177
if data is None:
197178
return data
@@ -208,7 +189,6 @@ def _parse_edgar(data: object) -> None | str | Unset:
208189
as_filed=as_filed,
209190
exhibits=exhibits,
210191
manifest=manifest,
211-
folder=folder,
212192
edgar=edgar,
213193
)
214194

‎robosystems_client/models/read_text_request.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class ReadTextRequest:
2525
default) or quarterly (10-Q as well)
2626
accession (None | str | Unset): SEC only, with ticker: one filing by accession number — a report, or an 8-K from
2727
resolved_report.recent_releases
28-
form (None | str | Unset): SEC only, with ticker: '8-K' reads the latest earnings release
28+
form (None | str | Unset): SEC only, with ticker: '8-K' reads the latest earnings release, or with fiscal_year
29+
the latest filed in that calendar year
2930
offset (int | Unset): Character offset to start from Default: 0.
3031
length (int | None | Unset): Characters to return (default 4000)
3132
"""

‎robosystems_client/models/reopen_period_operation.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class ReopenPeriodOperation:
1717
1818
Attributes:
1919
reason (str): Required reason for the reopen (captured in audit log)
20-
period (str): Period to reopen, in YYYY-MM. Any closed period may be reopened. Reopening the current
21-
`closed_through` retreats it by one month; reopening an earlier period leaves `closed_through` where it is (a
22-
prior-period adjustment), and its re-close restores the period without moving the pointer.
20+
period (str): Period to reopen, in YYYY-MM. Only the latest closed period (the current `closed_through`) can be
21+
reopened, and reopening it retreats `closed_through` by one month. To reach an earlier period, reopen the later
22+
ones first, latest to earliest.
2323
note (None | str | Unset): Additional free-form note
2424
"""
2525

‎robosystems_client/models/search_hit.py‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class SearchHit:
4040
filing_date (None | str | Unset):
4141
fiscal_year (int | None | Unset):
4242
form_type (None | str | Unset):
43+
accession_number (None | str | Unset):
4344
xbrl_elements (list[str] | None | Unset):
4445
content_length (int | Unset): Default: 0.
4546
content_url (None | str | Unset):
@@ -65,6 +66,7 @@ class SearchHit:
6566
filing_date: None | str | Unset = UNSET
6667
fiscal_year: int | None | Unset = UNSET
6768
form_type: None | str | Unset = UNSET
69+
accession_number: None | str | Unset = UNSET
6870
xbrl_elements: list[str] | None | Unset = UNSET
6971
content_length: int | Unset = 0
7072
content_url: None | str | Unset = UNSET
@@ -147,6 +149,12 @@ def to_dict(self) -> dict[str, Any]:
147149
else:
148150
form_type = self.form_type
149151

152+
accession_number: None | str | Unset
153+
if isinstance(self.accession_number, Unset):
154+
accession_number = UNSET
155+
else:
156+
accession_number = self.accession_number
157+
150158
xbrl_elements: list[str] | None | Unset
151159
if isinstance(self.xbrl_elements, Unset):
152160
xbrl_elements = UNSET
@@ -225,6 +233,8 @@ def to_dict(self) -> dict[str, Any]:
225233
field_dict["fiscal_year"] = fiscal_year
226234
if form_type is not UNSET:
227235
field_dict["form_type"] = form_type
236+
if accession_number is not UNSET:
237+
field_dict["accession_number"] = accession_number
228238
if xbrl_elements is not UNSET:
229239
field_dict["xbrl_elements"] = xbrl_elements
230240
if content_length is not UNSET:
@@ -347,6 +357,15 @@ def _parse_form_type(data: object) -> None | str | Unset:
347357

348358
form_type = _parse_form_type(d.pop("form_type", UNSET))
349359

360+
def _parse_accession_number(data: object) -> None | str | Unset:
361+
if data is None:
362+
return data
363+
if isinstance(data, Unset):
364+
return data
365+
return cast(None | str | Unset, data)
366+
367+
accession_number = _parse_accession_number(d.pop("accession_number", UNSET))
368+
350369
def _parse_xbrl_elements(data: object) -> list[str] | None | Unset:
351370
if data is None:
352371
return data
@@ -436,6 +455,7 @@ def _parse_also_in_filings(data: object) -> int | None | Unset:
436455
filing_date=filing_date,
437456
fiscal_year=fiscal_year,
438457
form_type=form_type,
458+
accession_number=accession_number,
439459
xbrl_elements=xbrl_elements,
440460
content_length=content_length,
441461
content_url=content_url,

‎robosystems_client/models/search_text_request.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class SearchTextRequest:
2727
default) or quarterly (10-Q as well)
2828
accession (None | str | Unset): SEC only, with ticker: one filing by accession number — a report, or an 8-K from
2929
resolved_report.recent_releases
30-
form (None | str | Unset): SEC only, with ticker: '8-K' reads the latest earnings release
30+
form (None | str | Unset): SEC only, with ticker: '8-K' reads the latest earnings release, or with fiscal_year
31+
the latest filed in that calendar year
3132
window (int | None | Unset): Characters of context around each match (default 300)
3233
max_hits (int | None | Unset): Matches to return (default 10)
3334
"""

0 commit comments

Comments
 (0)