Skip to content
Open
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 @@
{
".": "1.9.0"
".": "1.10.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-2fd773786951b723a5d7d7342bf1c6ab46f08bd2851e916d188faae379d5aa4c.yml
openapi_spec_hash: 7515d1e5fe3130b9f5411f7aacbc8a64
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-e572d88c2af6e4d7bc4f7e119357fd3f68b1e67d612fd1d3a657d916cde0087c.yml
openapi_spec_hash: a9fc7d947111bffa9184f8ca8be4a579
config_hash: 5509bb7a961ae2e79114b24c381606d4
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.10.0 (2026-05-02)

Full Changelog: [v1.9.0...v1.10.0](https://github.com/CASParser/cas-parser-python/compare/v1.9.0...v1.10.0)

### Features

* **api:** api update ([809f3de](https://github.com/CASParser/cas-parser-python/commit/809f3de0c92ab34db2ffcdcc494adaba9913fe7a))
* **api:** api update ([4aa46fc](https://github.com/CASParser/cas-parser-python/commit/4aa46fcbc1cf3279f572ff3a1c2110a6e1f31d4a))

## 1.9.0 (2026-05-01)

Full Changelog: [v1.8.0...v1.9.0](https://github.com/CASParser/cas-parser-python/compare/v1.8.0...v1.9.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cas-parser-python"
version = "1.9.0"
version = "1.10.0"
description = "The official Python library for the cas-parser API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cas_parser/_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__ = "cas_parser"
__version__ = "1.9.0" # x-release-please-version
__version__ = "1.10.0" # x-release-please-version
16 changes: 8 additions & 8 deletions src/cas_parser/resources/inbound_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def retrieve(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> InboundEmailRetrieveResponse:
"""
Retrieve details of a specific mailbox including statistics.
Retrieve details of a specific inbound email including statistics.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -190,10 +190,10 @@ def list(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> InboundEmailListResponse:
"""List all mailboxes associated with your API key.
"""List all inbound emails associated with your API key.

Returns active and inactive
mailboxes (deleted mailboxes are excluded).
Returns active and paused
inbound emails (deleted ones are excluded).

Args:
limit: Maximum number of inbound emails to return
Expand Down Expand Up @@ -396,7 +396,7 @@ async def retrieve(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> InboundEmailRetrieveResponse:
"""
Retrieve details of a specific mailbox including statistics.
Retrieve details of a specific inbound email including statistics.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -430,10 +430,10 @@ async def list(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> InboundEmailListResponse:
"""List all mailboxes associated with your API key.
"""List all inbound emails associated with your API key.

Returns active and inactive
mailboxes (deleted mailboxes are excluded).
Returns active and paused
inbound emails (deleted ones are excluded).

Args:
limit: Maximum number of inbound emails to return
Expand Down
10 changes: 5 additions & 5 deletions src/cas_parser/types/inbound_email_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class InboundEmailCreateResponse(BaseModel):
callback_url: Optional[str] = None
"""Webhook URL for email notifications.

`null` means files are only retrievable via `GET /v4/inbound-email/{id}/files`
(pull delivery).
If set, we POST each parsed email here. If omitted, files are only retrievable
via `GET /v4/inbound-email/{id}/files`.
"""

created_at: Optional[datetime] = None
"""When the mailbox was created"""
"""When the inbound email was created"""

email: Optional[str] = None
"""The inbound email address to forward CAS statements to"""
Expand All @@ -38,7 +38,7 @@ class InboundEmailCreateResponse(BaseModel):
"""Your internal reference identifier"""

status: Optional[Literal["active", "paused"]] = None
"""Current mailbox status"""
"""Current inbound email lifecycle status"""

updated_at: Optional[datetime] = None
"""When the mailbox was last updated"""
"""When the inbound email was last updated"""
10 changes: 5 additions & 5 deletions src/cas_parser/types/inbound_email_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class InboundEmail(BaseModel):
callback_url: Optional[str] = None
"""Webhook URL for email notifications.

`null` means files are only retrievable via `GET /v4/inbound-email/{id}/files`
(pull delivery).
If set, we POST each parsed email here. If omitted, files are only retrievable
via `GET /v4/inbound-email/{id}/files`.
"""

created_at: Optional[datetime] = None
"""When the mailbox was created"""
"""When the inbound email was created"""

email: Optional[str] = None
"""The inbound email address to forward CAS statements to"""
Expand All @@ -38,10 +38,10 @@ class InboundEmail(BaseModel):
"""Your internal reference identifier"""

status: Optional[Literal["active", "paused"]] = None
"""Current mailbox status"""
"""Current inbound email lifecycle status"""

updated_at: Optional[datetime] = None
"""When the mailbox was last updated"""
"""When the inbound email was last updated"""


class InboundEmailListResponse(BaseModel):
Expand Down
10 changes: 5 additions & 5 deletions src/cas_parser/types/inbound_email_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class InboundEmailRetrieveResponse(BaseModel):
callback_url: Optional[str] = None
"""Webhook URL for email notifications.

`null` means files are only retrievable via `GET /v4/inbound-email/{id}/files`
(pull delivery).
If set, we POST each parsed email here. If omitted, files are only retrievable
via `GET /v4/inbound-email/{id}/files`.
"""

created_at: Optional[datetime] = None
"""When the mailbox was created"""
"""When the inbound email was created"""

email: Optional[str] = None
"""The inbound email address to forward CAS statements to"""
Expand All @@ -38,7 +38,7 @@ class InboundEmailRetrieveResponse(BaseModel):
"""Your internal reference identifier"""

status: Optional[Literal["active", "paused"]] = None
"""Current mailbox status"""
"""Current inbound email lifecycle status"""

updated_at: Optional[datetime] = None
"""When the mailbox was last updated"""
"""When the inbound email was last updated"""
7 changes: 6 additions & 1 deletion src/cas_parser/types/inbox_list_cas_files_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ class File(BaseModel):
"""Detected CAS provider based on sender email"""

expires_in: Optional[int] = None
"""URL expiration time in seconds (default 86400 = 24 hours)"""
"""URL expiration time in seconds. Defaults vary by source:

- Gmail Inbox Import: 86400 (24h)
- Inbound Email with `callback_url` set: 172800 (48h)
- Inbound Email without `callback_url`: aligned with the session TTL (~30 min)
"""

filename: Optional[str] = None
"""Standardized filename (provider_YYYYMMDD_uniqueid.pdf)"""
Expand Down
Loading