Skip to content

Commit 55b68ce

Browse files
fix(api): merge duplicate components, reorder required fields
1 parent bcc7742 commit 55b68ce

2 files changed

Lines changed: 178 additions & 18 deletions

File tree

.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-d499915d5c9d28ffae10a108d7655c026676b21d3b34f07ead24c7d50c546633.yml
3-
openapi_spec_hash: d91d2843e3799463b60832553d4faf70
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-fa910a5a3d1321234423bd8c042d202a64d4d956ef45847b4de358cb18e447eb.yml
3+
openapi_spec_hash: 926b9b619c15e8570e496e11d4fb753e
44
config_hash: 1d77b499f5b4f2dc6986fdd5936d18ef

src/isaacus/types/enrichment_response.py

Lines changed: 176 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@
5151

5252

5353
class ResultDocumentCrossreferenceSpan(BaseModel):
54-
"""The span of the segment within the document's text."""
54+
"""A zero-based, half-open span into the Unicode code point space of input text.
55+
56+
All spans are globally laminar and well-nested similar to XML—it is impossible for any two spans to partially overlap; they can only be disjoint, adjacent, or wholly nested. Spans of the exact same type (e.g., segments) will never be duplicated.
57+
58+
A span cannot be empty and will never start or end at whitespace.
59+
60+
Note that, when using programming languages other than Python (which uses zero-based, half-open, Unicode code point-spaced string indexing), indices may need to be translated accordingly (for example, JavaScript slices into UTF-16 code units instead of Unicode code points).
61+
"""
5562

5663
end: int
5764
"""
@@ -78,7 +85,20 @@ class ResultDocumentCrossreference(BaseModel):
7885
"""
7986

8087
span: ResultDocumentCrossreferenceSpan
81-
"""The span of the segment within the document's text."""
88+
"""A zero-based, half-open span into the Unicode code point space of input text.
89+
90+
All spans are globally laminar and well-nested similar to XML—it is impossible
91+
for any two spans to partially overlap; they can only be disjoint, adjacent, or
92+
wholly nested. Spans of the exact same type (e.g., segments) will never be
93+
duplicated.
94+
95+
A span cannot be empty and will never start or end at whitespace.
96+
97+
Note that, when using programming languages other than Python (which uses
98+
zero-based, half-open, Unicode code point-spaced string indexing), indices may
99+
need to be translated accordingly (for example, JavaScript slices into UTF-16
100+
code units instead of Unicode code points).
101+
"""
82102

83103
start: str
84104
"""
@@ -239,7 +259,14 @@ class ResultDocumentExternalDocumentMention(BaseModel):
239259

240260

241261
class ResultDocumentExternalDocumentName(BaseModel):
242-
"""The span of the segment within the document's text."""
262+
"""A zero-based, half-open span into the Unicode code point space of input text.
263+
264+
All spans are globally laminar and well-nested similar to XML—it is impossible for any two spans to partially overlap; they can only be disjoint, adjacent, or wholly nested. Spans of the exact same type (e.g., segments) will never be duplicated.
265+
266+
A span cannot be empty and will never start or end at whitespace.
267+
268+
Note that, when using programming languages other than Python (which uses zero-based, half-open, Unicode code point-spaced string indexing), indices may need to be translated accordingly (for example, JavaScript slices into UTF-16 code units instead of Unicode code points).
269+
"""
243270

244271
end: int
245272
"""
@@ -308,7 +335,20 @@ class ResultDocumentExternalDocument(BaseModel):
308335
"""
309336

310337
name: ResultDocumentExternalDocumentName
311-
"""The span of the segment within the document's text."""
338+
"""A zero-based, half-open span into the Unicode code point space of input text.
339+
340+
All spans are globally laminar and well-nested similar to XML—it is impossible
341+
for any two spans to partially overlap; they can only be disjoint, adjacent, or
342+
wholly nested. Spans of the exact same type (e.g., segments) will never be
343+
duplicated.
344+
345+
A span cannot be empty and will never start or end at whitespace.
346+
347+
Note that, when using programming languages other than Python (which uses
348+
zero-based, half-open, Unicode code point-spaced string indexing), indices may
349+
need to be translated accordingly (for example, JavaScript slices into UTF-16
350+
code units instead of Unicode code points).
351+
"""
312352

