@keystrokehq/pdf_co 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/account-balance-info.cjs +1 -0
- package/dist/actions/account-balance-info.cjs.map +1 -1
- package/dist/actions/account-balance-info.d.cts +3 -13
- package/dist/actions/account-balance-info.d.cts.map +1 -1
- package/dist/actions/account-balance-info.d.mts +3 -13
- package/dist/actions/account-balance-info.d.mts.map +1 -1
- package/dist/actions/account-balance-info.mjs +1 -0
- package/dist/actions/account-balance-info.mjs.map +1 -1
- package/dist/actions/convert-excel-to-csv.cjs +1 -0
- package/dist/actions/convert-excel-to-csv.cjs.map +1 -1
- package/dist/actions/convert-excel-to-csv.d.cts +3 -20
- package/dist/actions/convert-excel-to-csv.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-csv.d.mts +3 -20
- package/dist/actions/convert-excel-to-csv.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-csv.mjs +1 -0
- package/dist/actions/convert-excel-to-csv.mjs.map +1 -1
- package/dist/actions/convert-excel-to-html.cjs +1 -0
- package/dist/actions/convert-excel-to-html.cjs.map +1 -1
- package/dist/actions/convert-excel-to-html.d.cts +3 -18
- package/dist/actions/convert-excel-to-html.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-html.d.mts +3 -18
- package/dist/actions/convert-excel-to-html.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-html.mjs +1 -0
- package/dist/actions/convert-excel-to-html.mjs.map +1 -1
- package/dist/actions/convert-excel-to-json.cjs +1 -0
- package/dist/actions/convert-excel-to-json.cjs.map +1 -1
- package/dist/actions/convert-excel-to-json.d.cts +3 -19
- package/dist/actions/convert-excel-to-json.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-json.d.mts +3 -19
- package/dist/actions/convert-excel-to-json.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-json.mjs +1 -0
- package/dist/actions/convert-excel-to-json.mjs.map +1 -1
- package/dist/actions/convert-excel-to-text.cjs +1 -0
- package/dist/actions/convert-excel-to-text.cjs.map +1 -1
- package/dist/actions/convert-excel-to-text.d.cts +3 -21
- package/dist/actions/convert-excel-to-text.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-text.d.mts +3 -21
- package/dist/actions/convert-excel-to-text.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-text.mjs +1 -0
- package/dist/actions/convert-excel-to-text.mjs.map +1 -1
- package/dist/actions/convert-excel-to-xml.cjs +1 -0
- package/dist/actions/convert-excel-to-xml.cjs.map +1 -1
- package/dist/actions/convert-excel-to-xml.d.cts +3 -30
- package/dist/actions/convert-excel-to-xml.d.cts.map +1 -1
- package/dist/actions/convert-excel-to-xml.d.mts +3 -30
- package/dist/actions/convert-excel-to-xml.d.mts.map +1 -1
- package/dist/actions/convert-excel-to-xml.mjs +1 -0
- package/dist/actions/convert-excel-to-xml.mjs.map +1 -1
- package/dist/actions/document-parser.cjs +1 -0
- package/dist/actions/document-parser.cjs.map +1 -1
- package/dist/actions/document-parser.d.cts +3 -23
- package/dist/actions/document-parser.d.cts.map +1 -1
- package/dist/actions/document-parser.d.mts +3 -23
- package/dist/actions/document-parser.d.mts.map +1 -1
- package/dist/actions/document-parser.mjs +1 -0
- package/dist/actions/document-parser.mjs.map +1 -1
- package/dist/actions/file-upload.cjs +1 -0
- package/dist/actions/file-upload.cjs.map +1 -1
- package/dist/actions/file-upload.d.cts +3 -22
- package/dist/actions/file-upload.d.cts.map +1 -1
- package/dist/actions/file-upload.d.mts +3 -22
- package/dist/actions/file-upload.d.mts.map +1 -1
- package/dist/actions/file-upload.mjs +1 -0
- package/dist/actions/file-upload.mjs.map +1 -1
- package/dist/actions/job-check.cjs +1 -0
- package/dist/actions/job-check.cjs.map +1 -1
- package/dist/actions/job-check.d.cts +3 -16
- package/dist/actions/job-check.d.cts.map +1 -1
- package/dist/actions/job-check.d.mts +3 -16
- package/dist/actions/job-check.d.mts.map +1 -1
- package/dist/actions/job-check.mjs +1 -0
- package/dist/actions/job-check.mjs.map +1 -1
- package/dist/actions/pdf-add.cjs +1 -0
- package/dist/actions/pdf-add.cjs.map +1 -1
- package/dist/actions/pdf-add.d.cts +3 -20
- package/dist/actions/pdf-add.d.cts.map +1 -1
- package/dist/actions/pdf-add.d.mts +3 -20
- package/dist/actions/pdf-add.d.mts.map +1 -1
- package/dist/actions/pdf-add.mjs +1 -0
- package/dist/actions/pdf-add.mjs.map +1 -1
- package/dist/actions/pdf-change-text-searchable.cjs +1 -0
- package/dist/actions/pdf-change-text-searchable.cjs.map +1 -1
- package/dist/actions/pdf-change-text-searchable.d.cts +3 -21
- package/dist/actions/pdf-change-text-searchable.d.cts.map +1 -1
- package/dist/actions/pdf-change-text-searchable.d.mts +3 -21
- package/dist/actions/pdf-change-text-searchable.d.mts.map +1 -1
- package/dist/actions/pdf-change-text-searchable.mjs +1 -0
- package/dist/actions/pdf-change-text-searchable.mjs.map +1 -1
- package/dist/actions/pdf-delete-pages.cjs +1 -0
- package/dist/actions/pdf-delete-pages.cjs.map +1 -1
- package/dist/actions/pdf-delete-pages.d.cts +3 -20
- package/dist/actions/pdf-delete-pages.d.cts.map +1 -1
- package/dist/actions/pdf-delete-pages.d.mts +3 -20
- package/dist/actions/pdf-delete-pages.d.mts.map +1 -1
- package/dist/actions/pdf-delete-pages.mjs +1 -0
- package/dist/actions/pdf-delete-pages.mjs.map +1 -1
- package/dist/actions/pdf-extract-attachments.cjs +1 -0
- package/dist/actions/pdf-extract-attachments.cjs.map +1 -1
- package/dist/actions/pdf-extract-attachments.d.cts +3 -22
- package/dist/actions/pdf-extract-attachments.d.cts.map +1 -1
- package/dist/actions/pdf-extract-attachments.d.mts +3 -22
- package/dist/actions/pdf-extract-attachments.d.mts.map +1 -1
- package/dist/actions/pdf-extract-attachments.mjs +1 -0
- package/dist/actions/pdf-extract-attachments.mjs.map +1 -1
- package/dist/actions/pdf-find.cjs +1 -0
- package/dist/actions/pdf-find.cjs.map +1 -1
- package/dist/actions/pdf-find.d.cts +3 -21
- package/dist/actions/pdf-find.d.cts.map +1 -1
- package/dist/actions/pdf-find.d.mts +3 -21
- package/dist/actions/pdf-find.d.mts.map +1 -1
- package/dist/actions/pdf-find.mjs +1 -0
- package/dist/actions/pdf-find.mjs.map +1 -1
- package/dist/actions/pdf-forms-info-reader.cjs +1 -0
- package/dist/actions/pdf-forms-info-reader.cjs.map +1 -1
- package/dist/actions/pdf-forms-info-reader.d.cts +3 -17
- package/dist/actions/pdf-forms-info-reader.d.cts.map +1 -1
- package/dist/actions/pdf-forms-info-reader.d.mts +3 -17
- package/dist/actions/pdf-forms-info-reader.d.mts.map +1 -1
- package/dist/actions/pdf-forms-info-reader.mjs +1 -0
- package/dist/actions/pdf-forms-info-reader.mjs.map +1 -1
- package/dist/actions/pdf-from-document-txt.cjs +1 -0
- package/dist/actions/pdf-from-document-txt.cjs.map +1 -1
- package/dist/actions/pdf-from-document-txt.d.cts +3 -18
- package/dist/actions/pdf-from-document-txt.d.cts.map +1 -1
- package/dist/actions/pdf-from-document-txt.d.mts +3 -18
- package/dist/actions/pdf-from-document-txt.d.mts.map +1 -1
- package/dist/actions/pdf-from-document-txt.mjs +1 -0
- package/dist/actions/pdf-from-document-txt.mjs.map +1 -1
- package/dist/actions/pdf-from-email.cjs +1 -0
- package/dist/actions/pdf-from-email.cjs.map +1 -1
- package/dist/actions/pdf-from-email.d.cts +3 -18
- package/dist/actions/pdf-from-email.d.cts.map +1 -1
- package/dist/actions/pdf-from-email.d.mts +3 -18
- package/dist/actions/pdf-from-email.d.mts.map +1 -1
- package/dist/actions/pdf-from-email.mjs +1 -0
- package/dist/actions/pdf-from-email.mjs.map +1 -1
- package/dist/actions/pdf-from-html.cjs +1 -0
- package/dist/actions/pdf-from-html.cjs.map +1 -1
- package/dist/actions/pdf-from-html.d.cts +3 -28
- package/dist/actions/pdf-from-html.d.cts.map +1 -1
- package/dist/actions/pdf-from-html.d.mts +3 -28
- package/dist/actions/pdf-from-html.d.mts.map +1 -1
- package/dist/actions/pdf-from-html.mjs +1 -0
- package/dist/actions/pdf-from-html.mjs.map +1 -1
- package/dist/actions/pdf-info-reader.cjs +1 -0
- package/dist/actions/pdf-info-reader.cjs.map +1 -1
- package/dist/actions/pdf-info-reader.d.cts +3 -15
- package/dist/actions/pdf-info-reader.d.cts.map +1 -1
- package/dist/actions/pdf-info-reader.d.mts +3 -15
- package/dist/actions/pdf-info-reader.d.mts.map +1 -1
- package/dist/actions/pdf-info-reader.mjs +1 -0
- package/dist/actions/pdf-info-reader.mjs.map +1 -1
- package/dist/actions/pdf-merge.cjs +1 -0
- package/dist/actions/pdf-merge.cjs.map +1 -1
- package/dist/actions/pdf-merge.d.cts +3 -18
- package/dist/actions/pdf-merge.d.cts.map +1 -1
- package/dist/actions/pdf-merge.d.mts +3 -18
- package/dist/actions/pdf-merge.d.mts.map +1 -1
- package/dist/actions/pdf-merge.mjs +1 -0
- package/dist/actions/pdf-merge.mjs.map +1 -1
- package/dist/actions/pdf-rotate.cjs +1 -0
- package/dist/actions/pdf-rotate.cjs.map +1 -1
- package/dist/actions/pdf-rotate.d.cts +3 -20
- package/dist/actions/pdf-rotate.d.cts.map +1 -1
- package/dist/actions/pdf-rotate.d.mts +3 -20
- package/dist/actions/pdf-rotate.d.mts.map +1 -1
- package/dist/actions/pdf-rotate.mjs +1 -0
- package/dist/actions/pdf-rotate.mjs.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.cjs +1 -0
- package/dist/actions/pdf-search-and-delete-text.cjs.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.d.cts +3 -22
- package/dist/actions/pdf-search-and-delete-text.d.cts.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.d.mts +3 -22
- package/dist/actions/pdf-search-and-delete-text.d.mts.map +1 -1
- package/dist/actions/pdf-search-and-delete-text.mjs +1 -0
- package/dist/actions/pdf-search-and-delete-text.mjs.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.cjs +1 -0
- package/dist/actions/pdf-search-and-replace-text.cjs.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.d.cts +3 -21
- package/dist/actions/pdf-search-and-replace-text.d.cts.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.d.mts +3 -21
- package/dist/actions/pdf-search-and-replace-text.d.mts.map +1 -1
- package/dist/actions/pdf-search-and-replace-text.mjs +1 -0
- package/dist/actions/pdf-search-and-replace-text.mjs.map +1 -1
- package/dist/actions/pdf-split.cjs +1 -0
- package/dist/actions/pdf-split.cjs.map +1 -1
- package/dist/actions/pdf-split.d.cts +3 -34
- package/dist/actions/pdf-split.d.cts.map +1 -1
- package/dist/actions/pdf-split.d.mts +3 -34
- package/dist/actions/pdf-split.d.mts.map +1 -1
- package/dist/actions/pdf-split.mjs +1 -0
- package/dist/actions/pdf-split.mjs.map +1 -1
- package/dist/actions/pdf-to-csv.cjs +1 -0
- package/dist/actions/pdf-to-csv.cjs.map +1 -1
- package/dist/actions/pdf-to-csv.d.cts +3 -23
- package/dist/actions/pdf-to-csv.d.cts.map +1 -1
- package/dist/actions/pdf-to-csv.d.mts +3 -23
- package/dist/actions/pdf-to-csv.d.mts.map +1 -1
- package/dist/actions/pdf-to-csv.mjs +1 -0
- package/dist/actions/pdf-to-csv.mjs.map +1 -1
- package/dist/actions/pdf-to-html.cjs +1 -0
- package/dist/actions/pdf-to-html.cjs.map +1 -1
- package/dist/actions/pdf-to-html.d.cts +3 -23
- package/dist/actions/pdf-to-html.d.cts.map +1 -1
- package/dist/actions/pdf-to-html.d.mts +3 -23
- package/dist/actions/pdf-to-html.d.mts.map +1 -1
- package/dist/actions/pdf-to-html.mjs +1 -0
- package/dist/actions/pdf-to-html.mjs.map +1 -1
- package/dist/actions/pdf-to-image.cjs +1 -0
- package/dist/actions/pdf-to-image.cjs.map +1 -1
- package/dist/actions/pdf-to-image.d.cts +3 -21
- package/dist/actions/pdf-to-image.d.cts.map +1 -1
- package/dist/actions/pdf-to-image.d.mts +3 -21
- package/dist/actions/pdf-to-image.d.mts.map +1 -1
- package/dist/actions/pdf-to-image.mjs +1 -0
- package/dist/actions/pdf-to-image.mjs.map +1 -1
- package/dist/actions/pdf-to-json.cjs +1 -0
- package/dist/actions/pdf-to-json.cjs.map +1 -1
- package/dist/actions/pdf-to-json.d.cts +3 -23
- package/dist/actions/pdf-to-json.d.cts.map +1 -1
- package/dist/actions/pdf-to-json.d.mts +3 -23
- package/dist/actions/pdf-to-json.d.mts.map +1 -1
- package/dist/actions/pdf-to-json.mjs +1 -0
- package/dist/actions/pdf-to-json.mjs.map +1 -1
- package/dist/actions/pdf-to-text.cjs +1 -0
- package/dist/actions/pdf-to-text.cjs.map +1 -1
- package/dist/actions/pdf-to-text.d.cts +3 -28
- package/dist/actions/pdf-to-text.d.cts.map +1 -1
- package/dist/actions/pdf-to-text.d.mts +3 -28
- package/dist/actions/pdf-to-text.d.mts.map +1 -1
- package/dist/actions/pdf-to-text.mjs +1 -0
- package/dist/actions/pdf-to-text.mjs.map +1 -1
- package/dist/actions/pdf-to-xls.cjs +1 -0
- package/dist/actions/pdf-to-xls.cjs.map +1 -1
- package/dist/actions/pdf-to-xls.d.cts +3 -20
- package/dist/actions/pdf-to-xls.d.cts.map +1 -1
- package/dist/actions/pdf-to-xls.d.mts +3 -20
- package/dist/actions/pdf-to-xls.d.mts.map +1 -1
- package/dist/actions/pdf-to-xls.mjs +1 -0
- package/dist/actions/pdf-to-xls.mjs.map +1 -1
- package/dist/actions/pdf-to-xlsx.cjs +1 -0
- package/dist/actions/pdf-to-xlsx.cjs.map +1 -1
- package/dist/actions/pdf-to-xlsx.d.cts +3 -25
- package/dist/actions/pdf-to-xlsx.d.cts.map +1 -1
- package/dist/actions/pdf-to-xlsx.d.mts +3 -25
- package/dist/actions/pdf-to-xlsx.d.mts.map +1 -1
- package/dist/actions/pdf-to-xlsx.mjs +1 -0
- package/dist/actions/pdf-to-xlsx.mjs.map +1 -1
- package/dist/actions/pdf-to-xml.cjs +1 -0
- package/dist/actions/pdf-to-xml.cjs.map +1 -1
- package/dist/actions/pdf-to-xml.d.cts +3 -19
- package/dist/actions/pdf-to-xml.d.cts.map +1 -1
- package/dist/actions/pdf-to-xml.d.mts +3 -19
- package/dist/actions/pdf-to-xml.d.mts.map +1 -1
- package/dist/actions/pdf-to-xml.mjs +1 -0
- package/dist/actions/pdf-to-xml.mjs.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.cjs +1 -0
- package/dist/actions/pdfco-post-barcode-generate.cjs.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.d.cts +3 -27
- package/dist/actions/pdfco-post-barcode-generate.d.cts.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.d.mts +3 -27
- package/dist/actions/pdfco-post-barcode-generate.d.mts.map +1 -1
- package/dist/actions/pdfco-post-barcode-generate.mjs +1 -0
- package/dist/actions/pdfco-post-barcode-generate.mjs.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.cjs +1 -0
- package/dist/actions/pdfco-post-file-upload-base64.cjs.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.d.cts +3 -17
- package/dist/actions/pdfco-post-file-upload-base64.d.cts.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.d.mts +3 -17
- package/dist/actions/pdfco-post-file-upload-base64.d.mts.map +1 -1
- package/dist/actions/pdfco-post-file-upload-base64.mjs +1 -0
- package/dist/actions/pdfco-post-file-upload-base64.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/job-check.d.ts
|
|
@@ -25,22 +27,7 @@ declare const PdfCoJobCheckOutput: z.ZodObject<{
|
|
|
25
27
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
28
|
outputLinkValidTill: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
}, z.core.$loose>;
|
|
28
|
-
declare const pdfCoJobCheck:
|
|
29
|
-
job_id: string;
|
|
30
|
-
force?: boolean | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
30
|
+
declare const pdfCoJobCheck: AppAction<typeof PdfCoJobCheckInput, typeof PdfCoJobCheckOutput, typeof pdfCo.credential>;
|
|
44
31
|
//#endregion
|
|
45
32
|
export { pdfCoJobCheck };
|
|
46
33
|
//# sourceMappingURL=job-check.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-check.d.mts","names":[],"sources":["../../src/actions/job-check.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"job-check.d.mts","names":[],"sources":["../../src/actions/job-check.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;cAIlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAenB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-check.mjs","names":[],"sources":["../../src/actions/job-check.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoJobCheckInput = z.object({\n force: z.boolean().describe(\"Set true to forcibly check long-running jobs. When true, returns 'unknown' for invalid job IDs instead of 'working'.\").optional(),\n job_id: z.string().describe(\"The unique identifier of the asynchronous job to check status for\"),\n}).describe(\"Request parameters for checking the status of an asynchronous job.\");\nexport const PdfCoJobCheckOutput = z.object({\n url: z.string().describe(\"URL to the final output file when status is 'success'\").nullable().optional(),\n name: z.string().describe(\"The name of the output file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable().optional(),\n jobId: z.string().describe(\"The job identifier\").nullable().optional(),\n status: z.enum([\"working\", \"failed\", \"success\", \"aborted\", \"unknown\"]).describe(\"Current job status: working, success, failed, aborted, or unknown\").nullable(),\n credits: z.number().int().describe(\"Credits consumed by this job\").nullable().optional(),\n message: z.string().describe(\"Operation details or error information\").nullable().optional(),\n duration: z.number().int().describe(\"Request time in milliseconds\").nullable().optional(),\n pageCount: z.number().int().describe(\"Document page count\").nullable().optional(),\n jobDuration: z.number().int().describe(\"Processing time in milliseconds\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Account balance remaining\").nullable().optional(),\n outputLinkValidTill: z.string().describe(\"Expiration timestamp for the output link\").nullable().optional(),\n}).passthrough().describe(\"Response schema for job status check.\");\n\nexport const pdfCoJobCheck = action(\"PDF_CO_JOB_CHECK\", {\n slug: \"pdf_co-job-check\",\n name: \"Check Job Status\",\n description: \"Tool to check status and result of an asynchronous job. Use after submitting a job to poll for completion.\",\n input: PdfCoJobCheckInput,\n output: PdfCoJobCheckOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"job-check.mjs","names":[],"sources":["../../src/actions/job-check.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoJobCheckInput = z.object({\n force: z.boolean().describe(\"Set true to forcibly check long-running jobs. When true, returns 'unknown' for invalid job IDs instead of 'working'.\").optional(),\n job_id: z.string().describe(\"The unique identifier of the asynchronous job to check status for\"),\n}).describe(\"Request parameters for checking the status of an asynchronous job.\");\nexport const PdfCoJobCheckOutput = z.object({\n url: z.string().describe(\"URL to the final output file when status is 'success'\").nullable().optional(),\n name: z.string().describe(\"The name of the output file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable().optional(),\n jobId: z.string().describe(\"The job identifier\").nullable().optional(),\n status: z.enum([\"working\", \"failed\", \"success\", \"aborted\", \"unknown\"]).describe(\"Current job status: working, success, failed, aborted, or unknown\").nullable(),\n credits: z.number().int().describe(\"Credits consumed by this job\").nullable().optional(),\n message: z.string().describe(\"Operation details or error information\").nullable().optional(),\n duration: z.number().int().describe(\"Request time in milliseconds\").nullable().optional(),\n pageCount: z.number().int().describe(\"Document page count\").nullable().optional(),\n jobDuration: z.number().int().describe(\"Processing time in milliseconds\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Account balance remaining\").nullable().optional(),\n outputLinkValidTill: z.string().describe(\"Expiration timestamp for the output link\").nullable().optional(),\n}).passthrough().describe(\"Response schema for job status check.\");\n\nexport const pdfCoJobCheck: AppAction<\n typeof PdfCoJobCheckInput,\n typeof PdfCoJobCheckOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_JOB_CHECK\", {\n slug: \"pdf_co-job-check\",\n name: \"Check Job Status\",\n description: \"Tool to check status and result of an asynchronous job. Use after submitting a job to poll for completion.\",\n input: PdfCoJobCheckInput,\n output: PdfCoJobCheckOutput,\n});\n"],"mappings":";;;AAyBA,MAAa,gBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BgC,EAAE,OAAO;EACzC,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EAC7J,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACjG,CAAC,CAAC,CAAC,SAAS,oEAwBH;CACP,QAxBiC,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrE,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAU;GAAW;GAAW;EAAS,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC9J,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
package/dist/actions/pdf-add.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-add.cjs","names":["z","action"],"sources":["../../src/actions/pdf-add.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfAddInput = z.object({\n url: z.string().describe(\"Link to the source PDF file\"),\n name: z.string().describe(\"Desired name for the result PDF file\").optional(),\n pages: z.string().describe(\"Comma-separated page indices (e.g., '0,2-4') to process; defaults to all pages\").optional(),\n objects: z.array(z.record(z.string(), z.unknown())).describe(\"List of objects to add (text, image, barcode, link, document, etc.). See API docs for structure.\"),\n password: z.string().describe(\"Password for protected PDF, if needed\").optional(),\n run_async: z.boolean().describe(\"Run the process asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for PDFAdd action.\");\nexport const PdfCoPdfAddOutput = z.object({\n url: z.string().describe(\"URL of the result PDF file\").nullable().optional(),\n name: z.string().describe(\"Name of the result PDF file\").nullable().optional(),\n error: z.boolean().default(false).describe(\"True if an error occurred\").nullable().optional(),\n jobId: z.string().describe(\"Job ID for async execution when async=true\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable().optional(),\n credits: z.number().int().describe(\"Credits used for the operation\").nullable().optional(),\n message: z.string().describe(\"Status or error message\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the result PDF\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining credits in account\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFAdd action\");\n\nexport const pdfCoPdfAdd = action(\"PDF_CO_PDF_ADD\", {\n slug: \"pdf_co-pdf-add\",\n name: \"Add Content to PDF\",\n description: \"Tool to add content to an existing PDF. Use when you need to overlay text, images, barcodes, or links before distributing the file.\",\n input: PdfCoPdfAddInput,\n output: PdfCoPdfAddOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-add.cjs","names":["z","action"],"sources":["../../src/actions/pdf-add.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfAddInput = z.object({\n url: z.string().describe(\"Link to the source PDF file\"),\n name: z.string().describe(\"Desired name for the result PDF file\").optional(),\n pages: z.string().describe(\"Comma-separated page indices (e.g., '0,2-4') to process; defaults to all pages\").optional(),\n objects: z.array(z.record(z.string(), z.unknown())).describe(\"List of objects to add (text, image, barcode, link, document, etc.). See API docs for structure.\"),\n password: z.string().describe(\"Password for protected PDF, if needed\").optional(),\n run_async: z.boolean().describe(\"Run the process asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for PDFAdd action.\");\nexport const PdfCoPdfAddOutput = z.object({\n url: z.string().describe(\"URL of the result PDF file\").nullable().optional(),\n name: z.string().describe(\"Name of the result PDF file\").nullable().optional(),\n error: z.boolean().default(false).describe(\"True if an error occurred\").nullable().optional(),\n jobId: z.string().describe(\"Job ID for async execution when async=true\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable().optional(),\n credits: z.number().int().describe(\"Credits used for the operation\").nullable().optional(),\n message: z.string().describe(\"Status or error message\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the result PDF\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining credits in account\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFAdd action\");\n\nexport const pdfCoPdfAdd: AppAction<\n typeof PdfCoPdfAddInput,\n typeof PdfCoPdfAddOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_ADD\", {\n slug: \"pdf_co-pdf-add\",\n name: \"Add Content to PDF\",\n description: \"Tool to add content to an existing PDF. Use when you need to overlay text, images, barcodes, or links before distributing the file.\",\n input: PdfCoPdfAddInput,\n output: PdfCoPdfAddOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mBAAmBA,IAAAA,EAAE,OAAO;CACvC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kGAAkG;CAC/J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,cAITC,eAAAA,OAAO,kBAAkB;CAC3B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-add.d.ts
|
|
@@ -20,26 +22,7 @@ declare const PdfCoPdfAddOutput: z.ZodObject<{
|
|
|
20
22
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
23
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const pdfCoPdfAdd:
|
|
24
|
-
url: string;
|
|
25
|
-
objects: Record<string, unknown>[];
|
|
26
|
-
name?: string | undefined;
|
|
27
|
-
pages?: string | undefined;
|
|
28
|
-
password?: string | undefined;
|
|
29
|
-
run_async?: boolean | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const pdfCoPdfAdd: AppAction<typeof PdfCoPdfAddInput, typeof PdfCoPdfAddOutput, typeof pdfCo.credential>;
|
|
43
26
|
//#endregion
|
|
44
27
|
export { pdfCoPdfAdd };
|
|
45
28
|
//# sourceMappingURL=pdf-add.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-add.d.cts","names":[],"sources":["../../src/actions/pdf-add.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-add.d.cts","names":[],"sources":["../../src/actions/pdf-add.ts"],"mappings":";;;;;cAMa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;cAQhB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYjB,WAAA,EAAa,SAAA,QACjB,gBAAA,SACA,iBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-add.d.ts
|
|
@@ -20,26 +22,7 @@ declare const PdfCoPdfAddOutput: z.ZodObject<{
|
|
|
20
22
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
23
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const pdfCoPdfAdd:
|
|
24
|
-
url: string;
|
|
25
|
-
objects: Record<string, unknown>[];
|
|
26
|
-
name?: string | undefined;
|
|
27
|
-
pages?: string | undefined;
|
|
28
|
-
password?: string | undefined;
|
|
29
|
-
run_async?: boolean | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const pdfCoPdfAdd: AppAction<typeof PdfCoPdfAddInput, typeof PdfCoPdfAddOutput, typeof pdfCo.credential>;
|
|
43
26
|
//#endregion
|
|
44
27
|
export { pdfCoPdfAdd };
|
|
45
28
|
//# sourceMappingURL=pdf-add.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-add.d.mts","names":[],"sources":["../../src/actions/pdf-add.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-add.d.mts","names":[],"sources":["../../src/actions/pdf-add.ts"],"mappings":";;;;;cAMa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;cAQhB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYjB,WAAA,EAAa,SAAA,QACjB,gBAAA,SACA,iBAAA,SACA,KAAA,CAAM,UAAA"}
|
package/dist/actions/pdf-add.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-add.mjs","names":[],"sources":["../../src/actions/pdf-add.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfAddInput = z.object({\n url: z.string().describe(\"Link to the source PDF file\"),\n name: z.string().describe(\"Desired name for the result PDF file\").optional(),\n pages: z.string().describe(\"Comma-separated page indices (e.g., '0,2-4') to process; defaults to all pages\").optional(),\n objects: z.array(z.record(z.string(), z.unknown())).describe(\"List of objects to add (text, image, barcode, link, document, etc.). See API docs for structure.\"),\n password: z.string().describe(\"Password for protected PDF, if needed\").optional(),\n run_async: z.boolean().describe(\"Run the process asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for PDFAdd action.\");\nexport const PdfCoPdfAddOutput = z.object({\n url: z.string().describe(\"URL of the result PDF file\").nullable().optional(),\n name: z.string().describe(\"Name of the result PDF file\").nullable().optional(),\n error: z.boolean().default(false).describe(\"True if an error occurred\").nullable().optional(),\n jobId: z.string().describe(\"Job ID for async execution when async=true\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable().optional(),\n credits: z.number().int().describe(\"Credits used for the operation\").nullable().optional(),\n message: z.string().describe(\"Status or error message\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the result PDF\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining credits in account\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFAdd action\");\n\nexport const pdfCoPdfAdd = action(\"PDF_CO_PDF_ADD\", {\n slug: \"pdf_co-pdf-add\",\n name: \"Add Content to PDF\",\n description: \"Tool to add content to an existing PDF. Use when you need to overlay text, images, barcodes, or links before distributing the file.\",\n input: PdfCoPdfAddInput,\n output: PdfCoPdfAddOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-add.mjs","names":[],"sources":["../../src/actions/pdf-add.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfAddInput = z.object({\n url: z.string().describe(\"Link to the source PDF file\"),\n name: z.string().describe(\"Desired name for the result PDF file\").optional(),\n pages: z.string().describe(\"Comma-separated page indices (e.g., '0,2-4') to process; defaults to all pages\").optional(),\n objects: z.array(z.record(z.string(), z.unknown())).describe(\"List of objects to add (text, image, barcode, link, document, etc.). See API docs for structure.\"),\n password: z.string().describe(\"Password for protected PDF, if needed\").optional(),\n run_async: z.boolean().describe(\"Run the process asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for PDFAdd action.\");\nexport const PdfCoPdfAddOutput = z.object({\n url: z.string().describe(\"URL of the result PDF file\").nullable().optional(),\n name: z.string().describe(\"Name of the result PDF file\").nullable().optional(),\n error: z.boolean().default(false).describe(\"True if an error occurred\").nullable().optional(),\n jobId: z.string().describe(\"Job ID for async execution when async=true\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable().optional(),\n credits: z.number().int().describe(\"Credits used for the operation\").nullable().optional(),\n message: z.string().describe(\"Status or error message\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the result PDF\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining credits in account\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFAdd action\");\n\nexport const pdfCoPdfAdd: AppAction<\n typeof PdfCoPdfAddInput,\n typeof PdfCoPdfAddOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_ADD\", {\n slug: \"pdf_co-pdf-add\",\n name: \"Add Content to PDF\",\n description: \"Tool to add content to an existing PDF. Use when you need to overlay text, images, barcodes, or links before distributing the file.\",\n input: PdfCoPdfAddInput,\n output: PdfCoPdfAddOutput,\n});\n"],"mappings":";;;AA0BA,MAAa,cAIT,OAAO,kBAAkB;CAC3B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B8B,EAAE,OAAO;EACvC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kGAAkG;EAC/J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAChF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,kCAqBH;CACP,QArB+B,EAAE,OAAO;EACxC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-change-text-searchable.cjs","names":["z","action"],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfChangeTextSearchableInput = z.object({\n url: z.string().describe(\"Public URL of the source PDF file.\"),\n rect: z.string().describe(\"Comma-separated rectangle coordinates 'left,top,width,height' to limit OCR.\").optional(),\n pages: z.string().describe(\"Single 0-indexed page number to process (e.g., '0' for the first page). The /pdf/makesearchable endpoint does not accept page ranges or comma-separated lists and will return HTTP 450 'Invalid page range specified' for values like '0-2' or '0,1'. Omit this field to OCR every page.\").optional(),\n inline: z.boolean().default(false).describe(\"Whether to return the processed PDF data inline (base64) or as a URL. Set to true for inline response, false for URL.\").optional(),\n language: z.string().default(\"eng\").describe(\"Language code for OCR (default: eng).\").optional(),\n password: z.string().describe(\"Password for encrypted PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"JSON string with advanced OCR profiles and configurations.\").optional(),\n}).describe(\"Request model for making a PDF's text searchable using OCR.\");\nexport const PdfCoPdfChangeTextSearchableOutput = z.object({\n url: z.string().describe(\"URL of the processed PDF file with searchable text.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred during processing.\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remaining: z.number().int().describe(\"Remaining API credits on the account.\").nullable().optional(),\n}).passthrough().describe(\"Response model for searchable text PDF creation.\");\n\nexport const pdfCoPdfChangeTextSearchable = action(\"PDF_CO_PDF_CHANGE_TEXT_SEARCHABLE\", {\n slug: \"pdf_co-pdf-change-text-searchable\",\n name: \"Change PDF Text Searchable\",\n description: \"Tool to make PDF text searchable using OCR. Use when you need to add a searchable text layer to scanned or image-only PDF documents.\",\n input: PdfCoPdfChangeTextSearchableInput,\n output: PdfCoPdfChangeTextSearchableOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-change-text-searchable.cjs","names":["z","action"],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfChangeTextSearchableInput = z.object({\n url: z.string().describe(\"Public URL of the source PDF file.\"),\n rect: z.string().describe(\"Comma-separated rectangle coordinates 'left,top,width,height' to limit OCR.\").optional(),\n pages: z.string().describe(\"Single 0-indexed page number to process (e.g., '0' for the first page). The /pdf/makesearchable endpoint does not accept page ranges or comma-separated lists and will return HTTP 450 'Invalid page range specified' for values like '0-2' or '0,1'. Omit this field to OCR every page.\").optional(),\n inline: z.boolean().default(false).describe(\"Whether to return the processed PDF data inline (base64) or as a URL. Set to true for inline response, false for URL.\").optional(),\n language: z.string().default(\"eng\").describe(\"Language code for OCR (default: eng).\").optional(),\n password: z.string().describe(\"Password for encrypted PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"JSON string with advanced OCR profiles and configurations.\").optional(),\n}).describe(\"Request model for making a PDF's text searchable using OCR.\");\nexport const PdfCoPdfChangeTextSearchableOutput = z.object({\n url: z.string().describe(\"URL of the processed PDF file with searchable text.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred during processing.\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remaining: z.number().int().describe(\"Remaining API credits on the account.\").nullable().optional(),\n}).passthrough().describe(\"Response model for searchable text PDF creation.\");\n\nexport const pdfCoPdfChangeTextSearchable: AppAction<\n typeof PdfCoPdfChangeTextSearchableInput,\n typeof PdfCoPdfChangeTextSearchableOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_CHANGE_TEXT_SEARCHABLE\", {\n slug: \"pdf_co-pdf-change-text-searchable\",\n name: \"Change PDF Text Searchable\",\n description: \"Tool to make PDF text searchable using OCR. Use when you need to add a searchable text layer to scanned or image-only PDF documents.\",\n input: PdfCoPdfChangeTextSearchableInput,\n output: PdfCoPdfChangeTextSearchableOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAClH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CAChU,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC9K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,+BAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-change-text-searchable.d.ts
|
|
@@ -17,27 +19,7 @@ declare const PdfCoPdfChangeTextSearchableOutput: z.ZodObject<{
|
|
|
17
19
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const pdfCoPdfChangeTextSearchable:
|
|
21
|
-
url: string;
|
|
22
|
-
rect?: string | undefined;
|
|
23
|
-
pages?: string | undefined;
|
|
24
|
-
inline?: boolean | undefined;
|
|
25
|
-
language?: string | undefined;
|
|
26
|
-
password?: string | undefined;
|
|
27
|
-
profiles?: string | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
generic_api_key: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const pdfCoPdfChangeTextSearchable: AppAction<typeof PdfCoPdfChangeTextSearchableInput, typeof PdfCoPdfChangeTextSearchableOutput, typeof pdfCo.credential>;
|
|
41
23
|
//#endregion
|
|
42
24
|
export { pdfCoPdfChangeTextSearchable };
|
|
43
25
|
//# sourceMappingURL=pdf-change-text-searchable.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-change-text-searchable.d.cts","names":[],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-change-text-searchable.d.cts","names":[],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cASjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;cAQlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-change-text-searchable.d.ts
|
|
@@ -17,27 +19,7 @@ declare const PdfCoPdfChangeTextSearchableOutput: z.ZodObject<{
|
|
|
17
19
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const pdfCoPdfChangeTextSearchable:
|
|
21
|
-
url: string;
|
|
22
|
-
rect?: string | undefined;
|
|
23
|
-
pages?: string | undefined;
|
|
24
|
-
inline?: boolean | undefined;
|
|
25
|
-
language?: string | undefined;
|
|
26
|
-
password?: string | undefined;
|
|
27
|
-
profiles?: string | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
generic_api_key: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const pdfCoPdfChangeTextSearchable: AppAction<typeof PdfCoPdfChangeTextSearchableInput, typeof PdfCoPdfChangeTextSearchableOutput, typeof pdfCo.credential>;
|
|
41
23
|
//#endregion
|
|
42
24
|
export { pdfCoPdfChangeTextSearchable };
|
|
43
25
|
//# sourceMappingURL=pdf-change-text-searchable.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-change-text-searchable.d.mts","names":[],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-change-text-searchable.d.mts","names":[],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cASjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;cAQlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-change-text-searchable.mjs","names":[],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfChangeTextSearchableInput = z.object({\n url: z.string().describe(\"Public URL of the source PDF file.\"),\n rect: z.string().describe(\"Comma-separated rectangle coordinates 'left,top,width,height' to limit OCR.\").optional(),\n pages: z.string().describe(\"Single 0-indexed page number to process (e.g., '0' for the first page). The /pdf/makesearchable endpoint does not accept page ranges or comma-separated lists and will return HTTP 450 'Invalid page range specified' for values like '0-2' or '0,1'. Omit this field to OCR every page.\").optional(),\n inline: z.boolean().default(false).describe(\"Whether to return the processed PDF data inline (base64) or as a URL. Set to true for inline response, false for URL.\").optional(),\n language: z.string().default(\"eng\").describe(\"Language code for OCR (default: eng).\").optional(),\n password: z.string().describe(\"Password for encrypted PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"JSON string with advanced OCR profiles and configurations.\").optional(),\n}).describe(\"Request model for making a PDF's text searchable using OCR.\");\nexport const PdfCoPdfChangeTextSearchableOutput = z.object({\n url: z.string().describe(\"URL of the processed PDF file with searchable text.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred during processing.\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remaining: z.number().int().describe(\"Remaining API credits on the account.\").nullable().optional(),\n}).passthrough().describe(\"Response model for searchable text PDF creation.\");\n\nexport const pdfCoPdfChangeTextSearchable = action(\"PDF_CO_PDF_CHANGE_TEXT_SEARCHABLE\", {\n slug: \"pdf_co-pdf-change-text-searchable\",\n name: \"Change PDF Text Searchable\",\n description: \"Tool to make PDF text searchable using OCR. Use when you need to add a searchable text layer to scanned or image-only PDF documents.\",\n input: PdfCoPdfChangeTextSearchableInput,\n output: PdfCoPdfChangeTextSearchableOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-change-text-searchable.mjs","names":[],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfChangeTextSearchableInput = z.object({\n url: z.string().describe(\"Public URL of the source PDF file.\"),\n rect: z.string().describe(\"Comma-separated rectangle coordinates 'left,top,width,height' to limit OCR.\").optional(),\n pages: z.string().describe(\"Single 0-indexed page number to process (e.g., '0' for the first page). The /pdf/makesearchable endpoint does not accept page ranges or comma-separated lists and will return HTTP 450 'Invalid page range specified' for values like '0-2' or '0,1'. Omit this field to OCR every page.\").optional(),\n inline: z.boolean().default(false).describe(\"Whether to return the processed PDF data inline (base64) or as a URL. Set to true for inline response, false for URL.\").optional(),\n language: z.string().default(\"eng\").describe(\"Language code for OCR (default: eng).\").optional(),\n password: z.string().describe(\"Password for encrypted PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"JSON string with advanced OCR profiles and configurations.\").optional(),\n}).describe(\"Request model for making a PDF's text searchable using OCR.\");\nexport const PdfCoPdfChangeTextSearchableOutput = z.object({\n url: z.string().describe(\"URL of the processed PDF file with searchable text.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred during processing.\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remaining: z.number().int().describe(\"Remaining API credits on the account.\").nullable().optional(),\n}).passthrough().describe(\"Response model for searchable text PDF creation.\");\n\nexport const pdfCoPdfChangeTextSearchable: AppAction<\n typeof PdfCoPdfChangeTextSearchableInput,\n typeof PdfCoPdfChangeTextSearchableOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_CHANGE_TEXT_SEARCHABLE\", {\n slug: \"pdf_co-pdf-change-text-searchable\",\n name: \"Change PDF Text Searchable\",\n description: \"Tool to make PDF text searchable using OCR. Use when you need to add a searchable text layer to scanned or image-only PDF documents.\",\n input: PdfCoPdfChangeTextSearchableInput,\n output: PdfCoPdfChangeTextSearchableOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,+BAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;EAChU,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EAC9K,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,6DAiBH;CACP,QAjBgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACzF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"pdf-delete-pages.cjs","names":["z","action"],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const 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: AppAction<\n typeof PdfCoPdfDeletePagesInput,\n typeof PdfCoPdfDeletePagesOutput,\n typeof pdfCo.credential\n> = 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":";;;;AAMA,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,sBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-delete-pages.d.ts
|
|
@@ -16,26 +18,7 @@ declare const PdfCoPdfDeletePagesOutput: z.ZodObject<{
|
|
|
16
18
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
pageCount: z.ZodNullable<z.ZodNumber>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const pdfCoPdfDeletePages:
|
|
20
|
-
url: string;
|
|
21
|
-
pages: string;
|
|
22
|
-
name?: string | undefined;
|
|
23
|
-
password?: string | undefined;
|
|
24
|
-
profiles?: string | undefined;
|
|
25
|
-
async_job?: boolean | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const pdfCoPdfDeletePages: AppAction<typeof PdfCoPdfDeletePagesInput, typeof PdfCoPdfDeletePagesOutput, typeof pdfCo.credential>;
|
|
39
22
|
//#endregion
|
|
40
23
|
export { pdfCoPdfDeletePages };
|
|
41
24
|
//# sourceMappingURL=pdf-delete-pages.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-delete-pages.d.cts","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-delete-pages.d.cts","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-delete-pages.d.ts
|
|
@@ -16,26 +18,7 @@ declare const PdfCoPdfDeletePagesOutput: z.ZodObject<{
|
|
|
16
18
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
pageCount: z.ZodNullable<z.ZodNumber>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const pdfCoPdfDeletePages:
|
|
20
|
-
url: string;
|
|
21
|
-
pages: string;
|
|
22
|
-
name?: string | undefined;
|
|
23
|
-
password?: string | undefined;
|
|
24
|
-
profiles?: string | undefined;
|
|
25
|
-
async_job?: boolean | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const pdfCoPdfDeletePages: AppAction<typeof PdfCoPdfDeletePagesInput, typeof PdfCoPdfDeletePagesOutput, typeof pdfCo.credential>;
|
|
39
22
|
//#endregion
|
|
40
23
|
export { pdfCoPdfDeletePages };
|
|
41
24
|
//# sourceMappingURL=pdf-delete-pages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-delete-pages.d.mts","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-delete-pages.d.mts","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"pdf-delete-pages.mjs","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const 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: AppAction<\n typeof PdfCoPdfDeletePagesInput,\n typeof PdfCoPdfDeletePagesOutput,\n typeof pdfCo.credential\n> = 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":";;;AAsBA,MAAa,sBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBsC,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,6DAiBH;CACP,QAjBuC,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,wCAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"pdf-extract-attachments.cjs","names":["z","action"],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const 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: AppAction<\n typeof PdfCoPdfExtractAttachmentsInput,\n typeof PdfCoPdfExtractAttachmentsOutput,\n typeof pdfCo.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,6BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-extract-attachments.d.ts
|
|
@@ -23,28 +25,7 @@ declare const PdfCoPdfExtractAttachmentsOutput: z.ZodObject<{
|
|
|
23
25
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
26
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const pdfCoPdfExtractAttachments:
|
|
27
|
-
url: string;
|
|
28
|
-
inline?: boolean | undefined;
|
|
29
|
-
callback?: string | undefined;
|
|
30
|
-
password?: string | undefined;
|
|
31
|
-
async_job?: boolean | undefined;
|
|
32
|
-
expiration?: number | undefined;
|
|
33
|
-
httppassword?: string | undefined;
|
|
34
|
-
httpusername?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const pdfCoPdfExtractAttachments: AppAction<typeof PdfCoPdfExtractAttachmentsInput, typeof PdfCoPdfExtractAttachmentsOutput, typeof pdfCo.credential>;
|
|
48
29
|
//#endregion
|
|
49
30
|
export { pdfCoPdfExtractAttachments };
|
|
50
31
|
//# sourceMappingURL=pdf-extract-attachments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-extract-attachments.d.cts","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-extract-attachments.d.cts","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAU/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAahC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { pdfCo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/pdf-extract-attachments.d.ts
|
|
@@ -23,28 +25,7 @@ declare const PdfCoPdfExtractAttachmentsOutput: z.ZodObject<{
|
|
|
23
25
|
pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
26
|
remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const pdfCoPdfExtractAttachments:
|
|
27
|
-
url: string;
|
|
28
|
-
inline?: boolean | undefined;
|
|
29
|
-
callback?: string | undefined;
|
|
30
|
-
password?: string | undefined;
|
|
31
|
-
async_job?: boolean | undefined;
|
|
32
|
-
expiration?: number | undefined;
|
|
33
|
-
httppassword?: string | undefined;
|
|
34
|
-
httpusername?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf_co", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const pdfCoPdfExtractAttachments: AppAction<typeof PdfCoPdfExtractAttachmentsInput, typeof PdfCoPdfExtractAttachmentsOutput, typeof pdfCo.credential>;
|
|
48
29
|
//#endregion
|
|
49
30
|
export { pdfCoPdfExtractAttachments };
|
|
50
31
|
//# sourceMappingURL=pdf-extract-attachments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-extract-attachments.d.mts","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-extract-attachments.d.mts","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAU/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAahC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,KAAA,CAAM,UAAA"}
|