feat: ロールに関する型を追加 #53

pull/55/head
yupix 2 years ago
parent a7560c368a
commit a0f259129a
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -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…
Cancel
Save