isaacus 0.12.0__tar.gz → 0.13.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. isaacus-0.13.0/.release-please-manifest.json +3 -0
  2. {isaacus-0.12.0 → isaacus-0.13.0}/CHANGELOG.md +13 -0
  3. {isaacus-0.12.0 → isaacus-0.13.0}/PKG-INFO +1 -1
  4. {isaacus-0.12.0 → isaacus-0.13.0}/api.md +24 -17
  5. {isaacus-0.12.0 → isaacus-0.13.0}/pyproject.toml +1 -1
  6. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_version.py +1 -1
  7. isaacus-0.13.0/src/isaacus/types/__init__.py +24 -0
  8. isaacus-0.12.0/src/isaacus/types/ilgs_v1_crossreference.py → isaacus-0.13.0/src/isaacus/types/crossreference.py +4 -4
  9. isaacus-0.12.0/src/isaacus/types/ilgs_v1_date.py → isaacus-0.13.0/src/isaacus/types/date.py +4 -4
  10. isaacus-0.12.0/src/isaacus/types/ilgs_v1_document.py → isaacus-0.13.0/src/isaacus/types/document.py +34 -34
  11. isaacus-0.12.0/src/isaacus/types/ilgs_v1_email.py → isaacus-0.13.0/src/isaacus/types/email.py +4 -4
  12. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/enrichment_response.py +2 -2
  13. isaacus-0.12.0/src/isaacus/types/ilgs_v1_external_document.py → isaacus-0.13.0/src/isaacus/types/external_document.py +6 -6
  14. isaacus-0.12.0/src/isaacus/types/ilgs_v1_id_number.py → isaacus-0.13.0/src/isaacus/types/id_number.py +4 -4
  15. isaacus-0.12.0/src/isaacus/types/ilgs_v1_location.py → isaacus-0.13.0/src/isaacus/types/location.py +5 -5
  16. isaacus-0.12.0/src/isaacus/types/ilgs_v1_person.py → isaacus-0.13.0/src/isaacus/types/person.py +5 -5
  17. isaacus-0.12.0/src/isaacus/types/ilgs_v1_phone_number.py → isaacus-0.13.0/src/isaacus/types/phone_number.py +4 -4
  18. isaacus-0.12.0/src/isaacus/types/ilgs_v1_quote.py → isaacus-0.13.0/src/isaacus/types/quote.py +4 -4
  19. isaacus-0.12.0/src/isaacus/types/ilgs_v1_segment.py → isaacus-0.13.0/src/isaacus/types/segment.py +7 -7
  20. isaacus-0.12.0/src/isaacus/types/ilgs_v1_span.py → isaacus-0.13.0/src/isaacus/types/span.py +2 -2
  21. isaacus-0.12.0/src/isaacus/types/ilgs_v1_term.py → isaacus-0.13.0/src/isaacus/types/term.py +6 -6
  22. isaacus-0.12.0/src/isaacus/types/ilgs_v1_website.py → isaacus-0.13.0/src/isaacus/types/website.py +4 -4
  23. isaacus-0.12.0/.release-please-manifest.json +0 -3
  24. isaacus-0.12.0/src/isaacus/types/__init__.py +0 -24
  25. {isaacus-0.12.0 → isaacus-0.13.0}/.gitignore +0 -0
  26. {isaacus-0.12.0 → isaacus-0.13.0}/CONTRIBUTING.md +0 -0
  27. {isaacus-0.12.0 → isaacus-0.13.0}/LICENSE +0 -0
  28. {isaacus-0.12.0 → isaacus-0.13.0}/README.md +0 -0
  29. {isaacus-0.12.0 → isaacus-0.13.0}/SECURITY.md +0 -0
  30. {isaacus-0.12.0 → isaacus-0.13.0}/bin/check-release-environment +0 -0
  31. {isaacus-0.12.0 → isaacus-0.13.0}/bin/publish-pypi +0 -0
  32. {isaacus-0.12.0 → isaacus-0.13.0}/examples/.keep +0 -0
  33. {isaacus-0.12.0 → isaacus-0.13.0}/noxfile.py +0 -0
  34. {isaacus-0.12.0 → isaacus-0.13.0}/release-please-config.json +0 -0
  35. {isaacus-0.12.0 → isaacus-0.13.0}/requirements-dev.lock +0 -0
  36. {isaacus-0.12.0 → isaacus-0.13.0}/requirements.lock +0 -0
  37. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/__init__.py +0 -0
  38. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_base_client.py +0 -0
  39. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_client.py +0 -0
  40. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_compat.py +0 -0
  41. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_constants.py +0 -0
  42. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_exceptions.py +0 -0
  43. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_files.py +0 -0
  44. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_models.py +0 -0
  45. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_qs.py +0 -0
  46. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_resource.py +0 -0
  47. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_response.py +0 -0
  48. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_streaming.py +0 -0
  49. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_types.py +0 -0
  50. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/__init__.py +0 -0
  51. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_compat.py +0 -0
  52. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_datetime_parse.py +0 -0
  53. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_json.py +0 -0
  54. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_logs.py +0 -0
  55. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_proxy.py +0 -0
  56. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_reflection.py +0 -0
  57. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_resources_proxy.py +0 -0
  58. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_streams.py +0 -0
  59. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_sync.py +0 -0
  60. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_transform.py +0 -0
  61. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_typing.py +0 -0
  62. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/_utils/_utils.py +0 -0
  63. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/lib/.keep +0 -0
  64. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/py.typed +0 -0
  65. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/__init__.py +0 -0
  66. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/classifications/__init__.py +0 -0
  67. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/classifications/classifications.py +0 -0
  68. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/classifications/universal.py +0 -0
  69. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/embeddings.py +0 -0
  70. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/enrichments.py +0 -0
  71. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/extractions/__init__.py +0 -0
  72. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/extractions/extractions.py +0 -0
  73. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/extractions/qa.py +0 -0
  74. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/resources/rerankings.py +0 -0
  75. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/classifications/__init__.py +0 -0
  76. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/classifications/universal_classification_response.py +0 -0
  77. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/classifications/universal_create_params.py +0 -0
  78. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/embedding_create_params.py +0 -0
  79. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/embedding_response.py +0 -0
  80. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/enrichment_create_params.py +0 -0
  81. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/extractions/__init__.py +0 -0
  82. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/extractions/answer_extraction_response.py +0 -0
  83. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/extractions/qa_create_params.py +0 -0
  84. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/reranking_create_params.py +0 -0
  85. {isaacus-0.12.0 → isaacus-0.13.0}/src/isaacus/types/reranking_response.py +0 -0
  86. {isaacus-0.12.0 → isaacus-0.13.0}/tests/__init__.py +0 -0
  87. {isaacus-0.12.0 → isaacus-0.13.0}/tests/api_resources/__init__.py +0 -0
  88. {isaacus-0.12.0 → isaacus-0.13.0}/tests/api_resources/classifications/__init__.py +0 -0
  89. {isaacus-0.12.0 → isaacus-0.13.0}/tests/api_resources/classifications/test_universal.py +0 -0
  90. {isaacus-0.12.0 → isaacus-0.13.0}/tests/api_resources/extractions/__init__.py +0 -0
  91. {isaacus-0.12.0 → isaacus-0.13.0}/tests/api_resources/extractions/test_qa.py +0 -0
  92. {isaacus-0.12.0 → isaacus-0.13.0}/tests/api_resources/test_embeddings.py +0 -0
  93. {isaacus-0.12.0 → isaacus-0.13.0}/tests/api_resources/test_enrichments.py +0 -0
  94. {isaacus-0.12.0 → isaacus-0.13.0}/tests/api_resources/test_rerankings.py +0 -0
  95. {isaacus-0.12.0 → isaacus-0.13.0}/tests/conftest.py +0 -0
  96. {isaacus-0.12.0 → isaacus-0.13.0}/tests/sample_file.txt +0 -0
  97. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_client.py +0 -0
  98. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_deepcopy.py +0 -0
  99. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_extract_files.py +0 -0
  100. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_files.py +0 -0
  101. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_models.py +0 -0
  102. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_qs.py +0 -0
  103. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_required_args.py +0 -0
  104. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_response.py +0 -0
  105. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_streaming.py +0 -0
  106. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_transform.py +0 -0
  107. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_utils/test_datetime_parse.py +0 -0
  108. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_utils/test_json.py +0 -0
  109. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_utils/test_proxy.py +0 -0
  110. {isaacus-0.12.0 → isaacus-0.13.0}/tests/test_utils/test_typing.py +0 -0
  111. {isaacus-0.12.0 → isaacus-0.13.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.13.0"
3
+ }
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0 (2026-02-04)
4
+
5
+ Full Changelog: [v0.12.0...v0.13.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.12.0...v0.13.0)
6
+
7
+ ### Features
8
+
9
+ * **sdk:** alter v1 pascal casing ([7229055](https://github.com/isaacus-dev/isaacus-python/commit/7229055504fd20c05c5d7f5ee40afd76fbcdd02f))
10
+ * **sdk:** move ilgs models under `ilgs_v1` ([0165061](https://github.com/isaacus-dev/isaacus-python/commit/0165061dfd3f5245df16c75f7b8dbb39c68d9de8))
11
+ * **sdk:** move ilgs to its own resource ([e196566](https://github.com/isaacus-dev/isaacus-python/commit/e196566b8c5ef8e876f6d6c0d31393e17d24926f))
12
+ * **sdk:** move ilgsv1 resources under a subresource ([8620bb5](https://github.com/isaacus-dev/isaacus-python/commit/8620bb5259685c1764960278caba70ae9b42a0ec))
13
+ * **sdk:** removed chunking options as a shared resource ([b11b540](https://github.com/isaacus-dev/isaacus-python/commit/b11b540a1da187f5c667e99e53caa550c364aa94))
14
+ * **sdk:** revert v1 casing change ([5a8d5b1](https://github.com/isaacus-dev/isaacus-python/commit/5a8d5b13c69185a36148ee336d3dcf1b3191de0b))
15
+
3
16
  ## 0.12.0 (2026-02-03)
4
17
 
5
18
  Full Changelog: [v0.11.0...v0.12.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.11.0...v0.12.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: isaacus
3
- Version: 0.12.0
3
+ Version: 0.13.0
4
4
  Summary: The official Python library for the isaacus API
5
5
  Project-URL: Homepage, https://github.com/isaacus-dev/isaacus-python
6
6
  Project-URL: Repository, https://github.com/isaacus-dev/isaacus-python
@@ -55,25 +55,32 @@ Methods:
55
55
  Types:
56
56
 
57
57
  ```python
58
- from isaacus.types import (
59
- 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,
74
- )
58
+ from isaacus.types import EnrichmentResponse
75
59
  ```
76
60
 
77
61
  Methods:
78
62
 
79
63
  - <code title="post /enrichments">client.enrichments.<a href="./src/isaacus/resources/enrichments.py">create</a>(\*\*<a href="src/isaacus/types/enrichment_create_params.py">params</a>) -> <a href="./src/isaacus/types/enrichment_response.py">EnrichmentResponse</a></code>
64
+
65
+ # ILGSv1
66
+
67
+ Types:
68
+
69
+ ```python
70
+ from isaacus.types import (
71
+ Crossreference,
72
+ Date,
73
+ Document,
74
+ Email,
75
+ ExternalDocument,
76
+ IDNumber,
77
+ Location,
78
+ Person,
79
+ PhoneNumber,
80
+ Quote,
81
+ Segment,
82
+ Span,
83
+ Term,
84
+ Website,
85
+ )
86
+ ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "isaacus"
3
- version = "0.12.0"
3
+ version = "0.13.0"
4
4
  description = "The official Python library for the isaacus API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "isaacus"
4
- __version__ = "0.12.0" # x-release-please-version
4
+ __version__ = "0.13.0" # x-release-please-version
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .date import Date as Date
6
+ from .span import Span as Span
7
+ from .term import Term as Term
8
+ from .email import Email as Email
9
+ from .quote import Quote as Quote
10
+ from .person import Person as Person
11
+ from .segment import Segment as Segment
12
+ from .website import Website as Website
13
+ from .document import Document as Document
14
+ from .location import Location as Location
15
+ from .id_number import IDNumber as IDNumber
16
+ from .phone_number import PhoneNumber as PhoneNumber
17
+ from .crossreference import Crossreference as Crossreference
18
+ from .external_document import ExternalDocument as ExternalDocument
19
+ from .embedding_response import EmbeddingResponse as EmbeddingResponse
20
+ from .reranking_response import RerankingResponse as RerankingResponse
21
+ from .enrichment_response import EnrichmentResponse as EnrichmentResponse
22
+ from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
23
+ from .reranking_create_params import RerankingCreateParams as RerankingCreateParams
24
+ from .enrichment_create_params import EnrichmentCreateParams as EnrichmentCreateParams
@@ -1,12 +1,12 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ from .span import Span
3
4
  from .._models import BaseModel
4
- from .ilgs_v1_span import ILGSv1Span
5
5
 
6
- __all__ = ["ILGSv1Crossreference"]
6
+ __all__ = ["Crossreference"]
7
7
 
8
8
 
9
- class ILGSv1Crossreference(BaseModel):
9
+ class Crossreference(BaseModel):
10
10
  """A cross-reference within the document pointing to one or more segments."""
11
11
 
12
12
  start: str
@@ -25,7 +25,7 @@ class ILGSv1Crossreference(BaseModel):
25
25
  will be identical.
26
26
  """
27
27
 
28
- span: ILGSv1Span
28
+ span: Span
29
29
  """A zero-based, half-open span into the Unicode code point space of input text.
30
30
 
31
31
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -3,13 +3,13 @@
3
3
  from typing import List, Optional
4
4
  from typing_extensions import Literal
5
5
 
6
+ from .span import Span
6
7
  from .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
8
8
 
9
- __all__ = ["ILGSv1Date"]
9
+ __all__ = ["Date"]
10
10
 
11
11
 
12
- class ILGSv1Date(BaseModel):
12
+ class Date(BaseModel):
13
13
  """
14
14
  A date identified in a document belonging to one of the following types: `creation`, `signature`, `effective`, `expiry`, `delivery`, `renewal`, `payment`, `birth`, or `death`.
15
15
 
@@ -63,7 +63,7 @@ class ILGSv1Date(BaseModel):
63
63
  `{index}` is a non-negative incrementing integer starting from zero.
64
64
  """
65
65
 
66
- mentions: List[ILGSv1Span]
66
+ mentions: List[Span]
67
67
  """
68
68
  An array of one or more spans within the document's text where the date is
69
69
  mentioned.
@@ -3,28 +3,28 @@
3
3
  from typing import List, Optional
4
4
  from typing_extensions import Literal
5
5
 
6
+ from .date import Date
7
+ from .span import Span
8
+ from .term import Term
9
+ from .email import Email
10
+ from .quote import Quote
11
+ from .person import Person
12
+ from .segment import Segment
13
+ from .website import Website
6
14
  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):
15
+ from .location import Location
16
+ from .id_number import IDNumber
17
+ from .phone_number import PhoneNumber
18
+ from .crossreference import Crossreference
19
+ from .external_document import ExternalDocument
20
+
21
+ __all__ = ["Document"]
22
+
23
+
24
+ class Document(BaseModel):
25
25
  """The enriched document."""
26
26
 
27
- title: Optional[ILGSv1Span] = None
27
+ title: Optional[Span] = None
28
28
  """A zero-based, half-open span into the Unicode code point space of input text.
29
29
 
30
30
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -40,7 +40,7 @@ class ILGSv1Document(BaseModel):
40
40
  code units instead of Unicode code points).
41
41
  """
42
42
 
43
- subtitle: Optional[ILGSv1Span] = None
43
+ subtitle: Optional[Span] = None
44
44
  """A zero-based, half-open span into the Unicode code point space of input text.
45
45
 
46
46
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -88,25 +88,25 @@ class ILGSv1Document(BaseModel):
88
88
  code for federal law.
89
89
  """
90
90
 
91
- segments: List[ILGSv1Segment]
91
+ segments: List[Segment]
92
92
  """
93
93
  An array of segments within the document representing structurally distinct
94
94
  portions of its content.
95
95
  """
96
96
 
97
- crossreferences: List[ILGSv1Crossreference]
97
+ crossreferences: List[Crossreference]
98
98
  """
99
99
  An array of cross-references within the document pointing to a single segment or
100
100
  a span of segments.
101
101
  """
102
102
 
103
- locations: List[ILGSv1Location]
103
+ locations: List[Location]
104
104
  """An array of locations identified in the document."""
105
105
 
106
- persons: List[ILGSv1Person]
106
+ persons: List[Person]
107
107
  """An array of legal persons identified in the document."""
108
108
 
109
- emails: List[ILGSv1Email]
109
+ emails: List[Email]
110
110
  """
111
111
  An array of email addresses identified in the document belonging to legal
112
112
  persons.
@@ -115,14 +115,14 @@ class ILGSv1Document(BaseModel):
115
115
  persons will not be extracted.
116
116
  """
117
117
 
118
- websites: List[ILGSv1Website]
118
+ websites: List[Website]
119
119
  """An array of websites identified in the document belonging to legal persons.
120
120
 
121
121
  Websites mentioned in the document that are not attributable to legal persons
122
122
  will not be extracted.
123
123
  """
124
124
 
125
- phone_numbers: List[ILGSv1PhoneNumber]
125
+ phone_numbers: List[PhoneNumber]
126
126
  """
127
127
  An array of valid phone numbers identified in the document belonging to legal
128
128
  persons.
@@ -131,7 +131,7 @@ class ILGSv1Document(BaseModel):
131
131
  attributable to legal persons will not be extracted.
132
132
  """
133
133
 
134
- id_numbers: List[ILGSv1IDNumber]
134
+ id_numbers: List[IDNumber]
135
135
  """
136
136
  An array of identification numbers identified in the document belonging to legal
137
137
  persons.
@@ -140,16 +140,16 @@ class ILGSv1Document(BaseModel):
140
140
  legal persons will not be extracted.
141
141
  """
142
142
 
143
- terms: List[ILGSv1Term]
143
+ terms: List[Term]
144
144
  """An array of terms assigned definite meanings within the document."""
145
145
 
146
- external_documents: List[ILGSv1ExternalDocument]
146
+ external_documents: List[ExternalDocument]
147
147
  """An array of documents identified within the document."""
148
148
 
149
- quotes: List[ILGSv1Quote]
149
+ quotes: List[Quote]
150
150
  """An array of quotations within the document."""
151
151
 
152
- dates: List[ILGSv1Date]
152
+ dates: List[Date]
153
153
  """
154
154
  An array of dates identified in the document belonging to one of the following
155
155
  types: `creation`, `signature`, `effective`, `expiry`, `delivery`, `renewal`,
@@ -159,10 +159,10 @@ class ILGSv1Document(BaseModel):
159
159
  one of the supported date types are extractable.
160
160
  """
161
161
 
162
- headings: List[ILGSv1Span]
162
+ headings: List[Span]
163
163
  """An array of spans within the document's text constituting headings."""
164
164
 
165
- junk: List[ILGSv1Span]
165
+ junk: List[Span]
166
166
  """
167
167
  An array of spans within the document's text constituting non-operative,
168
168
  non-substantive 'junk' content such as headers, footers, page numbers, and OCR
@@ -2,13 +2,13 @@
2
2
 
3
3
  from typing import List
4
4
 
5
+ from .span import Span
5
6
  from .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
7
7
 
8
- __all__ = ["ILGSv1Email"]
8
+ __all__ = ["Email"]
9
9
 
10
10
 
11
- class ILGSv1Email(BaseModel):
11
+ class Email(BaseModel):
12
12
  """An email address identified in a document belonging to a legal person.
13
13
 
14
14
  If an email address was mentioned in the document but is not attributable to a legal person, it will not be extracted.
@@ -20,7 +20,7 @@ class ILGSv1Email(BaseModel):
20
20
  person: str
21
21
  """The unique identifier of the person that this email address belongs to."""
22
22
 
23
- mentions: List[ILGSv1Span]
23
+ mentions: List[Span]
24
24
  """
25
25
  An array of one or more spans within the document's text where the email address
26
26
  is mentioned.
@@ -3,7 +3,7 @@
3
3
  from typing import List
4
4
 
5
5
  from .._models import BaseModel
6
- from .ilgs_v1_document import ILGSv1Document
6
+ from .document import Document
7
7
 
8
8
  __all__ = ["EnrichmentResponse", "Result", "Usage"]
9
9
 
@@ -17,7 +17,7 @@ class Result(BaseModel):
17
17
  therefore, ending at the number of inputs minus `1`).
18
18
  """
19
19
 
20
- document: ILGSv1Document
20
+ document: Document
21
21
  """The enriched document."""
22
22
 
23
23
 
@@ -3,13 +3,13 @@
3
3
  from typing import List, Optional
4
4
  from typing_extensions import Literal
5
5
 
6
+ from .span import Span
6
7
  from .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
8
8
 
9
- __all__ = ["ILGSv1ExternalDocument"]
9
+ __all__ = ["ExternalDocument"]
10
10
 
11
11
 
12
- class ILGSv1ExternalDocument(BaseModel):
12
+ class ExternalDocument(BaseModel):
13
13
  """A document identified within another document."""
14
14
 
15
15
  id: str
@@ -18,7 +18,7 @@ class ILGSv1ExternalDocument(BaseModel):
18
18
  `{index}` is a non-negative incrementing integer starting from zero.
19
19
  """
20
20
 
21
- name: ILGSv1Span
21
+ name: Span
22
22
  """A zero-based, half-open span into the Unicode code point space of input text.
23
23
 
24
24
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -86,14 +86,14 @@ class ILGSv1ExternalDocument(BaseModel):
86
86
  expressing any particular sentiment towards it.
87
87
  """
88
88
 
89
- mentions: List[ILGSv1Span]
89
+ mentions: List[Span]
90
90
  """
91
91
  An array of one or more spans within the document's text where the external
92
92
  document is mentioned by name, for example, 'the US Constitution' in 'the Second
93
93
  Amendment to the US Constitution protects freedom of speech'.
94
94
  """
95
95
 
96
- pinpoints: List[ILGSv1Span]
96
+ pinpoints: List[Span]
97
97
  """
98
98
  An array of spans within the document's text where specific parts of the
99
99
  external document are referenced, for example, 'Section 2' in 'as defined in
@@ -2,13 +2,13 @@
2
2
 
3
3
  from typing import List
4
4
 
5
+ from .span import Span
5
6
  from .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
7
7
 
8
- __all__ = ["ILGSv1IDNumber"]
8
+ __all__ = ["IDNumber"]
9
9
 
10
10
 
11
- class ILGSv1IDNumber(BaseModel):
11
+ class IDNumber(BaseModel):
12
12
  """An identification number mentioned in a document belonging to a legal person.
13
13
 
14
14
  If an identification number was mentioned in the document but is not attributable to a legal person, it will not be extracted.
@@ -20,7 +20,7 @@ class ILGSv1IDNumber(BaseModel):
20
20
  person: str
21
21
  """The unique identifier of the person that this identification number belongs to."""
22
22
 
23
- mentions: List[ILGSv1Span]
23
+ mentions: List[Span]
24
24
  """
25
25
  An array of one or more spans within the document's text where the
26
26
  identification number is mentioned.
@@ -3,13 +3,13 @@
3
3
  from typing import List, Optional
4
4
  from typing_extensions import Literal
5
5
 
6
+ from .span import Span
6
7
  from .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
8
8
 
9
- __all__ = ["ILGSv1Location"]
9
+ __all__ = ["Location"]
10
10
 
11
11
 
12
- class ILGSv1Location(BaseModel):
12
+ class Location(BaseModel):
13
13
  """A location identified within a document."""
14
14
 
15
15
  id: str
@@ -18,7 +18,7 @@ class ILGSv1Location(BaseModel):
18
18
  `{index}` is a non-negative incrementing integer starting from zero.
19
19
  """
20
20
 
21
- name: ILGSv1Span
21
+ name: Span
22
22
  """A zero-based, half-open span into the Unicode code point space of input text.
23
23
 
24
24
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -46,7 +46,7 @@ class ILGSv1Location(BaseModel):
46
46
  is a non-negative incrementing integer starting from zero.
47
47
  """
48
48
 
49
- mentions: List[ILGSv1Span]
49
+ mentions: List[Span]
50
50
  """
51
51
  An array of one or more spans within the document's text where the location is
52
52
  mentioned.
@@ -3,13 +3,13 @@
3
3
  from typing import List, Optional
4
4
  from typing_extensions import Literal
5
5
 
6
+ from .span import Span
6
7
  from .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
8
8
 
9
- __all__ = ["ILGSv1Person"]
9
+ __all__ = ["Person"]
10
10
 
11
11
 
12
- class ILGSv1Person(BaseModel):
12
+ class Person(BaseModel):
13
13
  """A legal person identified in a document."""
14
14
 
15
15
  id: str
@@ -18,7 +18,7 @@ class ILGSv1Person(BaseModel):
18
18
  is a non-negative incrementing integer starting from zero.
19
19
  """
20
20
 
21
- name: ILGSv1Span
21
+ name: Span
22
22
  """A zero-based, half-open span into the Unicode code point space of input text.
23
23
 
24
24
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -188,7 +188,7 @@ class ILGSv1Person(BaseModel):
188
188
  is a non-negative incrementing integer starting from zero.
189
189
  """
190
190
 
191
- mentions: List[ILGSv1Span]
191
+ mentions: List[Span]
192
192
  """
193
193
  An array of one or more spans within the document's text where the person is
194
194
  mentioned.
@@ -2,13 +2,13 @@
2
2
 
3
3
  from typing import List
4
4
 
5
+ from .span import Span
5
6
  from .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
7
7
 
8
- __all__ = ["ILGSv1PhoneNumber"]
8
+ __all__ = ["PhoneNumber"]
9
9
 
10
10
 
11
- class ILGSv1PhoneNumber(BaseModel):
11
+ class PhoneNumber(BaseModel):
12
12
  """A valid phone number identified in a document belonging to a legal person.
13
13
 
14
14
  If a phone number was mentioned in the document but is not valid, possible, or attributable to a legal person, it will not be extracted.
@@ -23,7 +23,7 @@ class ILGSv1PhoneNumber(BaseModel):
23
23
  person: str
24
24
  """The unique identifier of the person that this phone number belongs to."""
25
25
 
26
- mentions: List[ILGSv1Span]
26
+ mentions: List[Span]
27
27
  """
28
28
  An array of one or more spans within the document's text where the phone number
29
29
  is mentioned.
@@ -2,13 +2,13 @@
2
2
 
3
3
  from typing import Optional
4
4
 
5
+ from .span import Span
5
6
  from .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
7
7
 
8
- __all__ = ["ILGSv1Quote"]
8
+ __all__ = ["Quote"]
9
9
 
10
10
 
11
- class ILGSv1Quote(BaseModel):
11
+ class Quote(BaseModel):
12
12
  """A quotation within a document."""
13
13
 
14
14
  source_segment: Optional[str] = None
@@ -35,7 +35,7 @@ class ILGSv1Quote(BaseModel):
35
35
  documents.
36
36
  """
37
37
 
38
- span: ILGSv1Span
38
+ span: Span
39
39
  """A zero-based, half-open span into the Unicode code point space of input text.
40
40
 
41
41
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -3,13 +3,13 @@
3
3
  from typing import Optional
4
4
  from typing_extensions import Literal
5
5
 
6
+ from .span import Span
6
7
  from .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
8
8
 
9
- __all__ = ["ILGSv1Segment"]
9
+ __all__ = ["Segment"]
10
10
 
11
11
 
12
- class ILGSv1Segment(BaseModel):
12
+ class Segment(BaseModel):
13
13
  """
14
14
  A segment within the document representing a structurally distinct portion of the document's content.
15
15
  """
@@ -134,7 +134,7 @@ class ILGSv1Segment(BaseModel):
134
134
  `other` denotes content that does not fit into any of the other categories.
135
135
  """
136
136
 
137
- type_name: Optional[ILGSv1Span] = None
137
+ type_name: Optional[Span] = None
138
138
  """A zero-based, half-open span into the Unicode code point space of input text.
139
139
 
140
140
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -150,7 +150,7 @@ class ILGSv1Segment(BaseModel):
150
150
  code units instead of Unicode code points).
151
151
  """
152
152
 
153
- code: Optional[ILGSv1Span] = None
153
+ code: Optional[Span] = None
154
154
  """A zero-based, half-open span into the Unicode code point space of input text.
155
155
 
156
156
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -166,7 +166,7 @@ class ILGSv1Segment(BaseModel):
166
166
  code units instead of Unicode code points).
167
167
  """
168
168
 
169
- title: Optional[ILGSv1Span] = None
169
+ title: Optional[Span] = None
170
170
  """A zero-based, half-open span into the Unicode code point space of input text.
171
171
 
172
172
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -188,7 +188,7 @@ class ILGSv1Segment(BaseModel):
188
188
  a non-negative incrementing integer starting from zero.
189
189
  """
190
190
 
191
- span: ILGSv1Span
191
+ span: Span
192
192
  """A zero-based, half-open span into the Unicode code point space of input text.
193
193
 
194
194
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -2,10 +2,10 @@
2
2
 
3
3
  from .._models import BaseModel
4
4
 
5
- __all__ = ["ILGSv1Span"]
5
+ __all__ = ["Span"]
6
6
 
7
7
 
8
- class ILGSv1Span(BaseModel):
8
+ class Span(BaseModel):
9
9
  """A zero-based, half-open span into the Unicode code point space of input text.
10
10
 
11
11
  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.
@@ -2,13 +2,13 @@
2
2
 
3
3
  from typing import List
4
4
 
5
+ from .span import Span
5
6
  from .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
7
7
 
8
- __all__ = ["ILGSv1Term"]
8
+ __all__ = ["Term"]
9
9
 
10
10
 
11
- class ILGSv1Term(BaseModel):
11
+ class Term(BaseModel):
12
12
  """A term assigned a definite meaning within a document."""
13
13
 
14
14
  id: str
@@ -17,7 +17,7 @@ class ILGSv1Term(BaseModel):
17
17
  is a non-negative incrementing integer starting from zero.
18
18
  """
19
19
 
20
- name: ILGSv1Span
20
+ name: Span
21
21
  """A zero-based, half-open span into the Unicode code point space of input text.
22
22
 
23
23
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -33,7 +33,7 @@ class ILGSv1Term(BaseModel):
33
33
  code units instead of Unicode code points).
34
34
  """
35
35
 
36
- meaning: ILGSv1Span
36
+ meaning: Span
37
37
  """A zero-based, half-open span into the Unicode code point space of input text.
38
38
 
39
39
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -49,7 +49,7 @@ class ILGSv1Term(BaseModel):
49
49
  code units instead of Unicode code points).
50
50
  """
51
51
 
52
- mentions: List[ILGSv1Span]
52
+ mentions: List[Span]
53
53
  """
54
54
  An array of spans within the document's text where the term is mentioned outside
55
55
  of its definition.
@@ -2,13 +2,13 @@
2
2
 
3
3
  from typing import List
4
4
 
5
+ from .span import Span
5
6
  from .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
7
7
 
8
- __all__ = ["ILGSv1Website"]
8
+ __all__ = ["Website"]
9
9
 
10
10
 
11
- class ILGSv1Website(BaseModel):
11
+ class Website(BaseModel):
12
12
  """A website identified in a document belonging to a legal person.
13
13
 
14
14
  If a website was mentioned in the document but is not attributable to a legal person, it will not be extracted.
@@ -20,7 +20,7 @@ class ILGSv1Website(BaseModel):
20
20
  person: str
21
21
  """The unique identifier of the person that this website belongs to."""
22
22
 
23
- mentions: List[ILGSv1Span]
23
+ mentions: List[Span]
24
24
  """
25
25
  An array of one or more spans within the document's text where the website is
26
26
  mentioned (including paths and slugs which are not part of the website's
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.12.0"
3
- }
@@ -1,24 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
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
16
- from .embedding_response import EmbeddingResponse as EmbeddingResponse
17
- from .reranking_response import RerankingResponse as RerankingResponse
18
- 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
21
- from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
22
- from .reranking_create_params import RerankingCreateParams as RerankingCreateParams
23
- from .enrichment_create_params import EnrichmentCreateParams as EnrichmentCreateParams
24
- from .ilgs_v1_external_document import ILGSv1ExternalDocument as ILGSv1ExternalDocument
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes