Skip to content

Commit f295222

Browse files
feat(sdk): modify how ILGSv1 models are cased
1 parent 62bc9ff commit f295222

18 files changed

Lines changed: 124 additions & 124 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-fa910a5a3d1321234423bd8c042d202a64d4d956ef45847b4de358cb18e447eb.yml
33
openapi_spec_hash: 926b9b619c15e8570e496e11d4fb753e
4-
config_hash: 821656ed414ab3ec256ecfb11585a614
4+
config_hash: 236fba4cf422cf3eff02516e1dd6e5a2

api.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ Types:
5757
```python
5858
from isaacus.types import (
5959
EnrichmentResponse,
60-
IlgsV1Crossreference,
61-
IlgsV1Date,
62-
IlgsV1Document,
63-
IlgsV1Email,
64-
IlgsV1ExternalDocument,
65-
IlgsV1IDNumber,
66-
IlgsV1Location,
67-
IlgsV1Person,
68-
IlgsV1PhoneNumber,
69-
IlgsV1Quote,
70-
IlgsV1Segment,
71-
IlgsV1Span,
72-
IlgsV1Term,
73-
IlgsV1Website,
60+
ILGSv1Crossreference,
61+
ILGSv1Date,
62+
ILGSv1Document,
63+
ILGSv1Email,
64+
ILGSv1ExternalDocument,
65+
ILGSv1IDNumber,
66+
ILGSv1Location,
67+
ILGSv1Person,
68+
ILGSv1PhoneNumber,
69+
ILGSv1Quote,
70+
ILGSv1Segment,
71+
ILGSv1Span,
72+
ILGSv1Term,
73+
ILGSv1Website,
7474
)
7575
```
7676

src/isaacus/types/__init__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
from __future__ import annotations
44

5-
from .ilgs_v1_date import IlgsV1Date as IlgsV1Date
6-
from .ilgs_v1_span import IlgsV1Span as IlgsV1Span
7-
from .ilgs_v1_term import IlgsV1Term as IlgsV1Term
8-
from .ilgs_v1_email import IlgsV1Email as IlgsV1Email
9-
from .ilgs_v1_quote import IlgsV1Quote as IlgsV1Quote
10-
from .ilgs_v1_person import IlgsV1Person as IlgsV1Person
11-
from .ilgs_v1_segment import IlgsV1Segment as IlgsV1Segment
12-
from .ilgs_v1_website import IlgsV1Website as IlgsV1Website
13-
from .ilgs_v1_document import IlgsV1Document as IlgsV1Document
14-
from .ilgs_v1_location import IlgsV1Location as IlgsV1Location
15-
from .ilgs_v1_id_number import IlgsV1IDNumber as IlgsV1IDNumber
5+
from .ilgs_v1_date import ILGSv1Date as ILGSv1Date
6+
from .ilgs_v1_span import ILGSv1Span as ILGSv1Span
7+
from .ilgs_v1_term import ILGSv1Term as ILGSv1Term
8+
from .ilgs_v1_email import ILGSv1Email as ILGSv1Email
9+
from .ilgs_v1_quote import ILGSv1Quote as ILGSv1Quote
10+
from .ilgs_v1_person import ILGSv1Person as ILGSv1Person
11+
from .ilgs_v1_segment import ILGSv1Segment as ILGSv1Segment
12+
from .ilgs_v1_website import ILGSv1Website as ILGSv1Website
13+
from .ilgs_v1_document import ILGSv1Document as ILGSv1Document
14+
from .ilgs_v1_location import ILGSv1Location as ILGSv1Location
15+
from .ilgs_v1_id_number import ILGSv1IDNumber as ILGSv1IDNumber
1616
from .embedding_response import EmbeddingResponse as EmbeddingResponse
1717
from .reranking_response import RerankingResponse as RerankingResponse
1818
from .enrichment_response import EnrichmentResponse as EnrichmentResponse
19-
from .ilgs_v1_phone_number import IlgsV1PhoneNumber as IlgsV1PhoneNumber
20-
from .ilgs_v1_crossreference import IlgsV1Crossreference as IlgsV1Crossreference
19+
from .ilgs_v1_phone_number import ILGSv1PhoneNumber as ILGSv1PhoneNumber
20+
from .ilgs_v1_crossreference import ILGSv1Crossreference as ILGSv1Crossreference
2121
from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
2222
from .reranking_create_params import RerankingCreateParams as RerankingCreateParams
2323
from .enrichment_create_params import EnrichmentCreateParams as EnrichmentCreateParams
24-
from .ilgs_v1_external_document import IlgsV1ExternalDocument as IlgsV1ExternalDocument
24+
from .ilgs_v1_external_document import ILGSv1ExternalDocument as ILGSv1ExternalDocument

