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.14.0"
".": "1.15.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: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-cd8e042a9746bbe9bd180614fccc7597b85f4e8f6a29da6cd2f4cbf831fb2fbe.yml
openapi_spec_hash: e27c0d9cd8cdeb348c88e6c4e8777e39
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-5c6cdb8b7a2c0ba449927687bc378823ac947b26b7c2e6c379ae14668b73979a.yml
openapi_spec_hash: 6bc024b866f01da53e2cfd6e404157c7
config_hash: 5509bb7a961ae2e79114b24c381606d4
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.15.0 (2026-08-08)

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

### Features

* **api:** api update ([da9b344](https://github.com/CASParser/cas-parser-python/commit/da9b3449915120580a6d4a2f1372e50981455577))

## 1.14.0 (2026-08-02)

Full Changelog: [v1.13.0...v1.14.0](https://github.com/CASParser/cas-parser-python/compare/v1.13.0...v1.14.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.14.0"
version = "1.15.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.14.0" # x-release-please-version
__version__ = "1.15.0" # x-release-please-version
20 changes: 20 additions & 0 deletions src/cas_parser/resources/inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def connect_email(
self,
*,
redirect_uri: str,
provider: Literal["gmail", "outlook"] | Omit = omit,
state: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -136,6 +137,14 @@ def connect_email(
Args:
redirect_uri: Your callback URL to receive the inbox_token (must be http or https)

provider: Mail provider to connect. Defaults to `gmail`.

- `gmail` - Google accounts
- `outlook` - Microsoft accounts

Any value other than `outlook` is treated as `gmail`. The resolved provider is
returned in the response.

state: State parameter for CSRF protection (returned in redirect)

extra_headers: Send extra headers
Expand All @@ -151,6 +160,7 @@ def connect_email(
body=maybe_transform(
{
"redirect_uri": redirect_uri,
"provider": provider,
"state": state,
},
inbox_connect_email_params.InboxConnectEmailParams,
Expand Down Expand Up @@ -338,6 +348,7 @@ async def connect_email(
self,
*,
redirect_uri: str,
provider: Literal["gmail", "outlook"] | Omit = omit,
state: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -370,6 +381,14 @@ async def connect_email(
Args:
redirect_uri: Your callback URL to receive the inbox_token (must be http or https)

provider: Mail provider to connect. Defaults to `gmail`.

- `gmail` - Google accounts
- `outlook` - Microsoft accounts

Any value other than `outlook` is treated as `gmail`. The resolved provider is
returned in the response.

state: State parameter for CSRF protection (returned in redirect)

extra_headers: Send extra headers
Expand All @@ -385,6 +404,7 @@ async def connect_email(
body=await async_maybe_transform(
{
"redirect_uri": redirect_uri,
"provider": provider,
"state": state,
},
inbox_connect_email_params.InboxConnectEmailParams,
Expand Down
12 changes: 11 additions & 1 deletion src/cas_parser/types/inbox_connect_email_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing_extensions import Required, TypedDict
from typing_extensions import Literal, Required, TypedDict

__all__ = ["InboxConnectEmailParams"]

Expand All @@ -11,5 +11,15 @@ class InboxConnectEmailParams(TypedDict, total=False):
redirect_uri: Required[str]
"""Your callback URL to receive the inbox_token (must be http or https)"""

provider: Literal["gmail", "outlook"]
"""Mail provider to connect. Defaults to `gmail`.

- `gmail` - Google accounts
- `outlook` - Microsoft accounts

Any value other than `outlook` is treated as `gmail`. The resolved provider is
returned in the response.
"""

state: str
"""State parameter for CSRF protection (returned in redirect)"""
4 changes: 4 additions & 0 deletions src/cas_parser/types/inbox_connect_email_response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from .._models import BaseModel

Expand All @@ -14,4 +15,7 @@ class InboxConnectEmailResponse(BaseModel):
oauth_url: Optional[str] = None
"""Redirect user to this URL to start OAuth flow"""

provider: Optional[Literal["gmail", "outlook"]] = None
"""The provider this OAuth URL was generated for"""

status: Optional[str] = None
2 changes: 2 additions & 0 deletions tests/api_resources/test_inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_method_connect_email(self, client: CasParser) -> None:
def test_method_connect_email_with_all_params(self, client: CasParser) -> None:
inbox = client.inbox.connect_email(
redirect_uri="https://yourapp.com/oauth-callback",
provider="outlook",
state="abc123",
)
assert_matches_type(InboxConnectEmailResponse, inbox, path=["response"])
Expand Down Expand Up @@ -232,6 +233,7 @@ async def test_method_connect_email(self, async_client: AsyncCasParser) -> None:
async def test_method_connect_email_with_all_params(self, async_client: AsyncCasParser) -> None:
inbox = await async_client.inbox.connect_email(
redirect_uri="https://yourapp.com/oauth-callback",
provider="outlook",
state="abc123",
)
assert_matches_type(InboxConnectEmailResponse, inbox, path=["response"])
Expand Down
Loading