Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.12.0"
".": "0.13.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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: a23e347480e00cefa57ce68b1de9e16d
config_hash: e26cc2858d2a56a077aee5473a5746df
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 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)

### Features

* **sdk:** alter v1 pascal casing ([7229055](https://github.com/isaacus-dev/isaacus-python/commit/7229055504fd20c05c5d7f5ee40afd76fbcdd02f))
* **sdk:** move ilgs models under `ilgs_v1` ([0165061](https://github.com/isaacus-dev/isaacus-python/commit/0165061dfd3f5245df16c75f7b8dbb39c68d9de8))
* **sdk:** move ilgs to its own resource ([e196566](https://github.com/isaacus-dev/isaacus-python/commit/e196566b8c5ef8e876f6d6c0d31393e17d24926f))
* **sdk:** move ilgsv1 resources under a subresource ([8620bb5](https://github.com/isaacus-dev/isaacus-python/commit/8620bb5259685c1764960278caba70ae9b42a0ec))
* **sdk:** removed chunking options as a shared resource ([b11b540](https://github.com/isaacus-dev/isaacus-python/commit/b11b540a1da187f5c667e99e53caa550c364aa94))
* **sdk:** revert v1 casing change ([5a8d5b1](https://github.com/isaacus-dev/isaacus-python/commit/5a8d5b13c69185a36148ee336d3dcf1b3191de0b))

## 0.12.0 (2026-02-03)

Full Changelog: [v0.11.0...v0.12.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.11.0...v0.12.0)
Expand Down
41 changes: 24 additions & 17 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,32 @@ Methods:
Types:

```python
from isaacus.types import (
EnrichmentResponse,
ILGSv1Crossreference,
ILGSv1Date,
ILGSv1Document,
ILGSv1Email,
ILGSv1ExternalDocument,
ILGSv1IDNumber,
ILGSv1Location,
ILGSv1Person,
ILGSv1PhoneNumber,
ILGSv1Quote,
ILGSv1Segment,
ILGSv1Span,
ILGSv1Term,
ILGSv1Website,
)
from isaacus.types import EnrichmentResponse
```

Methods:

- <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>

# ILGSv1

Types:

```python
from isaacus.types import (
Crossreference,
Date,
Document,
Email,
ExternalDocument,
IDNumber,
Location,
Person,
PhoneNumber,
Quote,
Segment,
Span,
Term,
Website,
)
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "isaacus"
version = "0.12.0"
version = "0.13.0"
description = "The official Python library for the isaacus API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/isaacus/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "isaacus"
__version__ = "0.12.0" # x-release-please-version
__version__ = "0.13.0" # x-release-please-version
28 changes: 14 additions & 14 deletions src/isaacus/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

from __future__ import annotations

from .ilgs_v1_date import ILGSv1Date as ILGSv1Date
from .ilgs_v1_span import ILGSv1Span as ILGSv1Span
from .ilgs_v1_term import ILGSv1Term as ILGSv1Term
from .ilgs_v1_email import ILGSv1Email as ILGSv1Email
from .ilgs_v1_quote import ILGSv1Quote as ILGSv1Quote
from .ilgs_v1_person import ILGSv1Person as ILGSv1Person
from .ilgs_v1_segment import ILGSv1Segment as ILGSv1Segment
from .ilgs_v1_website import ILGSv1Website as ILGSv1Website
from .ilgs_v1_document import ILGSv1Document as ILGSv1Document
from .ilgs_v1_location import ILGSv1Location as ILGSv1Location
from .ilgs_v1_id_number import ILGSv1IDNumber as ILGSv1IDNumber
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
from .ilgs_v1_phone_number import ILGSv1PhoneNumber as ILGSv1PhoneNumber
from .ilgs_v1_crossreference import ILGSv1Crossreference as ILGSv1Crossreference
from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
from .reranking_create_params import RerankingCreateParams as RerankingCreateParams
from .enrichment_create_params import EnrichmentCreateParams as EnrichmentCreateParams
from .ilgs_v1_external_document import ILGSv1ExternalDocument as ILGSv1ExternalDocument
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .span import Span
from .._models import BaseModel
from .ilgs_v1_span import ILGSv1Span

__all__ = ["ILGSv1Crossreference"]
__all__ = ["Crossreference"]


class ILGSv1Crossreference(BaseModel):
class Crossreference(BaseModel):
"""A cross-reference within the document pointing to one or more segments."""

start: str
Expand All @@ -25,7 +25,7 @@ class ILGSv1Crossreference(BaseModel):
will be identical.
"""

span: ILGSv1Span
span: Span
"""A zero-based, half-open span into the Unicode code point space of input text.

All spans are globally laminar and well-nested similar to XML—it is impossible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from typing import List, Optional
from typing_extensions import Literal

from .span import Span
from .._models import BaseModel
from .ilgs_v1_span import ILGSv1Span

__all__ = ["ILGSv1Date"]
__all__ = ["Date"]


class ILGSv1Date(BaseModel):
class Date(BaseModel):
"""
A date identified in a document belonging to one of the following types: `creation`, `signature`, `effective`, `expiry`, `delivery`, `renewal`, `payment`, `birth`, or `death`.

Expand Down Expand Up @@ -63,7 +63,7 @@ class ILGSv1Date(BaseModel):
`{index}` is a non-negative incrementing integer starting from zero.
"""

mentions: List[ILGSv1Span]
mentions: List[Span]
"""
An array of one or more spans within the document's text where the date is
mentioned.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
from typing import List, Optional
from typing_extensions import Literal

from .date import Date
from .span import Span
from .term import Term
from .email import Email
from .quote import Quote
from .person import Person
from .segment import Segment
from .website import Website
from .._models import BaseModel
from .ilgs_v1_date import ILGSv1Date
from .ilgs_v1_span import ILGSv1Span
from .ilgs_v1_term import ILGSv1Term
from .ilgs_v1_email import ILGSv1Email
from .ilgs_v1_quote import ILGSv1Quote
from .ilgs_v1_person import ILGSv1Person
from .ilgs_v1_segment import ILGSv1Segment
from .ilgs_v1_website import ILGSv1Website
from .ilgs_v1_location import ILGSv1Location
from .ilgs_v1_id_number import ILGSv1IDNumber
from .ilgs_v1_phone_number import ILGSv1PhoneNumber
from .ilgs_v1_crossreference import ILGSv1Crossreference
from .ilgs_v1_external_document import ILGSv1ExternalDocument

__all__ = ["ILGSv1Document"]


class ILGSv1Document(BaseModel):
from .location import Location
from .id_number import IDNumber
from .phone_number import PhoneNumber
from .crossreference import Crossreference
from .external_document import ExternalDocument

__all__ = ["Document"]


class Document(BaseModel):
"""The enriched document."""

title: Optional[ILGSv1Span] = None
title: Optional[Span] = None
"""A zero-based, half-open span into the Unicode code point space of input text.

All spans are globally laminar and well-nested similar to XML—it is impossible
Expand All @@ -40,7 +40,7 @@ class ILGSv1Document(BaseModel):
code units instead of Unicode code points).
"""

subtitle: Optional[ILGSv1Span] = None
subtitle: Optional[Span] = None
"""A zero-based, half-open span into the Unicode code point space of input text.

All spans are globally laminar and well-nested similar to XML—it is impossible
Expand Down Expand Up @@ -88,25 +88,25 @@ class ILGSv1Document(BaseModel):
code for federal law.
"""

segments: List[ILGSv1Segment]
segments: List[Segment]
"""
An array of segments within the document representing structurally distinct
portions of its content.
"""

crossreferences: List[ILGSv1Crossreference]
crossreferences: List[Crossreference]
"""
An array of cross-references within the document pointing to a single segment or
a span of segments.
"""

locations: List[ILGSv1Location]
locations: List[Location]
"""An array of locations identified in the document."""

persons: List[ILGSv1Person]
persons: List[Person]
"""An array of legal persons identified in the document."""

emails: List[ILGSv1Email]
emails: List[Email]
"""
An array of email addresses identified in the document belonging to legal
persons.
Expand All @@ -115,14 +115,14 @@ class ILGSv1Document(BaseModel):
persons will not be extracted.
"""

websites: List[ILGSv1Website]
websites: List[Website]
"""An array of websites identified in the document belonging to legal persons.

Websites mentioned in the document that are not attributable to legal persons
will not be extracted.
"""

phone_numbers: List[ILGSv1PhoneNumber]
phone_numbers: List[PhoneNumber]
"""
An array of valid phone numbers identified in the document belonging to legal
persons.
Expand All @@ -131,7 +131,7 @@ class ILGSv1Document(BaseModel):
attributable to legal persons will not be extracted.
"""

id_numbers: List[ILGSv1IDNumber]
id_numbers: List[IDNumber]
"""
An array of identification numbers identified in the document belonging to legal
persons.
Expand All @@ -140,16 +140,16 @@ class ILGSv1Document(BaseModel):
legal persons will not be extracted.
"""

terms: List[ILGSv1Term]
terms: List[Term]
"""An array of terms assigned definite meanings within the document."""

external_documents: List[ILGSv1ExternalDocument]
external_documents: List[ExternalDocument]
"""An array of documents identified within the document."""

quotes: List[ILGSv1Quote]
quotes: List[Quote]
"""An array of quotations within the document."""

dates: List[ILGSv1Date]
dates: List[Date]
"""
An array of dates identified in the document belonging to one of the following
types: `creation`, `signature`, `effective`, `expiry`, `delivery`, `renewal`,
Expand All @@ -159,10 +159,10 @@ class ILGSv1Document(BaseModel):
one of the supported date types are extractable.
"""

headings: List[ILGSv1Span]
headings: List[Span]
"""An array of spans within the document's text constituting headings."""

junk: List[ILGSv1Span]
junk: List[Span]
"""
An array of spans within the document's text constituting non-operative,
non-substantive 'junk' content such as headers, footers, page numbers, and OCR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

from typing import List

from .span import Span
from .._models import BaseModel
from .ilgs_v1_span import ILGSv1Span

__all__ = ["ILGSv1Email"]
__all__ = ["Email"]


class ILGSv1Email(BaseModel):
class Email(BaseModel):
"""An email address identified in a document belonging to a legal person.

If an email address was mentioned in the document but is not attributable to a legal person, it will not be extracted.
Expand All @@ -20,7 +20,7 @@ class ILGSv1Email(BaseModel):
person: str
"""The unique identifier of the person that this email address belongs to."""

mentions: List[ILGSv1Span]
mentions: List[Span]
"""
An array of one or more spans within the document's text where the email address
is mentioned.
Expand Down
4 changes: 2 additions & 2 deletions src/isaacus/types/enrichment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import List

from .._models import BaseModel
from .ilgs_v1_document import ILGSv1Document
from .document import Document

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

Expand All @@ -17,7 +17,7 @@ class Result(BaseModel):
therefore, ending at the number of inputs minus `1`).
"""

document: ILGSv1Document
document: Document
"""The enriched document."""


Expand Down
Loading