src/isaacus/types/enrichment_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
from typing import List
44

55
from .._models import BaseModel
6-
from .ilgs_v1_document import IlgsV1Document
6+
from .ilgs_v1_document import ILGSv1Document
77

88
__all__ = ["EnrichmentResponse", "Result", "Usage"]
99

1010

1111
class Result(BaseModel):
1212
"""An enriched document alongside its index in the input array of texts."""
1313

14-
document: IlgsV1Document
14+
document: ILGSv1Document
1515
"""The enriched document."""
1616

1717
index: int

src/isaacus/types/ilgs_v1_crossreference.py

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

33
from .._models import BaseModel
4-
from .ilgs_v1_span import IlgsV1Span
4+
from .ilgs_v1_span import ILGSv1Span
55

6-
__all__ = ["IlgsV1Crossreference"]
6+
__all__ = ["ILGSv1Crossreference"]
77

88

9-
class IlgsV1Crossreference(BaseModel):
9+
class ILGSv1Crossreference(BaseModel):
1010
"""A cross-reference within the document pointing to one or more segments."""
1111

1212
end: str
@@ -17,7 +17,7 @@ class IlgsV1Crossreference(BaseModel):
1717
will be identical.
1818
"""
1919

20-
span: IlgsV1Span
20+
span: ILGSv1Span
2121
"""A zero-based, half-open span into the Unicode code point space of input text.
2222
2323
All spans are globally laminar and well-nested similar to XML—it is impossible

src/isaacus/types/ilgs_v1_date.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
from typing_extensions import Literal
55

66
from .._models import BaseModel
7-
from .ilgs_v1_span import IlgsV1Span
7+
from .ilgs_v1_span import ILGSv1Span
88

9-
__all__ = ["IlgsV1Date"]
9+
__all__ = ["ILGSv1Date"]
1010

1111

12-
class IlgsV1Date(BaseModel):
12+
class ILGSv1Date(BaseModel):
1313
"""
1414
A date identified in a document belonging to one of the following types: `creation`, `signature`, `effective`, `expiry`, `delivery`, `renewal`, `payment`, `birth`, or `death`.
1515
1616
Only Gregorian dates between the years 1000 and 9999 (inclusive) fitting into one of the supported date types are extractable.
1717
"""
1818

19-
mentions: List[IlgsV1Span]
19+
mentions: List[ILGSv1Span]
2020
"""
2121
An array of one or more spans within the document's text where the date is
2222
mentioned.

src/isaacus/types/ilgs_v1_document.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,33 @@
44
from typing_extensions import Literal
55

66
from .._models import BaseModel
7-
from .ilgs_v1_date import IlgsV1Date
8-
from .ilgs_v1_span import IlgsV1Span
9-
from .ilgs_v1_term import IlgsV1Term
10-
from .ilgs_v1_email import IlgsV1Email
11-
from .ilgs_v1_quote import IlgsV1Quote
12-
from .ilgs_v1_person import IlgsV1Person
13-
from .ilgs_v1_segment import IlgsV1Segment
14-
from .ilgs_v1_website import IlgsV1Website
15-
from .ilgs_v1_location import IlgsV1Location
16-
from .ilgs_v1_id_number import IlgsV1IDNumber
17-
from .ilgs_v1_phone_number import IlgsV1PhoneNumber
18-
from .ilgs_v1_crossreference import IlgsV1Crossreference
19-
from .ilgs_v1_external_document import IlgsV1ExternalDocument
20-
21-
__all__ = ["IlgsV1Document"]
22-
23-
24-
class IlgsV1Document(BaseModel):
7+
from .ilgs_v1_date import ILGSv1Date
8+
from .ilgs_v1_span import ILGSv1Span
9+
from .ilgs_v1_term import ILGSv1Term
10+
from .ilgs_v1_email import ILGSv1Email
11+
from .ilgs_v1_quote import ILGSv1Quote
12+
from .ilgs_v1_person import ILGSv1Person
13+
from .ilgs_v1_segment import ILGSv1Segment
14+
from .ilgs_v1_website import ILGSv1Website
15+
from .ilgs_v1_location import ILGSv1Location
16+
from .ilgs_v1_id_number import ILGSv1IDNumber
17+
from .ilgs_v1_phone_number import ILGSv1PhoneNumber
18+
from .ilgs_v1_crossreference import ILGSv1Crossreference
19+
from .ilgs_v1_external_document import ILGSv1ExternalDocument
20+
21+
__all__ = ["ILGSv1Document"]
22+
23+
24+
class ILGSv1Document(BaseModel):
2525
"""The enriched document."""
2626

27-
crossreferences: List[IlgsV1Crossreference]
27+
crossreferences: List[ILGSv1Crossreference]
2828
"""
2929
An array of cross-references within the document pointing to a single segment or
3030
a span of segments.
3131
"""
3232

33-
dates: List[IlgsV1Date]
33+
dates: List[ILGSv1Date]
3434
"""
3535
An array of dates identified in the document belonging to one of the following
3636
types: `creation`, `signature`, `effective`, `expiry`, `delivery`, `renewal`,
@@ -40,7 +40,7 @@ class IlgsV1Document(BaseModel):
4040
one of the supported date types are extractable.
4141
"""
4242

43-
emails: List[IlgsV1Email]
43+
emails: List[ILGSv1Email]
4444
"""
4545
An array of email addresses identified in the document belonging to legal
4646
persons.
@@ -49,13 +49,13 @@ class IlgsV1Document(BaseModel):
4949
persons will not be extracted.
5050
"""
5151

52-
external_documents: List[IlgsV1ExternalDocument]
52+
external_documents: List[ILGSv1ExternalDocument]
5353
"""An array of documents identified within the document."""
5454

55-
headings: List[IlgsV1Span]
55+
headings: List[ILGSv1Span]
5656
"""An array of spans within the document's text constituting headings."""
5757

58-
id_numbers: List[IlgsV1IDNumber]
58+
id_numbers: List[ILGSv1IDNumber]
5959
"""
6060
An array of identification numbers identified in the document belonging to legal
6161
persons.
@@ -64,7 +64,7 @@ class IlgsV1Document(BaseModel):
6464
legal persons will not be extracted.
6565
"""
6666

67-
junk: List[IlgsV1Span]
67+
junk: List[ILGSv1Span]
6868
"""
6969
An array of spans within the document's text constituting non-operative,
7070
non-substantive 'junk' content such as headers, footers, page numbers, and OCR
@@ -85,13 +85,13 @@ class IlgsV1Document(BaseModel):
8585
code for federal law.
8686
"""
8787

88-
locations: List[IlgsV1Location]
88+
locations: List[ILGSv1Location]
8989
"""An array of locations identified in the document."""
9090

91-
persons: List[IlgsV1Person]
91+
persons: List[ILGSv1Person]
9292
"""An array of legal persons identified in the document."""
9393

94-
phone_numbers: List[IlgsV1PhoneNumber]
94+
phone_numbers: List[ILGSv1PhoneNumber]
9595
"""
9696
An array of valid phone numbers identified in the document belonging to legal
9797
persons.
@@ -100,16 +100,16 @@ class IlgsV1Document(BaseModel):
100100
attributable to legal persons will not be extracted.
101101
"""
102102

103-
quotes: List[IlgsV1Quote]
103+
quotes: List[ILGSv1Quote]
104104
"""An array of quotations within the document."""
105105

106-
segments: List[IlgsV1Segment]
106+
segments: List[ILGSv1Segment]
107107
"""
108108
An array of segments within the document representing structurally distinct
109109
portions of its content.
110110
"""
111111

112-
subtitle: Optional[IlgsV1Span] = None
112+
subtitle: Optional[ILGSv1Span] = None
113113
"""A zero-based, half-open span into the Unicode code point space of input text.
114114
115115
All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -125,10 +125,10 @@ class IlgsV1Document(BaseModel):
125125
code units instead of Unicode code points).
126126
"""
127127

