Skip to content

Commit a9448f9

Browse files
committed
feat: Add quote/quoted_update notification types
1 parent 3abae81 commit a9448f9

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/mastodon/entities/v1/grouped-notifications.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ export type PollNotificationGroup = NotificationGroupWithStatusId<"poll">;
9696
/** A status you interacted with has been edited */
9797
export type UpdateNotificationGroup = NotificationGroupWithStatusId<"update">;
9898

99+
/** Someone has quoted one of your statuses */
100+
export type QuoteNotificationGroup = NotificationGroupWithStatusId<"quote">;
101+
102+
/** A status you have quoted has been edited */
103+
export type QuotedUpdateNotificationGroup =
104+
NotificationGroupWithStatusId<"quoted_update">;
105+
99106
/** Someone signed up (optionally sent to admins) */
100107
export type AdminSignUpNotificationGroup =
101108
NotificationGroupPlain<"admin.sign_up">;
@@ -121,6 +128,8 @@ export interface NotificationGroupRegistry {
121128
favourite: FavouriteNotificationGroup;
122129
poll: PollNotificationGroup;
123130
update: UpdateNotificationGroup;
131+
quote: QuoteNotificationGroup;
132+
quoted_update: QuotedUpdateNotificationGroup;
124133
"admin.sign_up": AdminSignUpNotificationGroup;
125134
"admin.report": AdminReportNotificationGroup;
126135
severed_relationships: SeveredRelationshipsNotificationGroup;

src/mastodon/entities/v1/notification.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ export type ReblogNotification = BaseNotificationWithStatus<"reblog">;
5858
*/
5959
export type QuoteNotification = BaseNotificationWithStatus<"quote">;
6060

61+
/**
62+
* A status you have quoted has been edited
63+
*/
64+
export type QuotedUpdateNotification =
65+
BaseNotificationWithStatus<"quoted_update">;
66+
6167
/**
6268
* Someone followed you
6369
*/
@@ -113,6 +119,7 @@ export interface NotificationRegistry {
113119
reblog: ReblogNotification;
114120
follow: FollowNotification;
115121
quote: QuoteNotification;
122+
quoted_update: QuotedUpdateNotification;
116123
follow_request: FollowRequestNotification;
117124
favourite: FavouriteNotification;
118125
poll: PollNotification;

0 commit comments

Comments
 (0)