isaacus 0.12.0__tar.gz → 0.14.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 (113) hide show
  1. isaacus-0.14.0/.release-please-manifest.json +3 -0
  2. {isaacus-0.12.0 → isaacus-0.14.0}/CHANGELOG.md +29 -0
  3. {isaacus-0.12.0 → isaacus-0.14.0}/PKG-INFO +1 -1
  4. {isaacus-0.12.0 → isaacus-0.14.0}/api.md +28 -17
  5. {isaacus-0.12.0 → isaacus-0.14.0}/pyproject.toml +1 -1
  6. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_version.py +1 -1
  7. isaacus-0.14.0/src/isaacus/types/__init__.py +10 -0
  8. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/enrichment_response.py +2 -2
  9. isaacus-0.14.0/src/isaacus/types/ilgs/__init__.py +3 -0
  10. isaacus-0.14.0/src/isaacus/types/ilgs/v1/__init__.py +18 -0
  11. isaacus-0.12.0/src/isaacus/types/ilgs_v1_crossreference.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/crossreference.py +5 -5
  12. isaacus-0.12.0/src/isaacus/types/ilgs_v1_date.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/date.py +5 -5
  13. isaacus-0.12.0/src/isaacus/types/ilgs_v1_document.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/document.py +38 -35
  14. isaacus-0.12.0/src/isaacus/types/ilgs_v1_email.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/email.py +5 -5
  15. isaacus-0.12.0/src/isaacus/types/ilgs_v1_external_document.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/external_document.py +7 -7
  16. isaacus-0.12.0/src/isaacus/types/ilgs_v1_id_number.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/id_number.py +5 -5
  17. isaacus-0.12.0/src/isaacus/types/ilgs_v1_location.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/location.py +6 -6
  18. isaacus-0.12.0/src/isaacus/types/ilgs_v1_person.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/person.py +6 -6
  19. isaacus-0.12.0/src/isaacus/types/ilgs_v1_phone_number.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/phone_number.py +5 -5
  20. isaacus-0.12.0/src/isaacus/types/ilgs_v1_quote.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/quote.py +5 -5
  21. isaacus-0.12.0/src/isaacus/types/ilgs_v1_segment.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/segment.py +14 -8
  22. isaacus-0.12.0/src/isaacus/types/ilgs_v1_span.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/span.py +3 -3
  23. isaacus-0.12.0/src/isaacus/types/ilgs_v1_term.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/term.py +7 -7
  24. isaacus-0.12.0/src/isaacus/types/ilgs_v1_website.py → isaacus-0.14.0/src/isaacus/types/ilgs/v1/website.py +5 -5
  25. isaacus-0.12.0/.release-please-manifest.json +0 -3
  26. isaacus-0.12.0/src/isaacus/types/__init__.py +0 -24
  27. {isaacus-0.12.0 → isaacus-0.14.0}/.gitignore +0 -0
  28. {isaacus-0.12.0 → isaacus-0.14.0}/CONTRIBUTING.md +0 -0
  29. {isaacus-0.12.0 → isaacus-0.14.0}/LICENSE +0 -0
  30. {isaacus-0.12.0 → isaacus-0.14.0}/README.md +0 -0
  31. {isaacus-0.12.0 → isaacus-0.14.0}/SECURITY.md +0 -0
  32. {isaacus-0.12.0 → isaacus-0.14.0}/bin/check-release-environment +0 -0
  33. {isaacus-0.12.0 → isaacus-0.14.0}/bin/publish-pypi +0 -0
  34. {isaacus-0.12.0 → isaacus-0.14.0}/examples/.keep +0 -0
  35. {isaacus-0.12.0 → isaacus-0.14.0}/noxfile.py +0 -0
  36. {isaacus-0.12.0 → isaacus-0.14.0}/release-please-config.json +0 -0
  37. {isaacus-0.12.0 → isaacus-0.14.0}/requirements-dev.lock +0 -0
  38. {isaacus-0.12.0 → isaacus-0.14.0}/requirements.lock +0 -0
  39. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/__init__.py +0 -0
  40. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_base_client.py +0 -0
  41. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_client.py +0 -0
  42. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_compat.py +0 -0
  43. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_constants.py +0 -0
  44. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_exceptions.py +0 -0
  45. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_files.py +0 -0
  46. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_models.py +0 -0
  47. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_qs.py +0 -0
  48. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_resource.py +0 -0
  49. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_response.py +0 -0
  50. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_streaming.py +0 -0
  51. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_types.py +0 -0
  52. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/__init__.py +0 -0
  53. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_compat.py +0 -0
  54. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_datetime_parse.py +0 -0
  55. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_json.py +0 -0
  56. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_logs.py +0 -0
  57. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_proxy.py +0 -0
  58. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_reflection.py +0 -0
  59. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_resources_proxy.py +0 -0
  60. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_streams.py +0 -0
  61. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_sync.py +0 -0
  62. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_transform.py +0 -0
  63. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_typing.py +0 -0
  64. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/_utils/_utils.py +0 -0
  65. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/lib/.keep +0 -0
  66. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/py.typed +0 -0
  67. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/__init__.py +0 -0
  68. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/classifications/__init__.py +0 -0
  69. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/classifications/classifications.py +0 -0
  70. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/classifications/universal.py +0 -0
  71. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/embeddings.py +0 -0
  72. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/enrichments.py +0 -0
  73. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/extractions/__init__.py +0 -0
  74. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/extractions/extractions.py +0 -0
  75. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/extractions/qa.py +0 -0
  76. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/resources/rerankings.py +0 -0
  77. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/classifications/__init__.py +0 -0
  78. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/classifications/universal_classification_response.py +0 -0
  79. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/classifications/universal_create_params.py +0 -0
  80. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/embedding_create_params.py +0 -0
  81. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/embedding_response.py +0 -0
  82. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/enrichment_create_params.py +0 -0
  83. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/extractions/__init__.py +0 -0
  84. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/extractions/answer_extraction_response.py +0 -0
  85. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/extractions/qa_create_params.py +0 -0
  86. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/reranking_create_params.py +0 -0
  87. {isaacus-0.12.0 → isaacus-0.14.0}/src/isaacus/types/reranking_response.py +0 -0
  88. {isaacus-0.12.0 → isaacus-0.14.0}/tests/__init__.py +0 -0
  89. {isaacus-0.12.0 → isaacus-0.14.0}/tests/api_resources/__init__.py +0 -0
  90. {isaacus-0.12.0 → isaacus-0.14.0}/tests/api_resources/classifications/__init__.py +0 -0
  91. {isaacus-0.12.0 → isaacus-0.14.0}/tests/api_resources/classifications/test_universal.py +0 -0
  92. {isaacus-0.12.0 → isaacus-0.14.0}/tests/api_resources/extractions/__init__.py +0 -0
  93. {isaacus-0.12.0 → isaacus-0.14.0}/tests/api_resources/extractions/test_qa.py +0 -0
  94. {isaacus-0.12.0 → isaacus-0.14.0}/tests/api_resources/test_embeddings.py +0 -0
  95. {isaacus-0.12.0 → isaacus-0.14.0}/tests/api_resources/test_enrichments.py +0 -0
  96. {isaacus-0.12.0 → isaacus-0.14.0}/tests/api_resources/test_rerankings.py +0 -0
  97. {isaacus-0.12.0 → isaacus-0.14.0}/tests/conftest.py +0 -0
  98. {isaacus-0.12.0 → isaacus-0.14.0}/tests/sample_file.txt +0 -0
  99. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_client.py +0 -0
  100. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_deepcopy.py +0 -0
  101. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_extract_files.py +0 -0
  102. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_files.py +0 -0
  103. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_models.py +0 -0
  104. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_qs.py +0 -0
  105. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_required_args.py +0 -0
  106. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_response.py +0 -0
  107. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_streaming.py +0 -0
  108. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_transform.py +0 -0
  109. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_utils/test_datetime_parse.py +0 -0
  110. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_utils/test_json.py +0 -0
  111. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_utils/test_proxy.py +0 -0
  112. {isaacus-0.12.0 → isaacus-0.14.0}/tests/test_utils/test_typing.py +0 -0
  113. {isaacus-0.12.0 → isaacus-0.14.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.14.0"
3
+ }
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.0 (2026-02-04)
4
+
5
+ Full Changelog: [v0.13.0...v0.14.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.13.0...v0.14.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** add a `text` field ([a1842eb](https://github.com/isaacus-dev/isaacus-python/commit/a1842eb23c4f6b142fae8aa5634a65e303eb8b78))
10
+ * **api:** add level field to ILGS v1 segments ([63e8455](https://github.com/isaacus-dev/isaacus-python/commit/63e845506ef701eaff5cb85652a083e380b03dbc))
11
+ * **sdk:** add ilgs v1 span as a top model ([b30f176](https://github.com/isaacus-dev/isaacus-python/commit/b30f176d23a7eabb18d92d716f8d35b2fc9f454b))
12
+ * **sdk:** demote other models ([873f1a4](https://github.com/isaacus-dev/isaacus-python/commit/873f1a49d107be25de7b515b4796f2090e3885bf))
13
+ * **sdk:** move ilgs structs around ([cd485eb](https://github.com/isaacus-dev/isaacus-python/commit/cd485eb173c7f454aecfd114121672172a75824c))
14
+ * **sdk:** move ilgs structs around ([920e2bb](https://github.com/isaacus-dev/isaacus-python/commit/920e2bbf07e7aea58fabbd6b31ecd96050c43957))
15
+ * **sdk:** move ilgs structs around ([d3068e3](https://github.com/isaacus-dev/isaacus-python/commit/d3068e38f718f52cc9b46dc6e60efa5dc911f10a))
16
+ * **sdk:** move ilgs structs around ([6ea6db6](https://github.com/isaacus-dev/isaacus-python/commit/6ea6db6d15b754c6f2ffd5aa235d7b8abb1e3ad1))
17
+ * **sdk:** move ilgs structs around ([1f9c511](https://github.com/isaacus-dev/isaacus-python/commit/1f9c5116054a44d62013e5c82ba9d85d38b28f33))
18
+
19
+ ## 0.13.0 (2026-02-04)
20
+
21
+ Full Changelog: [v0.12.0...v0.13.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.12.0...v0.13.0)
22
+
23
+ ### Features
24
+
25
+ * **sdk:** alter v1 pascal casing ([7229055](https://github.com/isaacus-dev/isaacus-python/commit/7229055504fd20c05c5d7f5ee40afd76fbcdd02f))
26
+ * **sdk:** move ilgs models under `ilgs_v1` ([0165061](https://github.com/isaacus-dev/isaacus-python/commit/0165061dfd3f5245df16c75f7b8dbb39c68d9de8))
27
+ * **sdk:** move ilgs to its own resource ([e196566](https://github.com/isaacus-dev/isaacus-python/commit/e196566b8c5ef8e876f6d6c0d31393e17d24926f))
28
+ * **sdk:** move ilgsv1 resources under a subresource ([8620bb5](https://github.com/isaacus-dev/isaacus-python/commit/8620bb5259685c1764960278caba70ae9b42a0ec))
29
+ * **sdk:** removed chunking options as a shared resource ([b11b540](https://github.com/isaacus-dev/isaacus-python/commit/b11b540a1da187f5c667e99e53caa550c364aa94))
30
+ * **sdk:** revert v1 casing change ([5a8d5b1](https://github.com/isaacus-dev/isaacus-python/commit/5a8d5b13c69185a36148ee336d3dcf1b3191de0b))
31
+
3
32
  ## 0.12.0 (2026-02-03)
4
33
 
5
34
  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.14.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,36 @@ 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
+ # ILGS
66
+
67
+ ## v1
68
+
69
+ ### v1
70
+
71
+ Types:
72
+
73
+ ```python
74
+ from isaacus.types.ilgs.v1 import (
75
+ Crossreference,
76
+ Date,
77
+ Document,
78
+ Email,
79
+ ExternalDocument,
80
+ IDNumber,
81
+ Location,
82
+ Person,
83
+ PhoneNumber,
84
+ Quote,
85
+ Segment,
86
+ Span,
87
+ Term,
88
+ Website,
89
+ )
90
+ ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "isaacus"
3
- version = "0.12.0"
3
+ version = "0.14.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.14.0" # x-release-please-version
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .embedding_response import EmbeddingResponse as EmbeddingResponse
6
+ from .reranking_response import RerankingResponse as RerankingResponse
7
+ from .enrichment_response import EnrichmentResponse as EnrichmentResponse
8
+ from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
9
+ from .reranking_create_params import RerankingCreateParams as RerankingCreateParams
10
+ from .enrichment_create_params import EnrichmentCreateParams as EnrichmentCreateParams
@@ -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 .ilgs.v1.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
 
@@ -0,0 +1,3 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
@@ -0,0 +1,18 @@
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
@@ -1,12 +1,12 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from .._models import BaseModel
4
- from .ilgs_v1_span import ILGSv1Span
3
+ from .span import Span
4
+ from ...._models import BaseModel
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 .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
6
+ from .span import Span
7
+ from ...._models import BaseModel
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,31 @@
3
3
  from typing import List, Optional
4
4
  from typing_extensions import Literal
5
5
 
6
- 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):
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
14
+ from .location import Location
15
+ from .id_number import IDNumber
16
+ from ...._models import BaseModel
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
+ text: str
28
+ """The text of the document."""
29
+
30
+ title: Optional[Span] = None
28
31
  """A zero-based, half-open span into the Unicode code point space of input text.
29
32
 
30
33
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -40,7 +43,7 @@ class ILGSv1Document(BaseModel):
40
43
  code units instead of Unicode code points).
41
44
  """
42
45
 
43
- subtitle: Optional[ILGSv1Span] = None
46
+ subtitle: Optional[Span] = None
44
47
  """A zero-based, half-open span into the Unicode code point space of input text.
45
48
 
46
49
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -88,25 +91,25 @@ class ILGSv1Document(BaseModel):
88
91
  code for federal law.
89
92
  """
90
93
 
91
- segments: List[ILGSv1Segment]
94
+ segments: List[Segment]
92
95
  """
93
96
  An array of segments within the document representing structurally distinct
94
97
  portions of its content.
95
98
  """
96
99
 
97
- crossreferences: List[ILGSv1Crossreference]
100
+ crossreferences: List[Crossreference]
98
101
  """
99
102
  An array of cross-references within the document pointing to a single segment or
100
103
  a span of segments.
101
104
  """
102
105
 
103
- locations: List[ILGSv1Location]
106
+ locations: List[Location]
104
107
  """An array of locations identified in the document."""
105
108
 
106
- persons: List[ILGSv1Person]
109
+ persons: List[Person]
107
110
  """An array of legal persons identified in the document."""
108
111
 
109
- emails: List[ILGSv1Email]
112
+ emails: List[Email]
110
113
  """
111
114
  An array of email addresses identified in the document belonging to legal
112
115
  persons.
@@ -115,14 +118,14 @@ class ILGSv1Document(BaseModel):
115
118
  persons will not be extracted.
116
119
  """
117
120
 
118
- websites: List[ILGSv1Website]
121
+ websites: List[Website]
119
122
  """An array of websites identified in the document belonging to legal persons.
120
123
 
121
124
  Websites mentioned in the document that are not attributable to legal persons
122
125
  will not be extracted.
123
126
  """
124
127
 
125
- phone_numbers: List[ILGSv1PhoneNumber]
128
+ phone_numbers: List[PhoneNumber]
126
129
  """
127
130
  An array of valid phone numbers identified in the document belonging to legal
128
131
  persons.
@@ -131,7 +134,7 @@ class ILGSv1Document(BaseModel):
131
134
  attributable to legal persons will not be extracted.
132
135
  """
133
136
 
134
- id_numbers: List[ILGSv1IDNumber]
137
+ id_numbers: List[IDNumber]
135
138
  """
136
139
  An array of identification numbers identified in the document belonging to legal
137
140
  persons.
@@ -140,16 +143,16 @@ class ILGSv1Document(BaseModel):
140
143
  legal persons will not be extracted.
141
144
  """
142
145
 
143
- terms: List[ILGSv1Term]
146
+ terms: List[Term]
144
147
  """An array of terms assigned definite meanings within the document."""
145
148
 
146
- external_documents: List[ILGSv1ExternalDocument]
149
+ external_documents: List[ExternalDocument]
147
150
  """An array of documents identified within the document."""
148
151
 
149
- quotes: List[ILGSv1Quote]
152
+ quotes: List[Quote]
150
153
  """An array of quotations within the document."""
151
154
 
152
- dates: List[ILGSv1Date]
155
+ dates: List[Date]
153
156
  """
154
157
  An array of dates identified in the document belonging to one of the following
155
158
  types: `creation`, `signature`, `effective`, `expiry`, `delivery`, `renewal`,
@@ -159,10 +162,10 @@ class ILGSv1Document(BaseModel):
159
162
  one of the supported date types are extractable.
160
163
  """
161
164
 
162
- headings: List[ILGSv1Span]
165
+ headings: List[Span]
163
166
  """An array of spans within the document's text constituting headings."""
164
167
 
165
- junk: List[ILGSv1Span]
168
+ junk: List[Span]
166
169
  """
167
170
  An array of spans within the document's text constituting non-operative,
168
171
  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 .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
5
+ from .span import Span
6
+ from ...._models import BaseModel
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,13 +3,13 @@
3
3
  from typing import List, Optional
4
4
  from typing_extensions import Literal
5
5
 
6
- from .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
6
+ from .span import Span
7
+ from ...._models import BaseModel
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 .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
5
+ from .span import Span
6
+ from ...._models import BaseModel
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 .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
6
+ from .span import Span
7
+ from ...._models import BaseModel
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 .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
6
+ from .span import Span
7
+ from ...._models import BaseModel
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 .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
5
+ from .span import Span
6
+ from ...._models import BaseModel
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 .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
5
+ from .span import Span
6
+ from ...._models import BaseModel
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 .._models import BaseModel
7
- from .ilgs_v1_span import ILGSv1Span
6
+ from .span import Span
7
+ from ...._models import BaseModel
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,13 @@ class ILGSv1Segment(BaseModel):
188
188
  a non-negative incrementing integer starting from zero.
189
189
  """
190
190
 
191
- span: ILGSv1Span
191
+ level: int
192
+ """
193
+ The level of the segment within the document's segment hierarchy starting from
194
+ `0` for root-level segments.
195
+ """
196
+
197
+ span: Span
192
198
  """A zero-based, half-open span into the Unicode code point space of input text.
193
199
 
194
200
  All spans are globally laminar and well-nested similar to XML—it is impossible
@@ -1,11 +1,11 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from .._models import BaseModel
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 .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
5
+ from .span import Span
6
+ from ...._models import BaseModel
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 .._models import BaseModel
6
- from .ilgs_v1_span import ILGSv1Span
5
+ from .span import Span
6
+ from ...._models import BaseModel
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