Skip to content

Commit 90174df

Browse files
release: 1.16.0 (#64)
* feat(api): api update * chore: bump `httpx-aiohttp` version to 0.1.9 * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * release: 1.16.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent a39d0dc commit 90174df

29 files changed

+719
-111
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.15.0"
2+
".": "1.16.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 89
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-226200e7cda539eab84341167939339109659a66a48312fd41cb8b15b89ef8e2.yml
3-
openapi_spec_hash: 2097f5fdc617bdbe6a2780daa693a2f8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-40ca41599f579fdd44c2e3e32a7d1bba51ba567050c0dcd5bc099ce8d48bba97.yml
3+
openapi_spec_hash: 72e32d434bbd7ccf7296a2eed7c642ef
44
config_hash: 658c551418df454aa40794f8ac679c18

CHANGELOG.md

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

3+
## 1.16.0 (2025-10-24)
4+
5+
Full Changelog: [v1.15.0...v1.16.0](https://github.com/knocklabs/knock-python/compare/v1.15.0...v1.16.0)
6+
7+
### Features
8+
9+
* **api:** api update ([882f43e](https://github.com/knocklabs/knock-python/commit/882f43e04f2ece4192d4129cb8b645eb00c368eb))
10+
* **api:** api update ([9e7ddd1](https://github.com/knocklabs/knock-python/commit/9e7ddd1e98cc6bbd0578f43cd03d35ba27cd43a5))
11+
* **api:** api update ([aca8efd](https://github.com/knocklabs/knock-python/commit/aca8efd87ecc7498810f6f362eb752b75f8b8b83))
12+
* **api:** api update ([d227b37](https://github.com/knocklabs/knock-python/commit/d227b3706bfaf624e7976fd246f53b6d1d2cdc79))
13+
* **api:** api update ([34169d3](https://github.com/knocklabs/knock-python/commit/34169d37993571958b4764b11d77dd87be129964))
14+
15+
16+
### Chores
17+
18+
* bump `httpx-aiohttp` version to 0.1.9 ([1f77d9e](https://github.com/knocklabs/knock-python/commit/1f77d9eaacb09cf4b1ff3ec7792a06484351af45))
19+
320
## 1.15.0 (2025-10-13)
421

522
Full Changelog: [v1.14.0...v1.15.0](https://github.com/knocklabs/knock-python/compare/v1.14.0...v1.15.0)

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ from knockapi.types.recipients import (
4545
DiscordChannelData,
4646
InlineChannelDataRequest,
4747
MsTeamsChannelData,
48-
OneSignalChannelData,
49-
PushChannelData,
5048
SlackChannelData,
5149
)
5250
```

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "knockapi"
3-
version = "1.15.0"
3+
version = "1.16.0"
44
description = "The official Python library for the knock API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -39,7 +39,7 @@ Homepage = "https://github.com/knocklabs/knock-python"
3939
Repository = "https://github.com/knocklabs/knock-python"
4040

4141
[project.optional-dependencies]
42-
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
42+
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
4343

4444
[tool.rye]
4545
managed = true

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ httpx==0.28.1
5656
# via httpx-aiohttp
5757
# via knockapi
5858
# via respx
59-
httpx-aiohttp==0.1.8
59+
httpx-aiohttp==0.1.9
6060
# via knockapi
6161
idna==3.4
6262
# via anyio

requirements.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ httpcore==1.0.9
4343
httpx==0.28.1
4444
# via httpx-aiohttp
4545
# via knockapi
46-
httpx-aiohttp==0.1.8
46+
httpx-aiohttp==0.1.9
4747
# via knockapi
4848
idna==3.4
4949
# via anyio

src/knockapi/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "knockapi"
4-
__version__ = "1.15.0" # x-release-please-version
4+
__version__ = "1.16.0" # x-release-please-version

src/knockapi/resources/objects/objects.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,8 @@ def set_preferences(
837837
_persistence_strategy: Literal["merge", "replace"] | Omit = omit,
838838
categories: Optional[Dict[str, object_set_preferences_params.Categories]] | Omit = omit,
839839
channel_types: Optional[PreferenceSetChannelTypesParam] | Omit = omit,
840+
channels: Optional[Dict[str, object_set_preferences_params.Channels]] | Omit = omit,
841+
commercial_subscribed: Optional[bool] | Omit = omit,
840842
workflows: Optional[Dict[str, object_set_preferences_params.Workflows]] | Omit = omit,
841843
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
842844
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -866,6 +868,11 @@ def set_preferences(
866868
867869
channel_types: Channel type preferences.
868870
871+
channels: Channel preferences.
872+
873+
commercial_subscribed: Whether the recipient is subscribed to commercial communications. When false,
874+
the recipient will not receive commercial workflow notifications.
875+
869876
workflows: An object where the key is the workflow key and the values are the preference
870877
settings for that workflow.
871878
@@ -892,6 +899,8 @@ def set_preferences(
892899
"_persistence_strategy": _persistence_strategy,
893900
"categories": categories,
894901
"channel_types": channel_types,
902+
"channels": channels,
903+
"commercial_subscribed": commercial_subscribed,
895904
"workflows": workflows,
896905
},
897906
object_set_preferences_params.ObjectSetPreferencesParams,
@@ -1735,6 +1744,8 @@ async def set_preferences(
17351744
_persistence_strategy: Literal["merge", "replace"] | Omit = omit,
17361745
categories: Optional[Dict[str, object_set_preferences_params.Categories]] | Omit = omit,
17371746
channel_types: Optional[PreferenceSetChannelTypesParam] | Omit = omit,
1747+
channels: Optional[Dict[str, object_set_preferences_params.Channels]] | Omit = omit,
1748+
commercial_subscribed: Optional[bool] | Omit = omit,
17381749
workflows: Optional[Dict[str, object_set_preferences_params.Workflows]] | Omit = omit,
17391750
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
17401751
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1764,6 +1775,11 @@ async def set_preferences(
17641775
17651776
channel_types: Channel type preferences.
17661777
1778+
channels: Channel preferences.
1779+
1780+
commercial_subscribed: Whether the recipient is subscribed to commercial communications. When false,
1781+
the recipient will not receive commercial workflow notifications.
1782+
17671783
workflows: An object where the key is the workflow key and the values are the preference
17681784
settings for that workflow.
17691785
@@ -1790,6 +1806,8 @@ async def set_preferences(
17901806
"_persistence_strategy": _persistence_strategy,
17911807
"categories": categories,
17921808
"channel_types": channel_types,
1809+
"channels": channels,
1810+
"commercial_subscribed": commercial_subscribed,
17931811
"workflows": workflows,
17941812
},
17951813
object_set_preferences_params.ObjectSetPreferencesParams,

src/knockapi/resources/users/users.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ def set_preferences(
771771
_persistence_strategy: Literal["merge", "replace"] | Omit = omit,
772772
categories: Optional[Dict[str, user_set_preferences_params.Categories]] | Omit = omit,
773773
channel_types: Optional[PreferenceSetChannelTypesParam] | Omit = omit,
774+
channels: Optional[Dict[str, user_set_preferences_params.Channels]] | Omit = omit,
775+
commercial_subscribed: Optional[bool] | Omit = omit,
774776
workflows: Optional[Dict[str, user_set_preferences_params.Workflows]] | Omit = omit,
775777
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
776778
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -796,6 +798,11 @@ def set_preferences(
796798
797799
channel_types: Channel type preferences.
798800
801+
channels: Channel preferences.
802+
803+
commercial_subscribed: Whether the recipient is subscribed to commercial communications. When false,
804+
the recipient will not receive commercial workflow notifications.
805+
799806
workflows: An object where the key is the workflow key and the values are the preference
800807
settings for that workflow.
801808
@@ -820,6 +827,8 @@ def set_preferences(
820827
"_persistence_strategy": _persistence_strategy,
821828
"categories": categories,
822829
"channel_types": channel_types,
830+
"channels": channels,
831+
"commercial_subscribed": commercial_subscribed,
823832
"workflows": workflows,
824833
},
825834
user_set_preferences_params.UserSetPreferencesParams,
@@ -1582,6 +1591,8 @@ async def set_preferences(
15821591
_persistence_strategy: Literal["merge", "replace"] | Omit = omit,
15831592
categories: Optional[Dict[str, user_set_preferences_params.Categories]] | Omit = omit,
15841593
channel_types: Optional[PreferenceSetChannelTypesParam] | Omit = omit,
1594+
channels: Optional[Dict[str, user_set_preferences_params.Channels]] | Omit = omit,
1595+
commercial_subscribed: Optional[bool] | Omit = omit,
15851596
workflows: Optional[Dict[str, user_set_preferences_params.Workflows]] | Omit = omit,
15861597
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
15871598
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1607,6 +1618,11 @@ async def set_preferences(
16071618
16081619
channel_types: Channel type preferences.
16091620
1621+
channels: Channel preferences.
1622+
1623+
commercial_subscribed: Whether the recipient is subscribed to commercial communications. When false,
1624+
the recipient will not receive commercial workflow notifications.
1625+
16101626
workflows: An object where the key is the workflow key and the values are the preference
16111627
settings for that workflow.
16121628
@@ -1631,6 +1647,8 @@ async def set_preferences(
16311647
"_persistence_strategy": _persistence_strategy,
16321648
"categories": categories,
16331649
"channel_types": channel_types,
1650+
"channels": channels,
1651+
"commercial_subscribed": commercial_subscribed,
16341652
"workflows": workflows,
16351653
},
16361654
user_set_preferences_params.UserSetPreferencesParams,

0 commit comments

Comments
 (0)