mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
fix(client): 👽 Update PushSubscription changes from Versia Server
This commit is contained in:
parent
39f15a7141
commit
bcb3529687
|
|
@ -4,6 +4,11 @@ export type Alerts = {
|
||||||
mention: boolean;
|
mention: boolean;
|
||||||
reblog: boolean;
|
reblog: boolean;
|
||||||
poll: boolean;
|
poll: boolean;
|
||||||
|
status: boolean;
|
||||||
|
follow_request: boolean;
|
||||||
|
update: boolean;
|
||||||
|
"admin.sign_up": boolean;
|
||||||
|
"admin.report": boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PushSubscription = {
|
export type PushSubscription = {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ export type VersiaRole = {
|
||||||
icon?: string;
|
icon?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Last updated: 2024-11-28
|
// Last updated: 2025-01-02
|
||||||
export enum RolePermission {
|
export enum RolePermission {
|
||||||
ManageNotes = "notes",
|
ManageNotes = "notes",
|
||||||
ManageOwnNotes = "owner:note",
|
ManageOwnNotes = "owner:note",
|
||||||
|
|
@ -26,6 +26,9 @@ export enum RolePermission {
|
||||||
ManageEmojis = "emojis",
|
ManageEmojis = "emojis",
|
||||||
ViewEmojis = "read:emoji",
|
ViewEmojis = "read:emoji",
|
||||||
ManageOwnEmojis = "owner:emoji",
|
ManageOwnEmojis = "owner:emoji",
|
||||||
|
ViewReactions = "read:reaction",
|
||||||
|
ManageReactions = "reactions",
|
||||||
|
ManageOwnReactions = "owner:reaction",
|
||||||
ManageMedia = "media",
|
ManageMedia = "media",
|
||||||
ManageOwnMedia = "owner:media",
|
ManageOwnMedia = "owner:media",
|
||||||
ManageBlocks = "blocks",
|
ManageBlocks = "blocks",
|
||||||
|
|
@ -45,8 +48,9 @@ export enum RolePermission {
|
||||||
ManageOwnFollows = "owner:follow",
|
ManageOwnFollows = "owner:follow",
|
||||||
ManageOwnApps = "owner:app",
|
ManageOwnApps = "owner:app",
|
||||||
Search = "search",
|
Search = "search",
|
||||||
|
UsePushNotifications = "push_notifications",
|
||||||
ViewPublicTimelines = "public_timelines",
|
ViewPublicTimelines = "public_timelines",
|
||||||
ViewPrimateTimelines = "private_timelines",
|
ViewPrivateTimelines = "private_timelines",
|
||||||
IgnoreRateLimits = "ignore_rate_limits",
|
IgnoreRateLimits = "ignore_rate_limits",
|
||||||
Impersonate = "impersonate",
|
Impersonate = "impersonate",
|
||||||
ManageInstance = "instance",
|
ManageInstance = "instance",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue