Spaces:
Running
Running
File size: 543 Bytes
14c1acb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from __future__ import annotations
from .contracts import SectionSpec
BUILTIN_SECTIONS = (
SectionSpec("blogger", "publishing", secret_names=(
"BLOGGER_BLOG_ID", "BLOGGER_CLIENT_ID", "BLOGGER_CLIENT_SECRET", "BLOGGER_REFRESH_TOKEN"
)),
SectionSpec("news", "content", capabilities=("ingest", "process", "publish")),
SectionSpec("sports", "content", capabilities=("ingest", "process", "publish")),
)
def register_builtins(registry):
for spec in BUILTIN_SECTIONS:
registry.register(spec)
return registry
|