refactor: split devii catalog.py into package (ref.md 3.5)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-04 19:16:32 +00:00
co-authored by Claude Opus 4.8
parent 4618089cea
commit d45bb37ce1
23 changed files with 2283 additions and 2036 deletions
@@ -0,0 +1,31 @@
# retoor <retoor@molodetz.nl>
from __future__ import annotations
from ..spec import Action
from ._shared import path, query
NEWS_ACTIONS: tuple[Action, ...] = (
Action(
name="list_news",
method="GET",
path="/news",
summary="List news articles",
requires_auth=False,
params=(query("before", "Pagination cursor."),),
),
Action(
name="view_news",
method="GET",
path="/news/{news_slug}",
summary="View a news article by slug",
requires_auth=False,
params=(
path(
"news_slug",
"Exact news slug copied from a /news/... link in a listing response; do not build it from the title.",
),
),
),
)