@keystrokehq/pdf_co 0.1.5 → 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 -13
- package/dist/actions/account-balance-info.d.cts.map +1 -1
- package/dist/actions/account-balance-info.d.mts +3 -13
- 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 -20
- package/dist/actions/convert-excel-to-csv.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-csv.d.mts +3 -20
- 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 -18
- package/dist/actions/convert-excel-to-html.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-html.d.mts +3 -18
- 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 -19
- package/dist/actions/convert-excel-to-json.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-json.d.mts +3 -19
- 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 -21
- package/dist/actions/convert-excel-to-text.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-text.d.mts +3 -21
- 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 -30
- package/dist/actions/convert-excel-to-xml.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-xml.d.mts +3 -30
- 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 -23
- package/dist/actions/document-parser.d.cts.map +1 -1
- package/dist/actions/document-parser.d.mts +3 -23
- 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 -22
- package/dist/actions/file-upload.d.cts.map +1 -1
- package/dist/actions/file-upload.d.mts +3 -22
- 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 -16
- package/dist/actions/job-check.d.cts.map +1 -1
- package/dist/actions/job-check.d.mts +3 -16
- 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 -20
- package/dist/actions/pdf-add.d.cts.map +1 -1
- package/dist/actions/pdf-add.d.mts +3 -20
- 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 -21
- package/dist/actions/pdf-change-text-searchable.d.cts.map +1 -1
- package/dist/actions/pdf-change-text-searchable.d.mts +3 -21
- 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 -20
- package/dist/actions/pdf-delete-pages.d.cts.map +1 -1
- package/dist/actions/pdf-delete-pages.d.mts +3 -20
- 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 -22
- package/dist/actions/pdf-extract-attachments.d.cts.map +1 -1
- package/dist/actions/pdf-extract-attachments.d.mts +3 -22
- 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 -21
- package/dist/actions/pdf-find.d.cts.map +1 -1
- package/dist/actions/pdf-find.d.mts +3 -21
- 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 -17
- package/dist/actions/pdf-forms-info-reader.d.cts.map +1 -1
- package/dist/actions/pdf-forms-info-reader.d.mts +3 -17
- 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 -18
- package/dist/actions/pdf-from-document-txt.d.cts.map +1 -1
- package/dist/actions/pdf-from-document-txt.d.mts +3 -18
- 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 -18
- package/dist/actions/pdf-from-email.d.cts.map +1 -1
- package/dist/actions/pdf-from-email.d.mts +3 -18
- 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 -28
- package/dist/actions/pdf-from-html.d.cts.map +1 -1
- package/dist/actions/pdf-from-html.d.mts +3 -28
- 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 -15
- package/dist/actions/pdf-info-reader.d.cts.map +1 -1
- package/dist/actions/pdf-info-reader.d.mts +3 -15
- 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 -18
- package/dist/actions/pdf-merge.d.cts.map +1 -1
- package/dist/actions/pdf-merge.d.mts +3 -18
- 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 -20
- package/dist/actions/pdf-rotate.d.cts.map +1 -1
- package/dist/actions/pdf-rotate.d.mts +3 -20
- 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 -22
- package/dist/actions/pdf-search-and-delete-text.d.cts.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.d.mts +3 -22
- 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 -21
- package/dist/actions/pdf-search-and-replace-text.d.cts.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.d.mts +3 -21
- 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 -34
- package/dist/actions/pdf-split.d.cts.map +1 -1
- package/dist/actions/pdf-split.d.mts +3 -34
- 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 -23
- package/dist/actions/pdf-to-csv.d.cts.map +1 -1
- package/dist/actions/pdf-to-csv.d.mts +3 -23
- 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 -23
- package/dist/actions/pdf-to-html.d.cts.map +1 -1
- package/dist/actions/pdf-to-html.d.mts +3 -23
- 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 -21
- package/dist/actions/pdf-to-image.d.cts.map +1 -1
- package/dist/actions/pdf-to-image.d.mts +3 -21
- 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 -23
- package/dist/actions/pdf-to-json.d.cts.map +1 -1
- package/dist/actions/pdf-to-json.d.mts +3 -23
- 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 -28
- package/dist/actions/pdf-to-text.d.cts.map +1 -1
- package/dist/actions/pdf-to-text.d.mts +3 -28
- 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 -20
- package/dist/actions/pdf-to-xls.d.cts.map +1 -1
- package/dist/actions/pdf-to-xls.d.mts +3 -20
- 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 -25
- package/dist/actions/pdf-to-xlsx.d.cts.map +1 -1
- package/dist/actions/pdf-to-xlsx.d.mts +3 -25
- 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 -19
- package/dist/actions/pdf-to-xml.d.cts.map +1 -1
- package/dist/actions/pdf-to-xml.d.mts +3 -19
- 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 -27
- package/dist/actions/pdfco-post-barcode-generate.d.cts.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.d.mts +3 -27
- 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 -17
- package/dist/actions/pdfco-post-file-upload-base64.d.cts.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.d.mts +3 -17
- 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 +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- 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-from-html.cjs","names":["z","action"],"sources":["../../src/actions/pdf-from-html.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFromHtmlInput = z.object({\n url: z.string().describe(\"The HTML page or resource URL to convert into PDF. Must be a reachable HTTP(S) URL; raw HTML strings and local file paths are not accepted. Upload local HTML files first to obtain a URL.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run conversion as background job; returns jobId when true.\").optional(),\n footer: z.string().describe(\"HTML snippet for page footers applied to each page.\").optional(),\n header: z.string().describe(\"HTML snippet for page headers applied to each page.\").optional(),\n margins: z.string().describe(\"Custom page margins in '{top} {right} {bottom} {left}' format (units: px, mm, cm, in).\").optional(),\n callback: z.string().describe(\"Webhook URL to receive asynchronous results when async=true.\").optional(),\n profiles: z.string().describe(\"Advanced conversion profiles/settings as JSON string.\").optional(),\n mediaType: z.string().describe(\"CSS media type: 'print', 'screen', or 'none'.\").optional(),\n paperSize: z.string().describe(\"Paper size: standard like 'Letter', 'Legal', 'A4'–'A6', or custom '200px 300px', '8in 10in'.\").optional(),\n expiration: z.number().int().describe(\"Expiration time in minutes for the output file link.\").optional(),\n orientation: z.string().describe(\"Document orientation: 'Portrait' or 'Landscape'.\").optional(),\n printBackground: z.boolean().describe(\"Include background graphics (colors/images) if true.\").optional(),\n DoNotWaitFullLoad: z.boolean().describe(\"If true, speeds up conversion by not waiting for full page load.\").optional(),\n}).describe(\"Request model for converting HTML or URL to PDF.\");\nexport const PdfCoPdfFromHtmlOutput = z.object({\n url: z.string().describe(\"Link to the generated PDF file.\").nullable().optional(),\n name: z.string().describe(\"Output filename of the generated PDF.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Asynchronous job ID if async=true.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the request.\").nullable().optional(),\n credits: z.number().int().describe(\"Number of credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or informational message.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credit balance.\").nullable().optional(),\n}).passthrough().describe(\"Response model for converting HTML or URL to PDF.\");\n\nexport const pdfCoPdfFromHtml = action(\"PDF_CO_PDF_FROM_HTML\", {\n slug: \"pdf_co-pdf-from-html\",\n name: \"Convert HTML to PDF\",\n description: \"Tool to convert HTML code or webpage URL into a PDF document. Use when you need to capture a webpage or HTML snippet as a PDF file.\",\n input: PdfCoPdfFromHtmlInput,\n output: PdfCoPdfFromHtmlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-from-html.cjs","names":["z","action"],"sources":["../../src/actions/pdf-from-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 PdfCoPdfFromHtmlInput = z.object({\n url: z.string().describe(\"The HTML page or resource URL to convert into PDF. Must be a reachable HTTP(S) URL; raw HTML strings and local file paths are not accepted. Upload local HTML files first to obtain a URL.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run conversion as background job; returns jobId when true.\").optional(),\n footer: z.string().describe(\"HTML snippet for page footers applied to each page.\").optional(),\n header: z.string().describe(\"HTML snippet for page headers applied to each page.\").optional(),\n margins: z.string().describe(\"Custom page margins in '{top} {right} {bottom} {left}' format (units: px, mm, cm, in).\").optional(),\n callback: z.string().describe(\"Webhook URL to receive asynchronous results when async=true.\").optional(),\n profiles: z.string().describe(\"Advanced conversion profiles/settings as JSON string.\").optional(),\n mediaType: z.string().describe(\"CSS media type: 'print', 'screen', or 'none'.\").optional(),\n paperSize: z.string().describe(\"Paper size: standard like 'Letter', 'Legal', 'A4'–'A6', or custom '200px 300px', '8in 10in'.\").optional(),\n expiration: z.number().int().describe(\"Expiration time in minutes for the output file link.\").optional(),\n orientation: z.string().describe(\"Document orientation: 'Portrait' or 'Landscape'.\").optional(),\n printBackground: z.boolean().describe(\"Include background graphics (colors/images) if true.\").optional(),\n DoNotWaitFullLoad: z.boolean().describe(\"If true, speeds up conversion by not waiting for full page load.\").optional(),\n}).describe(\"Request model for converting HTML or URL to PDF.\");\nexport const PdfCoPdfFromHtmlOutput = z.object({\n url: z.string().describe(\"Link to the generated PDF file.\").nullable().optional(),\n name: z.string().describe(\"Output filename of the generated PDF.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Asynchronous job ID if async=true.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the request.\").nullable().optional(),\n credits: z.number().int().describe(\"Number of credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or informational message.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credit balance.\").nullable().optional(),\n}).passthrough().describe(\"Response model for converting HTML or URL to PDF.\");\n\nexport const pdfCoPdfFromHtml: AppAction<\n typeof PdfCoPdfFromHtmlInput,\n typeof PdfCoPdfFromHtmlOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_FROM_HTML\", {\n slug: \"pdf_co-pdf-from-html\",\n name: \"Convert HTML to PDF\",\n description: \"Tool to convert HTML code or webpage URL into a PDF document. Use when you need to capture a webpage or HTML snippet as a PDF file.\",\n input: PdfCoPdfFromHtmlInput,\n output: PdfCoPdfFromHtmlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4LAA4L;CACrN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAChI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvG,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,mBAITC,eAAAA,OAAO,wBAAwB;CACjC,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-from-html.d.ts
|
|
@@ -27,34 +29,7 @@ declare const PdfCoPdfFromHtmlOutput: z.ZodObject<{
|
|
|
27
29
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
30
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const pdfCoPdfFromHtml:
|
|
31
|
-
url: string;
|
|
32
|
-
name?: string | undefined;
|
|
33
|
-
async?: boolean | undefined;
|
|
34
|
-
footer?: string | undefined;
|
|
35
|
-
header?: string | undefined;
|
|
36
|
-
margins?: string | undefined;
|
|
37
|
-
callback?: string | undefined;
|
|
38
|
-
profiles?: string | undefined;
|
|
39
|
-
mediaType?: string | undefined;
|
|
40
|
-
paperSize?: string | undefined;
|
|
41
|
-
expiration?: number | undefined;
|
|
42
|
-
orientation?: string | undefined;
|
|
43
|
-
printBackground?: boolean | undefined;
|
|
44
|
-
DoNotWaitFullLoad?: boolean | undefined;
|
|
45
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
46
|
-
connectionId: z.ZodString;
|
|
47
|
-
entityId: z.ZodString;
|
|
48
|
-
instanceId: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
52
|
-
connectionId: z.ZodString;
|
|
53
|
-
entityId: z.ZodString;
|
|
54
|
-
instanceId: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
generic_api_key: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>]>;
|
|
32
|
+
declare const pdfCoPdfFromHtml: AppAction<typeof PdfCoPdfFromHtmlInput, typeof PdfCoPdfFromHtmlOutput, typeof pdfCo.credential>;
|
|
58
33
|
//#endregion
|
|
59
34
|
export { pdfCoPdfFromHtml };
|
|
60
35
|
//# sourceMappingURL=pdf-from-html.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-from-html.d.cts","names":[],"sources":["../../src/actions/pdf-from-html.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-from-html.d.cts","names":[],"sources":["../../src/actions/pdf-from-html.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;cAWtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,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-from-html.d.ts
|
|
@@ -27,34 +29,7 @@ declare const PdfCoPdfFromHtmlOutput: z.ZodObject<{
|
|
|
27
29
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
30
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const pdfCoPdfFromHtml:
|
|
31
|
-
url: string;
|
|
32
|
-
name?: string | undefined;
|
|
33
|
-
async?: boolean | undefined;
|
|
34
|
-
footer?: string | undefined;
|
|
35
|
-
header?: string | undefined;
|
|
36
|
-
margins?: string | undefined;
|
|
37
|
-
callback?: string | undefined;
|
|
38
|
-
profiles?: string | undefined;
|
|
39
|
-
mediaType?: string | undefined;
|
|
40
|
-
paperSize?: string | undefined;
|
|
41
|
-
expiration?: number | undefined;
|
|
42
|
-
orientation?: string | undefined;
|
|
43
|
-
printBackground?: boolean | undefined;
|
|
44
|
-
DoNotWaitFullLoad?: boolean | undefined;
|
|
45
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
46
|
-
connectionId: z.ZodString;
|
|
47
|
-
entityId: z.ZodString;
|
|
48
|
-
instanceId: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
52
|
-
connectionId: z.ZodString;
|
|
53
|
-
entityId: z.ZodString;
|
|
54
|
-
instanceId: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
generic_api_key: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>]>;
|
|
32
|
+
declare const pdfCoPdfFromHtml: AppAction<typeof PdfCoPdfFromHtmlInput, typeof PdfCoPdfFromHtmlOutput, typeof pdfCo.credential>;
|
|
58
33
|
//#endregion
|
|
59
34
|
export { pdfCoPdfFromHtml };
|
|
60
35
|
//# sourceMappingURL=pdf-from-html.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-from-html.d.mts","names":[],"sources":["../../src/actions/pdf-from-html.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-from-html.d.mts","names":[],"sources":["../../src/actions/pdf-from-html.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;cAWtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-from-html.mjs","names":[],"sources":["../../src/actions/pdf-from-html.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFromHtmlInput = z.object({\n url: z.string().describe(\"The HTML page or resource URL to convert into PDF. Must be a reachable HTTP(S) URL; raw HTML strings and local file paths are not accepted. Upload local HTML files first to obtain a URL.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run conversion as background job; returns jobId when true.\").optional(),\n footer: z.string().describe(\"HTML snippet for page footers applied to each page.\").optional(),\n header: z.string().describe(\"HTML snippet for page headers applied to each page.\").optional(),\n margins: z.string().describe(\"Custom page margins in '{top} {right} {bottom} {left}' format (units: px, mm, cm, in).\").optional(),\n callback: z.string().describe(\"Webhook URL to receive asynchronous results when async=true.\").optional(),\n profiles: z.string().describe(\"Advanced conversion profiles/settings as JSON string.\").optional(),\n mediaType: z.string().describe(\"CSS media type: 'print', 'screen', or 'none'.\").optional(),\n paperSize: z.string().describe(\"Paper size: standard like 'Letter', 'Legal', 'A4'–'A6', or custom '200px 300px', '8in 10in'.\").optional(),\n expiration: z.number().int().describe(\"Expiration time in minutes for the output file link.\").optional(),\n orientation: z.string().describe(\"Document orientation: 'Portrait' or 'Landscape'.\").optional(),\n printBackground: z.boolean().describe(\"Include background graphics (colors/images) if true.\").optional(),\n DoNotWaitFullLoad: z.boolean().describe(\"If true, speeds up conversion by not waiting for full page load.\").optional(),\n}).describe(\"Request model for converting HTML or URL to PDF.\");\nexport const PdfCoPdfFromHtmlOutput = z.object({\n url: z.string().describe(\"Link to the generated PDF file.\").nullable().optional(),\n name: z.string().describe(\"Output filename of the generated PDF.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Asynchronous job ID if async=true.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the request.\").nullable().optional(),\n credits: z.number().int().describe(\"Number of credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or informational message.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credit balance.\").nullable().optional(),\n}).passthrough().describe(\"Response model for converting HTML or URL to PDF.\");\n\nexport const pdfCoPdfFromHtml = action(\"PDF_CO_PDF_FROM_HTML\", {\n slug: \"pdf_co-pdf-from-html\",\n name: \"Convert HTML to PDF\",\n description: \"Tool to convert HTML code or webpage URL into a PDF document. Use when you need to capture a webpage or HTML snippet as a PDF file.\",\n input: PdfCoPdfFromHtmlInput,\n output: PdfCoPdfFromHtmlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-from-html.mjs","names":[],"sources":["../../src/actions/pdf-from-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 PdfCoPdfFromHtmlInput = z.object({\n url: z.string().describe(\"The HTML page or resource URL to convert into PDF. Must be a reachable HTTP(S) URL; raw HTML strings and local file paths are not accepted. Upload local HTML files first to obtain a URL.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run conversion as background job; returns jobId when true.\").optional(),\n footer: z.string().describe(\"HTML snippet for page footers applied to each page.\").optional(),\n header: z.string().describe(\"HTML snippet for page headers applied to each page.\").optional(),\n margins: z.string().describe(\"Custom page margins in '{top} {right} {bottom} {left}' format (units: px, mm, cm, in).\").optional(),\n callback: z.string().describe(\"Webhook URL to receive asynchronous results when async=true.\").optional(),\n profiles: z.string().describe(\"Advanced conversion profiles/settings as JSON string.\").optional(),\n mediaType: z.string().describe(\"CSS media type: 'print', 'screen', or 'none'.\").optional(),\n paperSize: z.string().describe(\"Paper size: standard like 'Letter', 'Legal', 'A4'–'A6', or custom '200px 300px', '8in 10in'.\").optional(),\n expiration: z.number().int().describe(\"Expiration time in minutes for the output file link.\").optional(),\n orientation: z.string().describe(\"Document orientation: 'Portrait' or 'Landscape'.\").optional(),\n printBackground: z.boolean().describe(\"Include background graphics (colors/images) if true.\").optional(),\n DoNotWaitFullLoad: z.boolean().describe(\"If true, speeds up conversion by not waiting for full page load.\").optional(),\n}).describe(\"Request model for converting HTML or URL to PDF.\");\nexport const PdfCoPdfFromHtmlOutput = z.object({\n url: z.string().describe(\"Link to the generated PDF file.\").nullable().optional(),\n name: z.string().describe(\"Output filename of the generated PDF.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Asynchronous job ID if async=true.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the request.\").nullable().optional(),\n credits: z.number().int().describe(\"Number of credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or informational message.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credit balance.\").nullable().optional(),\n}).passthrough().describe(\"Response model for converting HTML or URL to PDF.\");\n\nexport const pdfCoPdfFromHtml: AppAction<\n typeof PdfCoPdfFromHtmlInput,\n typeof PdfCoPdfFromHtmlOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_FROM_HTML\", {\n slug: \"pdf_co-pdf-from-html\",\n name: \"Convert HTML to PDF\",\n description: \"Tool to convert HTML code or webpage URL into a PDF document. Use when you need to capture a webpage or HTML snippet as a PDF file.\",\n input: PdfCoPdfFromHtmlInput,\n output: PdfCoPdfFromHtmlOutput,\n});\n"],"mappings":";;;AAiCA,MAAa,mBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnCmC,EAAE,OAAO;EAC5C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4LAA4L;EACrN,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EAChI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACvG,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,SAAS,kDAoBH;CACP,QApBoC,EAAE,OAAO;EAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-info-reader.cjs","names":["z","action"],"sources":["../../src/actions/pdf-info-reader.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfInfoReaderInput = z.object({\n url: z.string().describe(\"URL to the source PDF file\"),\n}).describe(\"Request model for retrieving detailed information and metadata of a PDF document.\");\nexport const PdfCoPdfInfoReaderOutput = z.object({\n info: z.record(z.string(), z.unknown()).describe(\"Extracted metadata and security permissions of the PDF\"),\n error: z.boolean().describe(\"Indicates if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits for the account\").nullable(),\n}).passthrough().describe(\"Response model for PDF Info Reader.\");\n\nexport const pdfCoPdfInfoReader = action(\"PDF_CO_PDF_INFO_READER\", {\n slug: \"pdf_co-pdf-info-reader\",\n name: \"PDF Info Reader\",\n description: \"Tool to retrieve detailed information and metadata of a PDF. Use when you need page count, author, encryption details, and other document properties.\",\n input: PdfCoPdfInfoReaderInput,\n output: PdfCoPdfInfoReaderOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-info-reader.cjs","names":["z","action"],"sources":["../../src/actions/pdf-info-reader.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 PdfCoPdfInfoReaderInput = z.object({\n url: z.string().describe(\"URL to the source PDF file\"),\n}).describe(\"Request model for retrieving detailed information and metadata of a PDF document.\");\nexport const PdfCoPdfInfoReaderOutput = z.object({\n info: z.record(z.string(), z.unknown()).describe(\"Extracted metadata and security permissions of the PDF\"),\n error: z.boolean().describe(\"Indicates if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits for the account\").nullable(),\n}).passthrough().describe(\"Response model for PDF Info Reader.\");\n\nexport const pdfCoPdfInfoReader: AppAction<\n typeof PdfCoPdfInfoReaderInput,\n typeof PdfCoPdfInfoReaderOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_INFO_READER\", {\n slug: \"pdf_co-pdf-info-reader\",\n name: \"PDF Info Reader\",\n description: \"Tool to retrieve detailed information and metadata of a PDF. Use when you need page count, author, encryption details, and other document properties.\",\n input: PdfCoPdfInfoReaderInput,\n output: PdfCoPdfInfoReaderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACvD,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD;CACzG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACnF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,qBAITC,eAAAA,OAAO,0BAA0B;CACnC,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-info-reader.d.ts
|
|
@@ -10,21 +12,7 @@ declare const PdfCoPdfInfoReaderOutput: z.ZodObject<{
|
|
|
10
12
|
status: z.ZodNullable<z.ZodNumber>;
|
|
11
13
|
remainingCredits: z.ZodNullable<z.ZodNumber>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const pdfCoPdfInfoReader:
|
|
14
|
-
url: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const pdfCoPdfInfoReader: AppAction<typeof PdfCoPdfInfoReaderInput, typeof PdfCoPdfInfoReaderOutput, typeof pdfCo.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { pdfCoPdfInfoReader };
|
|
30
18
|
//# sourceMappingURL=pdf-info-reader.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-info-reader.d.cts","names":[],"sources":["../../src/actions/pdf-info-reader.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-info-reader.d.cts","names":[],"sources":["../../src/actions/pdf-info-reader.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,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-info-reader.d.ts
|
|
@@ -10,21 +12,7 @@ declare const PdfCoPdfInfoReaderOutput: z.ZodObject<{
|
|
|
10
12
|
status: z.ZodNullable<z.ZodNumber>;
|
|
11
13
|
remainingCredits: z.ZodNullable<z.ZodNumber>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const pdfCoPdfInfoReader:
|
|
14
|
-
url: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const pdfCoPdfInfoReader: AppAction<typeof PdfCoPdfInfoReaderInput, typeof PdfCoPdfInfoReaderOutput, typeof pdfCo.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { pdfCoPdfInfoReader };
|
|
30
18
|
//# sourceMappingURL=pdf-info-reader.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-info-reader.d.mts","names":[],"sources":["../../src/actions/pdf-info-reader.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-info-reader.d.mts","names":[],"sources":["../../src/actions/pdf-info-reader.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-info-reader.mjs","names":[],"sources":["../../src/actions/pdf-info-reader.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfInfoReaderInput = z.object({\n url: z.string().describe(\"URL to the source PDF file\"),\n}).describe(\"Request model for retrieving detailed information and metadata of a PDF document.\");\nexport const PdfCoPdfInfoReaderOutput = z.object({\n info: z.record(z.string(), z.unknown()).describe(\"Extracted metadata and security permissions of the PDF\"),\n error: z.boolean().describe(\"Indicates if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits for the account\").nullable(),\n}).passthrough().describe(\"Response model for PDF Info Reader.\");\n\nexport const pdfCoPdfInfoReader = action(\"PDF_CO_PDF_INFO_READER\", {\n slug: \"pdf_co-pdf-info-reader\",\n name: \"PDF Info Reader\",\n description: \"Tool to retrieve detailed information and metadata of a PDF. Use when you need page count, author, encryption details, and other document properties.\",\n input: PdfCoPdfInfoReaderInput,\n output: PdfCoPdfInfoReaderOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-info-reader.mjs","names":[],"sources":["../../src/actions/pdf-info-reader.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 PdfCoPdfInfoReaderInput = z.object({\n url: z.string().describe(\"URL to the source PDF file\"),\n}).describe(\"Request model for retrieving detailed information and metadata of a PDF document.\");\nexport const PdfCoPdfInfoReaderOutput = z.object({\n info: z.record(z.string(), z.unknown()).describe(\"Extracted metadata and security permissions of the PDF\"),\n error: z.boolean().describe(\"Indicates if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits for the account\").nullable(),\n}).passthrough().describe(\"Response model for PDF Info Reader.\");\n\nexport const pdfCoPdfInfoReader: AppAction<\n typeof PdfCoPdfInfoReaderInput,\n typeof PdfCoPdfInfoReaderOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_INFO_READER\", {\n slug: \"pdf_co-pdf-info-reader\",\n name: \"PDF Info Reader\",\n description: \"Tool to retrieve detailed information and metadata of a PDF. Use when you need page count, author, encryption details, and other document properties.\",\n input: PdfCoPdfInfoReaderInput,\n output: PdfCoPdfInfoReaderOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,qBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBqC,EAAE,OAAO,EAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACvD,CAAC,CAAC,CAAC,SAAS,mFAgBH;CACP,QAhBsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD;EACzG,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACnF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-merge.cjs","names":["z","action"],"sources":["../../src/actions/pdf-merge.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfMergeInput = z.object({\n name: z.string().describe(\"Optional name for the resulting PDF file (must end with .pdf)\").optional(),\n urls: z.union([z.string(), z.array(z.string())]),\n profiles: z.string().describe(\"(Advanced) Custom JSON profiles for processing.\").optional(),\n run_async: z.boolean().describe(\"Run the merge asynchronously; if true returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for merging multiple PDF files into one document.\");\nexport const PdfCoPdfMergeOutput = z.object({\n url: z.string().describe(\"URL to the resulting merged PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n jobId: z.string().describe(\"Job ID when running in asynchronous mode\").nullable().optional(),\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}).passthrough().describe(\"Response model for PDF merge action.\");\n\nexport const pdfCoPdfMerge = action(\"PDF_CO_PDF_MERGE\", {\n slug: \"pdf_co-pdf-merge\",\n name: \"Merge PDFs\",\n description: \"Tool to merge multiple PDF files into one document. Use when you need to combine several PDF URLs into a single PDF file.\",\n input: PdfCoPdfMergeInput,\n output: PdfCoPdfMergeOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-merge.cjs","names":["z","action"],"sources":["../../src/actions/pdf-merge.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 PdfCoPdfMergeInput = z.object({\n name: z.string().describe(\"Optional name for the resulting PDF file (must end with .pdf)\").optional(),\n urls: z.union([z.string(), z.array(z.string())]),\n profiles: z.string().describe(\"(Advanced) Custom JSON profiles for processing.\").optional(),\n run_async: z.boolean().describe(\"Run the merge asynchronously; if true returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for merging multiple PDF files into one document.\");\nexport const PdfCoPdfMergeOutput = z.object({\n url: z.string().describe(\"URL to the resulting merged PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n jobId: z.string().describe(\"Job ID when running in asynchronous mode\").nullable().optional(),\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}).passthrough().describe(\"Response model for PDF merge action.\");\n\nexport const pdfCoPdfMerge: AppAction<\n typeof PdfCoPdfMergeInput,\n typeof PdfCoPdfMergeOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_MERGE\", {\n slug: \"pdf_co-pdf-merge\",\n name: \"Merge PDFs\",\n description: \"Tool to merge multiple PDF files into one document. Use when you need to combine several PDF URLs into a single PDF file.\",\n input: PdfCoPdfMergeInput,\n output: PdfCoPdfMergeOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,gBAITC,eAAAA,OAAO,oBAAoB;CAC7B,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-merge.d.ts
|
|
@@ -14,24 +16,7 @@ declare const PdfCoPdfMergeOutput: z.ZodObject<{
|
|
|
14
16
|
status: z.ZodNullable<z.ZodNumber>;
|
|
15
17
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const pdfCoPdfMerge:
|
|
18
|
-
urls: string | string[];
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
profiles?: string | undefined;
|
|
21
|
-
run_async?: boolean | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const pdfCoPdfMerge: AppAction<typeof PdfCoPdfMergeInput, typeof PdfCoPdfMergeOutput, typeof pdfCo.credential>;
|
|
35
20
|
//#endregion
|
|
36
21
|
export { pdfCoPdfMerge };
|
|
37
22
|
//# sourceMappingURL=pdf-merge.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-merge.d.cts","names":[],"sources":["../../src/actions/pdf-merge.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-merge.d.cts","names":[],"sources":["../../src/actions/pdf-merge.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;cAMlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;cAQnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,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-merge.d.ts
|
|
@@ -14,24 +16,7 @@ declare const PdfCoPdfMergeOutput: z.ZodObject<{
|
|
|
14
16
|
status: z.ZodNullable<z.ZodNumber>;
|
|
15
17
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const pdfCoPdfMerge:
|
|
18
|
-
urls: string | string[];
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
profiles?: string | undefined;
|
|
21
|
-
run_async?: boolean | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const pdfCoPdfMerge: AppAction<typeof PdfCoPdfMergeInput, typeof PdfCoPdfMergeOutput, typeof pdfCo.credential>;
|
|
35
20
|
//#endregion
|
|
36
21
|
export { pdfCoPdfMerge };
|
|
37
22
|
//# sourceMappingURL=pdf-merge.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-merge.d.mts","names":[],"sources":["../../src/actions/pdf-merge.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-merge.d.mts","names":[],"sources":["../../src/actions/pdf-merge.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;cAMlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;cAQnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-merge.mjs","names":[],"sources":["../../src/actions/pdf-merge.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfMergeInput = z.object({\n name: z.string().describe(\"Optional name for the resulting PDF file (must end with .pdf)\").optional(),\n urls: z.union([z.string(), z.array(z.string())]),\n profiles: z.string().describe(\"(Advanced) Custom JSON profiles for processing.\").optional(),\n run_async: z.boolean().describe(\"Run the merge asynchronously; if true returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for merging multiple PDF files into one document.\");\nexport const PdfCoPdfMergeOutput = z.object({\n url: z.string().describe(\"URL to the resulting merged PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n jobId: z.string().describe(\"Job ID when running in asynchronous mode\").nullable().optional(),\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}).passthrough().describe(\"Response model for PDF merge action.\");\n\nexport const pdfCoPdfMerge = action(\"PDF_CO_PDF_MERGE\", {\n slug: \"pdf_co-pdf-merge\",\n name: \"Merge PDFs\",\n description: \"Tool to merge multiple PDF files into one document. Use when you need to combine several PDF URLs into a single PDF file.\",\n input: PdfCoPdfMergeInput,\n output: PdfCoPdfMergeOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-merge.mjs","names":[],"sources":["../../src/actions/pdf-merge.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 PdfCoPdfMergeInput = z.object({\n name: z.string().describe(\"Optional name for the resulting PDF file (must end with .pdf)\").optional(),\n urls: z.union([z.string(), z.array(z.string())]),\n profiles: z.string().describe(\"(Advanced) Custom JSON profiles for processing.\").optional(),\n run_async: z.boolean().describe(\"Run the merge asynchronously; if true returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for merging multiple PDF files into one document.\");\nexport const PdfCoPdfMergeOutput = z.object({\n url: z.string().describe(\"URL to the resulting merged PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n jobId: z.string().describe(\"Job ID when running in asynchronous mode\").nullable().optional(),\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}).passthrough().describe(\"Response model for PDF merge action.\");\n\nexport const pdfCoPdfMerge: AppAction<\n typeof PdfCoPdfMergeInput,\n typeof PdfCoPdfMergeOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_MERGE\", {\n slug: \"pdf_co-pdf-merge\",\n name: \"Merge PDFs\",\n description: \"Tool to merge multiple PDF files into one document. Use when you need to combine several PDF URLs into a single PDF file.\",\n input: PdfCoPdfMergeInput,\n output: PdfCoPdfMergeOutput,\n});\n"],"mappings":";;;AAoBA,MAAa,gBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBgC,EAAE,OAAO;EACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,iEAiBH;CACP,QAjBiC,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-rotate.cjs","names":["z","action"],"sources":["../../src/actions/pdf-rotate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfRotateInput = z.object({\n url: z.string().describe(\"URL of the source PDF file to rotate\"),\n name: z.string().describe(\"Optional filename for the resulting PDF (should end with .pdf)\").optional(),\n angle: z.union([z.literal(90), z.literal(180), z.literal(270)]).describe(\"Rotation angle in degrees; must be one of 90, 180, or 270\"),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')\"),\n password: z.string().describe(\"Password for encrypted PDFs, if required\").optional(),\n run_async: z.boolean().describe(\"Run the operation asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for rotating pages in a PDF document.\");\nexport const PdfCoPdfRotateOutput = z.object({\n url: z.string().describe(\"URL to the resulting rotated PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n message: z.string().describe(\"Success or error message from the API\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of remaining API credits after the call\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFRotate action.\");\n\nexport const pdfCoPdfRotate = action(\"PDF_CO_PDF_ROTATE\", {\n slug: \"pdf_co-pdf-rotate\",\n name: \"Rotate PDF Pages\",\n description: \"Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.\",\n input: PdfCoPdfRotateInput,\n output: PdfCoPdfRotateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-rotate.cjs","names":["z","action"],"sources":["../../src/actions/pdf-rotate.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 PdfCoPdfRotateInput = z.object({\n url: z.string().describe(\"URL of the source PDF file to rotate\"),\n name: z.string().describe(\"Optional filename for the resulting PDF (should end with .pdf)\").optional(),\n angle: z.union([z.literal(90), z.literal(180), z.literal(270)]).describe(\"Rotation angle in degrees; must be one of 90, 180, or 270\"),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')\"),\n password: z.string().describe(\"Password for encrypted PDFs, if required\").optional(),\n run_async: z.boolean().describe(\"Run the operation asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for rotating pages in a PDF document.\");\nexport const PdfCoPdfRotateOutput = z.object({\n url: z.string().describe(\"URL to the resulting rotated PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n message: z.string().describe(\"Success or error message from the API\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of remaining API credits after the call\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFRotate action.\");\n\nexport const pdfCoPdfRotate: AppAction<\n typeof PdfCoPdfRotateInput,\n typeof PdfCoPdfRotateOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_ROTATE\", {\n slug: \"pdf_co-pdf-rotate\",\n name: \"Rotate PDF Pages\",\n description: \"Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.\",\n input: PdfCoPdfRotateInput,\n output: PdfCoPdfRotateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,EAAE;EAAGA,IAAAA,EAAE,QAAQ,GAAG;EAAGA,IAAAA,EAAE,QAAQ,GAAG;CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;CACpI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACrG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,iBAITC,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-rotate.d.ts
|
|
@@ -16,26 +18,7 @@ declare const PdfCoPdfRotateOutput: z.ZodObject<{
|
|
|
16
18
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const pdfCoPdfRotate:
|
|
20
|
-
url: string;
|
|
21
|
-
angle: 90 | 180 | 270;
|
|
22
|
-
pages: string;
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
password?: string | undefined;
|
|
25
|
-
run_async?: boolean | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const pdfCoPdfRotate: AppAction<typeof PdfCoPdfRotateInput, typeof PdfCoPdfRotateOutput, typeof pdfCo.credential>;
|
|
39
22
|
//#endregion
|
|
40
23
|
export { pdfCoPdfRotate };
|
|
41
24
|
//# sourceMappingURL=pdf-rotate.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-rotate.d.cts","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-rotate.d.cts","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;cAQpB,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-rotate.d.ts
|
|
@@ -16,26 +18,7 @@ declare const PdfCoPdfRotateOutput: z.ZodObject<{
|
|
|
16
18
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const pdfCoPdfRotate:
|
|
20
|
-
url: string;
|
|
21
|
-
angle: 90 | 180 | 270;
|
|
22
|
-
pages: string;
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
password?: string | undefined;
|
|
25
|
-
run_async?: boolean | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const pdfCoPdfRotate: AppAction<typeof PdfCoPdfRotateInput, typeof PdfCoPdfRotateOutput, typeof pdfCo.credential>;
|
|
39
22
|
//#endregion
|
|
40
23
|
export { pdfCoPdfRotate };
|
|
41
24
|
//# sourceMappingURL=pdf-rotate.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-rotate.d.mts","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-rotate.d.mts","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;cAQpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-rotate.mjs","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfRotateInput = z.object({\n url: z.string().describe(\"URL of the source PDF file to rotate\"),\n name: z.string().describe(\"Optional filename for the resulting PDF (should end with .pdf)\").optional(),\n angle: z.union([z.literal(90), z.literal(180), z.literal(270)]).describe(\"Rotation angle in degrees; must be one of 90, 180, or 270\"),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')\"),\n password: z.string().describe(\"Password for encrypted PDFs, if required\").optional(),\n run_async: z.boolean().describe(\"Run the operation asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for rotating pages in a PDF document.\");\nexport const PdfCoPdfRotateOutput = z.object({\n url: z.string().describe(\"URL to the resulting rotated PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n message: z.string().describe(\"Success or error message from the API\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of remaining API credits after the call\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFRotate action.\");\n\nexport const pdfCoPdfRotate = action(\"PDF_CO_PDF_ROTATE\", {\n slug: \"pdf_co-pdf-rotate\",\n name: \"Rotate PDF Pages\",\n description: \"Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.\",\n input: PdfCoPdfRotateInput,\n output: PdfCoPdfRotateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-rotate.mjs","names":[],"sources":["../../src/actions/pdf-rotate.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 PdfCoPdfRotateInput = z.object({\n url: z.string().describe(\"URL of the source PDF file to rotate\"),\n name: z.string().describe(\"Optional filename for the resulting PDF (should end with .pdf)\").optional(),\n angle: z.union([z.literal(90), z.literal(180), z.literal(270)]).describe(\"Rotation angle in degrees; must be one of 90, 180, or 270\"),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')\"),\n password: z.string().describe(\"Password for encrypted PDFs, if required\").optional(),\n run_async: z.boolean().describe(\"Run the operation asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for rotating pages in a PDF document.\");\nexport const PdfCoPdfRotateOutput = z.object({\n url: z.string().describe(\"URL to the resulting rotated PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n message: z.string().describe(\"Success or error message from the API\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of remaining API credits after the call\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFRotate action.\");\n\nexport const pdfCoPdfRotate: AppAction<\n typeof PdfCoPdfRotateInput,\n typeof PdfCoPdfRotateOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_ROTATE\", {\n slug: \"pdf_co-pdf-rotate\",\n name: \"Rotate PDF Pages\",\n description: \"Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.\",\n input: PdfCoPdfRotateInput,\n output: PdfCoPdfRotateOutput,\n});\n"],"mappings":";;;AAsBA,MAAa,iBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBiC,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,MAAM;GAAC,EAAE,QAAQ,EAAE;GAAG,EAAE,QAAQ,GAAG;GAAG,EAAE,QAAQ,GAAG;EAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;EACpI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,qDAiBH;CACP,QAjBkC,EAAE,OAAO;EAC3C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-search-and-delete-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSearchAndDeleteTextInput = z.object({\n url: z.string().describe(\"URL or base64 content of the source PDF file.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run operation asynchronously. Returns jobId if true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.\").optional(),\n regex: z.boolean().describe(\"Treat searchString as regular expression.\").optional(),\n password: z.string().describe(\"Password for protected PDF if required.\").optional(),\n searchString: z.string().describe(\"Text string or regex pattern to search and delete.\"),\n caseSensitive: z.boolean().describe(\"Enable case-sensitive matching. Default is true.\").optional(),\n}).describe(\"Request model for searching and deleting text in a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndDeleteTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting PDF file after text deletion.\").nullable(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during the operation.\").nullable(),\n status: z.number().int().describe(\"Status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF.\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the request.\").nullable(),\n}).passthrough().describe(\"Response model for searching and deleting text in a PDF.\");\n\nexport const pdfCoPdfSearchAndDeleteText = action(\"PDF_CO_PDF_SEARCH_AND_DELETE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-delete-text\",\n name: \"Search and Delete Text in PDF\",\n description: \"Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.\",\n input: PdfCoPdfSearchAndDeleteTextInput,\n output: PdfCoPdfSearchAndDeleteTextOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-search-and-delete-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-search-and-delete-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 PdfCoPdfSearchAndDeleteTextInput = z.object({\n url: z.string().describe(\"URL or base64 content of the source PDF file.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run operation asynchronously. Returns jobId if true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.\").optional(),\n regex: z.boolean().describe(\"Treat searchString as regular expression.\").optional(),\n password: z.string().describe(\"Password for protected PDF if required.\").optional(),\n searchString: z.string().describe(\"Text string or regex pattern to search and delete.\"),\n caseSensitive: z.boolean().describe(\"Enable case-sensitive matching. Default is true.\").optional(),\n}).describe(\"Request model for searching and deleting text in a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndDeleteTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting PDF file after text deletion.\").nullable(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during the operation.\").nullable(),\n status: z.number().int().describe(\"Status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF.\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the request.\").nullable(),\n}).passthrough().describe(\"Response model for searching and deleting text in a PDF.\");\n\nexport const pdfCoPdfSearchAndDeleteText: AppAction<\n typeof PdfCoPdfSearchAndDeleteTextInput,\n typeof PdfCoPdfSearchAndDeleteTextOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_SEARCH_AND_DELETE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-delete-text\",\n name: \"Search and Delete Text in PDF\",\n description: \"Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.\",\n input: PdfCoPdfSearchAndDeleteTextInput,\n output: PdfCoPdfSearchAndDeleteTextOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACtF,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,8BAITC,eAAAA,OAAO,qCAAqC;CAC9C,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-search-and-delete-text.d.ts
|
|
@@ -21,28 +23,7 @@ declare const PdfCoPdfSearchAndDeleteTextOutput: z.ZodObject<{
|
|
|
21
23
|
pageCount: z.ZodNullable<z.ZodNumber>;
|
|
22
24
|
remainingCredits: z.ZodNullable<z.ZodNumber>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const pdfCoPdfSearchAndDeleteText:
|
|
25
|
-
url: string;
|
|
26
|
-
searchString: string;
|
|
27
|
-
name?: string | undefined;
|
|
28
|
-
async?: boolean | undefined;
|
|
29
|
-
pages?: string | undefined;
|
|
30
|
-
regex?: boolean | undefined;
|
|
31
|
-
password?: string | undefined;
|
|
32
|
-
caseSensitive?: boolean | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
generic_api_key: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const pdfCoPdfSearchAndDeleteText: AppAction<typeof PdfCoPdfSearchAndDeleteTextInput, typeof PdfCoPdfSearchAndDeleteTextOutput, typeof pdfCo.credential>;
|
|
46
27
|
//#endregion
|
|
47
28
|
export { pdfCoPdfSearchAndDeleteText };
|
|
48
29
|
//# sourceMappingURL=pdf-search-and-delete-text.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-search-and-delete-text.d.cts","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-search-and-delete-text.d.cts","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;cAUhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAWjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,KAAA,CAAM,UAAA"}
|