Skip to content

Interface: NotificationView

Defined in: src/types/index.ts:92

Extends

  • output<typeof schemas.NotificationView>

Properties

PropertyTypeDefault valueInherited fromDefined in
data| { banned_from_community: boolean; comment: { ap_id: string; child_count: number; content: string; creator_id: number; deleted: boolean; distinguished: boolean; downvotes: number; id: number; language_id: number; local: boolean; path: string; post_id: number; published_at: string; removed: boolean; score: number; updated_at?: string; upvotes: number; }; community: { ap_id: string; banner?: string; comments: number; deleted: boolean; icon?: string; id: number; local: boolean; name: string; nsfw: boolean; posting_restricted_to_mods: boolean; posts: number; published_at: string; removed: boolean; sidebar?: string; subscribers: number; subscribers_local: number; summary?: string; title: string; updated_at?: string; users_active_day: number; users_active_half_year: number; users_active_month: number; users_active_week: number; visibility: | "public" | "unlisted" | "local_only_public" | "local_only_private" | "private"; }; creator: { ap_id: string; avatar?: string; banner?: string; bio?: string; bot_account: boolean; comment_count: number; deleted: boolean; display_name?: string; id: number; local: boolean; name: string; post_count: number; published_at: string; }; creator_banned_from_community: boolean; creator_is_admin: boolean; creator_is_moderator: boolean; my_vote?: number; post: { alt_text?: string; ap_id: string; body?: string; comments: number; community_id: number; creator_id: number; deleted: boolean; downvotes: number; embed_description?: string; embed_title?: string; featured_community: boolean; featured_local: boolean; id: number; language_id: number; local: boolean; locked: boolean; name: string; newest_comment_time_at?: string; nsfw: boolean; published_at: string; removed: boolean; score: number; thumbnail_url?: string; updated_at?: string; upvotes: number; url?: string; url_content_type?: string; }; saved: boolean; subscribed: "Subscribed" | "NotSubscribed" | "Pending" | "ApprovalRequired"; type_: "comment"; } | { type_: "post"; banned_from_community: boolean; community: { ap_id: string; banner?: string; comments: number; deleted: boolean; icon?: string; id: number; local: boolean; name: string; nsfw: boolean; posting_restricted_to_mods: boolean; posts: number; published_at: string; removed: boolean; sidebar?: string; subscribers: number; subscribers_local: number; summary?: string; title: string; updated_at?: string; users_active_day: number; users_active_half_year: number; users_active_month: number; users_active_week: number; visibility: | "public" | "unlisted" | "local_only_public" | "local_only_private" | "private"; }; creator: { ap_id: string; avatar?: string; banner?: string; bio?: string; bot_account: boolean; comment_count: number; deleted: boolean; display_name?: string; id: number; local: boolean; name: string; post_count: number; published_at: string; }; creator_banned_from_community: boolean; creator_blocked: boolean; creator_is_admin: boolean; creator_is_moderator: boolean; hidden: boolean; my_vote?: number; notifications: "replies_and_mentions" | "mute" | "all_comments"; post: { alt_text?: string; ap_id: string; body?: string; comments: number; community_id: number; creator_id: number; deleted: boolean; downvotes: number; embed_description?: string; embed_title?: string; featured_community: boolean; featured_local: boolean; id: number; language_id: number; local: boolean; locked: boolean; name: string; newest_comment_time_at?: string; nsfw: boolean; published_at: string; removed: boolean; score: number; thumbnail_url?: string; updated_at?: string; upvotes: number; url?: string; url_content_type?: string; }; read: boolean; read_comments_at?: string; saved: boolean; subscribed: "Subscribed" | "NotSubscribed" | "Pending" | "ApprovalRequired"; tags: object[]; unread_comments: number; } | { type_: "private_message"; creator: { ap_id: string; avatar?: string; banner?: string; bio?: string; bot_account: boolean; comment_count: number; deleted: boolean; display_name?: string; id: number; local: boolean; name: string; post_count: number; published_at: string; }; private_message: { ap_id: string; content: string; creator_id: number; deleted: boolean; id: number; local: boolean; published_at: string; recipient_id: number; updated_at?: string; }; recipient: { ap_id: string; avatar?: string; banner?: string; bio?: string; bot_account: boolean; comment_count: number; deleted: boolean; display_name?: string; id: number; local: boolean; name: string; post_count: number; published_at: string; }; } | { moderator?: { ap_id: string; avatar?: string; banner?: string; bio?: string; bot_account: boolean; comment_count: number; deleted: boolean; display_name?: string; id: number; local: boolean; name: string; post_count: number; published_at: string; }; modlog: { expires_at?: string; id: number; is_revert: boolean; kind: | "admin_add" | "admin_ban" | "admin_feature_post_site" | "admin_purge_comment" | "admin_purge_community" | "admin_purge_person" | "admin_purge_post" | "admin_remove_community" | "mod_add_to_community" | "mod_ban_from_community" | "mod_change_community_visibility" | "mod_feature_post_community" | "mod_lock_comment" | "mod_lock_post" | "mod_remove_comment" | "mod_remove_post" | "mod_transfer_community" | "mod_warn_comment" | "mod_warn_post"; published_at: string; reason?: string; }; target_comment?: { ap_id: string; child_count: number; content: string; creator_id: number; deleted: boolean; distinguished: boolean; downvotes: number; id: number; language_id: number; local: boolean; path: string; post_id: number; published_at: string; removed: boolean; score: number; updated_at?: string; upvotes: number; }; target_community?: { ap_id: string; banner?: string; comments: number; deleted: boolean; icon?: string; id: number; local: boolean; name: string; nsfw: boolean; posting_restricted_to_mods: boolean; posts: number; published_at: string; removed: boolean; sidebar?: string; subscribers: number; subscribers_local: number; summary?: string; title: string; updated_at?: string; users_active_day: number; users_active_half_year: number; users_active_month: number; users_active_week: number; visibility: | "public" | "unlisted" | "local_only_public" | "local_only_private" | "private"; }; target_person?: { ap_id: string; avatar?: string; banner?: string; bio?: string; bot_account: boolean; comment_count: number; deleted: boolean; display_name?: string; id: number; local: boolean; name: string; post_count: number; published_at: string; }; target_post?: { alt_text?: string; ap_id: string; body?: string; comments: number; community_id: number; creator_id: number; deleted: boolean; downvotes: number; embed_description?: string; embed_title?: string; featured_community: boolean; featured_local: boolean; id: number; language_id: number; local: boolean; locked: boolean; name: string; newest_comment_time_at?: string; nsfw: boolean; published_at: string; removed: boolean; score: number; thumbnail_url?: string; updated_at?: string; upvotes: number; url?: string; url_content_type?: string; }; type_: "mod_action"; }undefinedz.infer.datasrc/schemas/NotificationView.ts:23
notificationobjectNotificationz.infer.notificationsrc/schemas/NotificationView.ts:37
notification.comment_id?numberundefined-src/schemas/NotificationView.ts:10
notification.creator_idnumberundefined-src/schemas/NotificationView.ts:11
notification.idnumberundefined-src/schemas/NotificationView.ts:12
notification.kind"subscribed" | "reply" | "mention" | "private_message" | "mod_action"NotificationDataType-src/schemas/NotificationView.ts:13
notification.modlog_id?numberundefined-src/schemas/NotificationView.ts:14
notification.post_id?numberundefined-src/schemas/NotificationView.ts:15
notification.private_message_id?numberundefined-src/schemas/NotificationView.ts:16
notification.published_atstringundefined-src/schemas/NotificationView.ts:17
notification.readbooleanundefined-src/schemas/NotificationView.ts:18
notification.recipient_idnumberundefined-src/schemas/NotificationView.ts:19