313353
pinpoints: List[ResultDocumentExternalDocumentPinpoint]
314354
"""
@@ -468,7 +508,14 @@ class ResultDocumentLocationMention(BaseModel):
468508

469509

470510
class ResultDocumentLocationName(BaseModel):
471-
"""The span of the segment within the document's text."""
511+
"""A zero-based, half-open span into the Unicode code point space of input text.
512+
513+
All spans are globally laminar and well-nested similar to XML—it is impossible for any two spans to partially overlap; they can only be disjoint, adjacent, or wholly nested. Spans of the exact same type (e.g., segments) will never be duplicated.
514+
515+
A span cannot be empty and will never start or end at whitespace.
516+
517+
Note that, when using programming languages other than Python (which uses zero-based, half-open, Unicode code point-spaced string indexing), indices may need to be translated accordingly (for example, JavaScript slices into UTF-16 code units instead of Unicode code points).
518+
"""
472519

473520
end: int
474521
"""
@@ -499,7 +546,20 @@ class ResultDocumentLocation(BaseModel):
499546
"""
500547

501548
name: ResultDocumentLocationName
502-
"""The span of the segment within the document's text."""
549+
"""A zero-based, half-open span into the Unicode code point space of input text.
550+
551+
All spans are globally laminar and well-nested similar to XML—it is impossible
552+
for any two spans to partially overlap; they can only be disjoint, adjacent, or
553+
wholly nested. Spans of the exact same type (e.g., segments) will never be
554+
duplicated.
555+
556+
A span cannot be empty and will never start or end at whitespace.
557+
558+
Note that, when using programming languages other than Python (which uses
559+
zero-based, half-open, Unicode code point-spaced string indexing), indices may
560+
need to be translated accordingly (for example, JavaScript slices into UTF-16
561+
code units instead of Unicode code points).
562+
"""
503563

504564
parent: Optional[str] = None
505565
"""
@@ -538,7 +598,14 @@ class ResultDocumentPersonMention(BaseModel):
538598

539599

540600
class ResultDocumentPersonName(BaseModel):
541-
"""The span of the segment within the document's text."""
601+
"""A zero-based, half-open span into the Unicode code point space of input text.
602+
603+
All spans are globally laminar and well-nested similar to XML—it is impossible for any two spans to partially overlap; they can only be disjoint, adjacent, or wholly nested. Spans of the exact same type (e.g., segments) will never be duplicated.
604+
605+
A span cannot be empty and will never start or end at whitespace.
606+
607+
Note that, when using programming languages other than Python (which uses zero-based, half-open, Unicode code point-spaced string indexing), indices may need to be translated accordingly (for example, JavaScript slices into UTF-16 code units instead of Unicode code points).
608+
"""
542609

543610
end: int
544611
"""
@@ -569,7 +636,20 @@ class ResultDocumentPerson(BaseModel):
569636
"""
570637

571638
name: ResultDocumentPersonName
572-
"""The span of the segment within the document's text."""
639+
"""A zero-based, half-open span into the Unicode code point space of input text.
640+
641+
All spans are globally laminar and well-nested similar to XML—it is impossible
642+
for any two spans to partially overlap; they can only be disjoint, adjacent, or
643+
wholly nested. Spans of the exact same type (e.g., segments) will never be
644+
duplicated.
645+
646+
A span cannot be empty and will never start or end at whitespace.
647+
648+
Note that, when using programming languages other than Python (which uses
649+
zero-based, half-open, Unicode code point-spaced string indexing), indices may
650+
need to be translated accordingly (for example, JavaScript slices into UTF-16
651+
code units instead of Unicode code points).
652+
"""
573653

