chitose.app.bsky.notification package#

Submodules#

chitose.app.bsky.notification.get_unread_count module#

chitose.app.bsky.notification.list_notifications module#

class chitose.app.bsky.notification.list_notifications.Notification(uri: str, cid: str, author: ProfileView, reason: Literal['like', 'repost', 'follow', 'mention', 'reply', 'quote', 'starterpack-joined'], record: Any, is_read: bool, indexed_at: str, reason_subject: str | None = None, labels: list[Label] | None = None)#

Bases: Object

Parameters:

reason – Expected values are ‘like’, ‘repost’, ‘follow’, ‘mention’, ‘reply’, ‘quote’, and ‘starterpack-joined’.

to_dict() dict[str, Any]#

chitose.app.bsky.notification.put_preferences module#

chitose.app.bsky.notification.register_push module#

chitose.app.bsky.notification.update_seen module#

Module contents#

class chitose.app.bsky.notification.Notification_(call: Callable[[str, list[tuple[str, str | None | int | list[str]]], bytes | dict[str, Any] | None, dict[str, str]], bytes], subscribe: Callable[[str, list[tuple[str, str | None | int | list[str]]], Callable[[str | bytes], None]], None])#

Bases: object

We recommend calling methods in this class via the chitose.BskyAgent class instead of creating instances of this class directly.

get_unread_count(priority: bool | None = None, seen_at: str | None = None) bytes#

Count the number of unread notifications for the requesting account. Requires auth.

list_notifications(limit: int | None = None, priority: bool | None = None, cursor: str | None = None, seen_at: str | None = None) bytes#

Enumerate notifications for the requesting account. Requires auth.

put_preferences(priority: bool) bytes#

Set notification-related preferences for an account. Requires auth.

register_push(service_did: str, token: str, platform: Literal['ios', 'android', 'web'], app_id: str) bytes#

Register to receive push notifications, via a specified service, for the requesting account. Requires auth.

update_seen(seen_at: str) bytes#

Notify server that the requesting account has seen notifications. Requires auth.