Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix: typecheck

Amruth Pillai152279473355
diff --git a/packages/api/src/features/resume/export.ts b/packages/api/src/features/resume/export.ts
index d30492942..701b6e5f4 100644
--- a/packages/api/src/features/resume/export.ts
+++ b/packages/api/src/features/resume/export.ts
@@ -9,7 +9,6 @@ import { resumeService } from "./service";
export {
createResumePdfDownloadUrl,
MAX_PDF_DOWNLOAD_URL_TTL_SECONDS,
- PDF_DOWNLOAD_URL_EXPIRES_IN_SECONDS,
verifyResumePdfDownloadToken,
} from "./pdf-download-url";
diff --git a/packages/api/src/features/resume/pdf-download-url.ts b/packages/api/src/features/resume/pdf-download-url.ts
index b9ff29883..54f783f42 100644
--- a/packages/api/src/features/resume/pdf-download-url.ts
+++ b/packages/api/src/features/resume/pdf-download-url.ts
@@ -1,7 +1,7 @@
import { createHmac, timingSafeEqual } from "node:crypto";
import { env } from "@reactive-resume/env/server";
-const MAX_PDF_DOWNLOAD_URL_TTL_SECONDS = 10 * 60;
+export const MAX_PDF_DOWNLOAD_URL_TTL_SECONDS = 10 * 60;
type PdfDownloadTokenPayload = {
v: 1;
diff --git a/packages/mcp/src/tools.ts b/packages/mcp/src/tools.ts
index cd5d6404c..81eba31a8 100644
--- a/packages/mcp/src/tools.ts
+++ b/packages/mcp/src/tools.ts
@@ -7,7 +7,7 @@ import { resumePatchOperationsSchema } from "@reactive-resume/ai/tools/resume-to
import { resolveUserFromRequestHeaders } from "@reactive-resume/api/context";
import {
createResumePdfDownloadUrl,
- PDF_DOWNLOAD_URL_EXPIRES_IN_SECONDS,
+ MAX_PDF_DOWNLOAD_URL_TTL_SECONDS,
} from "@reactive-resume/api/features/resume/export";
import { env } from "@reactive-resume/env/server";
import { resumeDataSchema } from "@reactive-resume/schema/resume/data";
@@ -206,7 +206,7 @@ export function registerTools(server: McpServer, client: RouterClient<typeof rou
title: "Download Resume PDF",
description: [
"Create a short-lived authenticated URL for downloading a resume as a PDF.",
- `The URL expires in ${PDF_DOWNLOAD_URL_EXPIRES_IN_SECONDS / 60} minutes and should be used immediately.`,
+ `The URL expires in ${MAX_PDF_DOWNLOAD_URL_TTL_SECONDS / 60} minutes and should be used immediately.`,
"Returns JSON containing: resumeId, name, downloadUrl, expiresAt, expiresInSeconds, contentType.",
`Use \`${T.listResumes}\` first to find valid IDs.`,
].join("\n"),