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 @@
{
".": "0.115.0"
".": "0.116.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 176
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c24eebe942f400bff8922a6fbef1ce551ad14f61eb4da21b50d823a62ca42586.yml
openapi_spec_hash: b79ed927e625dedff69cea29131a34d9
config_hash: 693dddc4721eef512d75ab6c60897794
configured_endpoints: 184
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a45946df228eec554b3cd2491f658bd5a45cb91509da0a9f92d50468ea88072f.yml
openapi_spec_hash: 24c7c13e1e7385cab5442ca66091ffc6
config_hash: 50031f78031362c2e4900222b9ce7ada
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## 0.116.0 (2026-02-27)

Full Changelog: [v0.115.0...v0.116.0](https://github.com/lithic-com/lithic-python/compare/v0.115.0...v0.116.0)

### Features

* **api:** Add account holder entity endpoints ([710c501](https://github.com/lithic-com/lithic-python/commit/710c501c3695a51743437488769f1132578c23dd))
* **api:** Add INTEREST_AND_FEES_PAUSED substatus to financial account ([c4a37de](https://github.com/lithic-com/lithic-python/commit/c4a37de9f0f7821e54d05702c4d1d809124fc7bc))
* **api:** Expose MIL interest schedules and loan tape configuration endpoints ([5c6bcd7](https://github.com/lithic-com/lithic-python/commit/5c6bcd740933255291c0fd0b482021c4a50d0e78))


### Bug Fixes

* **api:** Correct token_metadata field name in tokenization.approval_request schema ([36532d8](https://github.com/lithic-com/lithic-python/commit/36532d836f7cd3ef23b6c70194cd50f9495644ec))


### Chores

* **dependencies:** require standardwebhooks 1.0.1 ([7dae789](https://github.com/lithic-com/lithic-python/commit/7dae7892de61a765ab4bca8c7af3046d90fe2ff4))
* **internal:** add request options to SSE classes ([1b49e55](https://github.com/lithic-com/lithic-python/commit/1b49e550b0e6fe3c5203740a9634ee6264046489))
* **internal:** make `test_proxy_environment_variables` more resilient ([e12df38](https://github.com/lithic-com/lithic-python/commit/e12df381dda14514d7bc8ce5f7fe7ea882d0fb0f))
* **internal:** make `test_proxy_environment_variables` more resilient to env ([9d0e878](https://github.com/lithic-com/lithic-python/commit/9d0e87814e2369c791ee5b9f8a4431c9de38e505))
* update mock server docs ([ec268b7](https://github.com/lithic-com/lithic-python/commit/ec268b7426be15578b2eaf92ca81107cbf9084e6))


### Documentation

* Remove CONDITIONAL_BLOCK from docs ([f202486](https://github.com/lithic-com/lithic-python/commit/f202486f3cb2c60338be8d38f09eb23e82acf1ae))

## 0.115.0 (2026-02-13)

Full Changelog: [v0.114.0...v0.115.0](https://github.com/lithic-com/lithic-python/compare/v0.114.0...v0.115.0)
Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ $ pip install ./path-to-wheel-file.whl
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
$ ./scripts/mock
```

```sh
Expand Down
61 changes: 51 additions & 10 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,28 @@ from lithic.types import (

Methods:

- <code title="post /v1/account_holders">client.account_holders.<a href="./src/lithic/resources/account_holders.py">create</a>(\*\*<a href="src/lithic/types/account_holder_create_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_create_response.py">AccountHolderCreateResponse</a></code>
- <code title="get /v1/account_holders/{account_holder_token}">client.account_holders.<a href="./src/lithic/resources/account_holders.py">retrieve</a>(account_holder_token) -> <a href="./src/lithic/types/account_holder.py">AccountHolder</a></code>
- <code title="patch /v1/account_holders/{account_holder_token}">client.account_holders.<a href="./src/lithic/resources/account_holders.py">update</a>(account_holder_token, \*\*<a href="src/lithic/types/account_holder_update_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_update_response.py">AccountHolderUpdateResponse</a></code>
- <code title="get /v1/account_holders">client.account_holders.<a href="./src/lithic/resources/account_holders.py">list</a>(\*\*<a href="src/lithic/types/account_holder_list_params.py">params</a>) -> <a href="./src/lithic/types/account_holder.py">SyncSinglePage[AccountHolder]</a></code>
- <code title="get /v1/account_holders/{account_holder_token}/documents">client.account_holders.<a href="./src/lithic/resources/account_holders.py">list_documents</a>(account_holder_token) -> <a href="./src/lithic/types/account_holder_list_documents_response.py">AccountHolderListDocumentsResponse</a></code>
- <code title="get /v1/account_holders/{account_holder_token}/documents/{document_token}">client.account_holders.<a href="./src/lithic/resources/account_holders.py">retrieve_document</a>(document_token, \*, account_holder_token) -> <a href="./src/lithic/types/shared/document.py">Document</a></code>
- <code title="post /v1/simulate/account_holders/enrollment_document_review">client.account_holders.<a href="./src/lithic/resources/account_holders.py">simulate_enrollment_document_review</a>(\*\*<a href="src/lithic/types/account_holder_simulate_enrollment_document_review_params.py">params</a>) -> <a href="./src/lithic/types/shared/document.py">Document</a></code>
- <code title="post /v1/simulate/account_holders/enrollment_review">client.account_holders.<a href="./src/lithic/resources/account_holders.py">simulate_enrollment_review</a>(\*\*<a href="src/lithic/types/account_holder_simulate_enrollment_review_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_simulate_enrollment_review_response.py">AccountHolderSimulateEnrollmentReviewResponse</a></code>
- <code title="post /v1/account_holders/{account_holder_token}/documents">client.account_holders.<a href="./src/lithic/resources/account_holders.py">upload_document</a>(account_holder_token, \*\*<a href="src/lithic/types/account_holder_upload_document_params.py">params</a>) -> <a href="./src/lithic/types/shared/document.py">Document</a></code>
- <code title="post /v1/account_holders">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">create</a>(\*\*<a href="src/lithic/types/account_holder_create_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_create_response.py">AccountHolderCreateResponse</a></code>
- <code title="get /v1/account_holders/{account_holder_token}">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">retrieve</a>(account_holder_token) -> <a href="./src/lithic/types/account_holder.py">AccountHolder</a></code>
- <code title="patch /v1/account_holders/{account_holder_token}">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">update</a>(account_holder_token, \*\*<a href="src/lithic/types/account_holder_update_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_update_response.py">AccountHolderUpdateResponse</a></code>
- <code title="get /v1/account_holders">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">list</a>(\*\*<a href="src/lithic/types/account_holder_list_params.py">params</a>) -> <a href="./src/lithic/types/account_holder.py">SyncSinglePage[AccountHolder]</a></code>
- <code title="get /v1/account_holders/{account_holder_token}/documents">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">list_documents</a>(account_holder_token) -> <a href="./src/lithic/types/account_holder_list_documents_response.py">AccountHolderListDocumentsResponse</a></code>
- <code title="get /v1/account_holders/{account_holder_token}/documents/{document_token}">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">retrieve_document</a>(document_token, \*, account_holder_token) -> <a href="./src/lithic/types/shared/document.py">Document</a></code>
- <code title="post /v1/simulate/account_holders/enrollment_document_review">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">simulate_enrollment_document_review</a>(\*\*<a href="src/lithic/types/account_holder_simulate_enrollment_document_review_params.py">params</a>) -> <a href="./src/lithic/types/shared/document.py">Document</a></code>
- <code title="post /v1/simulate/account_holders/enrollment_review">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">simulate_enrollment_review</a>(\*\*<a href="src/lithic/types/account_holder_simulate_enrollment_review_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_simulate_enrollment_review_response.py">AccountHolderSimulateEnrollmentReviewResponse</a></code>
- <code title="post /v1/account_holders/{account_holder_token}/documents">client.account_holders.<a href="./src/lithic/resources/account_holders/account_holders.py">upload_document</a>(account_holder_token, \*\*<a href="src/lithic/types/account_holder_upload_document_params.py">params</a>) -> <a href="./src/lithic/types/shared/document.py">Document</a></code>

## Entities

Types:

```python
from lithic.types.account_holders import AccountHolderEntity, EntityCreateResponse
```

Methods:

- <code title="post /v1/account_holders/{account_holder_token}/entities">client.account_holders.entities.<a href="./src/lithic/resources/account_holders/entities.py">create</a>(account_holder_token, \*\*<a href="src/lithic/types/account_holders/entity_create_params.py">params</a>) -> <a href="./src/lithic/types/account_holders/entity_create_response.py">EntityCreateResponse</a></code>
- <code title="delete /v1/account_holders/{account_holder_token}/entities/{entity_token}">client.account_holders.entities.<a href="./src/lithic/resources/account_holders/entities.py">delete</a>(entity_token, \*, account_holder_token) -> <a href="./src/lithic/types/account_holders/account_holder_entity.py">AccountHolderEntity</a></code>

# AuthRules

Expand Down Expand Up @@ -161,7 +174,7 @@ Types:
```python
from lithic.types import (
Device,
DigitalWalletTokenMetadata,
TokenMetadata,
Tokenization,
TokenizationDeclineReason,
TokenizationRuleResult,
Expand Down Expand Up @@ -420,6 +433,34 @@ Methods:
- <code title="get /v1/financial_accounts/{financial_account_token}/loan_tapes/{loan_tape_token}">client.financial_accounts.loan_tapes.<a href="./src/lithic/resources/financial_accounts/loan_tapes.py">retrieve</a>(loan_tape_token, \*, financial_account_token) -> <a href="./src/lithic/types/financial_accounts/loan_tape.py">LoanTape</a></code>
- <code title="get /v1/financial_accounts/{financial_account_token}/loan_tapes">client.financial_accounts.loan_tapes.<a href="./src/lithic/resources/financial_accounts/loan_tapes.py">list</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/loan_tape_list_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/loan_tape.py">SyncCursorPage[LoanTape]</a></code>

## LoanTapeConfiguration

Types:

```python
from lithic.types.financial_accounts import LoanTapeConfiguration, LoanTapeRebuildConfiguration
```

Methods:

- <code title="get /v1/financial_accounts/{financial_account_token}/loan_tape_configuration">client.financial_accounts.loan_tape_configuration.<a href="./src/lithic/resources/financial_accounts/loan_tape_configuration.py">retrieve</a>(financial_account_token) -> <a href="./src/lithic/types/financial_accounts/loan_tape_configuration.py">LoanTapeConfiguration</a></code>

## InterestTierSchedule

Types:

```python
from lithic.types.financial_accounts import CategoryTier, InterestTierSchedule
```

Methods:

- <code title="post /v1/financial_accounts/{financial_account_token}/interest_tier_schedule">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">create</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/interest_tier_schedule_create_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/interest_tier_schedule.py">InterestTierSchedule</a></code>
- <code title="get /v1/financial_accounts/{financial_account_token}/interest_tier_schedule/{effective_date}">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">retrieve</a>(effective_date, \*, financial_account_token) -> <a href="./src/lithic/types/financial_accounts/interest_tier_schedule.py">InterestTierSchedule</a></code>
- <code title="put /v1/financial_accounts/{financial_account_token}/interest_tier_schedule/{effective_date}">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">update</a>(effective_date, \*, financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/interest_tier_schedule_update_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/interest_tier_schedule.py">InterestTierSchedule</a></code>
- <code title="get /v1/financial_accounts/{financial_account_token}/interest_tier_schedule">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">list</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/interest_tier_schedule_list_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/interest_tier_schedule.py">SyncSinglePage[InterestTierSchedule]</a></code>
- <code title="delete /v1/financial_accounts/{financial_account_token}/interest_tier_schedule/{effective_date}">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">delete</a>(effective_date, \*, financial_account_token) -> None</code>

# Transactions

Types:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lithic"
version = "0.115.0"
version = "0.116.0"
description = "The official Python library for the lithic API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -42,7 +42,7 @@ Repository = "https://github.com/lithic-com/lithic-python"

[project.optional-dependencies]
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
webhooks = ["standardwebhooks"]
webhooks = ["standardwebhooks >= 1.0.1, < 2"]

[tool.rye]
managed = true
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ six==1.17.0
# via python-dateutil
sniffio==1.3.1
# via lithic
standardwebhooks==1.0.0
standardwebhooks==1.0.1
# via lithic
time-machine==2.19.0
tomli==2.4.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ six==1.17.0
# via python-dateutil
sniffio==1.3.1
# via lithic
standardwebhooks==1.0.0
standardwebhooks==1.0.1
# via lithic
types-deprecated==1.3.1.20251101
# via standardwebhooks
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
from .resources.tokenizations import Tokenizations, AsyncTokenizations
from .resources.book_transfers import BookTransfers, AsyncBookTransfers
from .resources.funding_events import FundingEvents, AsyncFundingEvents
from .resources.account_holders import AccountHolders, AsyncAccountHolders
from .resources.reports.reports import Reports, AsyncReports
from .resources.transfer_limits import TransferLimits, AsyncTransferLimits
from .resources.account_activity import AccountActivity, AsyncAccountActivity
Expand All @@ -97,6 +96,7 @@
from .resources.auth_stream_enrollment import AuthStreamEnrollment, AsyncAuthStreamEnrollment
from .resources.tokenization_decisioning import TokenizationDecisioning, AsyncTokenizationDecisioning
from .resources.transactions.transactions import Transactions, AsyncTransactions
from .resources.account_holders.account_holders import AccountHolders, AsyncAccountHolders
from .resources.credit_products.credit_products import CreditProducts, AsyncCreditProducts
from .resources.financial_accounts.financial_accounts import FinancialAccounts, AsyncFinancialAccounts
from .resources.external_bank_accounts.external_bank_accounts import ExternalBankAccounts, AsyncExternalBankAccounts
Expand Down
3 changes: 3 additions & 0 deletions src/lithic/_legacy_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
),
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand All @@ -224,6 +225,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
cast_to=extract_stream_chunk_type(self._stream_cls),
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand All @@ -237,6 +239,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
cast_to=cast_to,
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand Down
3 changes: 3 additions & 0 deletions src/lithic/_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
),
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand All @@ -162,6 +163,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
cast_to=extract_stream_chunk_type(self._stream_cls),
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand All @@ -175,6 +177,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
cast_to=cast_to,
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand Down
11 changes: 8 additions & 3 deletions src/lithic/_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import inspect
from types import TracebackType
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, AsyncIterator, cast
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, Optional, AsyncIterator, cast
from typing_extensions import Self, Protocol, TypeGuard, override, get_origin, runtime_checkable

import httpx
Expand All @@ -13,6 +13,7 @@

if TYPE_CHECKING:
from ._client import Lithic, AsyncLithic
from ._models import FinalRequestOptions


_T = TypeVar("_T")
Expand All @@ -22,7 +23,7 @@ class Stream(Generic[_T]):
"""Provides the core interface to iterate over a synchronous stream response."""

response: httpx.Response

_options: Optional[FinalRequestOptions] = None
_decoder: SSEBytesDecoder

def __init__(
Expand All @@ -31,10 +32,12 @@ def __init__(
cast_to: type[_T],
response: httpx.Response,
client: Lithic,
options: Optional[FinalRequestOptions] = None,
) -> None:
self.response = response
self._cast_to = cast_to
self._client = client
self._options = options
self._decoder = client._make_sse_decoder()
self._iterator = self.__stream__()

Expand Down Expand Up @@ -85,7 +88,7 @@ class AsyncStream(Generic[_T]):
"""Provides the core interface to iterate over an asynchronous stream response."""

response: httpx.Response

_options: Optional[FinalRequestOptions] = None
_decoder: SSEDecoder | SSEBytesDecoder

def __init__(
Expand All @@ -94,10 +97,12 @@ def __init__(
cast_to: type[_T],
response: httpx.Response,
client: AsyncLithic,
options: Optional[FinalRequestOptions] = None,
) -> None:
self.response = response
self._cast_to = cast_to
self._client = client
self._options = options
self._decoder = client._make_sse_decoder()
self._iterator = self.__stream__()

Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_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__ = "lithic"
__version__ = "0.115.0" # x-release-please-version
__version__ = "0.116.0" # x-release-please-version
Loading