@keystrokehq/pdf4me 0.1.2 → 0.1.4
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/README.md +1 -1
- package/dist/actions/convert-to-pdf.cjs +3 -3
- package/dist/actions/convert-to-pdf.cjs.map +1 -1
- package/dist/actions/convert-to-pdf.d.cts +17 -4
- package/dist/actions/convert-to-pdf.d.mts +17 -4
- package/dist/actions/convert-to-pdf.mjs +3 -3
- package/dist/actions/convert-to-pdf.mjs.map +1 -1
- package/dist/actions/extract-text.cjs +1 -1
- package/dist/actions/extract-text.cjs.map +1 -1
- package/dist/actions/extract-text.d.cts +14 -2
- package/dist/actions/extract-text.d.mts +14 -2
- package/dist/actions/extract-text.mjs +1 -1
- package/dist/actions/extract-text.mjs.map +1 -1
- package/dist/actions/fill-pdf-form.cjs +2 -2
- package/dist/actions/fill-pdf-form.cjs.map +1 -1
- package/dist/actions/fill-pdf-form.d.cts +15 -3
- package/dist/actions/fill-pdf-form.d.cts.map +1 -1
- package/dist/actions/fill-pdf-form.d.mts +15 -3
- package/dist/actions/fill-pdf-form.d.mts.map +1 -1
- package/dist/actions/fill-pdf-form.mjs +2 -2
- package/dist/actions/fill-pdf-form.mjs.map +1 -1
- package/dist/actions/read-barcodes-from-image.cjs +2 -2
- package/dist/actions/read-barcodes-from-image.cjs.map +1 -1
- package/dist/actions/read-barcodes-from-image.d.cts +15 -3
- package/dist/actions/read-barcodes-from-image.d.mts +15 -3
- package/dist/actions/read-barcodes-from-image.mjs +2 -2
- package/dist/actions/read-barcodes-from-image.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,17 +11,17 @@ const Pdf4meConvertToPdfInput = zod.z.object({
|
|
|
11
11
|
language: zod.z.string().describe("OCR language code, e.g., 'eng', 'deu'.").optional(),
|
|
12
12
|
pageSelection: zod.z.string().describe("Page ranges to convert, e.g., '1-3,5-7'.").optional(),
|
|
13
13
|
pdfAConversion: zod.z.boolean().default(false).describe("Convert to PDF/A if true.").optional()
|
|
14
|
-
}).describe("Single PDF conversion option.")).describe("List of conversion option sets. If omitted, default conversion is applied.").optional()
|
|
14
|
+
}).passthrough().describe("Single PDF conversion option.")).describe("List of conversion option sets. If omitted, default conversion is applied.").optional()
|
|
15
15
|
}).describe("Request model for ConvertToPdf action.");
|
|
16
16
|
const Pdf4meConvertToPdf_DocumentOutputSchema = zod.z.object({
|
|
17
17
|
name: zod.z.string().describe("File name of the converted PDF, e.g., 'converted.pdf'.").nullable(),
|
|
18
18
|
docData: zod.z.string().describe("Base64-encoded converted PDF document payload.").nullable()
|
|
19
|
-
}).describe("Converted PDF output document.");
|
|
19
|
+
}).passthrough().describe("Converted PDF output document.");
|
|
20
20
|
const Pdf4meConvertToPdfOutput = zod.z.object({
|
|
21
21
|
jobId: zod.z.string().describe("Job ID for tracking the conversion request.").nullable(),
|
|
22
22
|
errors: zod.z.array(zod.z.string()).describe("List of error messages, if any."),
|
|
23
23
|
document: Pdf4meConvertToPdf_DocumentOutputSchema.nullable()
|
|
24
|
-
}).describe("Response model for ConvertToPdf action.");
|
|
24
|
+
}).passthrough().describe("Response model for ConvertToPdf action.");
|
|
25
25
|
const pdf4meConvertToPdf = require_action.action("PDF4ME_CONVERT_TO_PDF", {
|
|
26
26
|
slug: "pdf4me-convert-to-pdf",
|
|
27
27
|
name: "Convert to PDF",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-to-pdf.cjs","names":["z","action"],"sources":["../../src/actions/convert-to-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meConvertToPdfInput = z.object({\n document: z.object({\n name: z.string().describe(\"Original file name including extension, e.g., 'sample.docx'.\").optional(),\n docData: z.string().describe(\"Base64-encoded file data to convert.\"),\n}).describe(\"Document object with base64 data and optional filename. Must include `docData` field containing base64-encoded file bytes — URLs and file paths will fail validation.\"),\n pdfConvertActions: z.array(z.object({\n ocr: z.boolean().default(false).describe(\"Run OCR on images if true.\").optional(),\n language: z.string().describe(\"OCR language code, e.g., 'eng', 'deu'.\").optional(),\n pageSelection: z.string().describe(\"Page ranges to convert, e.g., '1-3,5-7'.\").optional(),\n pdfAConversion: z.boolean().default(false).describe(\"Convert to PDF/A if true.\").optional(),\n}).describe(\"Single PDF conversion option.\")).describe(\"List of conversion option sets. If omitted, default conversion is applied.\").optional(),\n}).describe(\"Request model for ConvertToPdf action.\");\nconst Pdf4meConvertToPdf_DocumentOutputSchema = z.object({\n name: z.string().describe(\"File name of the converted PDF, e.g., 'converted.pdf'.\").nullable(),\n docData: z.string().describe(\"Base64-encoded converted PDF document payload.\").nullable(),\n}).describe(\"Converted PDF output document.\");\nexport const Pdf4meConvertToPdfOutput = z.object({\n jobId: z.string().describe(\"Job ID for tracking the conversion request.\").nullable(),\n errors: z.array(z.string()).describe(\"List of error messages, if any.\"),\n document: Pdf4meConvertToPdf_DocumentOutputSchema.nullable(),\n}).describe(\"Response model for ConvertToPdf action.\");\n\nexport const pdf4meConvertToPdf = action(\"PDF4ME_CONVERT_TO_PDF\", {\n slug: \"pdf4me-convert-to-pdf\",\n name: \"Convert to PDF\",\n description: \"Tool to convert various document and image formats to PDF. Handles one file per call; multi-file PDFs require multiple calls followed by a separate merge step. Conversion permanently removes interactive form field editability — retain the original file as backup, and ensure all form fields are populated before converting. Use when you need to transform base64-encoded files into PDFs before further processing.\",\n input: Pdf4meConvertToPdfInput,\n output: Pdf4meConvertToPdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,UAAUA,IAAAA,EAAE,OAAO;EACnB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,CAAC,CAAC,CAAC,SAAS,uKAAuK;CACjL,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACpC,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACxF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"convert-to-pdf.cjs","names":["z","action"],"sources":["../../src/actions/convert-to-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meConvertToPdfInput = z.object({\n document: z.object({\n name: z.string().describe(\"Original file name including extension, e.g., 'sample.docx'.\").optional(),\n docData: z.string().describe(\"Base64-encoded file data to convert.\"),\n}).describe(\"Document object with base64 data and optional filename. Must include `docData` field containing base64-encoded file bytes — URLs and file paths will fail validation.\"),\n pdfConvertActions: z.array(z.object({\n ocr: z.boolean().default(false).describe(\"Run OCR on images if true.\").optional(),\n language: z.string().describe(\"OCR language code, e.g., 'eng', 'deu'.\").optional(),\n pageSelection: z.string().describe(\"Page ranges to convert, e.g., '1-3,5-7'.\").optional(),\n pdfAConversion: z.boolean().default(false).describe(\"Convert to PDF/A if true.\").optional(),\n}).passthrough().describe(\"Single PDF conversion option.\")).describe(\"List of conversion option sets. If omitted, default conversion is applied.\").optional(),\n}).describe(\"Request model for ConvertToPdf action.\");\nconst Pdf4meConvertToPdf_DocumentOutputSchema = z.object({\n name: z.string().describe(\"File name of the converted PDF, e.g., 'converted.pdf'.\").nullable(),\n docData: z.string().describe(\"Base64-encoded converted PDF document payload.\").nullable(),\n}).passthrough().describe(\"Converted PDF output document.\");\nexport const Pdf4meConvertToPdfOutput = z.object({\n jobId: z.string().describe(\"Job ID for tracking the conversion request.\").nullable(),\n errors: z.array(z.string()).describe(\"List of error messages, if any.\"),\n document: Pdf4meConvertToPdf_DocumentOutputSchema.nullable(),\n}).passthrough().describe(\"Response model for ConvertToPdf action.\");\n\nexport const pdf4meConvertToPdf = action(\"PDF4ME_CONVERT_TO_PDF\", {\n slug: \"pdf4me-convert-to-pdf\",\n name: \"Convert to PDF\",\n description: \"Tool to convert various document and image formats to PDF. Handles one file per call; multi-file PDFs require multiple calls followed by a separate merge step. Conversion permanently removes interactive form field editability — retain the original file as backup, and ensure all form fields are populated before converting. Use when you need to transform base64-encoded files into PDFs before further processing.\",\n input: Pdf4meConvertToPdfInput,\n output: Pdf4meConvertToPdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,UAAUA,IAAAA,EAAE,OAAO;EACnB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,CAAC,CAAC,CAAC,SAAS,uKAAuK;CACjL,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACpC,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACxF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC;CACtE,UAAU,wCAAwC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const Pdf4meConvertToPdfInput: z.ZodObject<{
|
|
|
11
11
|
language: z.ZodOptional<z.ZodString>;
|
|
12
12
|
pageSelection: z.ZodOptional<z.ZodString>;
|
|
13
13
|
pdfAConversion: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
declare const Pdf4meConvertToPdfOutput: z.ZodObject<{
|
|
17
17
|
jobId: z.ZodNullable<z.ZodString>;
|
|
@@ -19,20 +19,33 @@ declare const Pdf4meConvertToPdfOutput: z.ZodObject<{
|
|
|
19
19
|
document: z.ZodNullable<z.ZodObject<{
|
|
20
20
|
name: z.ZodNullable<z.ZodString>;
|
|
21
21
|
docData: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const pdf4meConvertToPdf: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
document: {
|
|
26
26
|
docData: string;
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
pdfConvertActions?: {
|
|
30
|
+
[x: string]: unknown;
|
|
30
31
|
ocr?: boolean | undefined;
|
|
31
32
|
language?: string | undefined;
|
|
32
33
|
pageSelection?: string | undefined;
|
|
33
34
|
pdfAConversion?: boolean | undefined;
|
|
34
35
|
}[] | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
37
|
+
connectionId: z.ZodString;
|
|
38
|
+
entityId: z.ZodString;
|
|
39
|
+
instanceId: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
basic_encoded: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
43
|
+
connectionId: z.ZodString;
|
|
44
|
+
entityId: z.ZodString;
|
|
45
|
+
instanceId: z.ZodString;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
basic_encoded: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>]>;
|
|
36
49
|
//#endregion
|
|
37
50
|
export { pdf4meConvertToPdf };
|
|
38
51
|
//# sourceMappingURL=convert-to-pdf.d.cts.map
|
|
@@ -11,7 +11,7 @@ declare const Pdf4meConvertToPdfInput: z.ZodObject<{
|
|
|
11
11
|
language: z.ZodOptional<z.ZodString>;
|
|
12
12
|
pageSelection: z.ZodOptional<z.ZodString>;
|
|
13
13
|
pdfAConversion: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
declare const Pdf4meConvertToPdfOutput: z.ZodObject<{
|
|
17
17
|
jobId: z.ZodNullable<z.ZodString>;
|
|
@@ -19,20 +19,33 @@ declare const Pdf4meConvertToPdfOutput: z.ZodObject<{
|
|
|
19
19
|
document: z.ZodNullable<z.ZodObject<{
|
|
20
20
|
name: z.ZodNullable<z.ZodString>;
|
|
21
21
|
docData: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const pdf4meConvertToPdf: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
document: {
|
|
26
26
|
docData: string;
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
pdfConvertActions?: {
|
|
30
|
+
[x: string]: unknown;
|
|
30
31
|
ocr?: boolean | undefined;
|
|
31
32
|
language?: string | undefined;
|
|
32
33
|
pageSelection?: string | undefined;
|
|
33
34
|
pdfAConversion?: boolean | undefined;
|
|
34
35
|
}[] | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
37
|
+
connectionId: z.ZodString;
|
|
38
|
+
entityId: z.ZodString;
|
|
39
|
+
instanceId: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
basic_encoded: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
43
|
+
connectionId: z.ZodString;
|
|
44
|
+
entityId: z.ZodString;
|
|
45
|
+
instanceId: z.ZodString;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
basic_encoded: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>]>;
|
|
36
49
|
//#endregion
|
|
37
50
|
export { pdf4meConvertToPdf };
|
|
38
51
|
//# sourceMappingURL=convert-to-pdf.d.mts.map
|
|
@@ -11,12 +11,12 @@ const Pdf4meConvertToPdfInput = z.object({
|
|
|
11
11
|
language: z.string().describe("OCR language code, e.g., 'eng', 'deu'.").optional(),
|
|
12
12
|
pageSelection: z.string().describe("Page ranges to convert, e.g., '1-3,5-7'.").optional(),
|
|
13
13
|
pdfAConversion: z.boolean().default(false).describe("Convert to PDF/A if true.").optional()
|
|
14
|
-
}).describe("Single PDF conversion option.")).describe("List of conversion option sets. If omitted, default conversion is applied.").optional()
|
|
14
|
+
}).passthrough().describe("Single PDF conversion option.")).describe("List of conversion option sets. If omitted, default conversion is applied.").optional()
|
|
15
15
|
}).describe("Request model for ConvertToPdf action.");
|
|
16
16
|
const Pdf4meConvertToPdf_DocumentOutputSchema = z.object({
|
|
17
17
|
name: z.string().describe("File name of the converted PDF, e.g., 'converted.pdf'.").nullable(),
|
|
18
18
|
docData: z.string().describe("Base64-encoded converted PDF document payload.").nullable()
|
|
19
|
-
}).describe("Converted PDF output document.");
|
|
19
|
+
}).passthrough().describe("Converted PDF output document.");
|
|
20
20
|
const pdf4meConvertToPdf = action("PDF4ME_CONVERT_TO_PDF", {
|
|
21
21
|
slug: "pdf4me-convert-to-pdf",
|
|
22
22
|
name: "Convert to PDF",
|
|
@@ -26,7 +26,7 @@ const pdf4meConvertToPdf = action("PDF4ME_CONVERT_TO_PDF", {
|
|
|
26
26
|
jobId: z.string().describe("Job ID for tracking the conversion request.").nullable(),
|
|
27
27
|
errors: z.array(z.string()).describe("List of error messages, if any."),
|
|
28
28
|
document: Pdf4meConvertToPdf_DocumentOutputSchema.nullable()
|
|
29
|
-
}).describe("Response model for ConvertToPdf action.")
|
|
29
|
+
}).passthrough().describe("Response model for ConvertToPdf action.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { pdf4meConvertToPdf };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-to-pdf.mjs","names":[],"sources":["../../src/actions/convert-to-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meConvertToPdfInput = z.object({\n document: z.object({\n name: z.string().describe(\"Original file name including extension, e.g., 'sample.docx'.\").optional(),\n docData: z.string().describe(\"Base64-encoded file data to convert.\"),\n}).describe(\"Document object with base64 data and optional filename. Must include `docData` field containing base64-encoded file bytes — URLs and file paths will fail validation.\"),\n pdfConvertActions: z.array(z.object({\n ocr: z.boolean().default(false).describe(\"Run OCR on images if true.\").optional(),\n language: z.string().describe(\"OCR language code, e.g., 'eng', 'deu'.\").optional(),\n pageSelection: z.string().describe(\"Page ranges to convert, e.g., '1-3,5-7'.\").optional(),\n pdfAConversion: z.boolean().default(false).describe(\"Convert to PDF/A if true.\").optional(),\n}).describe(\"Single PDF conversion option.\")).describe(\"List of conversion option sets. If omitted, default conversion is applied.\").optional(),\n}).describe(\"Request model for ConvertToPdf action.\");\nconst Pdf4meConvertToPdf_DocumentOutputSchema = z.object({\n name: z.string().describe(\"File name of the converted PDF, e.g., 'converted.pdf'.\").nullable(),\n docData: z.string().describe(\"Base64-encoded converted PDF document payload.\").nullable(),\n}).describe(\"Converted PDF output document.\");\nexport const Pdf4meConvertToPdfOutput = z.object({\n jobId: z.string().describe(\"Job ID for tracking the conversion request.\").nullable(),\n errors: z.array(z.string()).describe(\"List of error messages, if any.\"),\n document: Pdf4meConvertToPdf_DocumentOutputSchema.nullable(),\n}).describe(\"Response model for ConvertToPdf action.\");\n\nexport const pdf4meConvertToPdf = action(\"PDF4ME_CONVERT_TO_PDF\", {\n slug: \"pdf4me-convert-to-pdf\",\n name: \"Convert to PDF\",\n description: \"Tool to convert various document and image formats to PDF. Handles one file per call; multi-file PDFs require multiple calls followed by a separate merge step. Conversion permanently removes interactive form field editability — retain the original file as backup, and ensure all form fields are populated before converting. Use when you need to transform base64-encoded files into PDFs before further processing.\",\n input: Pdf4meConvertToPdfInput,\n output: Pdf4meConvertToPdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO;EACnB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,CAAC,CAAC,CAAC,SAAS,uKAAuK;CACjL,mBAAmB,EAAE,MAAM,EAAE,OAAO;EACpC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACjF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACxF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"convert-to-pdf.mjs","names":[],"sources":["../../src/actions/convert-to-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meConvertToPdfInput = z.object({\n document: z.object({\n name: z.string().describe(\"Original file name including extension, e.g., 'sample.docx'.\").optional(),\n docData: z.string().describe(\"Base64-encoded file data to convert.\"),\n}).describe(\"Document object with base64 data and optional filename. Must include `docData` field containing base64-encoded file bytes — URLs and file paths will fail validation.\"),\n pdfConvertActions: z.array(z.object({\n ocr: z.boolean().default(false).describe(\"Run OCR on images if true.\").optional(),\n language: z.string().describe(\"OCR language code, e.g., 'eng', 'deu'.\").optional(),\n pageSelection: z.string().describe(\"Page ranges to convert, e.g., '1-3,5-7'.\").optional(),\n pdfAConversion: z.boolean().default(false).describe(\"Convert to PDF/A if true.\").optional(),\n}).passthrough().describe(\"Single PDF conversion option.\")).describe(\"List of conversion option sets. If omitted, default conversion is applied.\").optional(),\n}).describe(\"Request model for ConvertToPdf action.\");\nconst Pdf4meConvertToPdf_DocumentOutputSchema = z.object({\n name: z.string().describe(\"File name of the converted PDF, e.g., 'converted.pdf'.\").nullable(),\n docData: z.string().describe(\"Base64-encoded converted PDF document payload.\").nullable(),\n}).passthrough().describe(\"Converted PDF output document.\");\nexport const Pdf4meConvertToPdfOutput = z.object({\n jobId: z.string().describe(\"Job ID for tracking the conversion request.\").nullable(),\n errors: z.array(z.string()).describe(\"List of error messages, if any.\"),\n document: Pdf4meConvertToPdf_DocumentOutputSchema.nullable(),\n}).passthrough().describe(\"Response model for ConvertToPdf action.\");\n\nexport const pdf4meConvertToPdf = action(\"PDF4ME_CONVERT_TO_PDF\", {\n slug: \"pdf4me-convert-to-pdf\",\n name: \"Convert to PDF\",\n description: \"Tool to convert various document and image formats to PDF. Handles one file per call; multi-file PDFs require multiple calls followed by a separate merge step. Conversion permanently removes interactive form field editability — retain the original file as backup, and ensure all form fields are populated before converting. Use when you need to transform base64-encoded files into PDFs before further processing.\",\n input: Pdf4meConvertToPdfInput,\n output: Pdf4meConvertToPdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO;EACnB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,CAAC,CAAC,CAAC,SAAS,uKAAuK;CACjL,mBAAmB,EAAE,MAAM,EAAE,OAAO;EACpC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACjF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACxF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAO1D,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC;EACtE,UAAU,wCAAwC,SAAS;CAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const Pdf4meExtractTextInput = zod.z.object({
|
|
|
5
5
|
docData: zod.z.string().describe("Base64-encoded PDF file content from which to extract text."),
|
|
6
6
|
docName: zod.z.string().describe("PDF file name with .pdf extension for document identification.")
|
|
7
7
|
}).describe("Request model for ExtractText action.");
|
|
8
|
-
const Pdf4meExtractTextOutput = zod.z.object({ texts: zod.z.array(zod.z.string()).describe("List of extracted text strings from the PDF document. Each element represents text content from the document.") }).describe("Response model for ExtractText action.");
|
|
8
|
+
const Pdf4meExtractTextOutput = zod.z.object({ texts: zod.z.array(zod.z.string()).describe("List of extracted text strings from the PDF document. Each element represents text content from the document.") }).passthrough().describe("Response model for ExtractText action.");
|
|
9
9
|
const pdf4meExtractText = require_action.action("PDF4ME_EXTRACT_TEXT", {
|
|
10
10
|
slug: "pdf4me-extract-text",
|
|
11
11
|
name: "Extract Text from PDF",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-text.cjs","names":["z","action"],"sources":["../../src/actions/extract-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meExtractTextInput = z.object({\n docData: z.string().describe(\"Base64-encoded PDF file content from which to extract text.\"),\n docName: z.string().describe(\"PDF file name with .pdf extension for document identification.\"),\n}).describe(\"Request model for ExtractText action.\");\nexport const Pdf4meExtractTextOutput = z.object({\n texts: z.array(z.string()).describe(\"List of extracted text strings from the PDF document. Each element represents text content from the document.\"),\n}).describe(\"Response model for ExtractText action.\");\n\nexport const pdf4meExtractText = action(\"PDF4ME_EXTRACT_TEXT\", {\n slug: \"pdf4me-extract-text\",\n name: \"Extract Text from PDF\",\n description: \"Tool to extract embedded text from text-based PDFs using PDF4me's ExtractResources endpoint. Use when you need to retrieve searchable text content from PDFs for analysis or processing. This tool does not perform OCR; for scanned or image-only PDFs, use OCR endpoints instead.\",\n input: Pdf4meExtractTextInput,\n output: Pdf4meExtractTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AAC/F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,EACrJ,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"extract-text.cjs","names":["z","action"],"sources":["../../src/actions/extract-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meExtractTextInput = z.object({\n docData: z.string().describe(\"Base64-encoded PDF file content from which to extract text.\"),\n docName: z.string().describe(\"PDF file name with .pdf extension for document identification.\"),\n}).describe(\"Request model for ExtractText action.\");\nexport const Pdf4meExtractTextOutput = z.object({\n texts: z.array(z.string()).describe(\"List of extracted text strings from the PDF document. Each element represents text content from the document.\"),\n}).passthrough().describe(\"Response model for ExtractText action.\");\n\nexport const pdf4meExtractText = action(\"PDF4ME_EXTRACT_TEXT\", {\n slug: \"pdf4me-extract-text\",\n name: \"Extract Text from PDF\",\n description: \"Tool to extract embedded text from text-based PDFs using PDF4me's ExtractResources endpoint. Use when you need to retrieve searchable text content from PDFs for analysis or processing. This tool does not perform OCR; for scanned or image-only PDFs, use OCR endpoints instead.\",\n input: Pdf4meExtractTextInput,\n output: Pdf4meExtractTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AAC/F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,EACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,11 +7,23 @@ declare const Pdf4meExtractTextInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const Pdf4meExtractTextOutput: z.ZodObject<{
|
|
9
9
|
texts: z.ZodArray<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const pdf4meExtractText: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
docData: string;
|
|
13
13
|
docName: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
entityId: z.ZodString;
|
|
17
|
+
instanceId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
basic_encoded: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
21
|
+
connectionId: z.ZodString;
|
|
22
|
+
entityId: z.ZodString;
|
|
23
|
+
instanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
basic_encoded: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
15
27
|
//#endregion
|
|
16
28
|
export { pdf4meExtractText };
|
|
17
29
|
//# sourceMappingURL=extract-text.d.cts.map
|
|
@@ -7,11 +7,23 @@ declare const Pdf4meExtractTextInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const Pdf4meExtractTextOutput: z.ZodObject<{
|
|
9
9
|
texts: z.ZodArray<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const pdf4meExtractText: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
docData: string;
|
|
13
13
|
docName: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
entityId: z.ZodString;
|
|
17
|
+
instanceId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
basic_encoded: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
21
|
+
connectionId: z.ZodString;
|
|
22
|
+
entityId: z.ZodString;
|
|
23
|
+
instanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
basic_encoded: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
15
27
|
//#endregion
|
|
16
28
|
export { pdf4meExtractText };
|
|
17
29
|
//# sourceMappingURL=extract-text.d.mts.map
|
|
@@ -8,7 +8,7 @@ const pdf4meExtractText = action("PDF4ME_EXTRACT_TEXT", {
|
|
|
8
8
|
docData: z.string().describe("Base64-encoded PDF file content from which to extract text."),
|
|
9
9
|
docName: z.string().describe("PDF file name with .pdf extension for document identification.")
|
|
10
10
|
}).describe("Request model for ExtractText action."),
|
|
11
|
-
output: z.object({ texts: z.array(z.string()).describe("List of extracted text strings from the PDF document. Each element represents text content from the document.") }).describe("Response model for ExtractText action.")
|
|
11
|
+
output: z.object({ texts: z.array(z.string()).describe("List of extracted text strings from the PDF document. Each element represents text content from the document.") }).passthrough().describe("Response model for ExtractText action.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { pdf4meExtractText };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-text.mjs","names":[],"sources":["../../src/actions/extract-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meExtractTextInput = z.object({\n docData: z.string().describe(\"Base64-encoded PDF file content from which to extract text.\"),\n docName: z.string().describe(\"PDF file name with .pdf extension for document identification.\"),\n}).describe(\"Request model for ExtractText action.\");\nexport const Pdf4meExtractTextOutput = z.object({\n texts: z.array(z.string()).describe(\"List of extracted text strings from the PDF document. Each element represents text content from the document.\"),\n}).describe(\"Response model for ExtractText action.\");\n\nexport const pdf4meExtractText = action(\"PDF4ME_EXTRACT_TEXT\", {\n slug: \"pdf4me-extract-text\",\n name: \"Extract Text from PDF\",\n description: \"Tool to extract embedded text from text-based PDFs using PDF4me's ExtractResources endpoint. Use when you need to retrieve searchable text content from PDFs for analysis or processing. This tool does not perform OCR; for scanned or image-only PDFs, use OCR endpoints instead.\",\n input: Pdf4meExtractTextInput,\n output: Pdf4meExtractTextOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoC,EAAE,OAAO;EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC/F,CAAC,CAAC,CAAC,SAAS,uCASH;CACP,QATqC,EAAE,OAAO,EAC9C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,EACrJ,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"extract-text.mjs","names":[],"sources":["../../src/actions/extract-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meExtractTextInput = z.object({\n docData: z.string().describe(\"Base64-encoded PDF file content from which to extract text.\"),\n docName: z.string().describe(\"PDF file name with .pdf extension for document identification.\"),\n}).describe(\"Request model for ExtractText action.\");\nexport const Pdf4meExtractTextOutput = z.object({\n texts: z.array(z.string()).describe(\"List of extracted text strings from the PDF document. Each element represents text content from the document.\"),\n}).passthrough().describe(\"Response model for ExtractText action.\");\n\nexport const pdf4meExtractText = action(\"PDF4ME_EXTRACT_TEXT\", {\n slug: \"pdf4me-extract-text\",\n name: \"Extract Text from PDF\",\n description: \"Tool to extract embedded text from text-based PDFs using PDF4me's ExtractResources endpoint. Use when you need to retrieve searchable text content from PDFs for analysis or processing. This tool does not perform OCR; for scanned or image-only PDFs, use OCR endpoints instead.\",\n input: Pdf4meExtractTextInput,\n output: Pdf4meExtractTextOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoC,EAAE,OAAO;EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC/F,CAAC,CAAC,CAAC,SAAS,uCASH;CACP,QATqC,EAAE,OAAO,EAC9C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,EACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -15,8 +15,8 @@ const Pdf4meFillPdfForm_FileDownloadableSchema = zod.z.object({
|
|
|
15
15
|
name: zod.z.string().describe("Name of the file").nullable(),
|
|
16
16
|
s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
17
17
|
mimetype: zod.z.string().describe("Mime type of the file.").nullable()
|
|
18
|
-
});
|
|
19
|
-
const Pdf4meFillPdfFormOutput = zod.z.object({ file: Pdf4meFillPdfForm_FileDownloadableSchema.nullable() }).describe("Response model for FillPdfForm action.");
|
|
18
|
+
}).passthrough();
|
|
19
|
+
const Pdf4meFillPdfFormOutput = zod.z.object({ file: Pdf4meFillPdfForm_FileDownloadableSchema.nullable() }).passthrough().describe("Response model for FillPdfForm action.");
|
|
20
20
|
const pdf4meFillPdfForm = require_action.action("PDF4ME_FILL_PDF_FORM", {
|
|
21
21
|
slug: "pdf4me-fill-pdf-form",
|
|
22
22
|
name: "Fill PDF Form",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill-pdf-form.cjs","names":["z","action"],"sources":["../../src/actions/fill-pdf-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meFillPdfFormInput = z.object({\n metaData: z.string().describe(\"Additional metadata string for the form filling operation.\").optional(),\n dataArray: z.string().describe(\"Stringified JSON array of field data objects to fill. Must be a JSON string, not a JSON array object. Example: '[{\\\"Name\\\":\\\"John Doe\\\",\\\"Email\\\":\\\"john@example.com\\\"}]'\"),\n outputType: z.string().describe(\"Output format specification. Typically 'PDF' for PDF output.\"),\n metaDataJson: z.string().describe(\"Metadata in JSON string format for advanced configuration.\").optional(),\n InputFormData: z.array(z.record(z.string(), z.unknown())).describe(\"Array of form data objects with field name-value pairs matching PDF form fields. Each object contains key-value pairs where keys are form field names and values are the data to fill. Example: [{\\\"Name\\\":\\\"John Doe\\\",\\\"Email\\\":\\\"john@example.com\\\"}]\"),\n inputDataType: z.string().describe(\"Data type for input data. Use 'JSON' for JSON data or 'XML' for XML data.\"),\n templateDocName: z.string().describe(\"PDF template filename with .pdf extension to be filled.\"),\n templateDocContent: z.string().describe(\"Base64-encoded PDF form template content.\"),\n}).describe(\"Request model for FillPdfForm action.\");\nconst Pdf4meFillPdfForm_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const Pdf4meFillPdfFormOutput = z.object({\n file: Pdf4meFillPdfForm_FileDownloadableSchema.nullable(),\n}).describe(\"Response model for FillPdfForm action.\");\n\nexport const pdf4meFillPdfForm = action(\"PDF4ME_FILL_PDF_FORM\", {\n slug: \"pdf4me-fill-pdf-form\",\n name: \"Fill PDF Form\",\n description: \"Tool to fill PDF form fields programmatically using JSON or XML data. Use when you need to generate reports or populate forms from various data sources with mail merge functionality. Supports filling multiple documents from a list of data collection items.\",\n input: Pdf4meFillPdfFormInput,\n output: Pdf4meFillPdfFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;CAC1M,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0PAA0P;CAC7T,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CAC9G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC9F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACrF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;
|
|
1
|
+
{"version":3,"file":"fill-pdf-form.cjs","names":["z","action"],"sources":["../../src/actions/fill-pdf-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meFillPdfFormInput = z.object({\n metaData: z.string().describe(\"Additional metadata string for the form filling operation.\").optional(),\n dataArray: z.string().describe(\"Stringified JSON array of field data objects to fill. Must be a JSON string, not a JSON array object. Example: '[{\\\"Name\\\":\\\"John Doe\\\",\\\"Email\\\":\\\"john@example.com\\\"}]'\"),\n outputType: z.string().describe(\"Output format specification. Typically 'PDF' for PDF output.\"),\n metaDataJson: z.string().describe(\"Metadata in JSON string format for advanced configuration.\").optional(),\n InputFormData: z.array(z.record(z.string(), z.unknown())).describe(\"Array of form data objects with field name-value pairs matching PDF form fields. Each object contains key-value pairs where keys are form field names and values are the data to fill. Example: [{\\\"Name\\\":\\\"John Doe\\\",\\\"Email\\\":\\\"john@example.com\\\"}]\"),\n inputDataType: z.string().describe(\"Data type for input data. Use 'JSON' for JSON data or 'XML' for XML data.\"),\n templateDocName: z.string().describe(\"PDF template filename with .pdf extension to be filled.\"),\n templateDocContent: z.string().describe(\"Base64-encoded PDF form template content.\"),\n}).describe(\"Request model for FillPdfForm action.\");\nconst Pdf4meFillPdfForm_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const Pdf4meFillPdfFormOutput = z.object({\n file: Pdf4meFillPdfForm_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response model for FillPdfForm action.\");\n\nexport const pdf4meFillPdfForm = action(\"PDF4ME_FILL_PDF_FORM\", {\n slug: \"pdf4me-fill-pdf-form\",\n name: \"Fill PDF Form\",\n description: \"Tool to fill PDF form fields programmatically using JSON or XML data. Use when you need to generate reports or populate forms from various data sources with mail merge functionality. Supports filling multiple documents from a list of data collection items.\",\n input: Pdf4meFillPdfFormInput,\n output: Pdf4meFillPdfFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;CAC1M,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0PAA0P;CAC7T,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CAC9G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC9F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACrF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,oBAAoBC,eAAAA,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,8 +16,8 @@ declare const Pdf4meFillPdfFormOutput: z.ZodObject<{
|
|
|
16
16
|
name: z.ZodNullable<z.ZodString>;
|
|
17
17
|
s3url: z.ZodNullable<z.ZodString>;
|
|
18
18
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
20
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const pdf4meFillPdfForm: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
dataArray: string;
|
|
23
23
|
outputType: string;
|
|
@@ -27,7 +27,19 @@ declare const pdf4meFillPdfForm: import("@keystrokehq/action").WorkflowActionDef
|
|
|
27
27
|
templateDocContent: string;
|
|
28
28
|
metaData?: string | undefined;
|
|
29
29
|
metaDataJson?: string | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
31
|
+
connectionId: z.ZodString;
|
|
32
|
+
entityId: z.ZodString;
|
|
33
|
+
instanceId: z.ZodString;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
basic_encoded: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
37
|
+
connectionId: z.ZodString;
|
|
38
|
+
entityId: z.ZodString;
|
|
39
|
+
instanceId: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
basic_encoded: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>]>;
|
|
31
43
|
//#endregion
|
|
32
44
|
export { pdf4meFillPdfForm };
|
|
33
45
|
//# sourceMappingURL=fill-pdf-form.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill-pdf-form.d.cts","names":[],"sources":["../../src/actions/fill-pdf-form.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;cAetB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA
|
|
1
|
+
{"version":3,"file":"fill-pdf-form.d.cts","names":[],"sources":["../../src/actions/fill-pdf-form.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;cAetB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -16,8 +16,8 @@ declare const Pdf4meFillPdfFormOutput: z.ZodObject<{
|
|
|
16
16
|
name: z.ZodNullable<z.ZodString>;
|
|
17
17
|
s3url: z.ZodNullable<z.ZodString>;
|
|
18
18
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
20
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const pdf4meFillPdfForm: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
dataArray: string;
|
|
23
23
|
outputType: string;
|
|
@@ -27,7 +27,19 @@ declare const pdf4meFillPdfForm: import("@keystrokehq/action").WorkflowActionDef
|
|
|
27
27
|
templateDocContent: string;
|
|
28
28
|
metaData?: string | undefined;
|
|
29
29
|
metaDataJson?: string | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
31
|
+
connectionId: z.ZodString;
|
|
32
|
+
entityId: z.ZodString;
|
|
33
|
+
instanceId: z.ZodString;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
basic_encoded: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
37
|
+
connectionId: z.ZodString;
|
|
38
|
+
entityId: z.ZodString;
|
|
39
|
+
instanceId: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
basic_encoded: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>]>;
|
|
31
43
|
//#endregion
|
|
32
44
|
export { pdf4meFillPdfForm };
|
|
33
45
|
//# sourceMappingURL=fill-pdf-form.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill-pdf-form.d.mts","names":[],"sources":["../../src/actions/fill-pdf-form.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;cAetB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA
|
|
1
|
+
{"version":3,"file":"fill-pdf-form.d.mts","names":[],"sources":["../../src/actions/fill-pdf-form.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;cAetB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -15,13 +15,13 @@ const Pdf4meFillPdfForm_FileDownloadableSchema = z.object({
|
|
|
15
15
|
name: z.string().describe("Name of the file").nullable(),
|
|
16
16
|
s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
17
17
|
mimetype: z.string().describe("Mime type of the file.").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const pdf4meFillPdfForm = action("PDF4ME_FILL_PDF_FORM", {
|
|
20
20
|
slug: "pdf4me-fill-pdf-form",
|
|
21
21
|
name: "Fill PDF Form",
|
|
22
22
|
description: "Tool to fill PDF form fields programmatically using JSON or XML data. Use when you need to generate reports or populate forms from various data sources with mail merge functionality. Supports filling multiple documents from a list of data collection items.",
|
|
23
23
|
input: Pdf4meFillPdfFormInput,
|
|
24
|
-
output: z.object({ file: Pdf4meFillPdfForm_FileDownloadableSchema.nullable() }).describe("Response model for FillPdfForm action.")
|
|
24
|
+
output: z.object({ file: Pdf4meFillPdfForm_FileDownloadableSchema.nullable() }).passthrough().describe("Response model for FillPdfForm action.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { pdf4meFillPdfForm };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill-pdf-form.mjs","names":[],"sources":["../../src/actions/fill-pdf-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meFillPdfFormInput = z.object({\n metaData: z.string().describe(\"Additional metadata string for the form filling operation.\").optional(),\n dataArray: z.string().describe(\"Stringified JSON array of field data objects to fill. Must be a JSON string, not a JSON array object. Example: '[{\\\"Name\\\":\\\"John Doe\\\",\\\"Email\\\":\\\"john@example.com\\\"}]'\"),\n outputType: z.string().describe(\"Output format specification. Typically 'PDF' for PDF output.\"),\n metaDataJson: z.string().describe(\"Metadata in JSON string format for advanced configuration.\").optional(),\n InputFormData: z.array(z.record(z.string(), z.unknown())).describe(\"Array of form data objects with field name-value pairs matching PDF form fields. Each object contains key-value pairs where keys are form field names and values are the data to fill. Example: [{\\\"Name\\\":\\\"John Doe\\\",\\\"Email\\\":\\\"john@example.com\\\"}]\"),\n inputDataType: z.string().describe(\"Data type for input data. Use 'JSON' for JSON data or 'XML' for XML data.\"),\n templateDocName: z.string().describe(\"PDF template filename with .pdf extension to be filled.\"),\n templateDocContent: z.string().describe(\"Base64-encoded PDF form template content.\"),\n}).describe(\"Request model for FillPdfForm action.\");\nconst Pdf4meFillPdfForm_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const Pdf4meFillPdfFormOutput = z.object({\n file: Pdf4meFillPdfForm_FileDownloadableSchema.nullable(),\n}).describe(\"Response model for FillPdfForm action.\");\n\nexport const pdf4meFillPdfForm = action(\"PDF4ME_FILL_PDF_FORM\", {\n slug: \"pdf4me-fill-pdf-form\",\n name: \"Fill PDF Form\",\n description: \"Tool to fill PDF form fields programmatically using JSON or XML data. Use when you need to generate reports or populate forms from various data sources with mail merge functionality. Supports filling multiple documents from a list of data collection items.\",\n input: Pdf4meFillPdfFormInput,\n output: Pdf4meFillPdfFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;CAC1M,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0PAA0P;CAC7T,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CAC9G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC9F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACrF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;
|
|
1
|
+
{"version":3,"file":"fill-pdf-form.mjs","names":[],"sources":["../../src/actions/fill-pdf-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meFillPdfFormInput = z.object({\n metaData: z.string().describe(\"Additional metadata string for the form filling operation.\").optional(),\n dataArray: z.string().describe(\"Stringified JSON array of field data objects to fill. Must be a JSON string, not a JSON array object. Example: '[{\\\"Name\\\":\\\"John Doe\\\",\\\"Email\\\":\\\"john@example.com\\\"}]'\"),\n outputType: z.string().describe(\"Output format specification. Typically 'PDF' for PDF output.\"),\n metaDataJson: z.string().describe(\"Metadata in JSON string format for advanced configuration.\").optional(),\n InputFormData: z.array(z.record(z.string(), z.unknown())).describe(\"Array of form data objects with field name-value pairs matching PDF form fields. Each object contains key-value pairs where keys are form field names and values are the data to fill. Example: [{\\\"Name\\\":\\\"John Doe\\\",\\\"Email\\\":\\\"john@example.com\\\"}]\"),\n inputDataType: z.string().describe(\"Data type for input data. Use 'JSON' for JSON data or 'XML' for XML data.\"),\n templateDocName: z.string().describe(\"PDF template filename with .pdf extension to be filled.\"),\n templateDocContent: z.string().describe(\"Base64-encoded PDF form template content.\"),\n}).describe(\"Request model for FillPdfForm action.\");\nconst Pdf4meFillPdfForm_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const Pdf4meFillPdfFormOutput = z.object({\n file: Pdf4meFillPdfForm_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response model for FillPdfForm action.\");\n\nexport const pdf4meFillPdfForm = action(\"PDF4ME_FILL_PDF_FORM\", {\n slug: \"pdf4me-fill-pdf-form\",\n name: \"Fill PDF Form\",\n description: \"Tool to fill PDF form fields programmatically using JSON or XML data. Use when you need to generate reports or populate forms from various data sources with mail merge functionality. Supports filling multiple documents from a list of data collection items.\",\n input: Pdf4meFillPdfFormInput,\n output: Pdf4meFillPdfFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;CAC1M,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0PAA0P;CAC7T,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CAC9G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC9F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACrF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oBAAoB,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -10,8 +10,8 @@ const Pdf4meReadBarcodesFromImage_BarcodeDataSchema = zod.z.object({
|
|
|
10
10
|
page: zod.z.number().int().describe("Page number where the barcode was found (for multi-page images).").nullable().optional(),
|
|
11
11
|
Value: zod.z.string().describe("Decoded text content from the barcode.").nullable().optional(),
|
|
12
12
|
barcodeType: zod.z.string().describe("Type of barcode detected (e.g., QR Code, Code128, etc.).").nullable().optional()
|
|
13
|
-
}).describe("Individual barcode information extracted from the image.");
|
|
14
|
-
const Pdf4meReadBarcodesFromImageOutput = zod.z.object({ barcodes: zod.z.array(Pdf4meReadBarcodesFromImage_BarcodeDataSchema).describe("List of barcode data extracted from the image. Each element contains barcode type, decoded value, and position information.").nullable().optional() }).describe("Response model for ReadBarcodesFromImage action.");
|
|
13
|
+
}).passthrough().describe("Individual barcode information extracted from the image.");
|
|
14
|
+
const Pdf4meReadBarcodesFromImageOutput = zod.z.object({ barcodes: zod.z.array(Pdf4meReadBarcodesFromImage_BarcodeDataSchema).describe("List of barcode data extracted from the image. Each element contains barcode type, decoded value, and position information.").nullable().optional() }).passthrough().describe("Response model for ReadBarcodesFromImage action.");
|
|
15
15
|
const pdf4meReadBarcodesFromImage = require_action.action("PDF4ME_READ_BARCODES_FROM_IMAGE", {
|
|
16
16
|
slug: "pdf4me-read-barcodes-from-image",
|
|
17
17
|
name: "Read Barcodes from Image",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-barcodes-from-image.cjs","names":["z","action"],"sources":["../../src/actions/read-barcodes-from-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meReadBarcodesFromImageInput = z.object({\n docName: z.string().describe(\"Image file name with extension (e.g., 'barcode.png', 'scan.jpg').\"),\n imageType: z.enum([\"jpg\", \"png\"]).describe(\"Image file format: jpg or png.\"),\n docContent: z.string().describe(\"Base64-encoded image file content containing barcodes to be read.\"),\n}).describe(\"Request model for ReadBarcodesFromImage action.\");\nconst Pdf4meReadBarcodesFromImage_BarcodeDataSchema = z.object({\n page: z.number().int().describe(\"Page number where the barcode was found (for multi-page images).\").nullable().optional(),\n Value: z.string().describe(\"Decoded text content from the barcode.\").nullable().optional(),\n barcodeType: z.string().describe(\"Type of barcode detected (e.g., QR Code, Code128, etc.).\").nullable().optional(),\n}).describe(\"Individual barcode information extracted from the image.\");\nexport const Pdf4meReadBarcodesFromImageOutput = z.object({\n barcodes: z.array(Pdf4meReadBarcodesFromImage_BarcodeDataSchema).describe(\"List of barcode data extracted from the image. Each element contains barcode type, decoded value, and position information.\").nullable().optional(),\n}).describe(\"Response model for ReadBarcodesFromImage action.\");\n\nexport const pdf4meReadBarcodesFromImage = action(\"PDF4ME_READ_BARCODES_FROM_IMAGE\", {\n slug: \"pdf4me-read-barcodes-from-image\",\n name: \"Read Barcodes from Image\",\n description: \"Tool to read and extract barcode or QR code data from image files (JPG/PNG). Use when you need to decode barcodes from images for data extraction or verification. Supports various barcode types including QR codes, Code128, DataMatrix, and more.\",\n input: Pdf4meReadBarcodesFromImageInput,\n output: Pdf4meReadBarcodesFromImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAChG,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,gCAAgC;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACrG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,0DAA0D;
|
|
1
|
+
{"version":3,"file":"read-barcodes-from-image.cjs","names":["z","action"],"sources":["../../src/actions/read-barcodes-from-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meReadBarcodesFromImageInput = z.object({\n docName: z.string().describe(\"Image file name with extension (e.g., 'barcode.png', 'scan.jpg').\"),\n imageType: z.enum([\"jpg\", \"png\"]).describe(\"Image file format: jpg or png.\"),\n docContent: z.string().describe(\"Base64-encoded image file content containing barcodes to be read.\"),\n}).describe(\"Request model for ReadBarcodesFromImage action.\");\nconst Pdf4meReadBarcodesFromImage_BarcodeDataSchema = z.object({\n page: z.number().int().describe(\"Page number where the barcode was found (for multi-page images).\").nullable().optional(),\n Value: z.string().describe(\"Decoded text content from the barcode.\").nullable().optional(),\n barcodeType: z.string().describe(\"Type of barcode detected (e.g., QR Code, Code128, etc.).\").nullable().optional(),\n}).passthrough().describe(\"Individual barcode information extracted from the image.\");\nexport const Pdf4meReadBarcodesFromImageOutput = z.object({\n barcodes: z.array(Pdf4meReadBarcodesFromImage_BarcodeDataSchema).describe(\"List of barcode data extracted from the image. Each element contains barcode type, decoded value, and position information.\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReadBarcodesFromImage action.\");\n\nexport const pdf4meReadBarcodesFromImage = action(\"PDF4ME_READ_BARCODES_FROM_IMAGE\", {\n slug: \"pdf4me-read-barcodes-from-image\",\n name: \"Read Barcodes from Image\",\n description: \"Tool to read and extract barcode or QR code data from image files (JPG/PNG). Use when you need to decode barcodes from images for data extraction or verification. Supports various barcode types including QR codes, Code128, DataMatrix, and more.\",\n input: Pdf4meReadBarcodesFromImageInput,\n output: Pdf4meReadBarcodesFromImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAChG,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,gCAAgC;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACrG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/N,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,13 +14,25 @@ declare const Pdf4meReadBarcodesFromImageOutput: z.ZodObject<{
|
|
|
14
14
|
page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
15
|
Value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
barcodeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const pdf4meReadBarcodesFromImage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
docName: string;
|
|
21
21
|
imageType: "jpg" | "png";
|
|
22
22
|
docContent: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
24
|
+
connectionId: z.ZodString;
|
|
25
|
+
entityId: z.ZodString;
|
|
26
|
+
instanceId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
basic_encoded: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
30
|
+
connectionId: z.ZodString;
|
|
31
|
+
entityId: z.ZodString;
|
|
32
|
+
instanceId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
basic_encoded: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>]>;
|
|
24
36
|
//#endregion
|
|
25
37
|
export { pdf4meReadBarcodesFromImage };
|
|
26
38
|
//# sourceMappingURL=read-barcodes-from-image.d.cts.map
|
|
@@ -14,13 +14,25 @@ declare const Pdf4meReadBarcodesFromImageOutput: z.ZodObject<{
|
|
|
14
14
|
page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
15
|
Value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
barcodeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const pdf4meReadBarcodesFromImage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
docName: string;
|
|
21
21
|
imageType: "jpg" | "png";
|
|
22
22
|
docContent: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
24
|
+
connectionId: z.ZodString;
|
|
25
|
+
entityId: z.ZodString;
|
|
26
|
+
instanceId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
basic_encoded: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
30
|
+
connectionId: z.ZodString;
|
|
31
|
+
entityId: z.ZodString;
|
|
32
|
+
instanceId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
basic_encoded: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>]>;
|
|
24
36
|
//#endregion
|
|
25
37
|
export { pdf4meReadBarcodesFromImage };
|
|
26
38
|
//# sourceMappingURL=read-barcodes-from-image.d.mts.map
|
|
@@ -10,13 +10,13 @@ const Pdf4meReadBarcodesFromImage_BarcodeDataSchema = z.object({
|
|
|
10
10
|
page: z.number().int().describe("Page number where the barcode was found (for multi-page images).").nullable().optional(),
|
|
11
11
|
Value: z.string().describe("Decoded text content from the barcode.").nullable().optional(),
|
|
12
12
|
barcodeType: z.string().describe("Type of barcode detected (e.g., QR Code, Code128, etc.).").nullable().optional()
|
|
13
|
-
}).describe("Individual barcode information extracted from the image.");
|
|
13
|
+
}).passthrough().describe("Individual barcode information extracted from the image.");
|
|
14
14
|
const pdf4meReadBarcodesFromImage = action("PDF4ME_READ_BARCODES_FROM_IMAGE", {
|
|
15
15
|
slug: "pdf4me-read-barcodes-from-image",
|
|
16
16
|
name: "Read Barcodes from Image",
|
|
17
17
|
description: "Tool to read and extract barcode or QR code data from image files (JPG/PNG). Use when you need to decode barcodes from images for data extraction or verification. Supports various barcode types including QR codes, Code128, DataMatrix, and more.",
|
|
18
18
|
input: Pdf4meReadBarcodesFromImageInput,
|
|
19
|
-
output: z.object({ barcodes: z.array(Pdf4meReadBarcodesFromImage_BarcodeDataSchema).describe("List of barcode data extracted from the image. Each element contains barcode type, decoded value, and position information.").nullable().optional() }).describe("Response model for ReadBarcodesFromImage action.")
|
|
19
|
+
output: z.object({ barcodes: z.array(Pdf4meReadBarcodesFromImage_BarcodeDataSchema).describe("List of barcode data extracted from the image. Each element contains barcode type, decoded value, and position information.").nullable().optional() }).passthrough().describe("Response model for ReadBarcodesFromImage action.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { pdf4meReadBarcodesFromImage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-barcodes-from-image.mjs","names":[],"sources":["../../src/actions/read-barcodes-from-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meReadBarcodesFromImageInput = z.object({\n docName: z.string().describe(\"Image file name with extension (e.g., 'barcode.png', 'scan.jpg').\"),\n imageType: z.enum([\"jpg\", \"png\"]).describe(\"Image file format: jpg or png.\"),\n docContent: z.string().describe(\"Base64-encoded image file content containing barcodes to be read.\"),\n}).describe(\"Request model for ReadBarcodesFromImage action.\");\nconst Pdf4meReadBarcodesFromImage_BarcodeDataSchema = z.object({\n page: z.number().int().describe(\"Page number where the barcode was found (for multi-page images).\").nullable().optional(),\n Value: z.string().describe(\"Decoded text content from the barcode.\").nullable().optional(),\n barcodeType: z.string().describe(\"Type of barcode detected (e.g., QR Code, Code128, etc.).\").nullable().optional(),\n}).describe(\"Individual barcode information extracted from the image.\");\nexport const Pdf4meReadBarcodesFromImageOutput = z.object({\n barcodes: z.array(Pdf4meReadBarcodesFromImage_BarcodeDataSchema).describe(\"List of barcode data extracted from the image. Each element contains barcode type, decoded value, and position information.\").nullable().optional(),\n}).describe(\"Response model for ReadBarcodesFromImage action.\");\n\nexport const pdf4meReadBarcodesFromImage = action(\"PDF4ME_READ_BARCODES_FROM_IMAGE\", {\n slug: \"pdf4me-read-barcodes-from-image\",\n name: \"Read Barcodes from Image\",\n description: \"Tool to read and extract barcode or QR code data from image files (JPG/PNG). Use when you need to decode barcodes from images for data extraction or verification. Supports various barcode types including QR codes, Code128, DataMatrix, and more.\",\n input: Pdf4meReadBarcodesFromImageInput,\n output: Pdf4meReadBarcodesFromImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAChG,WAAW,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,gCAAgC;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACrG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,0DAA0D;
|
|
1
|
+
{"version":3,"file":"read-barcodes-from-image.mjs","names":[],"sources":["../../src/actions/read-barcodes-from-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const Pdf4meReadBarcodesFromImageInput = z.object({\n docName: z.string().describe(\"Image file name with extension (e.g., 'barcode.png', 'scan.jpg').\"),\n imageType: z.enum([\"jpg\", \"png\"]).describe(\"Image file format: jpg or png.\"),\n docContent: z.string().describe(\"Base64-encoded image file content containing barcodes to be read.\"),\n}).describe(\"Request model for ReadBarcodesFromImage action.\");\nconst Pdf4meReadBarcodesFromImage_BarcodeDataSchema = z.object({\n page: z.number().int().describe(\"Page number where the barcode was found (for multi-page images).\").nullable().optional(),\n Value: z.string().describe(\"Decoded text content from the barcode.\").nullable().optional(),\n barcodeType: z.string().describe(\"Type of barcode detected (e.g., QR Code, Code128, etc.).\").nullable().optional(),\n}).passthrough().describe(\"Individual barcode information extracted from the image.\");\nexport const Pdf4meReadBarcodesFromImageOutput = z.object({\n barcodes: z.array(Pdf4meReadBarcodesFromImage_BarcodeDataSchema).describe(\"List of barcode data extracted from the image. Each element contains barcode type, decoded value, and position information.\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReadBarcodesFromImage action.\");\n\nexport const pdf4meReadBarcodesFromImage = action(\"PDF4ME_READ_BARCODES_FROM_IMAGE\", {\n slug: \"pdf4me-read-barcodes-from-image\",\n name: \"Read Barcodes from Image\",\n description: \"Tool to read and extract barcode or QR code data from image files (JPG/PNG). Use when you need to decode barcodes from images for data extraction or verification. Supports various barcode types including QR codes, Code128, DataMatrix, and more.\",\n input: Pdf4meReadBarcodesFromImageInput,\n output: Pdf4meReadBarcodesFromImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAChG,WAAW,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,gCAAgC;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACrG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAKpF,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/N,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
+
let zod = require("zod");
|
|
1
3
|
//#region src/app.ts
|
|
2
|
-
const pdf4me = (0,
|
|
4
|
+
const pdf4me = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "pdf4me",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential: { basic_encoded: zod.z.string() }
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.pdf4me = pdf4me;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const pdf4me = defineApp({\n slug: \"pdf4me\",\n auth: \"keystroke\",\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const pdf4me = defineApp({\n slug: \"pdf4me\",\n auth: \"keystroke\",\n credential: {\n basic_encoded: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;CACN,YAAY,EACV,eAAeA,IAAAA,EAAE,OAAO,EAC1B;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
//#region src/app.d.ts
|
|
2
|
-
declare const pdf4me: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential
|
|
4
|
+
declare const pdf4me: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
5
|
+
connectionId: z.ZodString;
|
|
6
|
+
entityId: z.ZodString;
|
|
7
|
+
instanceId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
basic_encoded: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { pdf4me };
|
|
5
13
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,MAAA,6BAAM,GAAA,+BAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
//#region src/app.d.ts
|
|
2
|
-
declare const pdf4me: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential
|
|
4
|
+
declare const pdf4me: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"pdf4me", z.ZodObject<{
|
|
5
|
+
connectionId: z.ZodString;
|
|
6
|
+
entityId: z.ZodString;
|
|
7
|
+
instanceId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
basic_encoded: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { pdf4me };
|
|
5
13
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,MAAA,6BAAM,GAAA,+BAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
//#region src/app.ts
|
|
3
4
|
const pdf4me = defineApp({
|
|
4
5
|
slug: "pdf4me",
|
|
5
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential: { basic_encoded: z.string() }
|
|
6
8
|
});
|
|
7
9
|
//#endregion
|
|
8
10
|
export { pdf4me };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const pdf4me = defineApp({\n slug: \"pdf4me\",\n auth: \"keystroke\",\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const pdf4me = defineApp({\n slug: \"pdf4me\",\n auth: \"keystroke\",\n credential: {\n basic_encoded: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;CACN,YAAY,EACV,eAAe,EAAE,OAAO,EAC1B;AACF,CAAC"}
|
package/dist/execute.cjs
CHANGED
|
@@ -2,7 +2,7 @@ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
|
2
2
|
//#region src/execute.ts
|
|
3
3
|
const APP_SLUG = "pdf4me";
|
|
4
4
|
/** Pinned app version — updated on regeneration. */
|
|
5
|
-
const APP_VERSION = "
|
|
5
|
+
const APP_VERSION = "20260707_00";
|
|
6
6
|
async function executePdf4meTool(tool, args) {
|
|
7
7
|
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
8
|
app: APP_SLUG,
|
package/dist/execute.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"pdf4me\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"pdf4me\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260707_00\";\n\nexport async function executePdf4meTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
|
2
2
|
//#region src/execute.ts
|
|
3
3
|
const APP_SLUG = "pdf4me";
|
|
4
4
|
/** Pinned app version — updated on regeneration. */
|
|
5
|
-
const APP_VERSION = "
|
|
5
|
+
const APP_VERSION = "20260707_00";
|
|
6
6
|
async function executePdf4meTool(tool, args) {
|
|
7
7
|
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
8
|
app: APP_SLUG,
|
package/dist/execute.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"pdf4me\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"pdf4me\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260707_00\";\n\nexport async function executePdf4meTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|