commit 0744a701b1082118b5eecba00fee0d25d02b016b
parent 8365e46b3a1fd25ab4281be4f28f7b84a67131f4
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 09:05:34 -0500
windows: fetch-window's body type names archive and allowWholeRecording (demo epic D1 item 5)
The editor's e2e build refused 14e3e298 at type check (a piped tsc had hidden
it): the route's `Body` lacked the two keys, and wholeRecordingFor takes the
item's copy only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/editor/app/api/media/fetch-window/route.ts b/editor/app/api/media/fetch-window/route.ts
@@ -73,6 +73,10 @@ type Body = {
full?: unknown;
maxHeight?: unknown;
storedUrl?: unknown;
+ // demo epic D1: the connected archive the clip is cited from, and the
+ // allowance for a remote-only channel's whole recording.
+ archive?: unknown;
+ allowWholeRecording?: unknown;
};
const str = (v: unknown): string | undefined =>
@@ -226,7 +230,7 @@ export async function POST(request: Request) {
const record = config.remoteArchive ? await archiveRecordOf(config.remoteArchive, channelSlug, videoId, { getJson }).catch(() => null) : null;
webpageUrl ||= record?.webpageUrl;
const platform = detectPlatform(webpageUrl) ?? config.platform ?? "unknown";
- const whole = body.full === true || wholeRecordingFor(getSettings(), platform, { slug: channelSlug, id: videoId, from: 0, to: 1 }, undefined);
+ const whole = body.full === true || wholeRecordingFor(getSettings(), platform, {}, undefined);
if (whole && body.allowWholeRecording !== true) {
return NextResponse.json(
{