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!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
docs(api): describe file parsing and exports without asking for credentials
Amruth Pillaic6a7b1d3be08
diff --git a/docs/spec.json b/docs/spec.jsonindex 812db6e72..5d2b2d7f6 100644--- a/docs/spec.json+++ b/docs/spec.json@@ -234,7 +234,7 @@"post": {"operationId": "parseResumePdf","summary": "Parse a PDF file into resume data",- "description": "Extracts structured resume data from a PDF file using the specified AI provider. The file should be sent as a base64-encoded string along with AI provider credentials. Returns a complete ResumeData object. Requires authentication.",+ "description": "Extracts structured resume data from a PDF file with one of the user's saved AI providers: the one named by `aiProviderId`, or their default. Send the file as a base64-encoded string. Returns a complete ResumeData object and saves nothing.","tags": ["AI"],@@ -4682,7 +4682,7 @@"post": {"operationId": "parseResumeDocx","summary": "Parse a DOCX file into resume data",- "description": "Extracts structured resume data from a DOCX or DOC file using the specified AI provider. The file should be sent as a base64-encoded string along with AI provider credentials and the document's media type. Returns a complete ResumeData object. Requires authentication.",+ "description": "Extracts structured resume data from a DOCX or DOC file with one of the user's saved AI providers: the one named by `aiProviderId`, or their default. Send the file as a base64-encoded string with the document's media type. Returns a complete ResumeData object and saves nothing.","tags": ["AI"],@@ -85076,6 +85076,7 @@"get": {"operationId": "exportResumeFile","summary": "Download a resume in PDF, DOCX, Markdown or JSON",+ "description": "Renders the resume as a file in the chosen format.","tags": ["Resumes"],@@ -85180,7 +85181,7 @@"get": {"operationId": "exportCoverLetterFile","summary": "Download a cover letter in PDF, DOCX, Markdown or JSON",- "description": "Uses live linked sender/design details. Structured letter greetings default to English; supply words to localize them. Dates use the document locale.",+ "description": "Renders the cover letter as a file in the chosen format. Linked sender details and design come live from its resume. Structured letter greetings default to English; pass `words` to localize them. Dates use the document's locale.","tags": ["Cover Letters"],@@ -104428,7 +104429,7 @@"post": {"operationId": "createPdfParse","summary": "Parse a PDF file into resume data",- "description": "Extracts structured resume data from a PDF file using the specified AI provider. The file should be sent as a base64-encoded string along with AI provider credentials. Returns a complete ResumeData object. Requires authentication.",+ "description": "Extracts structured resume data from a PDF file with one of the user's saved AI providers: the one named by `aiProviderId`, or their default. Send the file as a base64-encoded string. Returns a complete ResumeData object and saves nothing.","tags": ["AI"],@@ -108876,7 +108877,7 @@"post": {"operationId": "createDocxParse","summary": "Parse a DOCX file into resume data",- "description": "Extracts structured resume data from a DOCX or DOC file using the specified AI provider. The file should be sent as a base64-encoded string along with AI provider credentials and the document's media type. Returns a complete ResumeData object. Requires authentication.",+ "description": "Extracts structured resume data from a DOCX or DOC file with one of the user's saved AI providers: the one named by `aiProviderId`, or their default. Send the file as a base64-encoded string with the document's media type. Returns a complete ResumeData object and saves nothing.","tags": ["AI"],diff --git a/packages/api/src/features/ai/router.ts b/packages/api/src/features/ai/router.tsindex 3af32fa70..d7edac455 100644--- a/packages/api/src/features/ai/router.ts+++ b/packages/api/src/features/ai/router.ts@@ -51,7 +51,7 @@ export const aiRouter = {operationId: "parseResumePdf",summary: "Parse a PDF file into resume data",description:- "Extracts structured resume data from a PDF file using the specified AI provider. The file should be sent as a base64-encoded string along with AI provider credentials. Returns a complete ResumeData object. Requires authentication.",+ "Extracts structured resume data from a PDF file with one of the user's saved AI providers: the one named by `aiProviderId`, or their default. Send the file as a base64-encoded string. Returns a complete ResumeData object and saves nothing.",successDescription: "The PDF was successfully parsed into structured resume data.",}).input(z.object({ aiProviderId: z.string().optional(), file: fileInputSchema }))@@ -81,7 +81,7 @@ export const aiRouter = {operationId: "parseResumeDocx",summary: "Parse a DOCX file into resume data",description:- "Extracts structured resume data from a DOCX or DOC file using the specified AI provider. The file should be sent as a base64-encoded string along with AI provider credentials and the document's media type. Returns a complete ResumeData object. Requires authentication.",+ "Extracts structured resume data from a DOCX or DOC file with one of the user's saved AI providers: the one named by `aiProviderId`, or their default. Send the file as a base64-encoded string with the document's media type. Returns a complete ResumeData object and saves nothing.",successDescription: "The DOCX was successfully parsed into structured resume data.",}).input(diff --git a/packages/api/src/features/documents/exports.ts b/packages/api/src/features/documents/exports.tsindex b1b24fcc4..37043fa9f 100644--- a/packages/api/src/features/documents/exports.ts+++ b/packages/api/src/features/documents/exports.ts@@ -61,6 +61,7 @@ export const documentExports = {tags: ["Resumes"],operationId: "exportResumeFile",summary: "Download a resume in PDF, DOCX, Markdown or JSON",+ description: "Renders the resume as a file in the chosen format.",outputStructure: "detailed",}).input(exportInput)@@ -78,7 +79,7 @@ export const documentExports = {operationId: "exportCoverLetterFile",summary: "Download a cover letter in PDF, DOCX, Markdown or JSON",description:- "Uses live linked sender/design details. Structured letter greetings default to English; supply words to localize them. Dates use the document locale.",+ "Renders the cover letter as a file in the chosen format. Linked sender details and design come live from its resume. Structured letter greetings default to English; pass `words` to localize them. Dates use the document's locale.",outputStructure: "detailed",}).input(diff --git a/packages/mcp/src/parity.ts b/packages/mcp/src/parity.tsindex 471baaae3..ed1c99041 100644--- a/packages/mcp/src/parity.ts+++ b/packages/mcp/src/parity.ts@@ -317,7 +317,7 @@ export const PARITY_TOOL_META: Record<parityToolName(path),{title,- description: `${sentence(PARITY_TOOL_DESCRIPTIONS[path] ?? route.description ?? route.summary ?? path)}${path.startsWith("agent.messages.") && streamingPaths.has(path) ? " Returns collected stream chunks, at most 500,000 characters; use the thread getter to retrieve persisted assistant replies." : ""}${exportPaths.has(path) ? " Returns an authenticated REST download URL; send the same bearer token or API key to download. Rendering occurs when downloaded." : ""}`,+ description: `${sentence(PARITY_TOOL_DESCRIPTIONS[path] ?? route.description ?? route.summary ?? path)}${path.startsWith("agent.messages.") && streamingPaths.has(path) ? " Returns collected stream chunks, at most 500,000 characters; use the thread getter to retrieve persisted assistant replies." : ""}${exportPaths.has(path) ? " Returns a download link rather than the file. Opening it requires authentication as this account, so it suits API clients; the file is rendered when the link is opened." : ""}${path === "rest.documentExports.resume" ? " For a PDF link the user can open directly, use `download_resume_pdf`." : ""}`,inputSchema: contract.inputSchema,outputSchema: contract.outputSchema,annotations: {