@keystrokehq/pdf_co 0.1.2 → 0.1.3
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/actions/convert-excel-to-html.cjs +1 -1
- package/dist/actions/convert-excel-to-html.cjs.map +1 -1
- package/dist/actions/convert-excel-to-html.d.cts +1 -1
- package/dist/actions/convert-excel-to-html.d.mts +1 -1
- package/dist/actions/convert-excel-to-html.mjs +1 -1
- package/dist/actions/convert-excel-to-html.mjs.map +1 -1
- package/dist/actions/convert-excel-to-json.cjs +1 -1
- package/dist/actions/convert-excel-to-json.cjs.map +1 -1
- package/dist/actions/convert-excel-to-json.d.cts +1 -1
- package/dist/actions/convert-excel-to-json.d.mts +1 -1
- package/dist/actions/convert-excel-to-json.mjs +1 -1
- package/dist/actions/convert-excel-to-json.mjs.map +1 -1
- package/dist/actions/document-parser.cjs +1 -1
- package/dist/actions/document-parser.cjs.map +1 -1
- package/dist/actions/document-parser.d.cts +1 -1
- package/dist/actions/document-parser.d.mts +1 -1
- package/dist/actions/document-parser.mjs +1 -1
- package/dist/actions/document-parser.mjs.map +1 -1
- package/dist/actions/file-upload.cjs +1 -1
- package/dist/actions/file-upload.cjs.map +1 -1
- package/dist/actions/file-upload.d.cts +1 -1
- package/dist/actions/file-upload.d.mts +1 -1
- package/dist/actions/file-upload.mjs +1 -1
- package/dist/actions/file-upload.mjs.map +1 -1
- package/dist/actions/job-check.cjs +1 -1
- package/dist/actions/job-check.cjs.map +1 -1
- package/dist/actions/job-check.d.cts +1 -1
- package/dist/actions/job-check.d.mts +1 -1
- package/dist/actions/job-check.mjs +1 -1
- package/dist/actions/job-check.mjs.map +1 -1
- package/dist/actions/pdf-add.cjs +1 -1
- package/dist/actions/pdf-add.cjs.map +1 -1
- package/dist/actions/pdf-add.d.cts +1 -1
- package/dist/actions/pdf-add.d.mts +1 -1
- package/dist/actions/pdf-add.mjs +1 -1
- package/dist/actions/pdf-add.mjs.map +1 -1
- package/dist/actions/pdf-change-text-searchable.cjs +1 -1
- package/dist/actions/pdf-change-text-searchable.cjs.map +1 -1
- package/dist/actions/pdf-change-text-searchable.d.cts +1 -1
- package/dist/actions/pdf-change-text-searchable.d.mts +1 -1
- package/dist/actions/pdf-change-text-searchable.mjs +1 -1
- package/dist/actions/pdf-change-text-searchable.mjs.map +1 -1
- package/dist/actions/pdf-delete-pages.cjs +1 -1
- package/dist/actions/pdf-delete-pages.cjs.map +1 -1
- package/dist/actions/pdf-delete-pages.d.cts +1 -1
- package/dist/actions/pdf-delete-pages.d.mts +1 -1
- package/dist/actions/pdf-delete-pages.mjs +1 -1
- package/dist/actions/pdf-delete-pages.mjs.map +1 -1
- package/dist/actions/pdf-extract-attachments.cjs +1 -1
- package/dist/actions/pdf-extract-attachments.cjs.map +1 -1
- package/dist/actions/pdf-extract-attachments.d.cts +1 -1
- package/dist/actions/pdf-extract-attachments.d.mts +1 -1
- package/dist/actions/pdf-extract-attachments.mjs +1 -1
- package/dist/actions/pdf-extract-attachments.mjs.map +1 -1
- package/dist/actions/pdf-find.cjs +2 -2
- package/dist/actions/pdf-find.cjs.map +1 -1
- package/dist/actions/pdf-find.d.cts +2 -2
- package/dist/actions/pdf-find.d.mts +2 -2
- package/dist/actions/pdf-find.mjs +2 -2
- package/dist/actions/pdf-find.mjs.map +1 -1
- package/dist/actions/pdf-from-html.cjs +1 -1
- package/dist/actions/pdf-from-html.cjs.map +1 -1
- package/dist/actions/pdf-from-html.d.cts +1 -1
- package/dist/actions/pdf-from-html.d.mts +1 -1
- package/dist/actions/pdf-from-html.mjs +1 -1
- package/dist/actions/pdf-from-html.mjs.map +1 -1
- package/dist/actions/pdf-info-reader.cjs +1 -1
- package/dist/actions/pdf-info-reader.cjs.map +1 -1
- package/dist/actions/pdf-info-reader.d.cts +1 -1
- package/dist/actions/pdf-info-reader.d.mts +1 -1
- package/dist/actions/pdf-info-reader.mjs +1 -1
- package/dist/actions/pdf-info-reader.mjs.map +1 -1
- package/dist/actions/pdf-merge.cjs +1 -1
- package/dist/actions/pdf-merge.cjs.map +1 -1
- package/dist/actions/pdf-merge.d.cts +1 -1
- package/dist/actions/pdf-merge.d.mts +1 -1
- package/dist/actions/pdf-merge.mjs +1 -1
- package/dist/actions/pdf-merge.mjs.map +1 -1
- package/dist/actions/pdf-rotate.cjs +1 -1
- package/dist/actions/pdf-rotate.cjs.map +1 -1
- package/dist/actions/pdf-rotate.d.cts +1 -1
- package/dist/actions/pdf-rotate.d.mts +1 -1
- package/dist/actions/pdf-rotate.mjs +1 -1
- package/dist/actions/pdf-rotate.mjs.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.cjs +1 -1
- package/dist/actions/pdf-search-and-delete-text.cjs.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.d.cts +1 -1
- package/dist/actions/pdf-search-and-delete-text.d.mts +1 -1
- package/dist/actions/pdf-search-and-delete-text.mjs +1 -1
- package/dist/actions/pdf-search-and-delete-text.mjs.map +1 -1
- package/dist/actions/pdf-split.cjs +1 -1
- package/dist/actions/pdf-split.cjs.map +1 -1
- package/dist/actions/pdf-split.d.cts +1 -1
- package/dist/actions/pdf-split.d.mts +1 -1
- package/dist/actions/pdf-split.mjs +1 -1
- package/dist/actions/pdf-split.mjs.map +1 -1
- package/dist/actions/pdf-to-csv.cjs +1 -1
- package/dist/actions/pdf-to-csv.cjs.map +1 -1
- package/dist/actions/pdf-to-csv.d.cts +1 -1
- package/dist/actions/pdf-to-csv.d.mts +1 -1
- package/dist/actions/pdf-to-csv.mjs +1 -1
- package/dist/actions/pdf-to-csv.mjs.map +1 -1
- package/dist/actions/pdf-to-image.cjs +1 -1
- package/dist/actions/pdf-to-image.cjs.map +1 -1
- package/dist/actions/pdf-to-image.d.cts +1 -1
- package/dist/actions/pdf-to-image.d.mts +1 -1
- package/dist/actions/pdf-to-image.mjs +1 -1
- package/dist/actions/pdf-to-image.mjs.map +1 -1
- package/dist/actions/pdf-to-json.cjs +1 -1
- package/dist/actions/pdf-to-json.cjs.map +1 -1
- package/dist/actions/pdf-to-json.d.cts +1 -1
- package/dist/actions/pdf-to-json.d.mts +1 -1
- package/dist/actions/pdf-to-json.mjs +1 -1
- package/dist/actions/pdf-to-json.mjs.map +1 -1
- package/dist/actions/pdf-to-xls.cjs +1 -1
- package/dist/actions/pdf-to-xls.cjs.map +1 -1
- package/dist/actions/pdf-to-xls.d.cts +1 -1
- package/dist/actions/pdf-to-xls.d.mts +1 -1
- package/dist/actions/pdf-to-xls.mjs +1 -1
- package/dist/actions/pdf-to-xls.mjs.map +1 -1
- package/dist/actions/pdf-to-xlsx.cjs +1 -1
- package/dist/actions/pdf-to-xlsx.cjs.map +1 -1
- package/dist/actions/pdf-to-xlsx.d.cts +1 -1
- package/dist/actions/pdf-to-xlsx.d.mts +1 -1
- package/dist/actions/pdf-to-xlsx.mjs +1 -1
- package/dist/actions/pdf-to-xlsx.mjs.map +1 -1
- package/dist/actions/pdf-to-xml.cjs +1 -1
- package/dist/actions/pdf-to-xml.cjs.map +1 -1
- package/dist/actions/pdf-to-xml.d.cts +1 -1
- package/dist/actions/pdf-to-xml.d.mts +1 -1
- package/dist/actions/pdf-to-xml.mjs +1 -1
- package/dist/actions/pdf-to-xml.mjs.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.cjs +1 -1
- package/dist/actions/pdfco-post-barcode-generate.cjs.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.d.cts +1 -1
- package/dist/actions/pdfco-post-barcode-generate.d.mts +1 -1
- package/dist/actions/pdfco-post-barcode-generate.mjs +1 -1
- package/dist/actions/pdfco-post-barcode-generate.mjs.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.cjs +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.cjs.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.d.cts +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.d.mts +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.mjs +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ const PdfCoPdfDeletePagesOutput = zod.z.object({
|
|
|
15
15
|
status: zod.z.number().int().describe("HTTP status code of the operation.").nullable(),
|
|
16
16
|
message: zod.z.string().describe("Error or operation message.").nullable().optional(),
|
|
17
17
|
pageCount: zod.z.number().int().describe("Number of pages in the output PDF document.").nullable()
|
|
18
|
-
}).describe("Response model for deleting PDF pages.");
|
|
18
|
+
}).passthrough().describe("Response model for deleting PDF pages.");
|
|
19
19
|
const pdfCoPdfDeletePages = require_action.action("PDF_CO_PDF_DELETE_PAGES", {
|
|
20
20
|
slug: "pdf_co-pdf-delete-pages",
|
|
21
21
|
name: "Delete PDF Pages",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-delete-pages.cjs","names":["z","action"],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfDeletePagesInput = z.object({\n url: z.string().describe(\"URL or base64-encoded content of the source PDF.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to delete (1-based). E.g., '1,3-5' to delete pages 1, 3, 4, and 5.\"),\n password: z.string().describe(\"Password for protected PDF file.\").optional(),\n profiles: z.string().describe(\"Optional JSON string for advanced configuration.\").optional(),\n async_job: z.boolean().describe(\"Process request asynchronously. If true, returns a job ID instead of immediate URL.\").optional(),\n}).describe(\"Request model for deleting pages from a PDF via PDF.co API.\");\nexport const PdfCoPdfDeletePagesOutput = z.object({\n url: z.string().describe(\"URL of the PDF file with pages deleted.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred.\").nullable(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n message: z.string().describe(\"Error or operation message.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF document.\").nullable(),\n}).describe(\"Response model for deleting PDF pages.\");\n\nexport const pdfCoPdfDeletePages = action(\"PDF_CO_PDF_DELETE_PAGES\", {\n slug: \"pdf_co-pdf-delete-pages\",\n name: \"Delete PDF Pages\",\n description: \"Tool to delete specific pages from a PDF file. Use when you need to remove unwanted pages before further processing.\",\n input: PdfCoPdfDeletePagesInput,\n output: PdfCoPdfDeletePagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC9I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"pdf-delete-pages.cjs","names":["z","action"],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfDeletePagesInput = z.object({\n url: z.string().describe(\"URL or base64-encoded content of the source PDF.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to delete (1-based). E.g., '1,3-5' to delete pages 1, 3, 4, and 5.\"),\n password: z.string().describe(\"Password for protected PDF file.\").optional(),\n profiles: z.string().describe(\"Optional JSON string for advanced configuration.\").optional(),\n async_job: z.boolean().describe(\"Process request asynchronously. If true, returns a job ID instead of immediate URL.\").optional(),\n}).describe(\"Request model for deleting pages from a PDF via PDF.co API.\");\nexport const PdfCoPdfDeletePagesOutput = z.object({\n url: z.string().describe(\"URL of the PDF file with pages deleted.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred.\").nullable(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n message: z.string().describe(\"Error or operation message.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF document.\").nullable(),\n}).passthrough().describe(\"Response model for deleting PDF pages.\");\n\nexport const pdfCoPdfDeletePages = action(\"PDF_CO_PDF_DELETE_PAGES\", {\n slug: \"pdf_co-pdf-delete-pages\",\n name: \"Delete PDF Pages\",\n description: \"Tool to delete specific pages from a PDF file. Use when you need to remove unwanted pages before further processing.\",\n input: PdfCoPdfDeletePagesInput,\n output: PdfCoPdfDeletePagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC9I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,sBAAsBC,eAAAA,OAAO,2BAA2B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const PdfCoPdfDeletePagesOutput: z.ZodObject<{
|
|
|
15
15
|
status: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
pageCount: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const pdfCoPdfDeletePages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
url: string;
|
|
21
21
|
pages: string;
|
|
@@ -15,7 +15,7 @@ declare const PdfCoPdfDeletePagesOutput: z.ZodObject<{
|
|
|
15
15
|
status: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
pageCount: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const pdfCoPdfDeletePages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
url: string;
|
|
21
21
|
pages: string;
|
|
@@ -18,7 +18,7 @@ const pdfCoPdfDeletePages = action("PDF_CO_PDF_DELETE_PAGES", {
|
|
|
18
18
|
status: z.number().int().describe("HTTP status code of the operation.").nullable(),
|
|
19
19
|
message: z.string().describe("Error or operation message.").nullable().optional(),
|
|
20
20
|
pageCount: z.number().int().describe("Number of pages in the output PDF document.").nullable()
|
|
21
|
-
}).describe("Response model for deleting PDF pages.")
|
|
21
|
+
}).passthrough().describe("Response model for deleting PDF pages.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { pdfCoPdfDeletePages };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-delete-pages.mjs","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfDeletePagesInput = z.object({\n url: z.string().describe(\"URL or base64-encoded content of the source PDF.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to delete (1-based). E.g., '1,3-5' to delete pages 1, 3, 4, and 5.\"),\n password: z.string().describe(\"Password for protected PDF file.\").optional(),\n profiles: z.string().describe(\"Optional JSON string for advanced configuration.\").optional(),\n async_job: z.boolean().describe(\"Process request asynchronously. If true, returns a job ID instead of immediate URL.\").optional(),\n}).describe(\"Request model for deleting pages from a PDF via PDF.co API.\");\nexport const PdfCoPdfDeletePagesOutput = z.object({\n url: z.string().describe(\"URL of the PDF file with pages deleted.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred.\").nullable(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n message: z.string().describe(\"Error or operation message.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF document.\").nullable(),\n}).describe(\"Response model for deleting PDF pages.\");\n\nexport const pdfCoPdfDeletePages = action(\"PDF_CO_PDF_DELETE_PAGES\", {\n slug: \"pdf_co-pdf-delete-pages\",\n name: \"Delete PDF Pages\",\n description: \"Tool to delete specific pages from a PDF file. Use when you need to remove unwanted pages before further processing.\",\n input: PdfCoPdfDeletePagesInput,\n output: PdfCoPdfDeletePagesOutput,\n});\n"],"mappings":";;AAoBA,MAAa,sBAAsB,OAAO,2BAA2B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;EAC9I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,6DAaH;CACP,QAbuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"pdf-delete-pages.mjs","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfDeletePagesInput = z.object({\n url: z.string().describe(\"URL or base64-encoded content of the source PDF.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to delete (1-based). E.g., '1,3-5' to delete pages 1, 3, 4, and 5.\"),\n password: z.string().describe(\"Password for protected PDF file.\").optional(),\n profiles: z.string().describe(\"Optional JSON string for advanced configuration.\").optional(),\n async_job: z.boolean().describe(\"Process request asynchronously. If true, returns a job ID instead of immediate URL.\").optional(),\n}).describe(\"Request model for deleting pages from a PDF via PDF.co API.\");\nexport const PdfCoPdfDeletePagesOutput = z.object({\n url: z.string().describe(\"URL of the PDF file with pages deleted.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred.\").nullable(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n message: z.string().describe(\"Error or operation message.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF document.\").nullable(),\n}).passthrough().describe(\"Response model for deleting PDF pages.\");\n\nexport const pdfCoPdfDeletePages = action(\"PDF_CO_PDF_DELETE_PAGES\", {\n slug: \"pdf_co-pdf-delete-pages\",\n name: \"Delete PDF Pages\",\n description: \"Tool to delete specific pages from a PDF file. Use when you need to remove unwanted pages before further processing.\",\n input: PdfCoPdfDeletePagesInput,\n output: PdfCoPdfDeletePagesOutput,\n});\n"],"mappings":";;AAoBA,MAAa,sBAAsB,OAAO,2BAA2B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;EAC9I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,6DAaH;CACP,QAbuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -22,7 +22,7 @@ const PdfCoPdfExtractAttachmentsOutput = zod.z.object({
|
|
|
22
22
|
duration: zod.z.number().int().describe("Processing duration in milliseconds.").nullable().optional(),
|
|
23
23
|
pageCount: zod.z.number().int().describe("Number of pages in the PDF.").nullable().optional(),
|
|
24
24
|
remainingCredits: zod.z.number().int().describe("Remaining account credits.").nullable().optional()
|
|
25
|
-
}).describe("Response model for extracting attachments from a PDF.");
|
|
25
|
+
}).passthrough().describe("Response model for extracting attachments from a PDF.");
|
|
26
26
|
const pdfCoPdfExtractAttachments = require_action.action("PDF_CO_PDF_EXTRACT_ATTACHMENTS", {
|
|
27
27
|
slug: "pdf_co-pdf-extract-attachments",
|
|
28
28
|
name: "Extract PDF Attachments",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-extract-attachments.cjs","names":["z","action"],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput = z.object({\n url: z.string().describe(\"URL of the input PDF file to process.\"),\n inline: z.boolean().describe(\"If true, returns attachment data inline; otherwise returns URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for receiving async results.\").optional(),\n password: z.string().describe(\"Password for protected PDF file (if applicable).\").optional(),\n async_job: z.boolean().describe(\"Run processing asynchronously. If true, returns a jobId for async processing.\").optional(),\n expiration: z.number().int().describe(\"Set the expiration time for the output link in minutes. Default is 60.\").optional(),\n httppassword: z.string().describe(\"HTTP authentication password for accessing the source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP authentication username for accessing the source URL.\").optional(),\n}).describe(\"Request model for extracting attachments from a PDF.\");\nexport const PdfCoPdfExtractAttachmentsOutput = z.object({\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n urls: z.array(z.string()).describe(\"List of URLs to the extracted attachment files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async processing (when async=true).\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits used for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message.\").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 PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n}).describe(\"Response model for extracting attachments from a PDF.\");\n\nexport const pdfCoPdfExtractAttachments = action(\"PDF_CO_PDF_EXTRACT_ATTACHMENTS\", {\n slug: \"pdf_co-pdf-extract-attachments\",\n name: \"Extract PDF Attachments\",\n description: \"Tool to extract embedded attachments from a PDF. Use when you need to retrieve embedded files from a PDF after uploading.\",\n input: PdfCoPdfExtractAttachmentsInput,\n output: PdfCoPdfExtractAttachmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACzH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,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,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,uDAAuD;
|
|
1
|
+
{"version":3,"file":"pdf-extract-attachments.cjs","names":["z","action"],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput = z.object({\n url: z.string().describe(\"URL of the input PDF file to process.\"),\n inline: z.boolean().describe(\"If true, returns attachment data inline; otherwise returns URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for receiving async results.\").optional(),\n password: z.string().describe(\"Password for protected PDF file (if applicable).\").optional(),\n async_job: z.boolean().describe(\"Run processing asynchronously. If true, returns a jobId for async processing.\").optional(),\n expiration: z.number().int().describe(\"Set the expiration time for the output link in minutes. Default is 60.\").optional(),\n httppassword: z.string().describe(\"HTTP authentication password for accessing the source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP authentication username for accessing the source URL.\").optional(),\n}).describe(\"Request model for extracting attachments from a PDF.\");\nexport const PdfCoPdfExtractAttachmentsOutput = z.object({\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n urls: z.array(z.string()).describe(\"List of URLs to the extracted attachment files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async processing (when async=true).\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits used for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message.\").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 PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n}).passthrough().describe(\"Response model for extracting attachments from a PDF.\");\n\nexport const pdfCoPdfExtractAttachments = action(\"PDF_CO_PDF_EXTRACT_ATTACHMENTS\", {\n slug: \"pdf_co-pdf-extract-attachments\",\n name: \"Extract PDF Attachments\",\n description: \"Tool to extract embedded attachments from a PDF. Use when you need to retrieve embedded files from a PDF after uploading.\",\n input: PdfCoPdfExtractAttachmentsInput,\n output: PdfCoPdfExtractAttachmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CA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CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,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,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -22,7 +22,7 @@ declare const PdfCoPdfExtractAttachmentsOutput: z.ZodObject<{
|
|
|
22
22
|
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const pdfCoPdfExtractAttachments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
url: string;
|
|
28
28
|
inline?: boolean | undefined;
|
|
@@ -22,7 +22,7 @@ declare const PdfCoPdfExtractAttachmentsOutput: z.ZodObject<{
|
|
|
22
22
|
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const pdfCoPdfExtractAttachments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
url: string;
|
|
28
28
|
inline?: boolean | undefined;
|
|
@@ -25,7 +25,7 @@ const pdfCoPdfExtractAttachments = action("PDF_CO_PDF_EXTRACT_ATTACHMENTS", {
|
|
|
25
25
|
duration: z.number().int().describe("Processing duration in milliseconds.").nullable().optional(),
|
|
26
26
|
pageCount: z.number().int().describe("Number of pages in the PDF.").nullable().optional(),
|
|
27
27
|
remainingCredits: z.number().int().describe("Remaining account credits.").nullable().optional()
|
|
28
|
-
}).describe("Response model for extracting attachments from a PDF.")
|
|
28
|
+
}).passthrough().describe("Response model for extracting attachments from a PDF.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { pdfCoPdfExtractAttachments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-extract-attachments.mjs","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput = z.object({\n url: z.string().describe(\"URL of the input PDF file to process.\"),\n inline: z.boolean().describe(\"If true, returns attachment data inline; otherwise returns URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for receiving async results.\").optional(),\n password: z.string().describe(\"Password for protected PDF file (if applicable).\").optional(),\n async_job: z.boolean().describe(\"Run processing asynchronously. If true, returns a jobId for async processing.\").optional(),\n expiration: z.number().int().describe(\"Set the expiration time for the output link in minutes. Default is 60.\").optional(),\n httppassword: z.string().describe(\"HTTP authentication password for accessing the source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP authentication username for accessing the source URL.\").optional(),\n}).describe(\"Request model for extracting attachments from a PDF.\");\nexport const PdfCoPdfExtractAttachmentsOutput = z.object({\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n urls: z.array(z.string()).describe(\"List of URLs to the extracted attachment files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async processing (when async=true).\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits used for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message.\").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 PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n}).describe(\"Response model for extracting attachments from a PDF.\");\n\nexport const pdfCoPdfExtractAttachments = action(\"PDF_CO_PDF_EXTRACT_ATTACHMENTS\", {\n slug: \"pdf_co-pdf-extract-attachments\",\n name: \"Extract PDF Attachments\",\n description: \"Tool to extract embedded attachments from a PDF. Use when you need to retrieve embedded files from a PDF after uploading.\",\n input: PdfCoPdfExtractAttachmentsInput,\n output: PdfCoPdfExtractAttachmentsOutput,\n});\n"],"mappings":";;AA2BA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAChE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACzH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,sDAkBH;CACP,QAlB8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"pdf-extract-attachments.mjs","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput = z.object({\n url: z.string().describe(\"URL of the input PDF file to process.\"),\n inline: z.boolean().describe(\"If true, returns attachment data inline; otherwise returns URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for receiving async results.\").optional(),\n password: z.string().describe(\"Password for protected PDF file (if applicable).\").optional(),\n async_job: z.boolean().describe(\"Run processing asynchronously. If true, returns a jobId for async processing.\").optional(),\n expiration: z.number().int().describe(\"Set the expiration time for the output link in minutes. Default is 60.\").optional(),\n httppassword: z.string().describe(\"HTTP authentication password for accessing the source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP authentication username for accessing the source URL.\").optional(),\n}).describe(\"Request model for extracting attachments from a PDF.\");\nexport const PdfCoPdfExtractAttachmentsOutput = z.object({\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n urls: z.array(z.string()).describe(\"List of URLs to the extracted attachment files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async processing (when async=true).\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits used for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message.\").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 PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n}).passthrough().describe(\"Response model for extracting attachments from a PDF.\");\n\nexport const pdfCoPdfExtractAttachments = action(\"PDF_CO_PDF_EXTRACT_ATTACHMENTS\", {\n slug: \"pdf_co-pdf-extract-attachments\",\n name: \"Extract PDF Attachments\",\n description: \"Tool to extract embedded attachments from a PDF. Use when you need to retrieve embedded files from a PDF after uploading.\",\n input: PdfCoPdfExtractAttachmentsInput,\n output: PdfCoPdfExtractAttachmentsOutput,\n});\n"],"mappings":";;AA2BA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAA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CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
@@ -18,13 +18,13 @@ const PdfCoPdfFind_PdfFindMatchSchema = zod.z.object({
|
|
|
18
18
|
height: zod.z.number().describe("Height of the matched area.").nullable(),
|
|
19
19
|
pageIndex: zod.z.number().int().describe("Zero-based index of the page where found.").nullable(),
|
|
20
20
|
pageNumber: zod.z.number().int().describe("One-based number of the page where found.").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const PdfCoPdfFindOutput = zod.z.object({
|
|
23
23
|
error: zod.z.string().describe("Error message, if any.").nullable().optional(),
|
|
24
24
|
found: zod.z.number().int().describe("Total number of occurrences found.").nullable(),
|
|
25
25
|
status: zod.z.string().describe("API call status, e.g., 'success'.").nullable(),
|
|
26
26
|
matches: zod.z.array(PdfCoPdfFind_PdfFindMatchSchema).describe("List of match details.")
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const pdfCoPdfFind = require_action.action("PDF_CO_PDF_FIND", {
|
|
29
29
|
slug: "pdf_co-pdf-find",
|
|
30
30
|
name: "Find Text in PDF",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-find.cjs","names":["z","action"],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file to search.\"),\n pages: z.string().describe(\"Comma-separated page ranges to search, e.g., '1-3,5'.\").optional(),\n password: z.string().describe(\"Password for protected PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"Advanced JSON configuration for PDF processing.\").optional(),\n regexSearch: z.boolean().default(false).describe(\"Whether to treat searchString as a regular expression (default: false).\").optional(),\n searchString: z.string().describe(\"Keyword or regex pattern to find in the document.\"),\n caseSensitive: z.boolean().default(false).describe(\"Whether the search is case-sensitive (default: false).\").optional(),\n}).describe(\"Request model for searching text in a PDF document.\");\nconst PdfCoPdfFind_PdfFindMatchSchema = z.object({\n top: z.number().describe(\"Top coordinate of the match on the page.\").nullable(),\n left: z.number().describe(\"Left coordinate of the match on the page.\").nullable(),\n text: z.string().describe(\"The exact matched text.\").nullable(),\n width: z.number().describe(\"Width of the matched area.\").nullable(),\n height: z.number().describe(\"Height of the matched area.\").nullable(),\n pageIndex: z.number().int().describe(\"Zero-based index of the page where found.\").nullable(),\n pageNumber: z.number().int().describe(\"One-based number of the page where found.\").nullable(),\n});\nexport const PdfCoPdfFindOutput = z.object({\n error: z.string().describe(\"Error message, if any.\").nullable().optional(),\n found: z.number().int().describe(\"Total number of occurrences found.\").nullable(),\n status: z.string().describe(\"API call status, e.g., 'success'.\").nullable(),\n matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe(\"List of match details.\"),\n});\n\nexport const pdfCoPdfFind = action(\"PDF_CO_PDF_FIND\", {\n slug: \"pdf_co-pdf-find\",\n name: \"Find Text in PDF\",\n description: \"Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.\",\n input: PdfCoPdfFindInput,\n output: PdfCoPdfFindOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,OAAOA,IAA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cesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file to search.\"),\n pages: z.string().describe(\"Comma-separated page ranges to search, e.g., '1-3,5'.\").optional(),\n password: z.string().describe(\"Password for protected PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"Advanced JSON configuration for PDF processing.\").optional(),\n regexSearch: z.boolean().default(false).describe(\"Whether to treat searchString as a regular expression (default: false).\").optional(),\n searchString: z.string().describe(\"Keyword or regex pattern to find in the document.\"),\n caseSensitive: z.boolean().default(false).describe(\"Whether the search is case-sensitive (default: false).\").optional(),\n}).describe(\"Request model for searching text in a PDF document.\");\nconst PdfCoPdfFind_PdfFindMatchSchema = z.object({\n top: z.number().describe(\"Top coordinate of the match on the page.\").nullable(),\n left: z.number().describe(\"Left coordinate of the match on the page.\").nullable(),\n text: z.string().describe(\"The exact matched text.\").nullable(),\n width: z.number().describe(\"Width of the matched area.\").nullable(),\n height: z.number().describe(\"Height of the matched area.\").nullable(),\n pageIndex: z.number().int().describe(\"Zero-based index of the page where found.\").nullable(),\n pageNumber: z.number().int().describe(\"One-based number of the page where found.\").nullable(),\n}).passthrough();\nexport const PdfCoPdfFindOutput = z.object({\n error: z.string().describe(\"Error message, if any.\").nullable().optional(),\n found: z.number().int().describe(\"Total number of occurrences found.\").nullable(),\n status: z.string().describe(\"API call status, e.g., 'success'.\").nullable(),\n matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe(\"List of match details.\"),\n}).passthrough();\n\nexport const pdfCoPdfFind = action(\"PDF_CO_PDF_FIND\", {\n slug: \"pdf_co-pdf-find\",\n name: \"Find Text in PDF\",\n description: \"Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.\",\n input: PdfCoPdfFindInput,\n output: PdfCoPdfFindOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,KAAKA,IAAAA,EAAE,O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,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;AACrF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,eAAeC,eAAAA,OAAO,mBAAmB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -22,8 +22,8 @@ declare const PdfCoPdfFindOutput: z.ZodObject<{
|
|
|
22
22
|
height: z.ZodNullable<z.ZodNumber>;
|
|
23
23
|
pageIndex: z.ZodNullable<z.ZodNumber>;
|
|
24
24
|
pageNumber: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const pdfCoPdfFind: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
url: string;
|
|
29
29
|
searchString: string;
|
|
@@ -22,8 +22,8 @@ declare const PdfCoPdfFindOutput: z.ZodObject<{
|
|
|
22
22
|
height: z.ZodNullable<z.ZodNumber>;
|
|
23
23
|
pageIndex: z.ZodNullable<z.ZodNumber>;
|
|
24
24
|
pageNumber: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const pdfCoPdfFind: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
url: string;
|
|
29
29
|
searchString: string;
|
|
@@ -18,7 +18,7 @@ const PdfCoPdfFind_PdfFindMatchSchema = z.object({
|
|
|
18
18
|
height: z.number().describe("Height of the matched area.").nullable(),
|
|
19
19
|
pageIndex: z.number().int().describe("Zero-based index of the page where found.").nullable(),
|
|
20
20
|
pageNumber: z.number().int().describe("One-based number of the page where found.").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const pdfCoPdfFind = action("PDF_CO_PDF_FIND", {
|
|
23
23
|
slug: "pdf_co-pdf-find",
|
|
24
24
|
name: "Find Text in PDF",
|
|
@@ -29,7 +29,7 @@ const pdfCoPdfFind = action("PDF_CO_PDF_FIND", {
|
|
|
29
29
|
found: z.number().int().describe("Total number of occurrences found.").nullable(),
|
|
30
30
|
status: z.string().describe("API call status, e.g., 'success'.").nullable(),
|
|
31
31
|
matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe("List of match details.")
|
|
32
|
-
})
|
|
32
|
+
}).passthrough()
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { pdfCoPdfFind };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-find.mjs","names":[],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file to search.\"),\n pages: z.string().describe(\"Comma-separated page ranges to search, e.g., '1-3,5'.\").optional(),\n password: z.string().describe(\"Password for protected PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"Advanced JSON configuration for PDF processing.\").optional(),\n regexSearch: z.boolean().default(false).describe(\"Whether to treat searchString as a regular expression (default: false).\").optional(),\n searchString: z.string().describe(\"Keyword or regex pattern to find in the document.\"),\n caseSensitive: z.boolean().default(false).describe(\"Whether the search is case-sensitive (default: false).\").optional(),\n}).describe(\"Request model for searching text in a PDF document.\");\nconst PdfCoPdfFind_PdfFindMatchSchema = z.object({\n top: z.number().describe(\"Top coordinate of the match on the page.\").nullable(),\n left: z.number().describe(\"Left coordinate of the match on the page.\").nullable(),\n text: z.string().describe(\"The exact matched text.\").nullable(),\n width: z.number().describe(\"Width of the matched area.\").nullable(),\n height: z.number().describe(\"Height of the matched area.\").nullable(),\n pageIndex: z.number().int().describe(\"Zero-based index of the page where found.\").nullable(),\n pageNumber: z.number().int().describe(\"One-based number of the page where found.\").nullable(),\n});\nexport const PdfCoPdfFindOutput = z.object({\n error: z.string().describe(\"Error message, if any.\").nullable().optional(),\n found: z.number().int().describe(\"Total number of occurrences found.\").nullable(),\n status: z.string().describe(\"API call status, e.g., 'success'.\").nullable(),\n matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe(\"List of match details.\"),\n});\n\nexport const pdfCoPdfFind = action(\"PDF_CO_PDF_FIND\", {\n slug: \"pdf_co-pdf-find\",\n name: \"Find Text in PDF\",\n description: \"Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.\",\n input: PdfCoPdfFindInput,\n output: PdfCoPdfFindOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoB,EAAE,OAAO;CACxC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACrI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACrF,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kCAAkC,EAAE,OAAO;CAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC;
|
|
1
|
+
{"version":3,"file":"pdf-find.mjs","names":[],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file to search.\"),\n pages: z.string().describe(\"Comma-separated page ranges to search, e.g., '1-3,5'.\").optional(),\n password: z.string().describe(\"Password for protected PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"Advanced JSON configuration for PDF processing.\").optional(),\n regexSearch: z.boolean().default(false).describe(\"Whether to treat searchString as a regular expression (default: false).\").optional(),\n searchString: z.string().describe(\"Keyword or regex pattern to find in the document.\"),\n caseSensitive: z.boolean().default(false).describe(\"Whether the search is case-sensitive (default: false).\").optional(),\n}).describe(\"Request model for searching text in a PDF document.\");\nconst PdfCoPdfFind_PdfFindMatchSchema = z.object({\n top: z.number().describe(\"Top coordinate of the match on the page.\").nullable(),\n left: z.number().describe(\"Left coordinate of the match on the page.\").nullable(),\n text: z.string().describe(\"The exact matched text.\").nullable(),\n width: z.number().describe(\"Width of the matched area.\").nullable(),\n height: z.number().describe(\"Height of the matched area.\").nullable(),\n pageIndex: z.number().int().describe(\"Zero-based index of the page where found.\").nullable(),\n pageNumber: z.number().int().describe(\"One-based number of the page where found.\").nullable(),\n}).passthrough();\nexport const PdfCoPdfFindOutput = z.object({\n error: z.string().describe(\"Error message, if any.\").nullable().optional(),\n found: z.number().int().describe(\"Total number of occurrences found.\").nullable(),\n status: z.string().describe(\"API call status, e.g., 'success'.\").nullable(),\n matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe(\"List of match details.\"),\n}).passthrough();\n\nexport const pdfCoPdfFind = action(\"PDF_CO_PDF_FIND\", {\n slug: \"pdf_co-pdf-find\",\n name: \"Find Text in PDF\",\n description: \"Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.\",\n input: PdfCoPdfFindInput,\n output: PdfCoPdfFindOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoB,EAAE,OAAO;CACxC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACrI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACrF,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kCAAkC,EAAE,OAAO;CAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,eAAe,OAAO,mBAAmB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZgC,EAAE,OAAO;EACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC1E,SAAS,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;CACrF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -26,7 +26,7 @@ const PdfCoPdfFromHtmlOutput = zod.z.object({
|
|
|
26
26
|
credits: zod.z.number().int().describe("Number of credits consumed for this operation.").nullable().optional(),
|
|
27
27
|
message: zod.z.string().describe("Error or informational message.").nullable().optional(),
|
|
28
28
|
remainingCredits: zod.z.number().int().describe("Remaining account credit balance.").nullable().optional()
|
|
29
|
-
}).describe("Response model for converting HTML or URL to PDF.");
|
|
29
|
+
}).passthrough().describe("Response model for converting HTML or URL to PDF.");
|
|
30
30
|
const pdfCoPdfFromHtml = require_action.action("PDF_CO_PDF_FROM_HTML", {
|
|
31
31
|
slug: "pdf_co-pdf-from-html",
|
|
32
32
|
name: "Convert HTML to PDF",
|
|
@@ -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}).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":";;;AAIA,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,CAA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AAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
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":";;;AAIA,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,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AAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,mBAAmBC,eAAAA,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -26,7 +26,7 @@ declare const PdfCoPdfFromHtmlOutput: z.ZodObject<{
|
|
|
26
26
|
credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const pdfCoPdfFromHtml: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
url: string;
|
|
32
32
|
name?: string | undefined;
|
|
@@ -26,7 +26,7 @@ declare const PdfCoPdfFromHtmlOutput: z.ZodObject<{
|
|
|
26
26
|
credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const pdfCoPdfFromHtml: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
url: string;
|
|
32
32
|
name?: string | undefined;
|
|
@@ -29,7 +29,7 @@ const pdfCoPdfFromHtml = action("PDF_CO_PDF_FROM_HTML", {
|
|
|
29
29
|
credits: z.number().int().describe("Number of credits consumed for this operation.").nullable().optional(),
|
|
30
30
|
message: z.string().describe("Error or informational message.").nullable().optional(),
|
|
31
31
|
remainingCredits: z.number().int().describe("Remaining account credit balance.").nullable().optional()
|
|
32
|
-
}).describe("Response model for converting HTML or URL to PDF.")
|
|
32
|
+
}).passthrough().describe("Response model for converting HTML or URL to PDF.")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { pdfCoPdfFromHtml };
|
|
@@ -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}).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":";;AA+BA,MAAa,mBAAmB,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BmC,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,C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":[],"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":";;AA+BA,MAAa,mBAAmB,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BmC,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,kDAgBH;CACP,QAhBoC,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,mDAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const PdfCoPdfInfoReaderOutput = zod.z.object({
|
|
|
7
7
|
error: zod.z.boolean().describe("Indicates if an error occurred").nullable(),
|
|
8
8
|
status: zod.z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
9
9
|
remainingCredits: zod.z.number().int().describe("Remaining API credits for the account").nullable()
|
|
10
|
-
}).describe("Response model for PDF Info Reader.");
|
|
10
|
+
}).passthrough().describe("Response model for PDF Info Reader.");
|
|
11
11
|
const pdfCoPdfInfoReader = require_action.action("PDF_CO_PDF_INFO_READER", {
|
|
12
12
|
slug: "pdf_co-pdf-info-reader",
|
|
13
13
|
name: "PDF Info Reader",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,qCAAqC;
|
|
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":";;;AAIA,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,qBAAqBC,eAAAA,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const PdfCoPdfInfoReaderOutput: z.ZodObject<{
|
|
|
9
9
|
error: z.ZodNullable<z.ZodBoolean>;
|
|
10
10
|
status: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
remainingCredits: z.ZodNullable<z.ZodNumber>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const pdfCoPdfInfoReader: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
url: string;
|
|
15
15
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -9,7 +9,7 @@ declare const PdfCoPdfInfoReaderOutput: z.ZodObject<{
|
|
|
9
9
|
error: z.ZodNullable<z.ZodBoolean>;
|
|
10
10
|
status: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
remainingCredits: z.ZodNullable<z.ZodNumber>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const pdfCoPdfInfoReader: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
url: string;
|
|
15
15
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -10,7 +10,7 @@ const pdfCoPdfInfoReader = action("PDF_CO_PDF_INFO_READER", {
|
|
|
10
10
|
error: z.boolean().describe("Indicates if an error occurred").nullable(),
|
|
11
11
|
status: z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
12
12
|
remainingCredits: z.number().int().describe("Remaining API credits for the account").nullable()
|
|
13
|
-
}).describe("Response model for PDF Info Reader.")
|
|
13
|
+
}).passthrough().describe("Response model for PDF Info Reader.")
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { pdfCoPdfInfoReader };
|
|
@@ -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}).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":";;AAcA,MAAa,qBAAqB,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdqC,EAAE,OAAO,EAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACvD,CAAC,CAAC,CAAC,SAAS,mFAYH;CACP,QAZsC,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,SAAS,
|
|
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":";;AAcA,MAAa,qBAAqB,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdqC,EAAE,OAAO,EAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACvD,CAAC,CAAC,CAAC,SAAS,mFAYH;CACP,QAZsC,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,qCAOhB;AACV,CAAC"}
|
|
@@ -13,7 +13,7 @@ const PdfCoPdfMergeOutput = zod.z.object({
|
|
|
13
13
|
jobId: zod.z.string().describe("Job ID when running in asynchronous mode").nullable().optional(),
|
|
14
14
|
status: zod.z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
15
15
|
message: zod.z.string().describe("Error or informational message from the API").nullable().optional()
|
|
16
|
-
}).describe("Response model for PDF merge action.");
|
|
16
|
+
}).passthrough().describe("Response model for PDF merge action.");
|
|
17
17
|
const pdfCoPdfMerge = require_action.action("PDF_CO_PDF_MERGE", {
|
|
18
18
|
slug: "pdf_co-pdf-merge",
|
|
19
19
|
name: "Merge PDFs",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,sCAAsC;
|
|
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":";;;A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: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const pdfCoPdfMerge: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
urls: string | string[];
|
|
19
19
|
name?: string | undefined;
|
|
@@ -13,7 +13,7 @@ declare const PdfCoPdfMergeOutput: z.ZodObject<{
|
|
|
13
13
|
jobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
status: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const pdfCoPdfMerge: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
urls: string | string[];
|
|
19
19
|
name?: string | undefined;
|
|
@@ -16,7 +16,7 @@ const pdfCoPdfMerge = action("PDF_CO_PDF_MERGE", {
|
|
|
16
16
|
jobId: z.string().describe("Job ID when running in asynchronous mode").nullable().optional(),
|
|
17
17
|
status: z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
18
18
|
message: z.string().describe("Error or informational message from the API").nullable().optional()
|
|
19
|
-
}).describe("Response model for PDF merge action.")
|
|
19
|
+
}).passthrough().describe("Response model for PDF merge action.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { pdfCoPdfMerge };
|
|
@@ -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}).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":";;AAkBA,MAAa,gBAAgB,OAAO,oBAAoB;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBgC,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,iEAaH;CACP,QAbiC,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,SAAS,
|
|
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":";;AAkBA,MAAa,gBAAgB,OAAO,oBAAoB;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBgC,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,iEAaH;CACP,QAbiC,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,sCAOhB;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ const PdfCoPdfRotateOutput = zod.z.object({
|
|
|
19
19
|
status: zod.z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
20
20
|
message: zod.z.string().describe("Success or error message from the API").nullable().optional(),
|
|
21
21
|
remaining_credits: zod.z.number().int().describe("Number of remaining API credits after the call").nullable().optional()
|
|
22
|
-
}).describe("Response model for PDFRotate action.");
|
|
22
|
+
}).passthrough().describe("Response model for PDFRotate action.");
|
|
23
23
|
const pdfCoPdfRotate = require_action.action("PDF_CO_PDF_ROTATE", {
|
|
24
24
|
slug: "pdf_co-pdf-rotate",
|
|
25
25
|
name: "Rotate PDF Pages",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,sCAAsC;
|
|
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":";;;AAIA,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,iBAAiBC,eAAAA,OAAO,qBAAqB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const PdfCoPdfRotateOutput: z.ZodObject<{
|
|
|
15
15
|
status: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const pdfCoPdfRotate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
url: string;
|
|
21
21
|
angle: 90 | 180 | 270;
|
|
@@ -15,7 +15,7 @@ declare const PdfCoPdfRotateOutput: z.ZodObject<{
|
|
|
15
15
|
status: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const pdfCoPdfRotate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
url: string;
|
|
21
21
|
angle: 90 | 180 | 270;
|
|
@@ -22,7 +22,7 @@ const pdfCoPdfRotate = action("PDF_CO_PDF_ROTATE", {
|
|
|
22
22
|
status: z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
23
23
|
message: z.string().describe("Success or error message from the API").nullable().optional(),
|
|
24
24
|
remaining_credits: z.number().int().describe("Number of remaining API credits after the call").nullable().optional()
|
|
25
|
-
}).describe("Response model for PDFRotate action.")
|
|
25
|
+
}).passthrough().describe("Response model for PDFRotate action.")
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { pdfCoPdfRotate };
|
|
@@ -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}).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":";;AAoBA,MAAa,iBAAiB,OAAO,qBAAqB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBiC,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,qDAaH;CACP,QAbkC,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,SAAS,
|
|
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":";;AAoBA,MAAa,iBAAiB,OAAO,qBAAqB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBiC,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,qDAaH;CACP,QAbkC,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,sCAOhB;AACV,CAAC"}
|