diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 12:15:24 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 12:15:24 +0100 |
| commit | e77456f9c6804cd55dcdbb9c9bc06085b6ed91c2 (patch) | |
| tree | 1d82e707c803ed6b7d0c97c6cf631d2e4aae0c03 /deckit/module.py | |
| parent | ea4c6aefebb208e5328f5f17d667a274780fbf64 (diff) | |
| download | deck-it-e77456f9c6804cd55dcdbb9c9bc06085b6ed91c2.tar.gz deck-it-e77456f9c6804cd55dcdbb9c9bc06085b6ed91c2.zip | |
feat(server): upload actions take a raw body up to their own limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'deckit/module.py')
| -rw-r--r-- | deckit/module.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deckit/module.py b/deckit/module.py index 9dad62a..9680c58 100644 --- a/deckit/module.py +++ b/deckit/module.py @@ -35,6 +35,9 @@ class Module: title: str state: Callable[[], dict] actions: dict[str, Callable[[dict], dict | None]] = field(default_factory=dict) + # action -> (content type, max bytes): actions that take a raw body, + # such as a voice clip, instead of a small JSON object. + uploads: dict[str, tuple[str, int]] = field(default_factory=dict) start: Callable[[], None] | None = None stop: Callable[[], None] | None = None |
