From bf519ee2cee7786b443dd75ee55a596d9e15350e Mon Sep 17 00:00:00 2001 From: Ilya Siamionau Date: Wed, 11 Dec 2024 23:24:28 +0100 Subject: [PATCH] Update lexicons fetched from 207728d committed 2024-12-11T19:46:14Z (#490) --- lexicons/app.bsky.notification.listNotifications.json | 8 ++++++++ .../models/app/bsky/notification/list_notifications.py | 2 ++ 2 files changed, 10 insertions(+) diff --git a/lexicons/app.bsky.notification.listNotifications.json b/lexicons/app.bsky.notification.listNotifications.json index c85a5167..7ae3cf9c 100644 --- a/lexicons/app.bsky.notification.listNotifications.json +++ b/lexicons/app.bsky.notification.listNotifications.json @@ -8,6 +8,14 @@ "parameters": { "type": "params", "properties": { + "reasons": { + "description": "Notification reasons to include in response.", + "type": "array", + "items": { + "type": "string", + "description": "A reason that matches the reason property of #notification." + } + }, "limit": { "type": "integer", "minimum": 1, diff --git a/packages/atproto_client/models/app/bsky/notification/list_notifications.py b/packages/atproto_client/models/app/bsky/notification/list_notifications.py index b0878efc..7f05f51b 100644 --- a/packages/atproto_client/models/app/bsky/notification/list_notifications.py +++ b/packages/atproto_client/models/app/bsky/notification/list_notifications.py @@ -24,6 +24,7 @@ class Params(base.ParamsModelBase): cursor: t.Optional[str] = None #: Cursor. limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. priority: t.Optional[bool] = None #: Priority. + reasons: t.Optional[t.List[str]] = None #: Notification reasons to include in response. seen_at: t.Optional[string_formats.DateTime] = None #: Seen at. @@ -31,6 +32,7 @@ class ParamsDict(t.TypedDict): cursor: te.NotRequired[t.Optional[str]] #: Cursor. limit: te.NotRequired[t.Optional[int]] #: Limit. priority: te.NotRequired[t.Optional[bool]] #: Priority. + reasons: te.NotRequired[t.Optional[t.List[str]]] #: Notification reasons to include in response. seen_at: te.NotRequired[t.Optional[string_formats.DateTime]] #: Seen at.