Skip to content

Commit a4679d8

Browse files
release: 1.7.0 (#49)
* codegen metadata * feat(api): api update * feat(api): api update * release: 1.7.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent d73d1d0 commit a4679d8

14 files changed

+73
-32
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.6.0"
2+
".": "1.7.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 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-e5a7933b414d403d082b34db140fc5b8dca9a5ea3ae322f640b0f9f055c47288.yml
3-
openapi_spec_hash: 3740dc4d5c1f5a0c9ee6de9e40931fd4
4-
config_hash: 2ae8965d371a03bd30c6a56819c04cf2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-ba629bb393f43737dec9702d5610ac4b5696e58f58177d1d98f4f832c9553b76.yml
3+
openapi_spec_hash: abeac01a8a235ea114e466d4f06e70ad
4+
config_hash: b4c547c1d4c8cd0834bc793ddf5388ee

CHANGELOG.md

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

3+
## 1.7.0 (2025-06-12)
4+
5+
Full Changelog: [v1.6.0...v1.7.0](https://github.com/knocklabs/knock-python/compare/v1.6.0...v1.7.0)
6+
7+
### Features
8+
9+
* **api:** api update ([af68902](https://github.com/knocklabs/knock-python/commit/af689026b590d09e01399be27cfa17176cad9298))
10+
* **api:** api update ([07d105a](https://github.com/knocklabs/knock-python/commit/07d105ab760200c6500670c92c29ca03c187f5d7))
11+
312
## 1.6.0 (2025-06-06)
413

514
Full Changelog: [v1.5.0...v1.6.0](https://github.com/knocklabs/knock-python/compare/v1.5.0...v1.6.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "knockapi"
3-
version = "1.6.0"
3+
version = "1.7.0"
44
description = "The official Python library for the knock API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

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.6.0" # x-release-please-version
4+
__version__ = "1.7.0" # x-release-please-version

src/knockapi/resources/objects/objects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ def set(
709709
[message localization](/concepts/translations).
710710
711711
preferences: Inline set preferences for a recipient, where the key is the preference set id.
712+
Preferences that are set inline will be merged into any existing preferences
713+
rather than replacing them.
712714
713715
timezone: The timezone of the object. Must be a
714716
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
@@ -1547,6 +1549,8 @@ async def set(
15471549
[message localization](/concepts/translations).
15481550
15491551
preferences: Inline set preferences for a recipient, where the key is the preference set id.
1552+
Preferences that are set inline will be merged into any existing preferences
1553+
rather than replacing them.
15501554
15511555
timezone: The timezone of the object. Must be a
15521556
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).

src/knockapi/resources/users/bulk.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ def delete(
5656
extra_body: Body | None = None,
5757
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5858
) -> BulkOperation:
59-
"""Deletes multiple users in a single operation.
60-
61-
Accepts up to 100 user IDs to
62-
delete and returns a bulk operation that can be queried for progress.
59+
"""
60+
Permanently deletes up to 1,000 users at a time.
6361
6462
Args:
6563
user_ids: A list of user IDs.
@@ -95,8 +93,8 @@ def identify(
9593
"""Identifies multiple users in a single operation.
9694
9795
Allows creating or updating up
98-
to 100 users in a single batch with various properties, preferences, and channel
99-
data.
96+
to 1,000 users in a single batch with various properties, preferences, and
97+
channel data.
10098
10199
Args:
102100
users: A list of users.
@@ -130,11 +128,13 @@ def set_preferences(
130128
extra_body: Body | None = None,
131129
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
132130
) -> BulkOperation:
133-
"""Sets preferences for multiple users in a single operation.
131+
"""Bulk sets the preferences for up to 1,000 users at a time.
134132
135-
Supports either
136-
setting the same preferences for multiple users or specific preferences for each
137-
user.
133+
The preference
134+
set `:id` can be either `default` or a `tenant.id`. Learn more
135+
about [per-tenant preferences](/preferences/tenant-preferences). Note that this
136+
is a destructive operation and will replace any existing users' preferences with
137+
the preferences sent.
138138
139139
Args:
140140
preferences: A request to set a preference set for a recipient.
@@ -196,10 +196,8 @@ async def delete(
196196
extra_body: Body | None = None,
197197
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
198198
) -> BulkOperation:
199-
"""Deletes multiple users in a single operation.
200-
201-
Accepts up to 100 user IDs to
202-
delete and returns a bulk operation that can be queried for progress.
199+
"""
200+
Permanently deletes up to 1,000 users at a time.
203201
204202
Args:
205203
user_ids: A list of user IDs.
@@ -235,8 +233,8 @@ async def identify(
235233
"""Identifies multiple users in a single operation.
236234
237235
Allows creating or updating up
238-
to 100 users in a single batch with various properties, preferences, and channel
239-
data.
236+
to 1,000 users in a single batch with various properties, preferences, and
237+
channel data.
240238
241239
Args:
242240
users: A list of users.
@@ -270,11 +268,13 @@ async def set_preferences(
270268
extra_body: Body | None = None,
271269
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
272270
) -> BulkOperation:
273-
"""Sets preferences for multiple users in a single operation.
271+
"""Bulk sets the preferences for up to 1,000 users at a time.
274272
275-
Supports either
276-
setting the same preferences for multiple users or specific preferences for each
277-
user.
273+
The preference
274+
set `:id` can be either `default` or a `tenant.id`. Learn more
275+
about [per-tenant preferences](/preferences/tenant-preferences). Note that this
276+
is a destructive operation and will replace any existing users' preferences with
277+
the preferences sent.
278278
279279
Args:
280280
preferences: A request to set a preference set for a recipient.

src/knockapi/resources/users/users.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ def update(
145145
user (required for SMS channels).
146146
147147
preferences: Inline set preferences for a recipient, where the key is the preference set id.
148+
Preferences that are set inline will be merged into any existing preferences
149+
rather than replacing them.
148150
149151
timezone: The timezone of the user. Must be a
150152
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
@@ -901,6 +903,8 @@ async def update(
901903
user (required for SMS channels).
902904
903905
preferences: Inline set preferences for a recipient, where the key is the preference set id.
906+
Preferences that are set inline will be merged into any existing preferences
907+
rather than replacing them.
904908
905909
timezone: The timezone of the user. Must be a
906910
valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).

src/knockapi/types/inline_identify_user_request_param.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ class InlineIdentifyUserRequestParamTyped(TypedDict, total=False):
4545
"""
4646

4747
preferences: Optional[InlinePreferenceSetRequestParam]
48-
"""Inline set preferences for a recipient, where the key is the preference set id."""
48+
"""Inline set preferences for a recipient, where the key is the preference set id.
49+
50+
Preferences that are set inline will be merged into any existing preferences
51+
rather than replacing them.
52+
"""
4953

5054
timezone: Optional[str]
5155
"""The timezone of the user.

src/knockapi/types/inline_object_request_param.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ class InlineObjectRequestParamTyped(TypedDict, total=False):
2727
"""Timestamp when the resource was created."""
2828

2929
preferences: Optional[InlinePreferenceSetRequestParam]
30-
"""Inline set preferences for a recipient, where the key is the preference set id."""
30+
"""Inline set preferences for a recipient, where the key is the preference set id.
31+
32+
Preferences that are set inline will be merged into any existing preferences
33+
rather than replacing them.
34+
"""
3135

3236

3337
InlineObjectRequestParam: TypeAlias = Union[InlineObjectRequestParamTyped, Dict[str, object]]

0 commit comments

Comments
 (0)