mirror of https://github.com/yupix/mipac
feat: ロールに関する型を追加 #53
parent
a7560c368a
commit
a0f259129a
@ -0,0 +1,45 @@
|
||||
from typing import NotRequired, TypedDict
|
||||
|
||||
|
||||
class IRolePolicieValue(TypedDict):
|
||||
value: int
|
||||
use_default: bool
|
||||
priority: NotRequired[int]
|
||||
|
||||
|
||||
class IRolePolicies(TypedDict):
|
||||
antenna_limit: IRolePolicieValue
|
||||
gtl_available: IRolePolicieValue
|
||||
ltl_available: IRolePolicieValue
|
||||
can_public_note: IRolePolicieValue
|
||||
drive_capacity_mb: IRolePolicieValue
|
||||
can_invite: IRolePolicieValue
|
||||
can_manage_custom_emojis: IRolePolicieValue
|
||||
can_hide_ads: IRolePolicieValue
|
||||
pin_limit: IRolePolicieValue
|
||||
word_mute_limit: IRolePolicieValue
|
||||
webhook_limit: IRolePolicieValue
|
||||
clip_limit: IRolePolicieValue
|
||||
note_each_clips_limit: IRolePolicieValue
|
||||
user_list_limit: IRolePolicieValue
|
||||
user_each_user_lists_limit: IRolePolicieValue
|
||||
rate_limit_factor: IRolePolicieValue
|
||||
|
||||
|
||||
class IRole(TypedDict):
|
||||
id: str
|
||||
created_at: str
|
||||
updated_at: str
|
||||
name: str
|
||||
description: str
|
||||
color: str | None
|
||||
icon_url: str | None
|
||||
target: str
|
||||
cond_formula: dict
|
||||
is_public: bool
|
||||
is_administrator: bool
|
||||
is_moderator: bool
|
||||
as_badge: bool
|
||||
can_edit_members_by_moderator: bool
|
||||
policies: IRolePolicies
|
||||
users_count: int
|
Loading…
Reference in new issue