Skip to content
Merged
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 @@
{
".": "1.1.0"
".": "1.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 89
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-923618cb1489556307ce0be07853170d15516da8fe450578fed856e560ec361c.yml
openapi_spec_hash: 1406cf9ab287412197a1907f5d66d541
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-a552e94c4d04a0d44cb4052dbfbaadea6449c254d18eb0c9c93f4c0e8ee27ad3.yml
openapi_spec_hash: f4c271283f332a9868a0ee0cc2d9cd8b
config_hash: 2ae8965d371a03bd30c6a56819c04cf2
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.2.0 (2025-05-20)

Full Changelog: [v1.1.0...v1.2.0](https://github.com/knocklabs/knock-python/compare/v1.1.0...v1.2.0)

### Features

* **api:** api update ([8a7cda4](https://github.com/knocklabs/knock-python/commit/8a7cda4e53e03c5aabe8c77c622e474e7c7f8200))

## 1.1.0 (2025-05-16)

Full Changelog: [v1.0.0...v1.1.0](https://github.com/knocklabs/knock-python/compare/v1.0.0...v1.1.0)
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 = "knockapi"
version = "1.1.0"
version = "1.2.0"
description = "The official Python library for the knock API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/knockapi/_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__ = "knockapi"
__version__ = "1.1.0" # x-release-please-version
__version__ = "1.2.0" # x-release-please-version
8 changes: 6 additions & 2 deletions src/knockapi/resources/messages/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def list(
after: str | NotGiven = NOT_GIVEN,
before: str | NotGiven = NOT_GIVEN,
channel_id: str | NotGiven = NOT_GIVEN,
engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
| NotGiven = NOT_GIVEN,
inserted_at: message_list_params.InsertedAt | NotGiven = NOT_GIVEN,
message_ids: List[str] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -687,7 +689,9 @@ def list(
after: str | NotGiven = NOT_GIVEN,
before: str | NotGiven = NOT_GIVEN,
channel_id: str | NotGiven = NOT_GIVEN,
engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
| NotGiven = NOT_GIVEN,
inserted_at: message_list_params.InsertedAt | NotGiven = NOT_GIVEN,
message_ids: List[str] | NotGiven = NOT_GIVEN,
Expand Down
8 changes: 6 additions & 2 deletions src/knockapi/resources/objects/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ def list_messages(
after: str | NotGiven = NOT_GIVEN,
before: str | NotGiven = NOT_GIVEN,
channel_id: str | NotGiven = NOT_GIVEN,
engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
| NotGiven = NOT_GIVEN,
inserted_at: object_list_messages_params.InsertedAt | NotGiven = NOT_GIVEN,
message_ids: List[str] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1237,7 +1239,9 @@ def list_messages(
after: str | NotGiven = NOT_GIVEN,
before: str | NotGiven = NOT_GIVEN,
channel_id: str | NotGiven = NOT_GIVEN,
engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
| NotGiven = NOT_GIVEN,
inserted_at: object_list_messages_params.InsertedAt | NotGiven = NOT_GIVEN,
message_ids: List[str] | NotGiven = NOT_GIVEN,
Expand Down
8 changes: 6 additions & 2 deletions src/knockapi/resources/users/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ def list_messages(
after: str | NotGiven = NOT_GIVEN,
before: str | NotGiven = NOT_GIVEN,
channel_id: str | NotGiven = NOT_GIVEN,
engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
| NotGiven = NOT_GIVEN,
inserted_at: user_list_messages_params.InsertedAt | NotGiven = NOT_GIVEN,
message_ids: List[str] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1145,7 +1147,9 @@ def list_messages(
after: str | NotGiven = NOT_GIVEN,
before: str | NotGiven = NOT_GIVEN,
channel_id: str | NotGiven = NOT_GIVEN,
engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
| NotGiven = NOT_GIVEN,
inserted_at: user_list_messages_params.InsertedAt | NotGiven = NOT_GIVEN,
message_ids: List[str] | NotGiven = NOT_GIVEN,
Expand Down
4 changes: 3 additions & 1 deletion src/knockapi/types/message_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class MessageListParams(TypedDict, total=False):
channel_id: str
"""Limits the results to items with the corresponding channel ID."""

engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
"""Limits the results to messages with the given engagement status."""

inserted_at: InsertedAt
Expand Down
4 changes: 3 additions & 1 deletion src/knockapi/types/object_list_messages_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class ObjectListMessagesParams(TypedDict, total=False):
channel_id: str
"""Limits the results to items with the corresponding channel ID."""

engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
"""Limits the results to messages with the given engagement status."""

inserted_at: InsertedAt
Expand Down
4 changes: 3 additions & 1 deletion src/knockapi/types/user_list_messages_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class UserListMessagesParams(TypedDict, total=False):
channel_id: str
"""Limits the results to items with the corresponding channel ID."""

engagement_status: List[Literal["seen", "read", "interacted", "link_clicked", "archived"]]
engagement_status: List[
Literal["seen", "unseen", "read", "unread", "archived", "unarchived", "link_clicked", "interacted"]
]
"""Limits the results to messages with the given engagement status."""

inserted_at: InsertedAt
Expand Down