@keystrokehq/pdf_co 0.1.4 → 0.1.6
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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/account-balance-info.cjs +1 -0
- package/dist/actions/account-balance-info.cjs.map +1 -1
- package/dist/actions/account-balance-info.d.cts +3 -1
- package/dist/actions/account-balance-info.d.cts.map +1 -1
- package/dist/actions/account-balance-info.d.mts +3 -1
- package/dist/actions/account-balance-info.d.mts.map +1 -1
- package/dist/actions/account-balance-info.mjs +1 -0
- package/dist/actions/account-balance-info.mjs.map +1 -1
- package/dist/actions/convert-excel-to-csv.cjs +1 -0
- package/dist/actions/convert-excel-to-csv.cjs.map +1 -1
- package/dist/actions/convert-excel-to-csv.d.cts +3 -8
- package/dist/actions/convert-excel-to-csv.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-csv.d.mts +3 -8
- package/dist/actions/convert-excel-to-csv.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-csv.mjs +1 -0
- package/dist/actions/convert-excel-to-csv.mjs.map +1 -1
- package/dist/actions/convert-excel-to-html.cjs +1 -0
- package/dist/actions/convert-excel-to-html.cjs.map +1 -1
- package/dist/actions/convert-excel-to-html.d.cts +3 -6
- package/dist/actions/convert-excel-to-html.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-html.d.mts +3 -6
- package/dist/actions/convert-excel-to-html.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-html.mjs +1 -0
- package/dist/actions/convert-excel-to-html.mjs.map +1 -1
- package/dist/actions/convert-excel-to-json.cjs +1 -0
- package/dist/actions/convert-excel-to-json.cjs.map +1 -1
- package/dist/actions/convert-excel-to-json.d.cts +3 -7
- package/dist/actions/convert-excel-to-json.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-json.d.mts +3 -7
- package/dist/actions/convert-excel-to-json.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-json.mjs +1 -0
- package/dist/actions/convert-excel-to-json.mjs.map +1 -1
- package/dist/actions/convert-excel-to-text.cjs +1 -0
- package/dist/actions/convert-excel-to-text.cjs.map +1 -1
- package/dist/actions/convert-excel-to-text.d.cts +3 -9
- package/dist/actions/convert-excel-to-text.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-text.d.mts +3 -9
- package/dist/actions/convert-excel-to-text.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-text.mjs +1 -0
- package/dist/actions/convert-excel-to-text.mjs.map +1 -1
- package/dist/actions/convert-excel-to-xml.cjs +1 -0
- package/dist/actions/convert-excel-to-xml.cjs.map +1 -1
- package/dist/actions/convert-excel-to-xml.d.cts +3 -18
- package/dist/actions/convert-excel-to-xml.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-xml.d.mts +3 -18
- package/dist/actions/convert-excel-to-xml.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-xml.mjs +1 -0
- package/dist/actions/convert-excel-to-xml.mjs.map +1 -1
- package/dist/actions/document-parser.cjs +1 -0
- package/dist/actions/document-parser.cjs.map +1 -1
- package/dist/actions/document-parser.d.cts +3 -11
- package/dist/actions/document-parser.d.cts.map +1 -1
- package/dist/actions/document-parser.d.mts +3 -11
- package/dist/actions/document-parser.d.mts.map +1 -1
- package/dist/actions/document-parser.mjs +1 -0
- package/dist/actions/document-parser.mjs.map +1 -1
- package/dist/actions/file-upload.cjs +1 -0
- package/dist/actions/file-upload.cjs.map +1 -1
- package/dist/actions/file-upload.d.cts +3 -10
- package/dist/actions/file-upload.d.cts.map +1 -1
- package/dist/actions/file-upload.d.mts +3 -10
- package/dist/actions/file-upload.d.mts.map +1 -1
- package/dist/actions/file-upload.mjs +1 -0
- package/dist/actions/file-upload.mjs.map +1 -1
- package/dist/actions/job-check.cjs +1 -0
- package/dist/actions/job-check.cjs.map +1 -1
- package/dist/actions/job-check.d.cts +3 -4
- package/dist/actions/job-check.d.cts.map +1 -1
- package/dist/actions/job-check.d.mts +3 -4
- package/dist/actions/job-check.d.mts.map +1 -1
- package/dist/actions/job-check.mjs +1 -0
- package/dist/actions/job-check.mjs.map +1 -1
- package/dist/actions/pdf-add.cjs +1 -0
- package/dist/actions/pdf-add.cjs.map +1 -1
- package/dist/actions/pdf-add.d.cts +3 -8
- package/dist/actions/pdf-add.d.cts.map +1 -1
- package/dist/actions/pdf-add.d.mts +3 -8
- package/dist/actions/pdf-add.d.mts.map +1 -1
- package/dist/actions/pdf-add.mjs +1 -0
- package/dist/actions/pdf-add.mjs.map +1 -1
- package/dist/actions/pdf-change-text-searchable.cjs +1 -0
- package/dist/actions/pdf-change-text-searchable.cjs.map +1 -1
- package/dist/actions/pdf-change-text-searchable.d.cts +3 -9
- package/dist/actions/pdf-change-text-searchable.d.cts.map +1 -1
- package/dist/actions/pdf-change-text-searchable.d.mts +3 -9
- package/dist/actions/pdf-change-text-searchable.d.mts.map +1 -1
- package/dist/actions/pdf-change-text-searchable.mjs +1 -0
- package/dist/actions/pdf-change-text-searchable.mjs.map +1 -1
- package/dist/actions/pdf-delete-pages.cjs +1 -0
- package/dist/actions/pdf-delete-pages.cjs.map +1 -1
- package/dist/actions/pdf-delete-pages.d.cts +3 -8
- package/dist/actions/pdf-delete-pages.d.cts.map +1 -1
- package/dist/actions/pdf-delete-pages.d.mts +3 -8
- package/dist/actions/pdf-delete-pages.d.mts.map +1 -1
- package/dist/actions/pdf-delete-pages.mjs +1 -0
- package/dist/actions/pdf-delete-pages.mjs.map +1 -1
- package/dist/actions/pdf-extract-attachments.cjs +1 -0
- package/dist/actions/pdf-extract-attachments.cjs.map +1 -1
- package/dist/actions/pdf-extract-attachments.d.cts +3 -10
- package/dist/actions/pdf-extract-attachments.d.cts.map +1 -1
- package/dist/actions/pdf-extract-attachments.d.mts +3 -10
- package/dist/actions/pdf-extract-attachments.d.mts.map +1 -1
- package/dist/actions/pdf-extract-attachments.mjs +1 -0
- package/dist/actions/pdf-extract-attachments.mjs.map +1 -1
- package/dist/actions/pdf-find.cjs +1 -0
- package/dist/actions/pdf-find.cjs.map +1 -1
- package/dist/actions/pdf-find.d.cts +3 -9
- package/dist/actions/pdf-find.d.cts.map +1 -1
- package/dist/actions/pdf-find.d.mts +3 -9
- package/dist/actions/pdf-find.d.mts.map +1 -1
- package/dist/actions/pdf-find.mjs +1 -0
- package/dist/actions/pdf-find.mjs.map +1 -1
- package/dist/actions/pdf-forms-info-reader.cjs +1 -0
- package/dist/actions/pdf-forms-info-reader.cjs.map +1 -1
- package/dist/actions/pdf-forms-info-reader.d.cts +3 -5
- package/dist/actions/pdf-forms-info-reader.d.cts.map +1 -1
- package/dist/actions/pdf-forms-info-reader.d.mts +3 -5
- package/dist/actions/pdf-forms-info-reader.d.mts.map +1 -1
- package/dist/actions/pdf-forms-info-reader.mjs +1 -0
- package/dist/actions/pdf-forms-info-reader.mjs.map +1 -1
- package/dist/actions/pdf-from-document-txt.cjs +1 -0
- package/dist/actions/pdf-from-document-txt.cjs.map +1 -1
- package/dist/actions/pdf-from-document-txt.d.cts +3 -6
- package/dist/actions/pdf-from-document-txt.d.cts.map +1 -1
- package/dist/actions/pdf-from-document-txt.d.mts +3 -6
- package/dist/actions/pdf-from-document-txt.d.mts.map +1 -1
- package/dist/actions/pdf-from-document-txt.mjs +1 -0
- package/dist/actions/pdf-from-document-txt.mjs.map +1 -1
- package/dist/actions/pdf-from-email.cjs +1 -0
- package/dist/actions/pdf-from-email.cjs.map +1 -1
- package/dist/actions/pdf-from-email.d.cts +3 -6
- package/dist/actions/pdf-from-email.d.cts.map +1 -1
- package/dist/actions/pdf-from-email.d.mts +3 -6
- package/dist/actions/pdf-from-email.d.mts.map +1 -1
- package/dist/actions/pdf-from-email.mjs +1 -0
- package/dist/actions/pdf-from-email.mjs.map +1 -1
- package/dist/actions/pdf-from-html.cjs +1 -0
- package/dist/actions/pdf-from-html.cjs.map +1 -1
- package/dist/actions/pdf-from-html.d.cts +3 -16
- package/dist/actions/pdf-from-html.d.cts.map +1 -1
- package/dist/actions/pdf-from-html.d.mts +3 -16
- package/dist/actions/pdf-from-html.d.mts.map +1 -1
- package/dist/actions/pdf-from-html.mjs +1 -0
- package/dist/actions/pdf-from-html.mjs.map +1 -1
- package/dist/actions/pdf-info-reader.cjs +1 -0
- package/dist/actions/pdf-info-reader.cjs.map +1 -1
- package/dist/actions/pdf-info-reader.d.cts +3 -3
- package/dist/actions/pdf-info-reader.d.cts.map +1 -1
- package/dist/actions/pdf-info-reader.d.mts +3 -3
- package/dist/actions/pdf-info-reader.d.mts.map +1 -1
- package/dist/actions/pdf-info-reader.mjs +1 -0
- package/dist/actions/pdf-info-reader.mjs.map +1 -1
- package/dist/actions/pdf-merge.cjs +1 -0
- package/dist/actions/pdf-merge.cjs.map +1 -1
- package/dist/actions/pdf-merge.d.cts +3 -6
- package/dist/actions/pdf-merge.d.cts.map +1 -1
- package/dist/actions/pdf-merge.d.mts +3 -6
- package/dist/actions/pdf-merge.d.mts.map +1 -1
- package/dist/actions/pdf-merge.mjs +1 -0
- package/dist/actions/pdf-merge.mjs.map +1 -1
- package/dist/actions/pdf-rotate.cjs +1 -0
- package/dist/actions/pdf-rotate.cjs.map +1 -1
- package/dist/actions/pdf-rotate.d.cts +3 -8
- package/dist/actions/pdf-rotate.d.cts.map +1 -1
- package/dist/actions/pdf-rotate.d.mts +3 -8
- package/dist/actions/pdf-rotate.d.mts.map +1 -1
- package/dist/actions/pdf-rotate.mjs +1 -0
- package/dist/actions/pdf-rotate.mjs.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.cjs +1 -0
- package/dist/actions/pdf-search-and-delete-text.cjs.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.d.cts +3 -10
- package/dist/actions/pdf-search-and-delete-text.d.cts.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.d.mts +3 -10
- package/dist/actions/pdf-search-and-delete-text.d.mts.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.mjs +1 -0
- package/dist/actions/pdf-search-and-delete-text.mjs.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.cjs +1 -0
- package/dist/actions/pdf-search-and-replace-text.cjs.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.d.cts +3 -9
- package/dist/actions/pdf-search-and-replace-text.d.cts.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.d.mts +3 -9
- package/dist/actions/pdf-search-and-replace-text.d.mts.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.mjs +1 -0
- package/dist/actions/pdf-search-and-replace-text.mjs.map +1 -1
- package/dist/actions/pdf-split.cjs +1 -0
- package/dist/actions/pdf-split.cjs.map +1 -1
- package/dist/actions/pdf-split.d.cts +3 -22
- package/dist/actions/pdf-split.d.cts.map +1 -1
- package/dist/actions/pdf-split.d.mts +3 -22
- package/dist/actions/pdf-split.d.mts.map +1 -1
- package/dist/actions/pdf-split.mjs +1 -0
- package/dist/actions/pdf-split.mjs.map +1 -1
- package/dist/actions/pdf-to-csv.cjs +1 -0
- package/dist/actions/pdf-to-csv.cjs.map +1 -1
- package/dist/actions/pdf-to-csv.d.cts +3 -11
- package/dist/actions/pdf-to-csv.d.cts.map +1 -1
- package/dist/actions/pdf-to-csv.d.mts +3 -11
- package/dist/actions/pdf-to-csv.d.mts.map +1 -1
- package/dist/actions/pdf-to-csv.mjs +1 -0
- package/dist/actions/pdf-to-csv.mjs.map +1 -1
- package/dist/actions/pdf-to-html.cjs +1 -0
- package/dist/actions/pdf-to-html.cjs.map +1 -1
- package/dist/actions/pdf-to-html.d.cts +3 -11
- package/dist/actions/pdf-to-html.d.cts.map +1 -1
- package/dist/actions/pdf-to-html.d.mts +3 -11
- package/dist/actions/pdf-to-html.d.mts.map +1 -1
- package/dist/actions/pdf-to-html.mjs +1 -0
- package/dist/actions/pdf-to-html.mjs.map +1 -1
- package/dist/actions/pdf-to-image.cjs +1 -0
- package/dist/actions/pdf-to-image.cjs.map +1 -1
- package/dist/actions/pdf-to-image.d.cts +3 -9
- package/dist/actions/pdf-to-image.d.cts.map +1 -1
- package/dist/actions/pdf-to-image.d.mts +3 -9
- package/dist/actions/pdf-to-image.d.mts.map +1 -1
- package/dist/actions/pdf-to-image.mjs +1 -0
- package/dist/actions/pdf-to-image.mjs.map +1 -1
- package/dist/actions/pdf-to-json.cjs +1 -0
- package/dist/actions/pdf-to-json.cjs.map +1 -1
- package/dist/actions/pdf-to-json.d.cts +3 -11
- package/dist/actions/pdf-to-json.d.cts.map +1 -1
- package/dist/actions/pdf-to-json.d.mts +3 -11
- package/dist/actions/pdf-to-json.d.mts.map +1 -1
- package/dist/actions/pdf-to-json.mjs +1 -0
- package/dist/actions/pdf-to-json.mjs.map +1 -1
- package/dist/actions/pdf-to-text.cjs +1 -0
- package/dist/actions/pdf-to-text.cjs.map +1 -1
- package/dist/actions/pdf-to-text.d.cts +3 -16
- package/dist/actions/pdf-to-text.d.cts.map +1 -1
- package/dist/actions/pdf-to-text.d.mts +3 -16
- package/dist/actions/pdf-to-text.d.mts.map +1 -1
- package/dist/actions/pdf-to-text.mjs +1 -0
- package/dist/actions/pdf-to-text.mjs.map +1 -1
- package/dist/actions/pdf-to-xls.cjs +1 -0
- package/dist/actions/pdf-to-xls.cjs.map +1 -1
- package/dist/actions/pdf-to-xls.d.cts +3 -8
- package/dist/actions/pdf-to-xls.d.cts.map +1 -1
- package/dist/actions/pdf-to-xls.d.mts +3 -8
- package/dist/actions/pdf-to-xls.d.mts.map +1 -1
- package/dist/actions/pdf-to-xls.mjs +1 -0
- package/dist/actions/pdf-to-xls.mjs.map +1 -1
- package/dist/actions/pdf-to-xlsx.cjs +1 -0
- package/dist/actions/pdf-to-xlsx.cjs.map +1 -1
- package/dist/actions/pdf-to-xlsx.d.cts +3 -13
- package/dist/actions/pdf-to-xlsx.d.cts.map +1 -1
- package/dist/actions/pdf-to-xlsx.d.mts +3 -13
- package/dist/actions/pdf-to-xlsx.d.mts.map +1 -1
- package/dist/actions/pdf-to-xlsx.mjs +1 -0
- package/dist/actions/pdf-to-xlsx.mjs.map +1 -1
- package/dist/actions/pdf-to-xml.cjs +1 -0
- package/dist/actions/pdf-to-xml.cjs.map +1 -1
- package/dist/actions/pdf-to-xml.d.cts +3 -7
- package/dist/actions/pdf-to-xml.d.cts.map +1 -1
- package/dist/actions/pdf-to-xml.d.mts +3 -7
- package/dist/actions/pdf-to-xml.d.mts.map +1 -1
- package/dist/actions/pdf-to-xml.mjs +1 -0
- package/dist/actions/pdf-to-xml.mjs.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.cjs +1 -0
- package/dist/actions/pdfco-post-barcode-generate.cjs.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.d.cts +3 -15
- package/dist/actions/pdfco-post-barcode-generate.d.cts.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.d.mts +3 -15
- package/dist/actions/pdfco-post-barcode-generate.d.mts.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.mjs +1 -0
- package/dist/actions/pdfco-post-barcode-generate.mjs.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.cjs +1 -0
- package/dist/actions/pdfco-post-file-upload-base64.cjs.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.d.cts +3 -5
- package/dist/actions/pdfco-post-file-upload-base64.d.cts.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.d.mts +3 -5
- package/dist/actions/pdfco-post-file-upload-base64.d.mts.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.mjs +1 -0
- package/dist/actions/pdfco-post-file-upload-base64.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-html.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-html.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToHtmlInput = z.object({\n url: z.string().describe(\"URL to the source PDF file. Must be a publicly accessible HTTP/HTTPS URL (without authentication) or a file previously uploaded to PDF.co storage. Local file paths (file:// URLs) are not supported - use the PDF_CO_FILE_UPLOAD action first to upload local files to PDF.co, then use the returned URL here.\").optional(),\n file: z.string().describe(\"Binary content of the PDF file to upload as an alternative to 'url'.\").optional(),\n name: z.string().describe(\"Desired name for the resulting HTML file (e.g., 'result.html').\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '0,2-4').\").optional(),\n inline: z.boolean().default(false).describe(\"If true, returns raw HTML in the 'body' field instead of a URL link.\").optional(),\n encrypt: z.boolean().default(false).describe(\"Whether to encrypt the output HTML file.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Additional conversion profiles as a JSON string.\").optional(),\n run_async: z.boolean().default(false).describe(\"Set to true to run the conversion asynchronously.\").optional(),\n}).describe(\"Request schema for converting a PDF (or scanned image) to HTML format.\");\nexport const PdfCoPdfToHtmlOutput = z.object({\n url: z.string().describe(\"URL of the generated HTML file (present if inline=false).\").nullable().optional(),\n body: z.string().describe(\"Raw HTML output (present if inline=true).\").nullable().optional(),\n name: z.string().describe(\"Name of the generated file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred, otherwise False.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n credits: z.number().int().describe(\"API credits consumed by this call.\").nullable().optional(),\n message: z.string().describe(\"Status or error message from the API.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of API credits left.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for PDF to HTML conversion.\");\n\nexport const pdfCoPdfToHtml = action(\"PDF_CO_PDF_TO_HTML\", {\n slug: \"pdf_co-pdf-to-html\",\n name: \"Convert PDF to HTML\",\n description: \"Tool to convert PDF documents to HTML. Use when you need an HTML rendition of a PDF or scanned image.\",\n input: PdfCoPdfToHtmlInput,\n output: PdfCoPdfToHtmlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-html.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-html.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToHtmlInput = z.object({\n url: z.string().describe(\"URL to the source PDF file. Must be a publicly accessible HTTP/HTTPS URL (without authentication) or a file previously uploaded to PDF.co storage. Local file paths (file:// URLs) are not supported - use the PDF_CO_FILE_UPLOAD action first to upload local files to PDF.co, then use the returned URL here.\").optional(),\n file: z.string().describe(\"Binary content of the PDF file to upload as an alternative to 'url'.\").optional(),\n name: z.string().describe(\"Desired name for the resulting HTML file (e.g., 'result.html').\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '0,2-4').\").optional(),\n inline: z.boolean().default(false).describe(\"If true, returns raw HTML in the 'body' field instead of a URL link.\").optional(),\n encrypt: z.boolean().default(false).describe(\"Whether to encrypt the output HTML file.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Additional conversion profiles as a JSON string.\").optional(),\n run_async: z.boolean().default(false).describe(\"Set to true to run the conversion asynchronously.\").optional(),\n}).describe(\"Request schema for converting a PDF (or scanned image) to HTML format.\");\nexport const PdfCoPdfToHtmlOutput = z.object({\n url: z.string().describe(\"URL of the generated HTML file (present if inline=false).\").nullable().optional(),\n body: z.string().describe(\"Raw HTML output (present if inline=true).\").nullable().optional(),\n name: z.string().describe(\"Name of the generated file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred, otherwise False.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n credits: z.number().int().describe(\"API credits consumed by this call.\").nullable().optional(),\n message: z.string().describe(\"Status or error message from the API.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of API credits left.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for PDF to HTML conversion.\");\n\nexport const pdfCoPdfToHtml: AppAction<\n typeof PdfCoPdfToHtmlInput,\n typeof PdfCoPdfToHtmlOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_HTML\", {\n slug: \"pdf_co-pdf-to-html\",\n name: \"Convert PDF to HTML\",\n description: \"Tool to convert PDF documents to HTML. Use when you need an HTML rendition of a PDF or scanned image.\",\n input: PdfCoPdfToHtmlInput,\n output: PdfCoPdfToHtmlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iTAAiT,CAAC,CAAC,SAAS;CACrV,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC7H,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,W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AA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-html.d.ts
|
|
@@ -23,17 +25,7 @@ declare const PdfCoPdfToHtmlOutput: z.ZodObject<{
|
|
|
23
25
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
26
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const pdfCoPdfToHtml:
|
|
27
|
-
url?: string | undefined;
|
|
28
|
-
file?: string | undefined;
|
|
29
|
-
name?: string | undefined;
|
|
30
|
-
pages?: string | undefined;
|
|
31
|
-
inline?: boolean | undefined;
|
|
32
|
-
encrypt?: boolean | undefined;
|
|
33
|
-
password?: string | undefined;
|
|
34
|
-
profiles?: string | undefined;
|
|
35
|
-
run_async?: boolean | undefined;
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const pdfCoPdfToHtml: AppAction<typeof PdfCoPdfToHtmlInput, typeof PdfCoPdfToHtmlOutput, typeof pdfCo.credential>;
|
|
37
29
|
//#endregion
|
|
38
30
|
export { pdfCoPdfToHtml };
|
|
39
31
|
//# sourceMappingURL=pdf-to-html.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-html.d.cts","names":[],"sources":["../../src/actions/pdf-to-html.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-html.d.cts","names":[],"sources":["../../src/actions/pdf-to-html.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-html.d.ts
|
|
@@ -23,17 +25,7 @@ declare const PdfCoPdfToHtmlOutput: z.ZodObject<{
|
|
|
23
25
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
26
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const pdfCoPdfToHtml:
|
|
27
|
-
url?: string | undefined;
|
|
28
|
-
file?: string | undefined;
|
|
29
|
-
name?: string | undefined;
|
|
30
|
-
pages?: string | undefined;
|
|
31
|
-
inline?: boolean | undefined;
|
|
32
|
-
encrypt?: boolean | undefined;
|
|
33
|
-
password?: string | undefined;
|
|
34
|
-
profiles?: string | undefined;
|
|
35
|
-
run_async?: boolean | undefined;
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const pdfCoPdfToHtml: AppAction<typeof PdfCoPdfToHtmlInput, typeof PdfCoPdfToHtmlOutput, typeof pdfCo.credential>;
|
|
37
29
|
//#endregion
|
|
38
30
|
export { pdfCoPdfToHtml };
|
|
39
31
|
//# sourceMappingURL=pdf-to-html.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-html.d.mts","names":[],"sources":["../../src/actions/pdf-to-html.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-html.d.mts","names":[],"sources":["../../src/actions/pdf-to-html.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-html.mjs","names":[],"sources":["../../src/actions/pdf-to-html.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToHtmlInput = z.object({\n url: z.string().describe(\"URL to the source PDF file. Must be a publicly accessible HTTP/HTTPS URL (without authentication) or a file previously uploaded to PDF.co storage. Local file paths (file:// URLs) are not supported - use the PDF_CO_FILE_UPLOAD action first to upload local files to PDF.co, then use the returned URL here.\").optional(),\n file: z.string().describe(\"Binary content of the PDF file to upload as an alternative to 'url'.\").optional(),\n name: z.string().describe(\"Desired name for the resulting HTML file (e.g., 'result.html').\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '0,2-4').\").optional(),\n inline: z.boolean().default(false).describe(\"If true, returns raw HTML in the 'body' field instead of a URL link.\").optional(),\n encrypt: z.boolean().default(false).describe(\"Whether to encrypt the output HTML file.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Additional conversion profiles as a JSON string.\").optional(),\n run_async: z.boolean().default(false).describe(\"Set to true to run the conversion asynchronously.\").optional(),\n}).describe(\"Request schema for converting a PDF (or scanned image) to HTML format.\");\nexport const PdfCoPdfToHtmlOutput = z.object({\n url: z.string().describe(\"URL of the generated HTML file (present if inline=false).\").nullable().optional(),\n body: z.string().describe(\"Raw HTML output (present if inline=true).\").nullable().optional(),\n name: z.string().describe(\"Name of the generated file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred, otherwise False.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n credits: z.number().int().describe(\"API credits consumed by this call.\").nullable().optional(),\n message: z.string().describe(\"Status or error message from the API.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of API credits left.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for PDF to HTML conversion.\");\n\nexport const pdfCoPdfToHtml = action(\"PDF_CO_PDF_TO_HTML\", {\n slug: \"pdf_co-pdf-to-html\",\n name: \"Convert PDF to HTML\",\n description: \"Tool to convert PDF documents to HTML. Use when you need an HTML rendition of a PDF or scanned image.\",\n input: PdfCoPdfToHtmlInput,\n output: PdfCoPdfToHtmlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-html.mjs","names":[],"sources":["../../src/actions/pdf-to-html.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToHtmlInput = z.object({\n url: z.string().describe(\"URL to the source PDF file. Must be a publicly accessible HTTP/HTTPS URL (without authentication) or a file previously uploaded to PDF.co storage. Local file paths (file:// URLs) are not supported - use the PDF_CO_FILE_UPLOAD action first to upload local files to PDF.co, then use the returned URL here.\").optional(),\n file: z.string().describe(\"Binary content of the PDF file to upload as an alternative to 'url'.\").optional(),\n name: z.string().describe(\"Desired name for the resulting HTML file (e.g., 'result.html').\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '0,2-4').\").optional(),\n inline: z.boolean().default(false).describe(\"If true, returns raw HTML in the 'body' field instead of a URL link.\").optional(),\n encrypt: z.boolean().default(false).describe(\"Whether to encrypt the output HTML file.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Additional conversion profiles as a JSON string.\").optional(),\n run_async: z.boolean().default(false).describe(\"Set to true to run the conversion asynchronously.\").optional(),\n}).describe(\"Request schema for converting a PDF (or scanned image) to HTML format.\");\nexport const PdfCoPdfToHtmlOutput = z.object({\n url: z.string().describe(\"URL of the generated HTML file (present if inline=false).\").nullable().optional(),\n body: z.string().describe(\"Raw HTML output (present if inline=true).\").nullable().optional(),\n name: z.string().describe(\"Name of the generated file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred, otherwise False.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n credits: z.number().int().describe(\"API credits consumed by this call.\").nullable().optional(),\n message: z.string().describe(\"Status or error message from the API.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of API credits left.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for PDF to HTML conversion.\");\n\nexport const pdfCoPdfToHtml: AppAction<\n typeof PdfCoPdfToHtmlInput,\n typeof PdfCoPdfToHtmlOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_HTML\", {\n slug: \"pdf_co-pdf-to-html\",\n name: \"Convert PDF to HTML\",\n description: \"Tool to convert PDF documents to HTML. Use when you need an HTML rendition of a PDF or scanned image.\",\n input: PdfCoPdfToHtmlInput,\n output: PdfCoPdfToHtmlOutput,\n});\n"],"mappings":";;;AA6BA,MAAa,iBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BiC,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iTAAiT,CAAC,CAAC,SAAS;EACrV,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC3G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC1G,QAAQ,EAAE,QAAQ,CAAC,CAAC,QA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F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-image.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToImageInput = z.object({\n dpi: z.number().int().describe(\"Resolution in DPI for the output images (1-300).\").optional(),\n url: z.string().describe(\"Link to the source PDF file.\"),\n async: z.boolean().default(false).describe(\"Run processing asynchronously. Returns jobId when true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to convert. For example: '1,3-5' to convert pages 1, 3, 4, and 5.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Custom JSON profiles for advanced conversion options.\").optional(),\n imageFormat: z.enum([\"PNG\", \"JPG\", \"TIFF\"]).describe(\"Output image format: PNG (default), JPG, or TIFF.\").optional(),\n}).describe(\"Request model for converting PDF pages to images.\");\nexport const PdfCoPdfToImageOutput = z.object({\n url: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for asynchronous processing.\").nullable().optional(),\n status: z.union([z.string(), z.number().int()]),\n message: z.string().describe(\"Detailed error or status message.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to image conversion.\");\n\nexport const pdfCoPdfToImage = action(\"PDF_CO_PDF_TO_IMAGE\", {\n slug: \"pdf_co-pdf-to-image\",\n name: \"Convert PDF to Image\",\n description: \"Tool to convert PDF pages to images (PNG, JPG, TIFF). Use when you need image previews of PDF content.\",\n input: PdfCoPdfToImageInput,\n output: PdfCoPdfToImageOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-image.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-image.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToImageInput = z.object({\n dpi: z.number().int().describe(\"Resolution in DPI for the output images (1-300).\").optional(),\n url: z.string().describe(\"Link to the source PDF file.\"),\n async: z.boolean().default(false).describe(\"Run processing asynchronously. Returns jobId when true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to convert. For example: '1,3-5' to convert pages 1, 3, 4, and 5.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Custom JSON profiles for advanced conversion options.\").optional(),\n imageFormat: z.enum([\"PNG\", \"JPG\", \"TIFF\"]).describe(\"Output image format: PNG (default), JPG, or TIFF.\").optional(),\n}).describe(\"Request model for converting PDF pages to images.\");\nexport const PdfCoPdfToImageOutput = z.object({\n url: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for asynchronous processing.\").nullable().optional(),\n status: z.union([z.string(), z.number().int()]),\n message: z.string().describe(\"Detailed error or status message.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to image conversion.\");\n\nexport const pdfCoPdfToImage: AppAction<\n typeof PdfCoPdfToImageInput,\n typeof PdfCoPdfToImageOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_IMAGE\", {\n slug: \"pdf_co-pdf-to-image\",\n name: \"Convert PDF to Image\",\n description: \"Tool to convert PDF pages to images (PNG, JPG, TIFF). Use when you need image previews of PDF content.\",\n input: PdfCoPdfToImageInput,\n output: PdfCoPdfToImageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,KAAKA,IAAAA,EAAE,OAAO,C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AAS,6CAA6C;AAEvE,MAAa,kBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-image.d.ts
|
|
@@ -21,15 +23,7 @@ declare const PdfCoPdfToImageOutput: z.ZodObject<{
|
|
|
21
23
|
status: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
22
24
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const pdfCoPdfToImage:
|
|
25
|
-
url: string;
|
|
26
|
-
dpi?: number | undefined;
|
|
27
|
-
async?: boolean | undefined;
|
|
28
|
-
pages?: string | undefined;
|
|
29
|
-
password?: string | undefined;
|
|
30
|
-
profiles?: string | undefined;
|
|
31
|
-
imageFormat?: "PNG" | "JPG" | "TIFF" | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const pdfCoPdfToImage: AppAction<typeof PdfCoPdfToImageInput, typeof PdfCoPdfToImageOutput, typeof pdfCo.credential>;
|
|
33
27
|
//#endregion
|
|
34
28
|
export { pdfCoPdfToImage };
|
|
35
29
|
//# sourceMappingURL=pdf-to-image.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-image.d.cts","names":[],"sources":["../../src/actions/pdf-to-image.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-image.d.cts","names":[],"sources":["../../src/actions/pdf-to-image.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cASpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;cAQrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-image.d.ts
|
|
@@ -21,15 +23,7 @@ declare const PdfCoPdfToImageOutput: z.ZodObject<{
|
|
|
21
23
|
status: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
22
24
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const pdfCoPdfToImage:
|
|
25
|
-
url: string;
|
|
26
|
-
dpi?: number | undefined;
|
|
27
|
-
async?: boolean | undefined;
|
|
28
|
-
pages?: string | undefined;
|
|
29
|
-
password?: string | undefined;
|
|
30
|
-
profiles?: string | undefined;
|
|
31
|
-
imageFormat?: "PNG" | "JPG" | "TIFF" | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const pdfCoPdfToImage: AppAction<typeof PdfCoPdfToImageInput, typeof PdfCoPdfToImageOutput, typeof pdfCo.credential>;
|
|
33
27
|
//#endregion
|
|
34
28
|
export { pdfCoPdfToImage };
|
|
35
29
|
//# sourceMappingURL=pdf-to-image.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-image.d.mts","names":[],"sources":["../../src/actions/pdf-to-image.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-image.d.mts","names":[],"sources":["../../src/actions/pdf-to-image.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cASpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;cAQrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-image.mjs","names":[],"sources":["../../src/actions/pdf-to-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToImageInput = z.object({\n dpi: z.number().int().describe(\"Resolution in DPI for the output images (1-300).\").optional(),\n url: z.string().describe(\"Link to the source PDF file.\"),\n async: z.boolean().default(false).describe(\"Run processing asynchronously. Returns jobId when true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to convert. For example: '1,3-5' to convert pages 1, 3, 4, and 5.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Custom JSON profiles for advanced conversion options.\").optional(),\n imageFormat: z.enum([\"PNG\", \"JPG\", \"TIFF\"]).describe(\"Output image format: PNG (default), JPG, or TIFF.\").optional(),\n}).describe(\"Request model for converting PDF pages to images.\");\nexport const PdfCoPdfToImageOutput = z.object({\n url: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for asynchronous processing.\").nullable().optional(),\n status: z.union([z.string(), z.number().int()]),\n message: z.string().describe(\"Detailed error or status message.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to image conversion.\");\n\nexport const pdfCoPdfToImage = action(\"PDF_CO_PDF_TO_IMAGE\", {\n slug: \"pdf_co-pdf-to-image\",\n name: \"Convert PDF to Image\",\n description: \"Tool to convert PDF pages to images (PNG, JPG, TIFF). Use when you need image previews of PDF content.\",\n input: PdfCoPdfToImageInput,\n output: PdfCoPdfToImageOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-image.mjs","names":[],"sources":["../../src/actions/pdf-to-image.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToImageInput = z.object({\n dpi: z.number().int().describe(\"Resolution in DPI for the output images (1-300).\").optional(),\n url: z.string().describe(\"Link to the source PDF file.\"),\n async: z.boolean().default(false).describe(\"Run processing asynchronously. Returns jobId when true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to convert. For example: '1,3-5' to convert pages 1, 3, 4, and 5.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Custom JSON profiles for advanced conversion options.\").optional(),\n imageFormat: z.enum([\"PNG\", \"JPG\", \"TIFF\"]).describe(\"Output image format: PNG (default), JPG, or TIFF.\").optional(),\n}).describe(\"Request model for converting PDF pages to images.\");\nexport const PdfCoPdfToImageOutput = z.object({\n url: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for asynchronous processing.\").nullable().optional(),\n status: z.union([z.string(), z.number().int()]),\n message: z.string().describe(\"Detailed error or status message.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to image conversion.\");\n\nexport const pdfCoPdfToImage: AppAction<\n typeof PdfCoPdfToImageInput,\n typeof PdfCoPdfToImageOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_IMAGE\", {\n slug: \"pdf_co-pdf-to-image\",\n name: \"Convert PDF to Image\",\n description: \"Tool to convert PDF pages to images (PNG, JPG, TIFF). Use when you need image previews of PDF content.\",\n input: PdfCoPdfToImageInput,\n output: PdfCoPdfToImageOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,kBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBkC,EAAE,OAAO;EAC3C,KAAK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ent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToJsonInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\").optional(),\n file: z.string().describe(\"Binary content of the PDF file to convert.\").optional(),\n name: z.string().describe(\"Optional name for the output JSON file (should end with .json).\").optional(),\n async: z.boolean().describe(\"If true, runs the job asynchronously; returns jobId for status checking.\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n inline: z.boolean().describe(\"If true, returns JSON data inline; otherwise returns a URL.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion configuration in JSON format.\").optional(),\n searchString: z.string().describe(\"Optional text to search for in the PDF before conversion.\").optional(),\n}).describe(\"Request model for converting PDF documents to JSON. Provide either `url` or `file`.\");\nconst PdfCoPdfToJson_PDFTextElementSchema = z.object({\n \"@x\": z.string().describe(\"X coordinate\").nullable().optional(),\n \"@y\": z.string().describe(\"Y coordinate\").nullable().optional(),\n \"#text\": z.string().describe(\"Text content\").nullable().optional(),\n \"@width\": z.string().describe(\"Width\").nullable().optional(),\n \"@height\": z.string().describe(\"Height\").nullable().optional(),\n \"@fontName\": z.string().describe(\"Font name\").nullable().optional(),\n \"@fontSize\": z.string().describe(\"Font size\").nullable().optional(),\n \"@fontStyle\": z.string().describe(\"Font style (e.g., Bold, Italic)\").nullable().optional(),\n}).passthrough().describe(\"Represents a text element with positioning and formatting.\");\nconst PdfCoPdfToJson_PDFColumnSchema = z.object({\n text: z.union([PdfCoPdfToJson_PDFTextElementSchema, z.array(PdfCoPdfToJson_PDFTextElementSchema)]).nullable().optional(),\n}).passthrough().describe(\"Represents a column containing text elements.\");\nconst PdfCoPdfToJson_PDFRowSchema = z.object({\n column: z.union([PdfCoPdfToJson_PDFColumnSchema, z.array(PdfCoPdfToJson_PDFColumnSchema)]).nullable().optional(),\n}).passthrough().describe(\"Represents a row containing columns.\");\nconst PdfCoPdfToJson_PDFPageSchema = z.object({\n row: z.union([PdfCoPdfToJson_PDFRowSchema, z.array(PdfCoPdfToJson_PDFRowSchema)]).nullable().optional(),\n \"@index\": z.string().describe(\"Page index\").nullable().optional(),\n \"@width\": z.string().describe(\"Page width\").nullable().optional(),\n \"@height\": z.string().describe(\"Page height\").nullable().optional(),\n \"@OCRWasPerformed\": z.string().describe(\"Whether OCR was performed\").nullable().optional(),\n}).passthrough().describe(\"Represents a page in the PDF document.\");\nconst PdfCoPdfToJson_PDFDocumentSchema = z.object({\n page: z.union([PdfCoPdfToJson_PDFPageSchema, z.array(PdfCoPdfToJson_PDFPageSchema)]).nullable().optional(),\n \"@pageCount\": z.string().describe(\"Total number of pages\").nullable().optional(),\n \"@pageCountWithOCRPerformed\": z.string().describe(\"Number of pages with OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents the PDF document structure.\");\nconst PdfCoPdfToJson_PDFJsonBodySchema = z.object({\n document: PdfCoPdfToJson_PDFDocumentSchema.nullable().optional(),\n}).passthrough().describe(\"Body structure for inline JSON response.\");\nexport const PdfCoPdfToJsonOutput = z.object({\n url: z.string().describe(\"URL to the resulting JSON file (if inline=False).\").nullable().optional(),\n body: PdfCoPdfToJson_PDFJsonBodySchema.nullable().optional(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API.\").nullable().optional(),\n duration: z.number().int().describe(\"Operation duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n outputLinkValidTill: z.string().describe(\"Expiration timestamp for the output URL.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to JSON conversion.\");\n\nexport const pdfCoPdfToJson = action(\"PDF_CO_PDF_TO_JSON\", {\n slug: \"pdf_co-pdf-to-json\",\n name: \"Convert PDF to JSON\",\n description: \"Tool to convert PDF or scanned images to JSON format. Use when you need a structured JSON representation of PDF content.\",\n input: PdfCoPdfToJsonInput,\n output: PdfCoPdfToJsonOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-json.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-json.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToJsonInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\").optional(),\n file: z.string().describe(\"Binary content of the PDF file to convert.\").optional(),\n name: z.string().describe(\"Optional name for the output JSON file (should end with .json).\").optional(),\n async: z.boolean().describe(\"If true, runs the job asynchronously; returns jobId for status checking.\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n inline: z.boolean().describe(\"If true, returns JSON data inline; otherwise returns a URL.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion configuration in JSON format.\").optional(),\n searchString: z.string().describe(\"Optional text to search for in the PDF before conversion.\").optional(),\n}).describe(\"Request model for converting PDF documents to JSON. Provide either `url` or `file`.\");\nconst PdfCoPdfToJson_PDFTextElementSchema = z.object({\n \"@x\": z.string().describe(\"X coordinate\").nullable().optional(),\n \"@y\": z.string().describe(\"Y coordinate\").nullable().optional(),\n \"#text\": z.string().describe(\"Text content\").nullable().optional(),\n \"@width\": z.string().describe(\"Width\").nullable().optional(),\n \"@height\": z.string().describe(\"Height\").nullable().optional(),\n \"@fontName\": z.string().describe(\"Font name\").nullable().optional(),\n \"@fontSize\": z.string().describe(\"Font size\").nullable().optional(),\n \"@fontStyle\": z.string().describe(\"Font style (e.g., Bold, Italic)\").nullable().optional(),\n}).passthrough().describe(\"Represents a text element with positioning and formatting.\");\nconst PdfCoPdfToJson_PDFColumnSchema = z.object({\n text: z.union([PdfCoPdfToJson_PDFTextElementSchema, z.array(PdfCoPdfToJson_PDFTextElementSchema)]).nullable().optional(),\n}).passthrough().describe(\"Represents a column containing text elements.\");\nconst PdfCoPdfToJson_PDFRowSchema = z.object({\n column: z.union([PdfCoPdfToJson_PDFColumnSchema, z.array(PdfCoPdfToJson_PDFColumnSchema)]).nullable().optional(),\n}).passthrough().describe(\"Represents a row containing columns.\");\nconst PdfCoPdfToJson_PDFPageSchema = z.object({\n row: z.union([PdfCoPdfToJson_PDFRowSchema, z.array(PdfCoPdfToJson_PDFRowSchema)]).nullable().optional(),\n \"@index\": z.string().describe(\"Page index\").nullable().optional(),\n \"@width\": z.string().describe(\"Page width\").nullable().optional(),\n \"@height\": z.string().describe(\"Page height\").nullable().optional(),\n \"@OCRWasPerformed\": z.string().describe(\"Whether OCR was performed\").nullable().optional(),\n}).passthrough().describe(\"Represents a page in the PDF document.\");\nconst PdfCoPdfToJson_PDFDocumentSchema = z.object({\n page: z.union([PdfCoPdfToJson_PDFPageSchema, z.array(PdfCoPdfToJson_PDFPageSchema)]).nullable().optional(),\n \"@pageCount\": z.string().describe(\"Total number of pages\").nullable().optional(),\n \"@pageCountWithOCRPerformed\": z.string().describe(\"Number of pages with OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents the PDF document structure.\");\nconst PdfCoPdfToJson_PDFJsonBodySchema = z.object({\n document: PdfCoPdfToJson_PDFDocumentSchema.nullable().optional(),\n}).passthrough().describe(\"Body structure for inline JSON response.\");\nexport const PdfCoPdfToJsonOutput = z.object({\n url: z.string().describe(\"URL to the resulting JSON file (if inline=False).\").nullable().optional(),\n body: PdfCoPdfToJson_PDFJsonBodySchema.nullable().optional(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API.\").nullable().optional(),\n duration: z.number().int().describe(\"Operation duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n outputLinkValidTill: z.string().describe(\"Expiration timestamp for the output URL.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to JSON conversion.\");\n\nexport const pdfCoPdfToJson: AppAction<\n typeof PdfCoPdfToJsonInput,\n typeof PdfCoPdfToJsonOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_JSON\", {\n slug: \"pdf_co-pdf-to-json\",\n name: \"Convert PDF to JSON\",\n description: \"Tool to convert PDF or scanned images to JSON format. Use when you need a structured JSON representation of PDF content.\",\n input: PdfCoPdfToJsonInput,\n output: PdfCoPdfToJsonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACrG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CA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AC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,iBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-json.d.ts
|
|
@@ -211,17 +213,7 @@ declare const PdfCoPdfToJsonOutput: z.ZodObject<{
|
|
|
211
213
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
212
214
|
outputLinkValidTill: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
215
|
}, z.core.$loose>;
|
|
214
|
-
declare const pdfCoPdfToJson:
|
|
215
|
-
url?: string | undefined;
|
|
216
|
-
file?: string | undefined;
|
|
217
|
-
name?: string | undefined;
|
|
218
|
-
async?: boolean | undefined;
|
|
219
|
-
pages?: string | undefined;
|
|
220
|
-
inline?: boolean | undefined;
|
|
221
|
-
password?: string | undefined;
|
|
222
|
-
profiles?: string | undefined;
|
|
223
|
-
searchString?: string | undefined;
|
|
224
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
216
|
+
declare const pdfCoPdfToJson: AppAction<typeof PdfCoPdfToJsonInput, typeof PdfCoPdfToJsonOutput, typeof pdfCo.credential>;
|
|
225
217
|
//#endregion
|
|
226
218
|
export { pdfCoPdfToJson };
|
|
227
219
|
//# sourceMappingURL=pdf-to-json.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-json.d.cts","names":[],"sources":["../../src/actions/pdf-to-json.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-json.d.cts","names":[],"sources":["../../src/actions/pdf-to-json.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;cA0CnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-json.d.ts
|
|
@@ -211,17 +213,7 @@ declare const PdfCoPdfToJsonOutput: z.ZodObject<{
|
|
|
211
213
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
212
214
|
outputLinkValidTill: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
215
|
}, z.core.$loose>;
|
|
214
|
-
declare const pdfCoPdfToJson:
|
|
215
|
-
url?: string | undefined;
|
|
216
|
-
file?: string | undefined;
|
|
217
|
-
name?: string | undefined;
|
|
218
|
-
async?: boolean | undefined;
|
|
219
|
-
pages?: string | undefined;
|
|
220
|
-
inline?: boolean | undefined;
|
|
221
|
-
password?: string | undefined;
|
|
222
|
-
profiles?: string | undefined;
|
|
223
|
-
searchString?: string | undefined;
|
|
224
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
216
|
+
declare const pdfCoPdfToJson: AppAction<typeof PdfCoPdfToJsonInput, typeof PdfCoPdfToJsonOutput, typeof pdfCo.credential>;
|
|
225
217
|
//#endregion
|
|
226
218
|
export { pdfCoPdfToJson };
|
|
227
219
|
//# sourceMappingURL=pdf-to-json.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-json.d.mts","names":[],"sources":["../../src/actions/pdf-to-json.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-json.d.mts","names":[],"sources":["../../src/actions/pdf-to-json.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;cA0CnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-json.mjs","names":[],"sources":["../../src/actions/pdf-to-json.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToJsonInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\").optional(),\n file: z.string().describe(\"Binary content of the PDF file to convert.\").optional(),\n name: z.string().describe(\"Optional name for the output JSON file (should end with .json).\").optional(),\n async: z.boolean().describe(\"If true, runs the job asynchronously; returns jobId for status checking.\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n inline: z.boolean().describe(\"If true, returns JSON data inline; otherwise returns a URL.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion configuration in JSON format.\").optional(),\n searchString: z.string().describe(\"Optional text to search for in the PDF before conversion.\").optional(),\n}).describe(\"Request model for converting PDF documents to JSON. Provide either `url` or `file`.\");\nconst PdfCoPdfToJson_PDFTextElementSchema = z.object({\n \"@x\": z.string().describe(\"X coordinate\").nullable().optional(),\n \"@y\": z.string().describe(\"Y coordinate\").nullable().optional(),\n \"#text\": z.string().describe(\"Text content\").nullable().optional(),\n \"@width\": z.string().describe(\"Width\").nullable().optional(),\n \"@height\": z.string().describe(\"Height\").nullable().optional(),\n \"@fontName\": z.string().describe(\"Font name\").nullable().optional(),\n \"@fontSize\": z.string().describe(\"Font size\").nullable().optional(),\n \"@fontStyle\": z.string().describe(\"Font style (e.g., Bold, Italic)\").nullable().optional(),\n}).passthrough().describe(\"Represents a text element with positioning and formatting.\");\nconst PdfCoPdfToJson_PDFColumnSchema = z.object({\n text: z.union([PdfCoPdfToJson_PDFTextElementSchema, z.array(PdfCoPdfToJson_PDFTextElementSchema)]).nullable().optional(),\n}).passthrough().describe(\"Represents a column containing text elements.\");\nconst PdfCoPdfToJson_PDFRowSchema = z.object({\n column: z.union([PdfCoPdfToJson_PDFColumnSchema, z.array(PdfCoPdfToJson_PDFColumnSchema)]).nullable().optional(),\n}).passthrough().describe(\"Represents a row containing columns.\");\nconst PdfCoPdfToJson_PDFPageSchema = z.object({\n row: z.union([PdfCoPdfToJson_PDFRowSchema, z.array(PdfCoPdfToJson_PDFRowSchema)]).nullable().optional(),\n \"@index\": z.string().describe(\"Page index\").nullable().optional(),\n \"@width\": z.string().describe(\"Page width\").nullable().optional(),\n \"@height\": z.string().describe(\"Page height\").nullable().optional(),\n \"@OCRWasPerformed\": z.string().describe(\"Whether OCR was performed\").nullable().optional(),\n}).passthrough().describe(\"Represents a page in the PDF document.\");\nconst PdfCoPdfToJson_PDFDocumentSchema = z.object({\n page: z.union([PdfCoPdfToJson_PDFPageSchema, z.array(PdfCoPdfToJson_PDFPageSchema)]).nullable().optional(),\n \"@pageCount\": z.string().describe(\"Total number of pages\").nullable().optional(),\n \"@pageCountWithOCRPerformed\": z.string().describe(\"Number of pages with OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents the PDF document structure.\");\nconst PdfCoPdfToJson_PDFJsonBodySchema = z.object({\n document: PdfCoPdfToJson_PDFDocumentSchema.nullable().optional(),\n}).passthrough().describe(\"Body structure for inline JSON response.\");\nexport const PdfCoPdfToJsonOutput = z.object({\n url: z.string().describe(\"URL to the resulting JSON file (if inline=False).\").nullable().optional(),\n body: PdfCoPdfToJson_PDFJsonBodySchema.nullable().optional(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API.\").nullable().optional(),\n duration: z.number().int().describe(\"Operation duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n outputLinkValidTill: z.string().describe(\"Expiration timestamp for the output URL.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to JSON conversion.\");\n\nexport const pdfCoPdfToJson = action(\"PDF_CO_PDF_TO_JSON\", {\n slug: \"pdf_co-pdf-to-json\",\n name: \"Convert PDF to JSON\",\n description: \"Tool to convert PDF or scanned images to JSON format. Use when you need a structured JSON representation of PDF content.\",\n input: PdfCoPdfToJsonInput,\n output: PdfCoPdfToJsonOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-json.mjs","names":[],"sources":["../../src/actions/pdf-to-json.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToJsonInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\").optional(),\n file: z.string().describe(\"Binary content of the PDF file to convert.\").optional(),\n name: z.string().describe(\"Optional name for the output JSON file (should end with .json).\").optional(),\n async: z.boolean().describe(\"If true, runs the job asynchronously; returns jobId for status checking.\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n inline: z.boolean().describe(\"If true, returns JSON data inline; otherwise returns a URL.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion configuration in JSON format.\").optional(),\n searchString: z.string().describe(\"Optional text to search for in the PDF before conversion.\").optional(),\n}).describe(\"Request model for converting PDF documents to JSON. Provide either `url` or `file`.\");\nconst PdfCoPdfToJson_PDFTextElementSchema = z.object({\n \"@x\": z.string().describe(\"X coordinate\").nullable().optional(),\n \"@y\": z.string().describe(\"Y coordinate\").nullable().optional(),\n \"#text\": z.string().describe(\"Text content\").nullable().optional(),\n \"@width\": z.string().describe(\"Width\").nullable().optional(),\n \"@height\": z.string().describe(\"Height\").nullable().optional(),\n \"@fontName\": z.string().describe(\"Font name\").nullable().optional(),\n \"@fontSize\": z.string().describe(\"Font size\").nullable().optional(),\n \"@fontStyle\": z.string().describe(\"Font style (e.g., Bold, Italic)\").nullable().optional(),\n}).passthrough().describe(\"Represents a text element with positioning and formatting.\");\nconst PdfCoPdfToJson_PDFColumnSchema = z.object({\n text: z.union([PdfCoPdfToJson_PDFTextElementSchema, z.array(PdfCoPdfToJson_PDFTextElementSchema)]).nullable().optional(),\n}).passthrough().describe(\"Represents a column containing text elements.\");\nconst PdfCoPdfToJson_PDFRowSchema = z.object({\n column: z.union([PdfCoPdfToJson_PDFColumnSchema, z.array(PdfCoPdfToJson_PDFColumnSchema)]).nullable().optional(),\n}).passthrough().describe(\"Represents a row containing columns.\");\nconst PdfCoPdfToJson_PDFPageSchema = z.object({\n row: z.union([PdfCoPdfToJson_PDFRowSchema, z.array(PdfCoPdfToJson_PDFRowSchema)]).nullable().optional(),\n \"@index\": z.string().describe(\"Page index\").nullable().optional(),\n \"@width\": z.string().describe(\"Page width\").nullable().optional(),\n \"@height\": z.string().describe(\"Page height\").nullable().optional(),\n \"@OCRWasPerformed\": z.string().describe(\"Whether OCR was performed\").nullable().optional(),\n}).passthrough().describe(\"Represents a page in the PDF document.\");\nconst PdfCoPdfToJson_PDFDocumentSchema = z.object({\n page: z.union([PdfCoPdfToJson_PDFPageSchema, z.array(PdfCoPdfToJson_PDFPageSchema)]).nullable().optional(),\n \"@pageCount\": z.string().describe(\"Total number of pages\").nullable().optional(),\n \"@pageCountWithOCRPerformed\": z.string().describe(\"Number of pages with OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents the PDF document structure.\");\nconst PdfCoPdfToJson_PDFJsonBodySchema = z.object({\n document: PdfCoPdfToJson_PDFDocumentSchema.nullable().optional(),\n}).passthrough().describe(\"Body structure for inline JSON response.\");\nexport const PdfCoPdfToJsonOutput = z.object({\n url: z.string().describe(\"URL to the resulting JSON file (if inline=False).\").nullable().optional(),\n body: PdfCoPdfToJson_PDFJsonBodySchema.nullable().optional(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API.\").nullable().optional(),\n duration: z.number().int().describe(\"Operation duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n outputLinkValidTill: z.string().describe(\"Expiration timestamp for the output URL.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to JSON conversion.\");\n\nexport const pdfCoPdfToJson: AppAction<\n typeof PdfCoPdfToJsonInput,\n typeof PdfCoPdfToJsonOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_JSON\", {\n slug: \"pdf_co-pdf-to-json\",\n name: \"Convert PDF to JSON\",\n description: \"Tool to convert PDF or scanned images to JSON format. Use when you need a structured JSON representation of PDF content.\",\n input: PdfCoPdfToJsonInput,\n output: PdfCoPdfToJsonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,U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sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToTextInput = z.object({\n url: z.string().describe(\"URL to the source PDF or image file. Must be a publicly accessible HTTP/HTTPS URL (without authentication) or a file previously uploaded to PDF.co storage. Local file paths (file:// URLs) are not supported - use the PDF_CO_FILE_UPLOAD action first to upload local files to PDF.co, then use the returned URL here.\"),\n lang: z.string().default(\"eng\").describe(\"OCR language(s) code, e.g. 'eng', or 'eng+deu'.\").optional(),\n name: z.string().describe(\"Desired name for the output file (e.g. 'result.txt').\").optional(),\n rect: z.string().describe(\"Extraction rectangle in format '{x} {y} {width} {height}'.\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to process (e.g. '0,2-4').\").optional(),\n inline: z.boolean().default(false).describe(\"Return text inline in response instead of URL.\").optional(),\n unwrap: z.boolean().default(false).describe(\"Unwrap lines into a single line within table cells (only when lineGrouping='1').\").optional(),\n callback: z.string().describe(\"Webhook URL to receive callback when async=true.\").optional(),\n password: z.string().describe(\"Password for protected PDF files.\").optional(),\n run_async: z.boolean().default(false).describe(\"Run process asynchronously; returns jobId if true.\").optional(),\n expiration: z.number().int().default(60).describe(\"Expiration time in minutes for the output file link.\").optional(),\n httppassword: z.string().describe(\"HTTP auth password for source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP auth username for source URL.\").optional(),\n lineGrouping: z.string().describe(\"Line grouping mode: '1', '2', or '3'.\").optional(),\n}).describe(\"Request model for converting PDF documents or scanned images to plain text.\");\nexport const PdfCoPdfToTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting text file (present if inline=false).\").nullable().optional(),\n body: z.string().describe(\"Extracted text (present if inline=true).\").nullable().optional(),\n name: z.string().describe(\"Name of the generated file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n credits: z.number().int().describe(\"API credits consumed by this call.\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the call.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to text conversion.\");\n\nexport const pdfCoPdfToText = action(\"PDF_CO_PDF_TO_TEXT\", {\n slug: \"pdf_co-pdf-to-text\",\n name: \"Convert PDF to Text\",\n description: \"Tool to convert PDF or scanned images to plain text. Use when you need raw text output preserving layout.\",\n input: PdfCoPdfToTextInput,\n output: PdfCoPdfToTextOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToTextInput = z.object({\n url: z.string().describe(\"URL to the source PDF or image file. Must be a publicly accessible HTTP/HTTPS URL (without authentication) or a file previously uploaded to PDF.co storage. Local file paths (file:// URLs) are not supported - use the PDF_CO_FILE_UPLOAD action first to upload local files to PDF.co, then use the returned URL here.\"),\n lang: z.string().default(\"eng\").describe(\"OCR language(s) code, e.g. 'eng', or 'eng+deu'.\").optional(),\n name: z.string().describe(\"Desired name for the output file (e.g. 'result.txt').\").optional(),\n rect: z.string().describe(\"Extraction rectangle in format '{x} {y} {width} {height}'.\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to process (e.g. '0,2-4').\").optional(),\n inline: z.boolean().default(false).describe(\"Return text inline in response instead of URL.\").optional(),\n unwrap: z.boolean().default(false).describe(\"Unwrap lines into a single line within table cells (only when lineGrouping='1').\").optional(),\n callback: z.string().describe(\"Webhook URL to receive callback when async=true.\").optional(),\n password: z.string().describe(\"Password for protected PDF files.\").optional(),\n run_async: z.boolean().default(false).describe(\"Run process asynchronously; returns jobId if true.\").optional(),\n expiration: z.number().int().default(60).describe(\"Expiration time in minutes for the output file link.\").optional(),\n httppassword: z.string().describe(\"HTTP auth password for source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP auth username for source URL.\").optional(),\n lineGrouping: z.string().describe(\"Line grouping mode: '1', '2', or '3'.\").optional(),\n}).describe(\"Request model for converting PDF documents or scanned images to plain text.\");\nexport const PdfCoPdfToTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting text file (present if inline=false).\").nullable().optional(),\n body: z.string().describe(\"Extracted text (present if inline=true).\").nullable().optional(),\n name: z.string().describe(\"Name of the generated file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n credits: z.number().int().describe(\"API credits consumed by this call.\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the call.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to text conversion.\");\n\nexport const pdfCoPdfToText: AppAction<\n typeof PdfCoPdfToTextInput,\n typeof PdfCoPdfToTextOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_TEXT\", {\n slug: \"pdf_co-pdf-to-text\",\n name: \"Convert PDF to Text\",\n description: \"Tool to convert PDF or scanned images to plain text. Use when you need raw text output preserving layout.\",\n input: PdfCoPdfToTextInput,\n output: PdfCoPdfToTextOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T;CACnV,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvG,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACzI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAA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AC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,iBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-text.d.ts
|
|
@@ -28,22 +30,7 @@ declare const PdfCoPdfToTextOutput: z.ZodObject<{
|
|
|
28
30
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
31
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const pdfCoPdfToText:
|
|
32
|
-
url: string;
|
|
33
|
-
lang?: string | undefined;
|
|
34
|
-
name?: string | undefined;
|
|
35
|
-
rect?: string | undefined;
|
|
36
|
-
pages?: string | undefined;
|
|
37
|
-
inline?: boolean | undefined;
|
|
38
|
-
unwrap?: boolean | undefined;
|
|
39
|
-
callback?: string | undefined;
|
|
40
|
-
password?: string | undefined;
|
|
41
|
-
run_async?: boolean | undefined;
|
|
42
|
-
expiration?: number | undefined;
|
|
43
|
-
httppassword?: string | undefined;
|
|
44
|
-
httpusername?: string | undefined;
|
|
45
|
-
lineGrouping?: string | undefined;
|
|
46
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
33
|
+
declare const pdfCoPdfToText: AppAction<typeof PdfCoPdfToTextInput, typeof PdfCoPdfToTextOutput, typeof pdfCo.credential>;
|
|
47
34
|
//#endregion
|
|
48
35
|
export { pdfCoPdfToText };
|
|
49
36
|
//# sourceMappingURL=pdf-to-text.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-text.d.cts","names":[],"sources":["../../src/actions/pdf-to-text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-text.d.cts","names":[],"sources":["../../src/actions/pdf-to-text.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-text.d.ts
|
|
@@ -28,22 +30,7 @@ declare const PdfCoPdfToTextOutput: z.ZodObject<{
|
|
|
28
30
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
31
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const pdfCoPdfToText:
|
|
32
|
-
url: string;
|
|
33
|
-
lang?: string | undefined;
|
|
34
|
-
name?: string | undefined;
|
|
35
|
-
rect?: string | undefined;
|
|
36
|
-
pages?: string | undefined;
|
|
37
|
-
inline?: boolean | undefined;
|
|
38
|
-
unwrap?: boolean | undefined;
|
|
39
|
-
callback?: string | undefined;
|
|
40
|
-
password?: string | undefined;
|
|
41
|
-
run_async?: boolean | undefined;
|
|
42
|
-
expiration?: number | undefined;
|
|
43
|
-
httppassword?: string | undefined;
|
|
44
|
-
httpusername?: string | undefined;
|
|
45
|
-
lineGrouping?: string | undefined;
|
|
46
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
33
|
+
declare const pdfCoPdfToText: AppAction<typeof PdfCoPdfToTextInput, typeof PdfCoPdfToTextOutput, typeof pdfCo.credential>;
|
|
47
34
|
//#endregion
|
|
48
35
|
export { pdfCoPdfToText };
|
|
49
36
|
//# sourceMappingURL=pdf-to-text.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-text.d.mts","names":[],"sources":["../../src/actions/pdf-to-text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-text.d.mts","names":[],"sources":["../../src/actions/pdf-to-text.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-text.mjs","names":[],"sources":["../../src/actions/pdf-to-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToTextInput = z.object({\n url: z.string().describe(\"URL to the source PDF or image file. Must be a publicly accessible HTTP/HTTPS URL (without authentication) or a file previously uploaded to PDF.co storage. Local file paths (file:// URLs) are not supported - use the PDF_CO_FILE_UPLOAD action first to upload local files to PDF.co, then use the returned URL here.\"),\n lang: z.string().default(\"eng\").describe(\"OCR language(s) code, e.g. 'eng', or 'eng+deu'.\").optional(),\n name: z.string().describe(\"Desired name for the output file (e.g. 'result.txt').\").optional(),\n rect: z.string().describe(\"Extraction rectangle in format '{x} {y} {width} {height}'.\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to process (e.g. '0,2-4').\").optional(),\n inline: z.boolean().default(false).describe(\"Return text inline in response instead of URL.\").optional(),\n unwrap: z.boolean().default(false).describe(\"Unwrap lines into a single line within table cells (only when lineGrouping='1').\").optional(),\n callback: z.string().describe(\"Webhook URL to receive callback when async=true.\").optional(),\n password: z.string().describe(\"Password for protected PDF files.\").optional(),\n run_async: z.boolean().default(false).describe(\"Run process asynchronously; returns jobId if true.\").optional(),\n expiration: z.number().int().default(60).describe(\"Expiration time in minutes for the output file link.\").optional(),\n httppassword: z.string().describe(\"HTTP auth password for source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP auth username for source URL.\").optional(),\n lineGrouping: z.string().describe(\"Line grouping mode: '1', '2', or '3'.\").optional(),\n}).describe(\"Request model for converting PDF documents or scanned images to plain text.\");\nexport const PdfCoPdfToTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting text file (present if inline=false).\").nullable().optional(),\n body: z.string().describe(\"Extracted text (present if inline=true).\").nullable().optional(),\n name: z.string().describe(\"Name of the generated file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n credits: z.number().int().describe(\"API credits consumed by this call.\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the call.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to text conversion.\");\n\nexport const pdfCoPdfToText = action(\"PDF_CO_PDF_TO_TEXT\", {\n slug: \"pdf_co-pdf-to-text\",\n name: \"Convert PDF to Text\",\n description: \"Tool to convert PDF or scanned images to plain text. Use when you need raw text output preserving layout.\",\n input: PdfCoPdfToTextInput,\n output: PdfCoPdfToTextOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-text.mjs","names":[],"sources":["../../src/actions/pdf-to-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToTextInput = z.object({\n url: z.string().describe(\"URL to the source PDF or image file. Must be a publicly accessible HTTP/HTTPS URL (without authentication) or a file previously uploaded to PDF.co storage. Local file paths (file:// URLs) are not supported - use the PDF_CO_FILE_UPLOAD action first to upload local files to PDF.co, then use the returned URL here.\"),\n lang: z.string().default(\"eng\").describe(\"OCR language(s) code, e.g. 'eng', or 'eng+deu'.\").optional(),\n name: z.string().describe(\"Desired name for the output file (e.g. 'result.txt').\").optional(),\n rect: z.string().describe(\"Extraction rectangle in format '{x} {y} {width} {height}'.\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to process (e.g. '0,2-4').\").optional(),\n inline: z.boolean().default(false).describe(\"Return text inline in response instead of URL.\").optional(),\n unwrap: z.boolean().default(false).describe(\"Unwrap lines into a single line within table cells (only when lineGrouping='1').\").optional(),\n callback: z.string().describe(\"Webhook URL to receive callback when async=true.\").optional(),\n password: z.string().describe(\"Password for protected PDF files.\").optional(),\n run_async: z.boolean().default(false).describe(\"Run process asynchronously; returns jobId if true.\").optional(),\n expiration: z.number().int().default(60).describe(\"Expiration time in minutes for the output file link.\").optional(),\n httppassword: z.string().describe(\"HTTP auth password for source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP auth username for source URL.\").optional(),\n lineGrouping: z.string().describe(\"Line grouping mode: '1', '2', or '3'.\").optional(),\n}).describe(\"Request model for converting PDF documents or scanned images to plain text.\");\nexport const PdfCoPdfToTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting text file (present if inline=false).\").nullable().optional(),\n body: z.string().describe(\"Extracted text (present if inline=true).\").nullable().optional(),\n name: z.string().describe(\"Name of the generated file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n credits: z.number().int().describe(\"API credits consumed by this call.\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the call.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to text conversion.\");\n\nexport const pdfCoPdfToText: AppAction<\n typeof PdfCoPdfToTextInput,\n typeof PdfCoPdfToTextOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_TEXT\", {\n slug: \"pdf_co-pdf-to-text\",\n name: \"Convert PDF to Text\",\n description: \"Tool to convert PDF or scanned images to plain text. Use when you need raw text output preserving layout.\",\n input: PdfCoPdfToTextInput,\n output: PdfCoPdfToTextOutput,\n});\n"],"mappings":";;;AAkCA,MAAa,iBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApCiC,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0TAA0T;EACnV,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACrG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACzG,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACvG,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACzI,UAAU,EAAE,OAAO,CAAC,CA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,SAAS,CAAC,CAAC,SAAS;EAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-to-xls.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-xls.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToXlsInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\"),\n name: z.string().describe(\"Optional name for the output XLS file (must end with .xls).\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion settings in JSON format.\").optional(),\n run_async: z.boolean().describe(\"Run job asynchronously; returns jobId for status checking.\").optional(),\n}).describe(\"Request model for converting PDF documents to XLS format.\");\nexport const PdfCoPdfToXlsOutput = z.object({\n url: z.string().describe(\"URL to the resulting XLS file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remaining: z.number().int().describe(\"Number of remaining credits after the call.\").nullable().optional(),\n expiration: z.string().describe(\"Expiration date/time of the result file.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to XLS conversion.\");\n\nexport const pdfCoPdfToXls = action(\"PDF_CO_PDF_TO_XLS\", {\n slug: \"pdf_co-pdf-to-xls\",\n name: \"Convert PDF to XLS\",\n description: \"Tool to convert PDF or scanned images to XLS format. Use when you need to extract tabular data into an Excel spreadsheet.\",\n input: PdfCoPdfToXlsInput,\n output: PdfCoPdfToXlsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-to-xls.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-xls.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToXlsInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\"),\n name: z.string().describe(\"Optional name for the output XLS file (must end with .xls).\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion settings in JSON format.\").optional(),\n run_async: z.boolean().describe(\"Run job asynchronously; returns jobId for status checking.\").optional(),\n}).describe(\"Request model for converting PDF documents to XLS format.\");\nexport const PdfCoPdfToXlsOutput = z.object({\n url: z.string().describe(\"URL to the resulting XLS file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remaining: z.number().int().describe(\"Number of remaining credits after the call.\").nullable().optional(),\n expiration: z.string().describe(\"Expiration date/time of the result file.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to XLS conversion.\");\n\nexport const pdfCoPdfToXls: AppAction<\n typeof PdfCoPdfToXlsInput,\n typeof PdfCoPdfToXlsOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_XLS\", {\n slug: \"pdf_co-pdf-to-xls\",\n name: \"Convert PDF to XLS\",\n description: \"Tool to convert PDF or scanned images to XLS format. Use when you need to extract tabular data into an Excel spreadsheet.\",\n input: PdfCoPdfToXlsInput,\n output: PdfCoPdfToXlsOutput,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C,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-to-xls.d.ts
|
|
@@ -17,14 +19,7 @@ declare const PdfCoPdfToXlsOutput: z.ZodObject<{
|
|
|
17
19
|
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
20
|
expiration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const pdfCoPdfToXls:
|
|
21
|
-
url: string;
|
|
22
|
-
name?: string | undefined;
|
|
23
|
-
pages?: string | undefined;
|
|
24
|
-
password?: string | undefined;
|
|
25
|
-
profiles?: string | undefined;
|
|
26
|
-
run_async?: boolean | undefined;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const pdfCoPdfToXls: AppAction<typeof PdfCoPdfToXlsInput, typeof PdfCoPdfToXlsOutput, typeof pdfCo.credential>;
|
|
28
23
|
//#endregion
|
|
29
24
|
export { pdfCoPdfToXls };
|
|
30
25
|
//# sourceMappingURL=pdf-to-xls.d.cts.map
|