Skip to content

Commit d99cfcc

Browse files
author
bird-release[bot]
committed
Release v0.8.4 (sdk-python/v0.8.4)
1 parent 7f834ab commit d99cfcc

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.8.4
4+
5+
- **Breaking:** the contact list free-text filter is now `q` (was `search`), matching the API's renamed query parameter. Update `client.contacts.list(search=...)` to `client.contacts.list(q=...)`.
6+
37
## 0.8.3
48

59
- Received messages and the `email.received` event now carry `authentication` (`pass`/`fail`/`unknown`), a single summary of sender authentication; treat `unknown` as not verified. The `spf_pass`/`dkim_pass`/`dmarc_pass` fields remain. Additive; no breaking change.

examples/examples.gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def _ex_19() -> None:
115115

116116

117117
async def _ex_20() -> None:
118-
for contact in client.contacts.list(search="acme.com"):
118+
for contact in client.contacts.list(q="acme.com"):
119119
print(contact.id, contact.email)
120120

121121

src/bird/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class ContactListParams(TypedDict, total=False):
205205

206206
email: str
207207
external_id: str
208-
search: str
208+
q: str
209209
limit: int
210210
starting_after: str
211211
ending_before: str

src/bird/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.8.3"
1+
__version__ = "0.8.4"

src/bird/resources/contacts.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def list(
192192
*,
193193
email: str | None = None,
194194
external_id: str | None = None,
195-
search: str | None = None,
195+
q: str | None = None,
196196
limit: int | None = None,
197197
starting_after: str | None = None,
198198
ending_before: str | None = None,
@@ -202,12 +202,12 @@ def list(
202202
up by exact ``email`` or ``external_id``, or search by email substring.
203203
204204
```python
205-
for contact in client.contacts.list(search="acme.com"):
205+
for contact in client.contacts.list(q="acme.com"):
206206
print(contact.id, contact.email)
207207
```
208208
"""
209209
query = _list_query({
210-
"email": email, "external_id": external_id, "search": search,
210+
"email": email, "external_id": external_id, "q": q,
211211
"limit": limit, "starting_after": starting_after, "ending_before": ending_before,
212212
})
213213
return SyncPage(self._client, _PATH, query, Contact, options)
@@ -286,15 +286,15 @@ def list(
286286
*,
287287
email: str | None = None,
288288
external_id: str | None = None,
289-
search: str | None = None,
289+
q: str | None = None,
290290
limit: int | None = None,
291291
starting_after: str | None = None,
292292
ending_before: str | None = None,
293293
options: RequestOptions | None = None,
294294
) -> AsyncPage[Contact]:
295295
"""List contacts, newest first; ``async for`` over the page to auto-paginate."""
296296
query = _list_query({
297-
"email": email, "external_id": external_id, "search": search,
297+
"email": email, "external_id": external_id, "q": q,
298298
"limit": limit, "starting_after": starting_after, "ending_before": ending_before,
299299
})
300300
return AsyncPage(self._client, _PATH, query, Contact, options)

0 commit comments

Comments
 (0)