@tapedock/mcp 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,72 @@
1
+ import type { SessionExportFile, VcrApiClient } from "../api/client.js";
2
+ export type DownloadCategory = "bundle" | "audio" | "video" | "screen";
3
+ export declare const ALL_DOWNLOAD_CATEGORIES: DownloadCategory[];
4
+ export interface DownloadFileState {
5
+ name: string;
6
+ category: DownloadCategory;
7
+ byteSize: number;
8
+ downloadedBytes: number;
9
+ status: "pending" | "downloading" | "completed" | "skipped" | "failed";
10
+ localPath: string;
11
+ error?: string;
12
+ }
13
+ export interface DownloadJobSnapshot {
14
+ downloadId: string;
15
+ sessionId: string;
16
+ sessionTitle: string;
17
+ mode: "foreground" | "background" | "dry_run";
18
+ status: "running" | "completed" | "failed" | "dry_run";
19
+ targetDir: string;
20
+ totalBytes: number;
21
+ remainingBytes: number;
22
+ downloadedBytes: number;
23
+ startedAtMs: number;
24
+ completedAtMs: number | null;
25
+ files: DownloadFileState[];
26
+ error?: string;
27
+ }
28
+ export interface DownloadSessionInput {
29
+ sessionId: string;
30
+ destinationDir?: string;
31
+ createSubfolder?: boolean;
32
+ categories?: DownloadCategory[];
33
+ overwrite?: boolean;
34
+ dryRun?: boolean;
35
+ mode?: "auto" | "foreground" | "background";
36
+ }
37
+ export interface DownloadProgressCallback {
38
+ (update: {
39
+ downloadedBytes: number;
40
+ totalBytes: number;
41
+ message: string;
42
+ }): Promise<void> | void;
43
+ }
44
+ export declare function resolveDefaultDownloadDir(): string;
45
+ export declare function assertSafeExportPath(targetDir: string, filename: string): string;
46
+ export declare class DownloadManager {
47
+ private readonly api;
48
+ private readonly fetchImpl;
49
+ private readonly autoForegroundBytes;
50
+ private readonly urlRefreshMs;
51
+ private readonly concurrency;
52
+ private readonly jobs;
53
+ private readonly retryBaseDelayMs;
54
+ constructor(opts: {
55
+ api: VcrApiClient;
56
+ fetchImpl?: typeof fetch;
57
+ autoForegroundBytes?: number;
58
+ urlRefreshMs?: number;
59
+ concurrency?: number;
60
+ retryBaseDelayMs?: number;
61
+ });
62
+ private pruneOldJobs;
63
+ getJob(downloadId: string): DownloadJobSnapshot | null;
64
+ listJobs(): DownloadJobSnapshot[];
65
+ startDownload(input: DownloadSessionInput, runtimeOpts?: {
66
+ signal?: AbortSignal;
67
+ onProgress?: DownloadProgressCallback;
68
+ }): Promise<DownloadJobSnapshot>;
69
+ private executeJob;
70
+ private downloadSingleFile;
71
+ }
72
+ export type { SessionExportFile };
@@ -0,0 +1,485 @@
1
+ import { randomBytes } from "node:crypto";
2
+ import { createWriteStream } from "node:fs";
3
+ import * as fs from "node:fs/promises";
4
+ import * as os from "node:os";
5
+ import * as path from "node:path";
6
+ import { Readable, Transform } from "node:stream";
7
+ import { pipeline } from "node:stream/promises";
8
+ import { buildSessionFolderName, formatBytes } from "../lib/format.js";
9
+ export const ALL_DOWNLOAD_CATEGORIES = ["bundle", "audio", "video", "screen"];
10
+ const SAFE_EXPORT_FILENAME_RE = /^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$/;
11
+ const DEFAULT_AUTO_FOREGROUND_BYTES = 100 * 1024 * 1024; // 100 MB
12
+ const DEFAULT_URL_REFRESH_MS = 45 * 60 * 1000; // 45 minutes (presigned TTL is 60 min)
13
+ const DEFAULT_CONCURRENCY = 2;
14
+ const MAX_FILE_RETRIES = 3;
15
+ const PROGRESS_THROTTLE_MS = 1500;
16
+ const MAX_STORED_JOBS = 50;
17
+ export function resolveDefaultDownloadDir() {
18
+ const fromEnv = process.env.TAPEDOCK_DOWNLOAD_DIR?.trim() || process.env.VCR_DOWNLOAD_DIR?.trim();
19
+ if (fromEnv)
20
+ return path.resolve(fromEnv);
21
+ return path.join(os.homedir(), "Downloads", "tapedock");
22
+ }
23
+ export function assertSafeExportPath(targetDir, filename) {
24
+ if (!filename ||
25
+ filename.includes("/") ||
26
+ filename.includes("\\") ||
27
+ filename.includes("..") ||
28
+ !SAFE_EXPORT_FILENAME_RE.test(filename)) {
29
+ throw new Error(`Unsafe export filename rejected: "${filename}"`);
30
+ }
31
+ const resolvedDir = path.resolve(targetDir);
32
+ const resolvedFile = path.resolve(resolvedDir, filename);
33
+ if (!resolvedFile.startsWith(resolvedDir + path.sep)) {
34
+ throw new Error(`Path traversal rejected for "${filename}"`);
35
+ }
36
+ return resolvedFile;
37
+ }
38
+ function parseContentRange(header) {
39
+ if (!header)
40
+ return null;
41
+ const match = header.trim().match(/^bytes\s+(\d+)-(\d+)\/(\d+|\*)$/i);
42
+ if (!match)
43
+ return null;
44
+ const start = Number(match[1]);
45
+ const end = Number(match[2]);
46
+ const total = match[3] === "*" ? -1 : Number(match[3]);
47
+ if (!Number.isFinite(start) || !Number.isFinite(end))
48
+ return null;
49
+ return { start, end, total };
50
+ }
51
+ async function abortableSleep(ms, signal) {
52
+ if (signal?.aborted)
53
+ throw new Error("Download cancelled by client.");
54
+ await new Promise((resolve, reject) => {
55
+ const onAbort = () => {
56
+ clearTimeout(timer);
57
+ reject(new Error("Download cancelled by client."));
58
+ };
59
+ const timer = setTimeout(() => {
60
+ signal?.removeEventListener("abort", onAbort);
61
+ resolve();
62
+ }, ms);
63
+ signal?.addEventListener("abort", onAbort, { once: true });
64
+ });
65
+ }
66
+ class PresignedUrlExpiredError extends Error {
67
+ failedUrl;
68
+ constructor(failedUrl) {
69
+ super("Presigned download URL expired (403)");
70
+ this.failedUrl = failedUrl;
71
+ this.name = "PresignedUrlExpiredError";
72
+ }
73
+ }
74
+ class RangeRestartError extends Error {
75
+ constructor(message) {
76
+ super(message);
77
+ this.name = "RangeRestartError";
78
+ }
79
+ }
80
+ export class DownloadManager {
81
+ api;
82
+ fetchImpl;
83
+ autoForegroundBytes;
84
+ urlRefreshMs;
85
+ concurrency;
86
+ jobs = new Map();
87
+ retryBaseDelayMs;
88
+ constructor(opts) {
89
+ this.api = opts.api;
90
+ this.fetchImpl = opts.fetchImpl ?? fetch;
91
+ this.autoForegroundBytes = opts.autoForegroundBytes ?? DEFAULT_AUTO_FOREGROUND_BYTES;
92
+ this.urlRefreshMs = opts.urlRefreshMs ?? DEFAULT_URL_REFRESH_MS;
93
+ this.concurrency = opts.concurrency ?? DEFAULT_CONCURRENCY;
94
+ this.retryBaseDelayMs = opts.retryBaseDelayMs ?? 500;
95
+ }
96
+ pruneOldJobs() {
97
+ if (this.jobs.size <= MAX_STORED_JOBS)
98
+ return;
99
+ const completed = [...this.jobs.values()]
100
+ .filter((j) => j.status !== "running")
101
+ .sort((a, b) => a.startedAtMs - b.startedAtMs);
102
+ for (const old of completed) {
103
+ if (this.jobs.size <= MAX_STORED_JOBS)
104
+ break;
105
+ this.jobs.delete(old.downloadId);
106
+ }
107
+ }
108
+ getJob(downloadId) {
109
+ const job = this.jobs.get(downloadId);
110
+ return job ? structuredClone(job) : null;
111
+ }
112
+ listJobs() {
113
+ return [...this.jobs.values()]
114
+ .sort((a, b) => b.startedAtMs - a.startedAtMs)
115
+ .map((j) => structuredClone(j));
116
+ }
117
+ async startDownload(input, runtimeOpts) {
118
+ const detail = await this.api.getSession(input.sessionId, runtimeOpts?.signal);
119
+ const { session } = detail;
120
+ if (session.mediaDeletedAt) {
121
+ throw new Error(`Media for Session "${session.title}" (${session.id}) has been permanently deleted.`);
122
+ }
123
+ if (session.status !== "ready" && session.status !== "ready_partial") {
124
+ throw new Error(`Session "${session.title}" (${session.id}) is currently "${session.status}" and exports are not ready yet.`);
125
+ }
126
+ const wantedCategories = new Set(input.categories && input.categories.length > 0 ? input.categories : ALL_DOWNLOAD_CATEGORIES);
127
+ const matchingFiles = detail.files.filter((f) => wantedCategories.has(f.category));
128
+ if (matchingFiles.length === 0) {
129
+ throw new Error(`No export files matched categories [${[...wantedCategories].join(", ")}] for Session ${session.id}.`);
130
+ }
131
+ const baseDir = input.destinationDir?.trim()
132
+ ? path.resolve(input.destinationDir.trim())
133
+ : resolveDefaultDownloadDir();
134
+ const createSubfolder = input.createSubfolder !== false;
135
+ const targetDir = createSubfolder
136
+ ? path.join(baseDir, buildSessionFolderName(session))
137
+ : baseDir;
138
+ const overwrite = Boolean(input.overwrite);
139
+ const fileStates = [];
140
+ const urlByName = new Map();
141
+ let totalBytes = 0;
142
+ let remainingBytes = 0;
143
+ for (const file of matchingFiles) {
144
+ const localPath = assertSafeExportPath(targetDir, file.name);
145
+ urlByName.set(file.name, file.downloadUrl);
146
+ totalBytes += file.byteSize;
147
+ let alreadyComplete = false;
148
+ if (!overwrite) {
149
+ try {
150
+ const stat = await fs.stat(localPath);
151
+ if (stat.isFile() && stat.size === file.byteSize) {
152
+ alreadyComplete = true;
153
+ }
154
+ }
155
+ catch {
156
+ // file does not exist
157
+ }
158
+ }
159
+ if (alreadyComplete) {
160
+ fileStates.push({
161
+ name: file.name,
162
+ category: file.category,
163
+ byteSize: file.byteSize,
164
+ downloadedBytes: file.byteSize,
165
+ status: "skipped",
166
+ localPath,
167
+ });
168
+ }
169
+ else {
170
+ remainingBytes += file.byteSize;
171
+ fileStates.push({
172
+ name: file.name,
173
+ category: file.category,
174
+ byteSize: file.byteSize,
175
+ downloadedBytes: 0,
176
+ status: "pending",
177
+ localPath,
178
+ });
179
+ }
180
+ }
181
+ const downloadId = `dl_${randomBytes(6).toString("hex")}`;
182
+ const now = Date.now();
183
+ if (input.dryRun) {
184
+ return {
185
+ downloadId,
186
+ sessionId: session.id,
187
+ sessionTitle: session.title,
188
+ mode: "dry_run",
189
+ status: "dry_run",
190
+ targetDir,
191
+ totalBytes,
192
+ remainingBytes,
193
+ downloadedBytes: totalBytes - remainingBytes,
194
+ startedAtMs: now,
195
+ completedAtMs: now,
196
+ files: fileStates,
197
+ };
198
+ }
199
+ const requestedMode = input.mode ?? "auto";
200
+ const resolvedMode = requestedMode === "foreground"
201
+ ? "foreground"
202
+ : requestedMode === "background"
203
+ ? "background"
204
+ : remainingBytes <= this.autoForegroundBytes
205
+ ? "foreground"
206
+ : "background";
207
+ const job = {
208
+ downloadId,
209
+ sessionId: session.id,
210
+ sessionTitle: session.title,
211
+ mode: resolvedMode,
212
+ status: "running",
213
+ targetDir,
214
+ totalBytes,
215
+ remainingBytes,
216
+ downloadedBytes: totalBytes - remainingBytes,
217
+ startedAtMs: now,
218
+ completedAtMs: null,
219
+ files: fileStates,
220
+ };
221
+ this.jobs.set(downloadId, job);
222
+ this.pruneOldJobs();
223
+ const runPromise = this.executeJob(job, {
224
+ urlByName,
225
+ urlsFetchedAtMs: now,
226
+ overwrite,
227
+ signal: resolvedMode === "foreground" ? runtimeOpts?.signal : undefined,
228
+ onProgress: resolvedMode === "foreground" ? runtimeOpts?.onProgress : undefined,
229
+ });
230
+ if (resolvedMode === "background") {
231
+ void runPromise.catch(() => { });
232
+ return structuredClone(job);
233
+ }
234
+ await runPromise;
235
+ return structuredClone(job);
236
+ }
237
+ async executeJob(job, ctx) {
238
+ const jobController = new AbortController();
239
+ const onParentAbort = () => jobController.abort();
240
+ if (ctx.signal) {
241
+ if (ctx.signal.aborted) {
242
+ jobController.abort();
243
+ }
244
+ else {
245
+ ctx.signal.addEventListener("abort", onParentAbort, { once: true });
246
+ }
247
+ }
248
+ let finished = false;
249
+ try {
250
+ await fs.mkdir(job.targetDir, { recursive: true });
251
+ const pending = job.files.filter((f) => f.status === "pending");
252
+ let nextIdx = 0;
253
+ let lastProgressAt = 0;
254
+ let lastProgressBytes = -1;
255
+ let refreshPromise = null;
256
+ const emitProgress = async (currentFile, force = false) => {
257
+ const bytes = job.files.reduce((sum, f) => sum + f.downloadedBytes, 0);
258
+ // Always keep top-level downloadedBytes current (including background jobs!)
259
+ job.downloadedBytes = bytes;
260
+ if (!ctx.onProgress || finished || jobController.signal.aborted)
261
+ return;
262
+ const now = Date.now();
263
+ if (!force && now - lastProgressAt < PROGRESS_THROTTLE_MS)
264
+ return;
265
+ // MCP progress values MUST strictly increase on every notification
266
+ if (bytes <= lastProgressBytes && lastProgressBytes >= 0)
267
+ return;
268
+ lastProgressAt = now;
269
+ lastProgressBytes = bytes;
270
+ await ctx.onProgress({
271
+ downloadedBytes: bytes,
272
+ totalBytes: Math.max(job.totalBytes, 1),
273
+ message: `Downloading ${currentFile} (${formatBytes(bytes)} / ${formatBytes(job.totalBytes)})`,
274
+ });
275
+ };
276
+ const refreshPresignedUrls = async () => {
277
+ if (!refreshPromise) {
278
+ refreshPromise = (async () => {
279
+ const refreshed = await this.api.getSession(job.sessionId, jobController.signal);
280
+ for (const f of refreshed.files) {
281
+ ctx.urlByName.set(f.name, f.downloadUrl);
282
+ }
283
+ ctx.urlsFetchedAtMs = Date.now();
284
+ })().finally(() => {
285
+ refreshPromise = null;
286
+ });
287
+ }
288
+ return refreshPromise;
289
+ };
290
+ let firstError = null;
291
+ const worker = async () => {
292
+ while (!jobController.signal.aborted) {
293
+ const idx = nextIdx++;
294
+ if (idx >= pending.length)
295
+ return;
296
+ const file = pending[idx];
297
+ file.status = "downloading";
298
+ try {
299
+ await this.downloadSingleFile(file, {
300
+ getUrl: async (failedUrl) => {
301
+ const currentUrl = ctx.urlByName.get(file.name);
302
+ const needsRefresh = (failedUrl !== undefined && currentUrl === failedUrl) ||
303
+ Date.now() - ctx.urlsFetchedAtMs >= this.urlRefreshMs;
304
+ if (needsRefresh) {
305
+ await refreshPresignedUrls();
306
+ }
307
+ const url = ctx.urlByName.get(file.name);
308
+ if (!url)
309
+ throw new Error(`Missing download URL for ${file.name}`);
310
+ return url;
311
+ },
312
+ overwrite: ctx.overwrite,
313
+ signal: jobController.signal,
314
+ onChunk: async () => {
315
+ await emitProgress(file.name, false);
316
+ },
317
+ });
318
+ file.status = "completed";
319
+ file.downloadedBytes = file.byteSize;
320
+ await emitProgress(file.name, false);
321
+ }
322
+ catch (err) {
323
+ file.status = "failed";
324
+ file.error = err instanceof Error ? err.message : String(err);
325
+ if (!firstError) {
326
+ firstError = err;
327
+ }
328
+ jobController.abort();
329
+ return;
330
+ }
331
+ }
332
+ };
333
+ const workerCount = Math.min(this.concurrency, Math.max(1, pending.length));
334
+ await Promise.allSettled(Array.from({ length: workerCount }, () => worker()));
335
+ if (firstError) {
336
+ throw firstError;
337
+ }
338
+ if (jobController.signal.aborted) {
339
+ throw new Error("Download cancelled by client.");
340
+ }
341
+ job.downloadedBytes = job.files.reduce((sum, f) => sum + f.downloadedBytes, 0);
342
+ await emitProgress("Complete", true);
343
+ finished = true;
344
+ job.status = "completed";
345
+ job.completedAtMs = Date.now();
346
+ }
347
+ catch (err) {
348
+ finished = true;
349
+ jobController.abort();
350
+ job.status = "failed";
351
+ job.completedAtMs = Date.now();
352
+ job.error = err instanceof Error ? err.message : String(err);
353
+ if (job.mode === "foreground") {
354
+ throw err;
355
+ }
356
+ }
357
+ finally {
358
+ ctx.signal?.removeEventListener("abort", onParentAbort);
359
+ }
360
+ }
361
+ async downloadSingleFile(file, opts) {
362
+ const partPath = `${file.localPath}.part`;
363
+ let lastExpiredUrl;
364
+ let lastError;
365
+ for (let attempt = 0; attempt <= MAX_FILE_RETRIES; attempt++) {
366
+ if (opts.signal.aborted) {
367
+ throw new Error("Download cancelled by client.");
368
+ }
369
+ try {
370
+ let resumeOffset = 0;
371
+ if (opts.overwrite && attempt === 0) {
372
+ await fs.unlink(partPath).catch(() => { });
373
+ }
374
+ else {
375
+ try {
376
+ const st = await fs.stat(partPath);
377
+ if (st.isFile() && st.size > 0 && st.size < file.byteSize) {
378
+ resumeOffset = st.size;
379
+ }
380
+ else if (st.isFile() && st.size >= file.byteSize) {
381
+ await fs.unlink(partPath).catch(() => { });
382
+ }
383
+ }
384
+ catch {
385
+ resumeOffset = 0;
386
+ }
387
+ }
388
+ const url = await opts.getUrl(lastExpiredUrl);
389
+ lastExpiredUrl = undefined;
390
+ const headers = {};
391
+ if (resumeOffset > 0) {
392
+ headers.Range = `bytes=${resumeOffset}-`;
393
+ }
394
+ const resp = await this.fetchImpl(url, { headers, signal: opts.signal });
395
+ if (resp.status === 403) {
396
+ await resp.body?.cancel().catch(() => { });
397
+ throw new PresignedUrlExpiredError(url);
398
+ }
399
+ if (resp.status === 416 && resumeOffset > 0) {
400
+ await resp.body?.cancel().catch(() => { });
401
+ await fs.unlink(partPath).catch(() => { });
402
+ throw new RangeRestartError(`HTTP 416 Range not satisfiable for ${file.name}; restarting from byte 0`);
403
+ }
404
+ if (!resp.ok) {
405
+ await resp.body?.cancel().catch(() => { });
406
+ throw new Error(`HTTP ${resp.status} downloading ${file.name}`);
407
+ }
408
+ let appendMode = false;
409
+ if (resumeOffset > 0) {
410
+ if (resp.status === 206) {
411
+ const cr = parseContentRange(resp.headers.get("content-range"));
412
+ if (cr && cr.start === resumeOffset && (cr.total === -1 || cr.total === file.byteSize)) {
413
+ appendMode = true;
414
+ }
415
+ else {
416
+ await resp.body?.cancel().catch(() => { });
417
+ await fs.unlink(partPath).catch(() => { });
418
+ throw new RangeRestartError(`Mismatched Content-Range for ${file.name}; restarting from byte 0`);
419
+ }
420
+ }
421
+ else if (resp.status === 200) {
422
+ resumeOffset = 0;
423
+ appendMode = false;
424
+ }
425
+ }
426
+ file.downloadedBytes = resumeOffset;
427
+ if (!resp.body) {
428
+ if (file.byteSize === 0) {
429
+ await fs.writeFile(partPath, Buffer.alloc(0), { mode: 0o644 });
430
+ }
431
+ else {
432
+ throw new Error(`Empty response body downloading ${file.name}`);
433
+ }
434
+ }
435
+ else {
436
+ const ws = createWriteStream(partPath, {
437
+ flags: appendMode ? "a" : "w",
438
+ mode: 0o644,
439
+ });
440
+ const nodeReadable = Readable.fromWeb(resp.body);
441
+ const progressTransform = new Transform({
442
+ transform(chunk, _encoding, callback) {
443
+ const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
444
+ file.downloadedBytes += buf.byteLength;
445
+ Promise.resolve(opts.onChunk())
446
+ .then(() => callback(null, buf))
447
+ .catch((e) => callback(e instanceof Error ? e : new Error(String(e))));
448
+ },
449
+ });
450
+ await pipeline(nodeReadable, progressTransform, ws, { signal: opts.signal });
451
+ }
452
+ const finalStat = await fs.stat(partPath);
453
+ if (finalStat.size !== file.byteSize) {
454
+ throw new Error(`Incomplete download for ${file.name}: expected ${file.byteSize} bytes, got ${finalStat.size}`);
455
+ }
456
+ // Flush to disk before atomic rename into final Resolve-ready location
457
+ const fh = await fs.open(partPath, "r+");
458
+ try {
459
+ await fh.sync();
460
+ }
461
+ finally {
462
+ await fh.close();
463
+ }
464
+ await fs.rename(partPath, file.localPath);
465
+ return;
466
+ }
467
+ catch (err) {
468
+ lastError = err;
469
+ if (opts.signal.aborted)
470
+ throw err;
471
+ if (err instanceof PresignedUrlExpiredError) {
472
+ lastExpiredUrl = err.failedUrl;
473
+ }
474
+ if (attempt >= MAX_FILE_RETRIES) {
475
+ throw err;
476
+ }
477
+ const delayMs = err instanceof PresignedUrlExpiredError || err instanceof RangeRestartError
478
+ ? 50
479
+ : this.retryBaseDelayMs * 2 ** attempt;
480
+ await abortableSleep(delayMs, opts.signal);
481
+ }
482
+ }
483
+ throw lastError ?? new Error(`Failed downloading ${file.name} after retries.`);
484
+ }
485
+ }
@@ -0,0 +1,31 @@
1
+ export declare function normalizeOrigin(raw?: string | null): string;
2
+ export declare function parseIsoToMs(iso: string, fieldName?: string): number;
3
+ /**
4
+ * Parse a Marker timecode ("HH:MM:SS", "HH:MM:SS.mmm", "MM:SS", or raw seconds like "95.5") into milliseconds.
5
+ */
6
+ export declare function parseTimecodeToMs(raw: string): number;
7
+ export declare function formatBytes(bytes: number): string;
8
+ export declare function sanitizeFolderSegment(raw: string): string;
9
+ export declare function buildSessionFolderName(session: {
10
+ id: string;
11
+ title: string;
12
+ startedAtMs?: number | null;
13
+ createdAt?: number | null;
14
+ }): string;
15
+ export declare function formatScheduledTimeUtc(ms: number): string;
16
+ export declare function buildInviteBlurb(input: {
17
+ sessionTitle: string;
18
+ hostName: string;
19
+ guestName?: string | null;
20
+ scheduledStartAtMs?: number | null;
21
+ inviteUrl: string;
22
+ }): string;
23
+ export declare function buildSessionIcs(input: {
24
+ sessionId: string;
25
+ sessionTitle: string;
26
+ hostName: string;
27
+ roomName: string;
28
+ scheduledStartAtMs: number;
29
+ inviteUrl: string;
30
+ durationMinutes?: number;
31
+ }): string;