Skip to content

Commit

Permalink
fix(client): 👽 Update PushSubscription changes from Versia Server
Browse files Browse the repository at this point in the history
  • Loading branch information
CPlusPatch committed Jan 1, 2025
1 parent 39f15a7 commit bcb3529
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions client/types/push_subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ export type Alerts = {
mention: boolean;
reblog: boolean;
poll: boolean;
status: boolean;
follow_request: boolean;
update: boolean;
"admin.sign_up": boolean;
"admin.report": boolean;
};

export type PushSubscription = {
Expand Down
8 changes: 6 additions & 2 deletions client/types/versia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type VersiaRole = {
icon?: string;
};

// Last updated: 2024-11-28
// Last updated: 2025-01-02
export enum RolePermission {
ManageNotes = "notes",
ManageOwnNotes = "owner:note",
Expand All @@ -26,6 +26,9 @@ export enum RolePermission {
ManageEmojis = "emojis",
ViewEmojis = "read:emoji",
ManageOwnEmojis = "owner:emoji",
ViewReactions = "read:reaction",
ManageReactions = "reactions",
ManageOwnReactions = "owner:reaction",
ManageMedia = "media",
ManageOwnMedia = "owner:media",
ManageBlocks = "blocks",
Expand All @@ -45,8 +48,9 @@ export enum RolePermission {
ManageOwnFollows = "owner:follow",
ManageOwnApps = "owner:app",
Search = "search",
UsePushNotifications = "push_notifications",
ViewPublicTimelines = "public_timelines",
ViewPrimateTimelines = "private_timelines",
ViewPrivateTimelines = "private_timelines",
IgnoreRateLimits = "ignore_rate_limits",
Impersonate = "impersonate",
ManageInstance = "instance",
Expand Down

0 comments on commit bcb3529

Please sign in to comment.