574654
parent: Optional[str] = None
575655
"""
@@ -772,7 +852,14 @@ class ResultDocumentPhoneNumber(BaseModel):
772852

773853

774854
class ResultDocumentQuoteSpan(BaseModel):
775-
"""The span of the segment within the document's text."""
855+
"""A zero-based, half-open span into the Unicode code point space of input text.
856+
857+
All spans are globally laminar and well-nested similar to XML—it is impossible for any two spans to partially overlap; they can only be disjoint, adjacent, or wholly nested. Spans of the exact same type (e.g., segments) will never be duplicated.
858+
859+
A span cannot be empty and will never start or end at whitespace.
860+
861+
Note that, when using programming languages other than Python (which uses zero-based, half-open, Unicode code point-spaced string indexing), indices may need to be translated accordingly (for example, JavaScript slices into UTF-16 code units instead of Unicode code points).
862+
"""
776863

777864
end: int
778865
"""
@@ -815,7 +902,20 @@ class ResultDocumentQuote(BaseModel):
815902
"""
816903

817904
span: ResultDocumentQuoteSpan
818-
"""The span of the segment within the document's text."""
905+
"""A zero-based, half-open span into the Unicode code point space of input text.
906+
907+
All spans are globally laminar and well-nested similar to XML—it is impossible
908+
for any two spans to partially overlap; they can only be disjoint, adjacent, or
909+
wholly nested. Spans of the exact same type (e.g., segments) will never be
910+
duplicated.
911+
912+
A span cannot be empty and will never start or end at whitespace.
913+
914+
Note that, when using programming languages other than Python (which uses
915+
zero-based, half-open, Unicode code point-spaced string indexing), indices may
916+
need to be translated accordingly (for example, JavaScript slices into UTF-16
917+
code units instead of Unicode code points).
918+
"""
819919

820920

821921
class ResultDocumentSegmentCode(BaseModel):
@@ -842,7 +942,14 @@ class ResultDocumentSegmentCode(BaseModel):
842942

843943

844944
class ResultDocumentSegmentSpan(BaseModel):
845-
"""The span of the segment within the document's text."""
945+
"""A zero-based, half-open span into the Unicode code point space of input text.
946+
947+
All spans are globally laminar and well-nested similar to XML—it is impossible for any two spans to partially overlap; they can only be disjoint, adjacent, or wholly nested. Spans of the exact same type (e.g., segments) will never be duplicated.
948+
949+
A span cannot be empty and will never start or end at whitespace.
950+
951+
Note that, when using programming languages other than Python (which uses zero-based, half-open, Unicode code point-spaced string indexing), indices may need to be translated accordingly (for example, JavaScript slices into UTF-16 code units instead of Unicode code points).
952+
"""
846953

847954
end: int
848955
"""
@@ -981,7 +1088,20 @@ class ResultDocumentSegment(BaseModel):
9811088
"""
9821089

9831090
span: ResultDocumentSegmentSpan
984-
"""The span of the segment within the document's text."""
1091+
"""A zero-based, half-open span into the Unicode code point space of input text.
1092+
1093+
All spans are globally laminar and well-nested similar to XML—it is impossible
1094+
for any two spans to partially overlap; they can only be disjoint, adjacent, or
1095+
wholly nested. Spans of the exact same type (e.g., segments) will never be
1096+
duplicated.
1097+
1098+
A span cannot be empty and will never start or end at whitespace.
1099+
1100+
Note that, when using programming languages other than Python (which uses
1101+
zero-based, half-open, Unicode code point-spaced string indexing), indices may
1102+
need to be translated accordingly (for example, JavaScript slices into UTF-16
1103+
code units instead of Unicode code points).
1104+
"""
9851105

