Skip to content

Commit 36dafd8

Browse files
authored
feat: regenerate SDK for robosystems v1.19.0 (#263)
## Summary Regenerated from the local RoboSystems stack (backend `main`, to be tagged v1.19.0) with `just generate-sdk` and `just generate-graphql`. ### Generated surface changes - **`PreviewConsolidationEntriesResponse.incomplete`** (`bool | Unset`, default `False`): new field (backend PR #1866). It is true when the engine left an entry out, for example a member's books it cannot read or an account the consolidation entity lacks. `notes` says which. The group close waits on it whatever the residuals. - **`link_entity_taxonomy` (operation) / `LinkEntityTaxonomyRequest`**: docstring and field-description changes only. The text now says that only the `chart_of_accounts` basis is read. `reporting`, `mapping` and `schedule` links are recorded but do not change how statements render. No signature, type or default changes. No other endpoint or model changed. The GraphQL schema snapshot (`schema.graphql`) was already current, and the ariadne-codegen output under `robosystems_client/graphql/generated/` is unchanged. ### Contract tier Generated tier only (`api/*`, `models/*`): this is a client **minor**. No stable-tier symbol (facades, root exports, auth, or the integration template's emit operations) is touched. The new `incomplete` field is served from robosystems v1.19.0. ## Test plan - [x] `uv run pytest tests/`: 697 passed, 17 skipped - [x] `ruff check` / `ruff format --check`: clean - [x] `basedpyright`: 0 errors - [x] GraphQL codegen drift gate: no changes after `bin/generate-graphql.sh` 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XtkkKJao4sah3RsHdV3wG5
2 parents 30856e8 + 3916732 commit 36dafd8

3 files changed

Lines changed: 64 additions & 54 deletions

File tree

‎robosystems_client/api/robo_ledger_taxonomy_mapping/link_entity_taxonomy.py‎

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ def sync_detailed(
113113
) -> Response[ErrorResponse | OperationEnvelopeEntityTaxonomyResponse]:
114114
"""Link Entity to Taxonomy
115115
116-
Link the graph's entity to a taxonomy. Idempotent — returns existing linkage if it already exists.
117-
CoA blocks auto-link at create time; use this only to switch the primary CoA or link a reporting
118-
extension / custom ontology explicitly.
116+
Link an entity to a taxonomy. Idempotent — returns the existing linkage if it already exists. CoA
117+
blocks auto-link at create time; use this to switch an entity's primary chart of accounts. Only the
118+
`chart_of_accounts` basis changes behavior: a `reporting`, `mapping` or `schedule` link records the
119+
association and nothing reads it. Statements render from the entity's reporting style (change-
120+
reporting-style), and custom statement rows come from a reporting extension of that style.
119121
120122
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
121123
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -126,14 +128,12 @@ def sync_detailed(
126128
body (LinkEntityTaxonomyRequest): Link an entity to a taxonomy (creates the
127129
ENTITY_HAS_TAXONOMY edge).
128130
129-
This is how a graph declares "this entity reports under this taxonomy."
130-
For `chart_of_accounts` taxonomies, this tells the platform which CoA
131-
the entity uses. For reporting taxonomies, which standard (us-gaap,
132-
ifrs). Idempotent — re-linking returns the existing edge unchanged.
133-
134-
CoA blocks auto-link at create time; use this to switch the primary
135-
CoA, link a reporting extension, or attach a custom ontology
136-
explicitly.
131+
A `chart_of_accounts` link tells the platform which chart the entity
132+
keeps its books in; CoA blocks auto-link at create time, so use this to
133+
switch the primary one. The other bases record the association and
134+
nothing reads them: statements render from the entity's reporting style,
135+
whatever taxonomy is linked. Idempotent — re-linking returns the
136+
existing edge unchanged.
137137
138138
Raises:
139139
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -165,9 +165,11 @@ def sync(
165165
) -> ErrorResponse | OperationEnvelopeEntityTaxonomyResponse | None:
166166
"""Link Entity to Taxonomy
167167
168-
Link the graph's entity to a taxonomy. Idempotent — returns existing linkage if it already exists.
169-
CoA blocks auto-link at create time; use this only to switch the primary CoA or link a reporting
170-
extension / custom ontology explicitly.
168+
Link an entity to a taxonomy. Idempotent — returns the existing linkage if it already exists. CoA
169+
blocks auto-link at create time; use this to switch an entity's primary chart of accounts. Only the
170+
`chart_of_accounts` basis changes behavior: a `reporting`, `mapping` or `schedule` link records the
171+
association and nothing reads it. Statements render from the entity's reporting style (change-
172+
reporting-style), and custom statement rows come from a reporting extension of that style.
171173
172174
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
173175
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -178,14 +180,12 @@ def sync(
178180
body (LinkEntityTaxonomyRequest): Link an entity to a taxonomy (creates the
179181
ENTITY_HAS_TAXONOMY edge).
180182
181-
This is how a graph declares "this entity reports under this taxonomy."
182-
For `chart_of_accounts` taxonomies, this tells the platform which CoA
183-
the entity uses. For reporting taxonomies, which standard (us-gaap,
184-
ifrs). Idempotent — re-linking returns the existing edge unchanged.
185-
186-
CoA blocks auto-link at create time; use this to switch the primary
187-
CoA, link a reporting extension, or attach a custom ontology
188-
explicitly.
183+
A `chart_of_accounts` link tells the platform which chart the entity
184+
keeps its books in; CoA blocks auto-link at create time, so use this to
185+
switch the primary one. The other bases record the association and
186+
nothing reads them: statements render from the entity's reporting style,
187+
whatever taxonomy is linked. Idempotent — re-linking returns the
188+
existing edge unchanged.
189189
190190
Raises:
191191
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -212,9 +212,11 @@ async def asyncio_detailed(
212212
) -> Response[ErrorResponse | OperationEnvelopeEntityTaxonomyResponse]:
213213
"""Link Entity to Taxonomy
214214
215-
Link the graph's entity to a taxonomy. Idempotent — returns existing linkage if it already exists.
216-
CoA blocks auto-link at create time; use this only to switch the primary CoA or link a reporting
217-
extension / custom ontology explicitly.
215+
Link an entity to a taxonomy. Idempotent — returns the existing linkage if it already exists. CoA
216+
blocks auto-link at create time; use this to switch an entity's primary chart of accounts. Only the
217+
`chart_of_accounts` basis changes behavior: a `reporting`, `mapping` or `schedule` link records the
218+
association and nothing reads it. Statements render from the entity's reporting style (change-
219+
reporting-style), and custom statement rows come from a reporting extension of that style.
218220
219221
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
220222
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -225,14 +227,12 @@ async def asyncio_detailed(
225227
body (LinkEntityTaxonomyRequest): Link an entity to a taxonomy (creates the
226228
ENTITY_HAS_TAXONOMY edge).
227229
228-
This is how a graph declares "this entity reports under this taxonomy."
229-
For `chart_of_accounts` taxonomies, this tells the platform which CoA
230-
the entity uses. For reporting taxonomies, which standard (us-gaap,
231-
ifrs). Idempotent — re-linking returns the existing edge unchanged.
232-
233-
CoA blocks auto-link at create time; use this to switch the primary
234-
CoA, link a reporting extension, or attach a custom ontology
235-
explicitly.
230+
A `chart_of_accounts` link tells the platform which chart the entity
231+
keeps its books in; CoA blocks auto-link at create time, so use this to
232+
switch the primary one. The other bases record the association and
233+
nothing reads them: statements render from the entity's reporting style,
234+
whatever taxonomy is linked. Idempotent — re-linking returns the
235+
existing edge unchanged.
236236
237237
Raises:
238238
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -262,9 +262,11 @@ async def asyncio(
262262
) -> ErrorResponse | OperationEnvelopeEntityTaxonomyResponse | None:
263263
"""Link Entity to Taxonomy
264264
265-
Link the graph's entity to a taxonomy. Idempotent — returns existing linkage if it already exists.
266-
CoA blocks auto-link at create time; use this only to switch the primary CoA or link a reporting
267-
extension / custom ontology explicitly.
265+
Link an entity to a taxonomy. Idempotent — returns the existing linkage if it already exists. CoA
266+
blocks auto-link at create time; use this to switch an entity's primary chart of accounts. Only the
267+
`chart_of_accounts` basis changes behavior: a `reporting`, `mapping` or `schedule` link records the
268+
association and nothing reads it. Statements render from the entity's reporting style (change-
269+
reporting-style), and custom statement rows come from a reporting extension of that style.
268270
269271
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
270272
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -275,14 +277,12 @@ async def asyncio(
275277
body (LinkEntityTaxonomyRequest): Link an entity to a taxonomy (creates the
276278
ENTITY_HAS_TAXONOMY edge).
277279
278-
This is how a graph declares "this entity reports under this taxonomy."
279-
For `chart_of_accounts` taxonomies, this tells the platform which CoA
280-
the entity uses. For reporting taxonomies, which standard (us-gaap,
281-
ifrs). Idempotent — re-linking returns the existing edge unchanged.
282-
283-
CoA blocks auto-link at create time; use this to switch the primary
284-
CoA, link a reporting extension, or attach a custom ontology
285-
explicitly.
280+
A `chart_of_accounts` link tells the platform which chart the entity
281+
keeps its books in; CoA blocks auto-link at create time, so use this to
282+
switch the primary one. The other bases record the association and
283+
nothing reads them: statements render from the entity's reporting style,
284+
whatever taxonomy is linked. Idempotent — re-linking returns the
285+
existing edge unchanged.
286286
287287
Raises:
288288
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

‎robosystems_client/models/link_entity_taxonomy_request.py‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,20 @@
1616
class LinkEntityTaxonomyRequest:
1717
"""Link an entity to a taxonomy (creates the ENTITY_HAS_TAXONOMY edge).
1818
19-
This is how a graph declares "this entity reports under this taxonomy."
20-
For `chart_of_accounts` taxonomies, this tells the platform which CoA
21-
the entity uses. For reporting taxonomies, which standard (us-gaap,
22-
ifrs). Idempotent — re-linking returns the existing edge unchanged.
23-
24-
CoA blocks auto-link at create time; use this to switch the primary
25-
CoA, link a reporting extension, or attach a custom ontology
26-
explicitly.
19+
A `chart_of_accounts` link tells the platform which chart the entity
20+
keeps its books in; CoA blocks auto-link at create time, so use this to
21+
switch the primary one. The other bases record the association and
22+
nothing reads them: statements render from the entity's reporting style,
23+
whatever taxonomy is linked. Idempotent — re-linking returns the
24+
existing edge unchanged.
2725
2826
Attributes:
2927
taxonomy_id (str): The taxonomy to link to.
3028
entity_id (None | str | Unset): The entity to link, by id. Omit for the group parent.
3129
basis (LinkEntityTaxonomyRequestBasis | Unset): Linkage role: `chart_of_accounts` (the entity's CoA),
32-
`reporting` (reporting standard like us-gaap), `mapping` (CoA→reporting rollup), `schedule` (schedule
33-
structure). Default: LinkEntityTaxonomyRequestBasis.CHART_OF_ACCOUNTS.
30+
`reporting` (a reporting standard), `mapping` (CoA→reporting rollup), `schedule` (schedule structure). Only
31+
`chart_of_accounts` is read; the others are recorded and do not change how statements render. Default:
32+
LinkEntityTaxonomyRequestBasis.CHART_OF_ACCOUNTS.
3433
is_primary (bool | Unset): Mark this as the primary linkage for the basis. False allows secondary attachments
3534
(e.g. parallel reporting standards). Default: True.
3635
adoption_context (None | str | Unset): Why the entity is reporting under this taxonomy (e.g. 'voluntary',

‎robosystems_client/models/preview_consolidation_entries_response.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class PreviewConsolidationEntriesResponse:
3737
notes (list[str] | Unset): Anything the engine left out, and why.
3838
closed (bool | Unset): True when the consolidation entity has closed the month: its entries are as posted, and
3939
nothing is recomputed. Default: False.
40+
incomplete (bool | Unset): True when the engine left an entry out — a member's books it cannot read, an account
41+
the consolidation entity lacks; `notes` says which. The group close waits on it whatever the residuals. Default:
42+
False.
4043
drafted_entry_ids (list[str] | Unset): The month's drafts propose-consolidation-entries wrote, waiting for the
4144
consolidation entity's close to post them.
4245
"""
@@ -51,6 +54,7 @@ class PreviewConsolidationEntriesResponse:
5154
reconciling_items: list[ConsolidationReconcilingItem] | Unset = UNSET
5255
notes: list[str] | Unset = UNSET
5356
closed: bool | Unset = False
57+
incomplete: bool | Unset = False
5458
drafted_entry_ids: list[str] | Unset = UNSET
5559
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
5660

@@ -92,6 +96,8 @@ def to_dict(self) -> dict[str, Any]:
9296

9397
closed = self.closed
9498

99+
incomplete = self.incomplete
100+
95101
drafted_entry_ids: list[str] | Unset = UNSET
96102
if not isinstance(self.drafted_entry_ids, Unset):
97103
drafted_entry_ids = self.drafted_entry_ids
@@ -117,6 +123,8 @@ def to_dict(self) -> dict[str, Any]:
117123
field_dict["notes"] = notes
118124
if closed is not UNSET:
119125
field_dict["closed"] = closed
126+
if incomplete is not UNSET:
127+
field_dict["incomplete"] = incomplete
120128
if drafted_entry_ids is not UNSET:
121129
field_dict["drafted_entry_ids"] = drafted_entry_ids
122130

@@ -172,6 +180,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
172180

173181
closed = d.pop("closed", UNSET)
174182

183+
incomplete = d.pop("incomplete", UNSET)
184+
175185
drafted_entry_ids = cast(list[str], d.pop("drafted_entry_ids", UNSET))
176186

177187
preview_consolidation_entries_response = cls(
@@ -185,6 +195,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
185195
reconciling_items=reconciling_items,
186196
notes=notes,
187197
closed=closed,
198+
incomplete=incomplete,
188199
drafted_entry_ids=drafted_entry_ids,
189200
)
190201

0 commit comments

Comments
 (0)