feat: NotificationRecieveConfig を更新

pull/109/head
yupix 7 months ago
parent 2f0f51ef52
commit df9a2209ef
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -16,7 +16,7 @@ IFfVisibility = Literal["public", "followers", "private"]
IUserNotify = Literal["normal", "none"] IUserNotify = Literal["normal", "none"]
ITwoFactorBackupCodesStock = Literal["full", "partial", "none"] ITwoFactorBackupCodesStock = Literal["full", "partial", "none"]
NotificationRecieveConfigOption = Literal[ NotificationRecieveConfigOption = Literal[
"all", "following", "follower", "mutualFollow", "list", "never" "all", "following", "follower", "mutualFollow", "never"
] # Misskey側が間違っている(Receiveのミススペル?)ので混乱を招かないようにこっちも統一してある ] # Misskey側が間違っている(Receiveのミススペル?)ので混乱を招かないようにこっちも統一してある
EmailNotificationTypes = Literal["mention", "reply", "quote", "follow", "receiveFollowRequest"] EmailNotificationTypes = Literal["mention", "reply", "quote", "follow", "receiveFollowRequest"]
@ -25,6 +25,7 @@ class IUserField(TypedDict):
name: str name: str
value: str value: str
class ISignin(TypedDict): class ISignin(TypedDict):
id: str id: str
created_at: str created_at: str
@ -81,18 +82,26 @@ class NotificationRecieveConfigType(TypedDict):
type: NotificationRecieveConfigOption type: NotificationRecieveConfigOption
class NotificationRecieveConfigWithUserList(TypedDict):
type: NotificationRecieveConfigOption
user_list_id: str
class NotificationRecieveConfig(TypedDict): class NotificationRecieveConfig(TypedDict):
app: NotificationRecieveConfigType note: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
quote: NotificationRecieveConfigType follow: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
reply: NotificationRecieveConfigType mention: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
follow: NotificationRecieveConfigType reply: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
renote: NotificationRecieveConfigType renote: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
mention: NotificationRecieveConfigType quote: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
reaction: NotificationRecieveConfigType reaction: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
pollEnded: NotificationRecieveConfigType pollEnded: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
achievementEarned: NotificationRecieveConfigType receive_follow_request: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
receiveFollowRequest: NotificationRecieveConfigType follow_request_accepted: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
followRequestAccepted: NotificationRecieveConfigType role_assigned: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
achievement_earned: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
app: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
test: NotificationRecieveConfigType | NotificationRecieveConfigWithUserList
class IUserSecurityKey(TypedDict): class IUserSecurityKey(TypedDict):

Loading…
Cancel
Save