diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d52d2b9..a26ebfc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.13.0" + ".": "0.14.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d0ad896..fdcf3f0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 5 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-fa910a5a3d1321234423bd8c042d202a64d4d956ef45847b4de358cb18e447eb.yml -openapi_spec_hash: 926b9b619c15e8570e496e11d4fb753e -config_hash: e26cc2858d2a56a077aee5473a5746df +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-3cce91df023b807a4471d16453720e5962966b270abd3eee54711d74cfbd092e.yml +openapi_spec_hash: 5d9892dfcf03fd24c38775951636e5fb +config_hash: 7b8cddc2fa896f9ab05e6b05055c7f27 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e79898..97fd948 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.14.0 (2026-02-04) + +Full Changelog: [v0.13.0...v0.14.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.13.0...v0.14.0) + +### Features + +* **api:** add a `text` field ([a1842eb](https://github.com/isaacus-dev/isaacus-python/commit/a1842eb23c4f6b142fae8aa5634a65e303eb8b78)) +* **api:** add level field to ILGS v1 segments ([63e8455](https://github.com/isaacus-dev/isaacus-python/commit/63e845506ef701eaff5cb85652a083e380b03dbc)) +* **sdk:** add ilgs v1 span as a top model ([b30f176](https://github.com/isaacus-dev/isaacus-python/commit/b30f176d23a7eabb18d92d716f8d35b2fc9f454b)) +* **sdk:** demote other models ([873f1a4](https://github.com/isaacus-dev/isaacus-python/commit/873f1a49d107be25de7b515b4796f2090e3885bf)) +* **sdk:** move ilgs structs around ([cd485eb](https://github.com/isaacus-dev/isaacus-python/commit/cd485eb173c7f454aecfd114121672172a75824c)) +* **sdk:** move ilgs structs around ([920e2bb](https://github.com/isaacus-dev/isaacus-python/commit/920e2bbf07e7aea58fabbd6b31ecd96050c43957)) +* **sdk:** move ilgs structs around ([d3068e3](https://github.com/isaacus-dev/isaacus-python/commit/d3068e38f718f52cc9b46dc6e60efa5dc911f10a)) +* **sdk:** move ilgs structs around ([6ea6db6](https://github.com/isaacus-dev/isaacus-python/commit/6ea6db6d15b754c6f2ffd5aa235d7b8abb1e3ad1)) +* **sdk:** move ilgs structs around ([1f9c511](https://github.com/isaacus-dev/isaacus-python/commit/1f9c5116054a44d62013e5c82ba9d85d38b28f33)) + ## 0.13.0 (2026-02-04) Full Changelog: [v0.12.0...v0.13.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.12.0...v0.13.0) diff --git a/api.md b/api.md index efdbf07..c4c5055 100644 --- a/api.md +++ b/api.md @@ -62,12 +62,16 @@ Methods: - client.enrichments.create(\*\*params) -> EnrichmentResponse -# ILGSv1 +# ILGS + +## v1 + +### v1 Types: ```python -from isaacus.types import ( +from isaacus.types.ilgs.v1 import ( Crossreference, Date, Document, diff --git a/pyproject.toml b/pyproject.toml index 4788a10..45898d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "isaacus" -version = "0.13.0" +version = "0.14.0" description = "The official Python library for the isaacus API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/isaacus/_version.py b/src/isaacus/_version.py index 727c37c..194d0a0 100644 --- a/src/isaacus/_version.py +++ b/src/isaacus/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "isaacus" -__version__ = "0.13.0" # x-release-please-version +__version__ = "0.14.0" # x-release-please-version diff --git a/src/isaacus/types/__init__.py b/src/isaacus/types/__init__.py index 22f2d74..f1751e9 100644 --- a/src/isaacus/types/__init__.py +++ b/src/isaacus/types/__init__.py @@ -2,20 +2,6 @@ from __future__ import annotations -from .date import Date as Date -from .span import Span as Span -from .term import Term as Term -from .email import Email as Email -from .quote import Quote as Quote -from .person import Person as Person -from .segment import Segment as Segment -from .website import Website as Website -from .document import Document as Document -from .location import Location as Location -from .id_number import IDNumber as IDNumber -from .phone_number import PhoneNumber as PhoneNumber -from .crossreference import Crossreference as Crossreference -from .external_document import ExternalDocument as ExternalDocument from .embedding_response import EmbeddingResponse as EmbeddingResponse from .reranking_response import RerankingResponse as RerankingResponse from .enrichment_response import EnrichmentResponse as EnrichmentResponse diff --git a/src/isaacus/types/enrichment_response.py b/src/isaacus/types/enrichment_response.py index 9e1c420..809bcf4 100644 --- a/src/isaacus/types/enrichment_response.py +++ b/src/isaacus/types/enrichment_response.py @@ -3,7 +3,7 @@ from typing import List from .._models import BaseModel -from .document import Document +from .ilgs.v1.document import Document __all__ = ["EnrichmentResponse", "Result", "Usage"] diff --git a/src/isaacus/types/ilgs/__init__.py b/src/isaacus/types/ilgs/__init__.py new file mode 100644 index 0000000..f8ee8b1 --- /dev/null +++ b/src/isaacus/types/ilgs/__init__.py @@ -0,0 +1,3 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations diff --git a/src/isaacus/types/ilgs/v1/__init__.py b/src/isaacus/types/ilgs/v1/__init__.py new file mode 100644 index 0000000..6f8d0d9 --- /dev/null +++ b/src/isaacus/types/ilgs/v1/__init__.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .date import Date as Date +from .span import Span as Span +from .term import Term as Term +from .email import Email as Email +from .quote import Quote as Quote +from .person import Person as Person +from .segment import Segment as Segment +from .website import Website as Website +from .document import Document as Document +from .location import Location as Location +from .id_number import IDNumber as IDNumber +from .phone_number import PhoneNumber as PhoneNumber +from .crossreference import Crossreference as Crossreference +from .external_document import ExternalDocument as ExternalDocument diff --git a/src/isaacus/types/crossreference.py b/src/isaacus/types/ilgs/v1/crossreference.py similarity index 97% rename from src/isaacus/types/crossreference.py rename to src/isaacus/types/ilgs/v1/crossreference.py index 604ba13..e515b52 100644 --- a/src/isaacus/types/crossreference.py +++ b/src/isaacus/types/ilgs/v1/crossreference.py @@ -1,7 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Crossreference"] diff --git a/src/isaacus/types/date.py b/src/isaacus/types/ilgs/v1/date.py similarity index 98% rename from src/isaacus/types/date.py rename to src/isaacus/types/ilgs/v1/date.py index 5266faf..7208b4b 100644 --- a/src/isaacus/types/date.py +++ b/src/isaacus/types/ilgs/v1/date.py @@ -4,7 +4,7 @@ from typing_extensions import Literal from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Date"] diff --git a/src/isaacus/types/document.py b/src/isaacus/types/ilgs/v1/document.py similarity index 98% rename from src/isaacus/types/document.py rename to src/isaacus/types/ilgs/v1/document.py index 1ad35fa..3481d46 100644 --- a/src/isaacus/types/document.py +++ b/src/isaacus/types/ilgs/v1/document.py @@ -11,9 +11,9 @@ from .person import Person from .segment import Segment from .website import Website -from .._models import BaseModel from .location import Location from .id_number import IDNumber +from ...._models import BaseModel from .phone_number import PhoneNumber from .crossreference import Crossreference from .external_document import ExternalDocument @@ -24,6 +24,9 @@ class Document(BaseModel): """The enriched document.""" + text: str + """The text of the document.""" + title: Optional[Span] = None """A zero-based, half-open span into the Unicode code point space of input text. diff --git a/src/isaacus/types/email.py b/src/isaacus/types/ilgs/v1/email.py similarity index 95% rename from src/isaacus/types/email.py rename to src/isaacus/types/ilgs/v1/email.py index 88a4582..7183531 100644 --- a/src/isaacus/types/email.py +++ b/src/isaacus/types/ilgs/v1/email.py @@ -3,7 +3,7 @@ from typing import List from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Email"] diff --git a/src/isaacus/types/external_document.py b/src/isaacus/types/ilgs/v1/external_document.py similarity index 99% rename from src/isaacus/types/external_document.py rename to src/isaacus/types/ilgs/v1/external_document.py index 3e8582d..8f2b135 100644 --- a/src/isaacus/types/external_document.py +++ b/src/isaacus/types/ilgs/v1/external_document.py @@ -4,7 +4,7 @@ from typing_extensions import Literal from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["ExternalDocument"] diff --git a/src/isaacus/types/id_number.py b/src/isaacus/types/ilgs/v1/id_number.py similarity index 95% rename from src/isaacus/types/id_number.py rename to src/isaacus/types/ilgs/v1/id_number.py index 7e3f9c7..52ae0b7 100644 --- a/src/isaacus/types/id_number.py +++ b/src/isaacus/types/ilgs/v1/id_number.py @@ -3,7 +3,7 @@ from typing import List from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["IDNumber"] diff --git a/src/isaacus/types/location.py b/src/isaacus/types/ilgs/v1/location.py similarity index 98% rename from src/isaacus/types/location.py rename to src/isaacus/types/ilgs/v1/location.py index 27b68eb..6f4bbd1 100644 --- a/src/isaacus/types/location.py +++ b/src/isaacus/types/ilgs/v1/location.py @@ -4,7 +4,7 @@ from typing_extensions import Literal from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Location"] diff --git a/src/isaacus/types/person.py b/src/isaacus/types/ilgs/v1/person.py similarity index 99% rename from src/isaacus/types/person.py rename to src/isaacus/types/ilgs/v1/person.py index 1189595..42384a7 100644 --- a/src/isaacus/types/person.py +++ b/src/isaacus/types/ilgs/v1/person.py @@ -4,7 +4,7 @@ from typing_extensions import Literal from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Person"] diff --git a/src/isaacus/types/phone_number.py b/src/isaacus/types/ilgs/v1/phone_number.py similarity index 96% rename from src/isaacus/types/phone_number.py rename to src/isaacus/types/ilgs/v1/phone_number.py index 30dd506..53b79e3 100644 --- a/src/isaacus/types/phone_number.py +++ b/src/isaacus/types/ilgs/v1/phone_number.py @@ -3,7 +3,7 @@ from typing import List from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["PhoneNumber"] diff --git a/src/isaacus/types/quote.py b/src/isaacus/types/ilgs/v1/quote.py similarity index 98% rename from src/isaacus/types/quote.py rename to src/isaacus/types/ilgs/v1/quote.py index 735721d..3bcaad9 100644 --- a/src/isaacus/types/quote.py +++ b/src/isaacus/types/ilgs/v1/quote.py @@ -3,7 +3,7 @@ from typing import Optional from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Quote"] diff --git a/src/isaacus/types/segment.py b/src/isaacus/types/ilgs/v1/segment.py similarity index 97% rename from src/isaacus/types/segment.py rename to src/isaacus/types/ilgs/v1/segment.py index 2f13d9d..f99e505 100644 --- a/src/isaacus/types/segment.py +++ b/src/isaacus/types/ilgs/v1/segment.py @@ -4,7 +4,7 @@ from typing_extensions import Literal from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Segment"] @@ -188,6 +188,12 @@ class Segment(BaseModel): a non-negative incrementing integer starting from zero. """ + level: int + """ + The level of the segment within the document's segment hierarchy starting from + `0` for root-level segments. + """ + span: Span """A zero-based, half-open span into the Unicode code point space of input text. diff --git a/src/isaacus/types/span.py b/src/isaacus/types/ilgs/v1/span.py similarity index 97% rename from src/isaacus/types/span.py rename to src/isaacus/types/ilgs/v1/span.py index 23108eb..2289f04 100644 --- a/src/isaacus/types/span.py +++ b/src/isaacus/types/ilgs/v1/span.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Span"] diff --git a/src/isaacus/types/term.py b/src/isaacus/types/ilgs/v1/term.py similarity index 98% rename from src/isaacus/types/term.py rename to src/isaacus/types/ilgs/v1/term.py index 63a88b1..7b34272 100644 --- a/src/isaacus/types/term.py +++ b/src/isaacus/types/ilgs/v1/term.py @@ -3,7 +3,7 @@ from typing import List from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Term"] diff --git a/src/isaacus/types/website.py b/src/isaacus/types/ilgs/v1/website.py similarity index 95% rename from src/isaacus/types/website.py rename to src/isaacus/types/ilgs/v1/website.py index 3f1d233..3b3baac 100644 --- a/src/isaacus/types/website.py +++ b/src/isaacus/types/ilgs/v1/website.py @@ -3,7 +3,7 @@ from typing import List from .span import Span -from .._models import BaseModel +from ...._models import BaseModel __all__ = ["Website"]