Skip to content

Commit 38c909c

Browse files
feat(api): add children fields to hierarchical ILGS entities
1 parent 43d638c commit 38c909c

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-3cce91df023b807a4471d16453720e5962966b270abd3eee54711d74cfbd092e.yml
3-
openapi_spec_hash: 5d9892dfcf03fd24c38775951636e5fb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-a9cacf65cf152a5f4fdd8de8d28c979452c67c28a7e765075638b817d330d121.yml
3+
openapi_spec_hash: 8343f878342e9d128695b85fecb93dc5
44
config_hash: 7b8cddc2fa896f9ab05e6b05055c7f27

src/isaacus/types/ilgs/v1/location.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class Location(BaseModel):
4646
is a non-negative incrementing integer starting from zero.
4747
"""
4848

49+
children: List[str]
50+
"""
51+
The unique identifiers of any 'child' locations having this location as their
52+
immediate parent.
53+
"""
54+
4955
mentions: List[Span]
5056
"""
5157
An array of one or more spans within the document's text where the location is

src/isaacus/types/ilgs/v1/person.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ class Person(BaseModel):
182182
`{index}` is a non-negative incrementing integer starting from zero.
183183
"""
184184

185+
children: List[str]
186+
"""
187+
The unique identifiers of any persons having this person as their immediate
188+
parent.
189+
"""
190+
185191
residence: Optional[str] = None
186192
"""
187193
A unique identifier for a location in the format `loc:{index}` where `{index}`

src/isaacus/types/ilgs/v1/segment.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
3+
from typing import List, Optional
44
from typing_extensions import Literal
55

66
from .span import Span
@@ -188,6 +188,12 @@ class Segment(BaseModel):
188188
a non-negative incrementing integer starting from zero.
189189
"""
190190

191+
children: List[str]
192+
"""
193+
The unique identifiers of any segments having this segment as their immediate
194+
parent.
195+
"""
196+
191197
level: int
192198
"""
193199
The level of the segment within the document's segment hierarchy starting from

0 commit comments

Comments
 (0)