DevPlace CI / test (push) Failing after 3h10m39s
Comment and post layouts stay full width on small screens. Secondary actions live in the More menu. Notifications can be grouped and throttled, and Enter can submit when that profile setting is on. Emulated-tool models accept large catalogs, with reserved names aliased on the wire and the catalog cached per owner. A dropped service-worker navigation is retried once. The test server waits 120s to finish importing before it is stopped.
109 lines
3.5 KiB
Python
109 lines
3.5 KiB
Python
# retoor <retoor@molodetz.nl>
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any, Optional
|
|
|
|
from devplacepy.schemas.base import _Out
|
|
from devplacepy.schemas.content import BadgeOut, ProjectOut, UserOut
|
|
from devplacepy.schemas.awards import AwardOut
|
|
from devplacepy.schemas.listings import FeedItemOut, GistItemOut
|
|
|
|
|
|
class MediaItemOut(_Out):
|
|
uid: str = ""
|
|
original_filename: Optional[str] = None
|
|
file_size: Optional[int] = None
|
|
mime_type: Optional[str] = None
|
|
url: Optional[str] = None
|
|
thumbnail_url: Optional[str] = None
|
|
has_thumbnail: bool = False
|
|
is_image: bool = False
|
|
is_video: bool = False
|
|
target_type: Optional[str] = None
|
|
target_uid: Optional[str] = None
|
|
target_url: Optional[str] = None
|
|
created_at: Optional[str] = None
|
|
|
|
|
|
class ProfileOut(_Out):
|
|
profile_user: UserOut
|
|
posts: list[FeedItemOut] = []
|
|
badges: list[BadgeOut] = []
|
|
achievements: list[dict] = []
|
|
badge_total: int = 0
|
|
badge_earned: int = 0
|
|
projects: list[ProjectOut] = []
|
|
gists: list[GistItemOut] = []
|
|
current_tab: Optional[str] = None
|
|
posts_count: Optional[int] = None
|
|
is_following: bool = False
|
|
is_blocked: bool = False
|
|
is_muted: bool = False
|
|
is_owner: bool = False
|
|
profile_online: bool = False
|
|
profile_is_admin: bool = False
|
|
can_view_api_key: bool = False
|
|
api_key: Optional[str] = None
|
|
email: Optional[str] = None
|
|
ai_correction_enabled: bool = False
|
|
ai_correction_sync: bool = False
|
|
ai_correction_prompt: Optional[str] = None
|
|
ai_modifier_enabled: bool = False
|
|
ai_modifier_sync: bool = False
|
|
ai_modifier_prompt: Optional[str] = None
|
|
interactions_enabled: bool = True
|
|
interactions_source: Optional[str] = None
|
|
interactions_default: bool = True
|
|
interactions_override: Optional[bool] = None
|
|
telegram_paired: bool = False
|
|
notif_telegram_paired: bool = False
|
|
can_manage_customization: bool = False
|
|
cust_disable_global: bool = False
|
|
cust_disable_pagetype: bool = False
|
|
enter_to_submit: bool = True
|
|
notif_grouping_enabled: bool = True
|
|
notif_throttle_enabled: bool = True
|
|
ai_quota: Optional[dict] = None
|
|
correction_usage: Optional[dict] = None
|
|
modifier_usage: Optional[dict] = None
|
|
activities: list[Any] = []
|
|
rank: Optional[int] = None
|
|
heatmap: Optional[Any] = None
|
|
heatmap_months: Optional[Any] = None
|
|
streak: Optional[Any] = None
|
|
people: list[Any] = []
|
|
follow_pagination: Optional[Any] = None
|
|
followers_count: Optional[int] = None
|
|
following_count: Optional[int] = None
|
|
viewer_is_admin: bool = False
|
|
xp_next_level: int = 0
|
|
xp_progress_pct: int = 0
|
|
media: list[MediaItemOut] = []
|
|
media_pagination: Optional[Any] = None
|
|
notification_prefs: list[Any] = []
|
|
awards: list[AwardOut] = []
|
|
awards_pagination: Optional[Any] = None
|
|
awards_count: int = 0
|
|
prominent_award: Optional[AwardOut] = None
|
|
can_give_award: bool = False
|
|
consents: list[Any] = []
|
|
node_me: dict = {}
|
|
mature_opt_in: bool = False
|
|
age_band: Optional[str] = None
|
|
terms_version: Optional[str] = None
|
|
terms_accepted_at: Optional[str] = None
|
|
current_terms_version: Optional[str] = None
|
|
suspended_until: Optional[str] = None
|
|
suspension_reason: Optional[str] = None
|
|
deletion_grace_hours: Optional[int] = None
|
|
|
|
|
|
class TelegramPairOut(_Out):
|
|
ok: bool = True
|
|
paired: bool = False
|
|
code: Optional[str] = None
|
|
expires_at: Optional[str] = None
|
|
ttl_minutes: Optional[int] = None
|
|
|