128-
terms: List[IlgsV1Term]
128+
terms: List[ILGSv1Term]
129129
"""An array of terms assigned definite meanings within the document."""
130130

131-
title: Optional[IlgsV1Span] = None
131+
title: Optional[ILGSv1Span] = None
132132
"""A zero-based, half-open span into the Unicode code point space of input text.
133133
134134
All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -164,7 +164,7 @@ class IlgsV1Document(BaseModel):
164164

165165
version: Literal["ilgs@1"]
166166

167-
websites: List[IlgsV1Website]
167+
websites: List[ILGSv1Website]
168168
"""An array of websites identified in the document belonging to legal persons.
169169
170170
Websites mentioned in the document that are not attributable to legal persons

src/isaacus/types/ilgs_v1_email.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from typing import List
44

55
from .._models import BaseModel
6-
from .ilgs_v1_span import IlgsV1Span
6+
from .ilgs_v1_span import ILGSv1Span
77

8-
__all__ = ["IlgsV1Email"]
8+
__all__ = ["ILGSv1Email"]
99

1010

11-
class IlgsV1Email(BaseModel):
11+
class ILGSv1Email(BaseModel):
1212
"""An email address identified in a document belonging to a legal person.
1313
1414
If an email address was mentioned in the document but is not attributable to a legal person, it will not be extracted.
@@ -17,7 +17,7 @@ class IlgsV1Email(BaseModel):
1717
address: str
1818
"""The normalized email address."""
1919

20-
mentions: List[IlgsV1Span]
20+
mentions: List[ILGSv1Span]
2121
"""
2222
An array of one or more spans within the document's text where the email address
2323
is mentioned.

src/isaacus/types/ilgs_v1_external_document.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
from typing_extensions import Literal
55

66
from .._models import BaseModel
7-
from .ilgs_v1_span import IlgsV1Span
7+
from .ilgs_v1_span import ILGSv1Span
88

9-
__all__ = ["IlgsV1ExternalDocument"]
9+
__all__ = ["ILGSv1ExternalDocument"]
1010

1111

12-
class IlgsV1ExternalDocument(BaseModel):
12+
class ILGSv1ExternalDocument(BaseModel):
1313
"""A document identified within another document."""
1414

1515
id: str
@@ -32,14 +32,14 @@ class IlgsV1ExternalDocument(BaseModel):
3232
code for federal law.
3333
"""
3434

35-
mentions: List[IlgsV1Span]
35+
mentions: List[ILGSv1Span]
3636
"""
3737
An array of one or more spans within the document's text where the external
3838
document is mentioned by name, for example, 'the US Constitution' in 'the Second
3939
Amendment to the US Constitution protects freedom of speech'.
4040
"""
4141

42-
name: IlgsV1Span
42+
name: ILGSv1Span
4343
"""A zero-based, half-open span into the Unicode code point space of input text.
4444
4545
All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -55,7 +55,7 @@ class IlgsV1ExternalDocument(BaseModel):
5555
code units instead of Unicode code points).
5656
"""
5757

58-
pinpoints: List[IlgsV1Span]
58+
pinpoints: List[ILGSv1Span]
5959
"""
6060
An array of spans within the document's text where specific parts of the
6161
external document are referenced, for example, 'Section 2' in 'as defined in

src/isaacus/types/ilgs_v1_id_number.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
from typing import List
44

55
from .._models import BaseModel
6-
from .ilgs_v1_span import IlgsV1Span
6+
from .ilgs_v1_span import ILGSv1Span
77

8-
__all__ = ["IlgsV1IDNumber"]
8+
__all__ = ["ILGSv1IDNumber"]
99

1010

11-
class IlgsV1IDNumber(BaseModel):
11+
class ILGSv1IDNumber(BaseModel):
1212
"""An identification number mentioned in a document belonging to a legal person.
1313
1414
If an identification number was mentioned in the document but is not attributable to a legal person, it will not be extracted.
1515
"""
1616

17-
mentions: List[IlgsV1Span]
17+
mentions: List[ILGSv1Span]
1818
"""
1919
An array of one or more spans within the document's text where the
2020
identification number is mentioned.

0 commit comments

Comments
 (0)