Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
d4664ae
codegen metadata
stainless-app[bot] Feb 18, 2026
690b7d8
codegen metadata
stainless-app[bot] Feb 18, 2026
ea5f781
codegen metadata
stainless-app[bot] Feb 18, 2026
ff0ee1f
codegen metadata
stainless-app[bot] Feb 18, 2026
2d02572
codegen metadata
stainless-app[bot] Feb 18, 2026
9b7868c
codegen metadata
stainless-app[bot] Feb 18, 2026
4e2a8dd
codegen metadata
stainless-app[bot] Feb 18, 2026
89533a2
codegen metadata
stainless-app[bot] Feb 18, 2026
90453ec
codegen metadata
stainless-app[bot] Feb 19, 2026
3423ae3
codegen metadata
stainless-app[bot] Feb 19, 2026
f02d194
codegen metadata
stainless-app[bot] Feb 19, 2026
612b33d
codegen metadata
stainless-app[bot] Feb 19, 2026
8980ad2
codegen metadata
stainless-app[bot] Feb 19, 2026
08cac37
codegen metadata
stainless-app[bot] Feb 19, 2026
301cb8e
codegen metadata
stainless-app[bot] Feb 19, 2026
a32e90d
codegen metadata
stainless-app[bot] Feb 19, 2026
233f9c2
codegen metadata
stainless-app[bot] Feb 19, 2026
72668a5
codegen metadata
stainless-app[bot] Feb 19, 2026
eed8333
codegen metadata
stainless-app[bot] Feb 19, 2026
facae0f
codegen metadata
stainless-app[bot] Feb 19, 2026
39e036f
codegen metadata
stainless-app[bot] Feb 19, 2026
a55c8c7
codegen metadata
stainless-app[bot] Feb 19, 2026
5483d78
codegen metadata
stainless-app[bot] Feb 19, 2026
26d2493
codegen metadata
stainless-app[bot] Feb 19, 2026
131ff36
codegen metadata
stainless-app[bot] Feb 19, 2026
fdf86cd
codegen metadata
stainless-app[bot] Feb 19, 2026
84c62c5
codegen metadata
stainless-app[bot] Feb 19, 2026
10a3e96
codegen metadata
stainless-app[bot] Feb 20, 2026
9df776e
codegen metadata
stainless-app[bot] Feb 20, 2026
b85da4d
codegen metadata
stainless-app[bot] Feb 20, 2026
cdf676e
codegen metadata
stainless-app[bot] Feb 20, 2026
190dde8
codegen metadata
stainless-app[bot] Feb 20, 2026
d8b991d
codegen metadata
stainless-app[bot] Feb 20, 2026
fcd6223
codegen metadata
stainless-app[bot] Feb 20, 2026
7d2edd2
codegen metadata
stainless-app[bot] Feb 20, 2026
1f6f33e
codegen metadata
stainless-app[bot] Feb 20, 2026
9cde896
codegen metadata
stainless-app[bot] Feb 20, 2026
ed4cb17
codegen metadata
stainless-app[bot] Feb 20, 2026
85ca4e7
codegen metadata
stainless-app[bot] Feb 20, 2026
15580b9
codegen metadata
stainless-app[bot] Feb 20, 2026
7010159
chore(internal): remove mock server code
stainless-app[bot] Feb 20, 2026
bb7e58f
chore: update mock server docs
stainless-app[bot] Feb 20, 2026
2b64974
codegen metadata
stainless-app[bot] Feb 20, 2026
793969d
codegen metadata
stainless-app[bot] Feb 20, 2026
f35ba7e
codegen metadata
stainless-app[bot] Feb 20, 2026
fc1667a
codegen metadata
stainless-app[bot] Feb 20, 2026
d167d32
codegen metadata
stainless-app[bot] Feb 20, 2026
794fce5
codegen metadata
stainless-app[bot] Feb 20, 2026
1605b2b
codegen metadata
stainless-app[bot] Feb 20, 2026
17faef9
codegen metadata
stainless-app[bot] Feb 21, 2026
9d9e7b2
codegen metadata
stainless-app[bot] Feb 21, 2026
33d119e
codegen metadata
stainless-app[bot] Feb 21, 2026
48d1511
codegen metadata
stainless-app[bot] Feb 21, 2026
524ed3b
codegen metadata
stainless-app[bot] Feb 21, 2026
1324816
codegen metadata
stainless-app[bot] Feb 21, 2026
78c61c8
codegen metadata
stainless-app[bot] Feb 21, 2026
57e400e
codegen metadata
stainless-app[bot] Feb 21, 2026
5995891
codegen metadata
stainless-app[bot] Feb 21, 2026
004a68b
codegen metadata
stainless-app[bot] Feb 21, 2026
dcad8c3
codegen metadata
stainless-app[bot] Feb 21, 2026
7afe283
codegen metadata
stainless-app[bot] Feb 21, 2026
51e2087
codegen metadata
stainless-app[bot] Feb 21, 2026
547a19b
codegen metadata
stainless-app[bot] Feb 21, 2026
e665527
codegen metadata
stainless-app[bot] Feb 21, 2026
866bd43
codegen metadata
stainless-app[bot] Feb 21, 2026
023a420
codegen metadata
stainless-app[bot] Feb 21, 2026
5935736
codegen metadata
stainless-app[bot] Feb 21, 2026
84547bd
codegen metadata
stainless-app[bot] Feb 21, 2026
01a4763
codegen metadata
stainless-app[bot] Feb 21, 2026
1f2027a
codegen metadata
stainless-app[bot] Feb 22, 2026
f4839e1
codegen metadata
stainless-app[bot] Feb 22, 2026
b53882e
codegen metadata
stainless-app[bot] Feb 22, 2026
ba20f0c
codegen metadata
stainless-app[bot] Feb 22, 2026
ccaacc3
codegen metadata
stainless-app[bot] Feb 22, 2026
be90285
codegen metadata
stainless-app[bot] Feb 22, 2026
f287f20
codegen metadata
stainless-app[bot] Feb 22, 2026
d2fa0ed
codegen metadata
stainless-app[bot] Feb 22, 2026
25ddf35
codegen metadata
stainless-app[bot] Feb 22, 2026
fbbce23
codegen metadata
stainless-app[bot] Feb 22, 2026
b1d8414
codegen metadata
stainless-app[bot] Feb 22, 2026
86df6b4
codegen metadata
stainless-app[bot] Feb 22, 2026
8f4441b
codegen metadata
stainless-app[bot] Feb 22, 2026
cf752da
codegen metadata
stainless-app[bot] Feb 22, 2026
43aff2c
codegen metadata
stainless-app[bot] Feb 22, 2026
1804619
codegen metadata
stainless-app[bot] Feb 22, 2026
e7352bd
codegen metadata
stainless-app[bot] Feb 22, 2026
9a32645
codegen metadata
stainless-app[bot] Feb 23, 2026
3bd56d9
chore: configure new SDK language
stainless-app[bot] Feb 23, 2026
415671c
codegen metadata
stainless-app[bot] Feb 23, 2026
3c32965
codegen metadata
stainless-app[bot] Feb 23, 2026
991436b
codegen metadata
stainless-app[bot] Feb 23, 2026
d9fff4a
codegen metadata
stainless-app[bot] Feb 23, 2026
69ff513
codegen metadata
stainless-app[bot] Feb 23, 2026
c2b3909
codegen metadata
stainless-app[bot] Feb 23, 2026
b47af6f
codegen metadata
stainless-app[bot] Feb 23, 2026
bacaf7f
codegen metadata
stainless-app[bot] Feb 23, 2026
58c2ff9
codegen metadata
stainless-app[bot] Feb 23, 2026
28d918c
codegen metadata
stainless-app[bot] Feb 23, 2026
39f3382
codegen metadata
stainless-app[bot] Feb 23, 2026
1ab2026
codegen metadata
stainless-app[bot] Feb 23, 2026
f5d4eb7
codegen metadata
stainless-app[bot] Feb 23, 2026
8905fc3
codegen metadata
stainless-app[bot] Feb 24, 2026
09c0c53
codegen metadata
stainless-app[bot] Feb 24, 2026
50350e2
codegen metadata
stainless-app[bot] Feb 24, 2026
ba162ee
codegen metadata
stainless-app[bot] Feb 24, 2026
9cca2b6
codegen metadata
stainless-app[bot] Feb 24, 2026
169c3b8
codegen metadata
stainless-app[bot] Feb 24, 2026
308445d
codegen metadata
stainless-app[bot] Feb 24, 2026
580c2da
codegen metadata
stainless-app[bot] Feb 24, 2026
bbba059
codegen metadata
stainless-app[bot] Feb 24, 2026
ac5f255
codegen metadata
stainless-app[bot] Feb 24, 2026
3caa447
codegen metadata
stainless-app[bot] Feb 24, 2026
1e390ff
codegen metadata
stainless-app[bot] Feb 24, 2026
5313af3
codegen metadata
stainless-app[bot] Feb 24, 2026
e66dbdf
codegen metadata
stainless-app[bot] Feb 24, 2026
7a054de
chore(internal): add request options to SSE classes
stainless-app[bot] Feb 24, 2026
fa8618a
chore(internal): make `test_proxy_environment_variables` more resilient
stainless-app[bot] Feb 24, 2026
ef33fce
codegen metadata
stainless-app[bot] Feb 24, 2026
987c5e3
codegen metadata
stainless-app[bot] Feb 24, 2026
8911007
codegen metadata
stainless-app[bot] Feb 24, 2026
07b099c
codegen metadata
stainless-app[bot] Feb 24, 2026
541e7f1
codegen metadata
stainless-app[bot] Feb 24, 2026
4e809cc
codegen metadata
stainless-app[bot] Feb 24, 2026
8a596c6
codegen metadata
stainless-app[bot] Feb 24, 2026
c3964ca
codegen metadata
stainless-app[bot] Feb 25, 2026
8326889
codegen metadata
stainless-app[bot] Feb 25, 2026
79c65d7
codegen metadata
stainless-app[bot] Feb 25, 2026
e4e6de8
codegen metadata
stainless-app[bot] Feb 25, 2026
b6de853
codegen metadata
stainless-app[bot] Feb 25, 2026
ad91b37
codegen metadata
stainless-app[bot] Feb 25, 2026
ee56aee
codegen metadata
stainless-app[bot] Feb 25, 2026
3e9147b
codegen metadata
stainless-app[bot] Feb 25, 2026
9b7c24c
codegen metadata
stainless-app[bot] Feb 25, 2026
e7e83c5
codegen metadata
stainless-app[bot] Feb 25, 2026
1b820ba
codegen metadata
stainless-app[bot] Feb 25, 2026
4ebfcf8
codegen metadata
stainless-app[bot] Feb 25, 2026
263c1bc
codegen metadata
stainless-app[bot] Feb 25, 2026
99f2ac4
chore(internal): make `test_proxy_environment_variables` more resilie…
stainless-app[bot] Feb 25, 2026
8158a3f
codegen metadata
stainless-app[bot] Feb 25, 2026
f4d4b05
codegen metadata
stainless-app[bot] Feb 25, 2026
59f2ab6
codegen metadata
stainless-app[bot] Feb 25, 2026
dab7369
codegen metadata
stainless-app[bot] Feb 25, 2026
a6008b6
codegen metadata
stainless-app[bot] Feb 25, 2026
eeb0713
codegen metadata
stainless-app[bot] Feb 25, 2026
417851e
codegen metadata
stainless-app[bot] Feb 25, 2026
81eb1e2
codegen metadata
stainless-app[bot] Feb 26, 2026
4480478
codegen metadata
stainless-app[bot] Feb 26, 2026
b124e6f
codegen metadata
stainless-app[bot] Feb 26, 2026
55e6991
codegen metadata
stainless-app[bot] Feb 26, 2026
a34408c
codegen metadata
stainless-app[bot] Feb 26, 2026
8d48831
codegen metadata
stainless-app[bot] Feb 26, 2026
be6c646
codegen metadata
stainless-app[bot] Feb 26, 2026
d4794ae
codegen metadata
stainless-app[bot] Feb 26, 2026
bd69cf5
codegen metadata
stainless-app[bot] Feb 26, 2026
dae8a0b
codegen metadata
stainless-app[bot] Feb 26, 2026
7cbc690
codegen metadata
stainless-app[bot] Feb 26, 2026
315bcbc
codegen metadata
stainless-app[bot] Feb 26, 2026
3d1140c
codegen metadata
stainless-app[bot] Feb 26, 2026
fc75a25
codegen metadata
stainless-app[bot] Feb 26, 2026
6d48a48
codegen metadata
stainless-app[bot] Feb 26, 2026
d6f9dff
codegen metadata
stainless-app[bot] Feb 26, 2026
fddf44e
codegen metadata
stainless-app[bot] Feb 26, 2026
917e7c8
codegen metadata
stainless-app[bot] Feb 26, 2026
599847c
codegen metadata
stainless-app[bot] Feb 26, 2026
c426f29
codegen metadata
stainless-app[bot] Feb 26, 2026
873065c
codegen metadata
stainless-app[bot] Feb 26, 2026
8b7d5f7
codegen metadata
stainless-app[bot] Feb 26, 2026
f1763f9
codegen metadata
stainless-app[bot] Feb 27, 2026
ee0141e
release: 0.8.1
stainless-app[bot] Feb 27, 2026
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.8.0"
".": "0.8.1"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 44
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-433bfd8c688a6b6d2d4f964bb59121d692798f4e2bb6cb47f6110c4f0e1f638d.yml
openapi_spec_hash: 5378295d401c8c1152c1946cc7dbd69f
config_hash: 43a0daa5b05d44a1620e3da0ea6f4fdc
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-8f8e43f2568f02505d53d422fb814604dd9534de6f990f9ae460e5513613da68.yml
openapi_spec_hash: b7a6855c6f0a9892f450f0bc67031d4e
config_hash: d475a61f5b59375bf562f85f19b80409
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.8.1 (2026-02-27)