9861106
title: Optional[ResultDocumentSegmentTitle] = None
9871107
"""A zero-based, half-open span into the Unicode code point space of input text.
@@ -1110,7 +1230,14 @@ class ResultDocumentSubtitle(BaseModel):
11101230

11111231

11121232
class ResultDocumentTermMeaning(BaseModel):
1113-
"""The span of the segment within the document's text."""
1233+
"""A zero-based, half-open span into the Unicode code point space of input text.
1234+
1235+
All spans are globally laminar and well-nested similar to XML—it is impossible for any two spans to partially overlap; they can only be disjoint, adjacent, or wholly nested. Spans of the exact same type (e.g., segments) will never be duplicated.
1236+
1237+
A span cannot be empty and will never start or end at whitespace.
1238+
1239+
Note that, when using programming languages other than Python (which uses zero-based, half-open, Unicode code point-spaced string indexing), indices may need to be translated accordingly (for example, JavaScript slices into UTF-16 code units instead of Unicode code points).
1240+
"""
11141241

11151242
end: int
11161243
"""
@@ -1149,7 +1276,14 @@ class ResultDocumentTermMention(BaseModel):
11491276

11501277

11511278
class ResultDocumentTermName(BaseModel):
1152-
"""The span of the segment within the document's text."""
1279+
"""A zero-based, half-open span into the Unicode code point space of input text.
1280+
1281+
All spans are globally laminar and well-nested similar to XML—it is impossible for any two spans to partially overlap; they can only be disjoint, adjacent, or wholly nested. Spans of the exact same type (e.g., segments) will never be duplicated.
1282+
1283+
A span cannot be empty and will never start or end at whitespace.
1284+
1285+
Note that, when using programming languages other than Python (which uses zero-based, half-open, Unicode code point-spaced string indexing), indices may need to be translated accordingly (for example, JavaScript slices into UTF-16 code units instead of Unicode code points).
1286+
"""
11531287

11541288
end: int
11551289
"""
@@ -1174,7 +1308,20 @@ class ResultDocumentTerm(BaseModel):
11741308
"""
11751309

11761310
meaning: ResultDocumentTermMeaning
1177-
"""The span of the segment within the document's text."""
1311+
"""A zero-based, half-open span into the Unicode code point space of input text.
1312+
1313+
All spans are globally laminar and well-nested similar to XML—it is impossible
1314+
for any two spans to partially overlap; they can only be disjoint, adjacent, or
1315+
wholly nested. Spans of the exact same type (e.g., segments) will never be
1316+
duplicated.
1317+
1318+
A span cannot be empty and will never start or end at whitespace.
1319+
1320+
Note that, when using programming languages other than Python (which uses
1321+
zero-based, half-open, Unicode code point-spaced string indexing), indices may
1322+
need to be translated accordingly (for example, JavaScript slices into UTF-16
1323+
code units instead of Unicode code points).
1324+
"""
11781325

11791326
mentions: List[ResultDocumentTermMention]
11801327
"""
@@ -1186,7 +1333,20 @@ class ResultDocumentTerm(BaseModel):
11861333
"""
11871334

11881335
name: ResultDocumentTermName
1189-
"""The span of the segment within the document's text."""
1336+
"""A zero-based, half-open span into the Unicode code point space of input text.
1337+
1338+
All spans are globally laminar and well-nested similar to XML—it is impossible
1339+
for any two spans to partially overlap; they can only be disjoint, adjacent, or
1340+
wholly nested. Spans of the exact same type (e.g., segments) will never be
1341+
duplicated.
1342+
1343+
A span cannot be empty and will never start or end at whitespace.
1344+
1345+
Note that, when using programming languages other than Python (which uses
1346+
zero-based, half-open, Unicode code point-spaced string indexing), indices may
1347+
need to be translated accordingly (for example, JavaScript slices into UTF-16
1348+
code units instead of Unicode code points).
1349+
"""
11901350

11911351

11921352
class ResultDocumentTitle(BaseModel):

0 commit comments

Comments
 (0)