Full Changelog: [v0.8.0...v0.8.1](https://github.com/sentdm/sent-dm-python/compare/v0.8.0...v0.8.1)

### Chores

* configure new SDK language ([3bd56d9](https://github.com/sentdm/sent-dm-python/commit/3bd56d974bda24dc539d06bec52cb7a3192cbc49))
* **internal:** add request options to SSE classes ([7a054de](https://github.com/sentdm/sent-dm-python/commit/7a054de62f41a6defd2412ac315a380d7f9c1626))
* **internal:** make `test_proxy_environment_variables` more resilient ([fa8618a](https://github.com/sentdm/sent-dm-python/commit/fa8618a4c15475bdd1e303b23eb9943e84a82500))
* **internal:** make `test_proxy_environment_variables` more resilient to env ([99f2ac4](https://github.com/sentdm/sent-dm-python/commit/99f2ac4367e0e62c9ad06e95c535080e928fd5a7))
* **internal:** remove mock server code ([7010159](https://github.com/sentdm/sent-dm-python/commit/70101591e8a05615023b762cdf7a6d9cceb97c05))
* update mock server docs ([bb7e58f](https://github.com/sentdm/sent-dm-python/commit/bb7e58f1dc41d23f774dcc62b026f7bea07219c4))

## 0.8.0 (2026-02-18)

Full Changelog: [v0.7.0...v0.8.0](https://github.com/sentdm/sent-dm-python/compare/v0.7.0...v0.8.0)
Expand Down
7 changes: 0 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl

## Running tests

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

```sh
$ ./scripts/test
```
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ and offers both synchronous and asynchronous clients powered by [httpx](https://

It is generated with [Stainless](https://www.stainless.com/).

## MCP Server

Use the Sent Dm MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.

[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40sentdm%2Fsentdm-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzZW50ZG0vc2VudGRtLW1jcCJdLCJlbnYiOnsiU0VOVF9ETV9BUElfS0VZIjoiTXkgQVBJIEtleSJ9fQ)
[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40sentdm%2Fsentdm-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40sentdm%2Fsentdm-mcp%22%5D%2C%22env%22%3A%7B%22SENT_DM_API_KEY%22%3A%22My%20API%20Key%22%7D%7D)

> Note: You may need to set environment variables in your MCP client.

## Documentation

The REST API documentation can be found on [docs.sent.dm](https://docs.sent.dm). The full API of this library can be found in [api.md](api.md).
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 = "sentdm"
version = "0.8.0"
version = "0.8.1"
description = "The official Python library for the sent-dm API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
41 changes: 0 additions & 41 deletions scripts/mock

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,7 @@ set -e

cd "$(dirname "$0")/.."

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
}

kill_server_on_port() {
pids=$(lsof -t -i tcp:"$1" || echo "")
if [ "$pids" != "" ]; then
kill "$pids"
echo "Stopped $pids."
fi
}

function is_overriding_api_base_url() {
[ -n "$TEST_API_BASE_URL" ]
}

if ! is_overriding_api_base_url && ! prism_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT

# Start the dev server
./scripts/mock --daemon
fi

if is_overriding_api_base_url ; then
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
echo
elif ! prism_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
echo -e "running against your OpenAPI spec."
echo
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
else
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
echo
fi

export DEFER_PYDANTIC_BUILD=false

Expand Down
3 changes: 3 additions & 0 deletions src/sent_dm/_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/sent_dm/_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 SentDm, AsyncSentDm
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: SentDm,
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: AsyncSentDm,
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/sent_dm/_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__ = "sent_dm"
__version__ = "0.8.0" # x-release-please-version
__version__ = "0.8.1" # x-release-please-version
Loading