@keystrokehq/pdf_co 0.1.0

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.
Files changed (306) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/account-balance-info.cjs +23 -0
  7. package/dist/actions/account-balance-info.cjs.map +1 -0
  8. package/dist/actions/account-balance-info.d.cts +9 -0
  9. package/dist/actions/account-balance-info.d.cts.map +1 -0
  10. package/dist/actions/account-balance-info.d.mts +9 -0
  11. package/dist/actions/account-balance-info.d.mts.map +1 -0
  12. package/dist/actions/account-balance-info.mjs +20 -0
  13. package/dist/actions/account-balance-info.mjs.map +1 -0
  14. package/dist/actions/convert-excel-to-csv.cjs +34 -0
  15. package/dist/actions/convert-excel-to-csv.cjs.map +1 -0
  16. package/dist/actions/convert-excel-to-csv.d.cts +9 -0
  17. package/dist/actions/convert-excel-to-csv.d.cts.map +1 -0
  18. package/dist/actions/convert-excel-to-csv.d.mts +9 -0
  19. package/dist/actions/convert-excel-to-csv.d.mts.map +1 -0
  20. package/dist/actions/convert-excel-to-csv.mjs +31 -0
  21. package/dist/actions/convert-excel-to-csv.mjs.map +1 -0
  22. package/dist/actions/convert-excel-to-html.cjs +29 -0
  23. package/dist/actions/convert-excel-to-html.cjs.map +1 -0
  24. package/dist/actions/convert-excel-to-html.d.cts +9 -0
  25. package/dist/actions/convert-excel-to-html.d.cts.map +1 -0
  26. package/dist/actions/convert-excel-to-html.d.mts +9 -0
  27. package/dist/actions/convert-excel-to-html.d.mts.map +1 -0
  28. package/dist/actions/convert-excel-to-html.mjs +26 -0
  29. package/dist/actions/convert-excel-to-html.mjs.map +1 -0
  30. package/dist/actions/convert-excel-to-json.cjs +27 -0
  31. package/dist/actions/convert-excel-to-json.cjs.map +1 -0
  32. package/dist/actions/convert-excel-to-json.d.cts +9 -0
  33. package/dist/actions/convert-excel-to-json.d.cts.map +1 -0
  34. package/dist/actions/convert-excel-to-json.d.mts +9 -0
  35. package/dist/actions/convert-excel-to-json.d.mts.map +1 -0
  36. package/dist/actions/convert-excel-to-json.mjs +24 -0
  37. package/dist/actions/convert-excel-to-json.mjs.map +1 -0
  38. package/dist/actions/convert-excel-to-text.cjs +32 -0
  39. package/dist/actions/convert-excel-to-text.cjs.map +1 -0
  40. package/dist/actions/convert-excel-to-text.d.cts +9 -0
  41. package/dist/actions/convert-excel-to-text.d.cts.map +1 -0
  42. package/dist/actions/convert-excel-to-text.d.mts +9 -0
  43. package/dist/actions/convert-excel-to-text.d.mts.map +1 -0
  44. package/dist/actions/convert-excel-to-text.mjs +29 -0
  45. package/dist/actions/convert-excel-to-text.mjs.map +1 -0
  46. package/dist/actions/convert-excel-to-xml.cjs +52 -0
  47. package/dist/actions/convert-excel-to-xml.cjs.map +1 -0
  48. package/dist/actions/convert-excel-to-xml.d.cts +9 -0
  49. package/dist/actions/convert-excel-to-xml.d.cts.map +1 -0
  50. package/dist/actions/convert-excel-to-xml.d.mts +9 -0
  51. package/dist/actions/convert-excel-to-xml.d.mts.map +1 -0
  52. package/dist/actions/convert-excel-to-xml.mjs +49 -0
  53. package/dist/actions/convert-excel-to-xml.mjs.map +1 -0
  54. package/dist/actions/document-parser.cjs +38 -0
  55. package/dist/actions/document-parser.cjs.map +1 -0
  56. package/dist/actions/document-parser.d.cts +9 -0
  57. package/dist/actions/document-parser.d.cts.map +1 -0
  58. package/dist/actions/document-parser.d.mts +9 -0
  59. package/dist/actions/document-parser.d.mts.map +1 -0
  60. package/dist/actions/document-parser.mjs +35 -0
  61. package/dist/actions/document-parser.mjs.map +1 -0
  62. package/dist/actions/file-upload.cjs +31 -0
  63. package/dist/actions/file-upload.cjs.map +1 -0
  64. package/dist/actions/file-upload.d.cts +9 -0
  65. package/dist/actions/file-upload.d.cts.map +1 -0
  66. package/dist/actions/file-upload.d.mts +9 -0
  67. package/dist/actions/file-upload.d.mts.map +1 -0
  68. package/dist/actions/file-upload.mjs +28 -0
  69. package/dist/actions/file-upload.mjs.map +1 -0
  70. package/dist/actions/index.cjs +69 -0
  71. package/dist/actions/index.d.cts +35 -0
  72. package/dist/actions/index.d.mts +35 -0
  73. package/dist/actions/index.mjs +35 -0
  74. package/dist/actions/job-check.cjs +38 -0
  75. package/dist/actions/job-check.cjs.map +1 -0
  76. package/dist/actions/job-check.d.cts +9 -0
  77. package/dist/actions/job-check.d.cts.map +1 -0
  78. package/dist/actions/job-check.d.mts +9 -0
  79. package/dist/actions/job-check.d.mts.map +1 -0
  80. package/dist/actions/job-check.mjs +35 -0
  81. package/dist/actions/job-check.mjs.map +1 -0
  82. package/dist/actions/pdf-add.cjs +33 -0
  83. package/dist/actions/pdf-add.cjs.map +1 -0
  84. package/dist/actions/pdf-add.d.cts +9 -0
  85. package/dist/actions/pdf-add.d.cts.map +1 -0
  86. package/dist/actions/pdf-add.d.mts +9 -0
  87. package/dist/actions/pdf-add.d.mts.map +1 -0
  88. package/dist/actions/pdf-add.mjs +30 -0
  89. package/dist/actions/pdf-add.mjs.map +1 -0
  90. package/dist/actions/pdf-change-text-searchable.cjs +30 -0
  91. package/dist/actions/pdf-change-text-searchable.cjs.map +1 -0
  92. package/dist/actions/pdf-change-text-searchable.d.cts +9 -0
  93. package/dist/actions/pdf-change-text-searchable.d.cts.map +1 -0
  94. package/dist/actions/pdf-change-text-searchable.d.mts +9 -0
  95. package/dist/actions/pdf-change-text-searchable.d.mts.map +1 -0
  96. package/dist/actions/pdf-change-text-searchable.mjs +27 -0
  97. package/dist/actions/pdf-change-text-searchable.mjs.map +1 -0
  98. package/dist/actions/pdf-delete-pages.cjs +29 -0
  99. package/dist/actions/pdf-delete-pages.cjs.map +1 -0
  100. package/dist/actions/pdf-delete-pages.d.cts +9 -0
  101. package/dist/actions/pdf-delete-pages.d.cts.map +1 -0
  102. package/dist/actions/pdf-delete-pages.d.mts +9 -0
  103. package/dist/actions/pdf-delete-pages.d.mts.map +1 -0
  104. package/dist/actions/pdf-delete-pages.mjs +26 -0
  105. package/dist/actions/pdf-delete-pages.mjs.map +1 -0
  106. package/dist/actions/pdf-extract-attachments.cjs +36 -0
  107. package/dist/actions/pdf-extract-attachments.cjs.map +1 -0
  108. package/dist/actions/pdf-extract-attachments.d.cts +9 -0
  109. package/dist/actions/pdf-extract-attachments.d.cts.map +1 -0
  110. package/dist/actions/pdf-extract-attachments.d.mts +9 -0
  111. package/dist/actions/pdf-extract-attachments.d.mts.map +1 -0
  112. package/dist/actions/pdf-extract-attachments.mjs +33 -0
  113. package/dist/actions/pdf-extract-attachments.mjs.map +1 -0
  114. package/dist/actions/pdf-find.cjs +38 -0
  115. package/dist/actions/pdf-find.cjs.map +1 -0
  116. package/dist/actions/pdf-find.d.cts +9 -0
  117. package/dist/actions/pdf-find.d.cts.map +1 -0
  118. package/dist/actions/pdf-find.d.mts +9 -0
  119. package/dist/actions/pdf-find.d.mts.map +1 -0
  120. package/dist/actions/pdf-find.mjs +37 -0
  121. package/dist/actions/pdf-find.mjs.map +1 -0
  122. package/dist/actions/pdf-forms-info-reader.cjs +49 -0
  123. package/dist/actions/pdf-forms-info-reader.cjs.map +1 -0
  124. package/dist/actions/pdf-forms-info-reader.d.cts +9 -0
  125. package/dist/actions/pdf-forms-info-reader.d.cts.map +1 -0
  126. package/dist/actions/pdf-forms-info-reader.d.mts +9 -0
  127. package/dist/actions/pdf-forms-info-reader.d.mts.map +1 -0
  128. package/dist/actions/pdf-forms-info-reader.mjs +48 -0
  129. package/dist/actions/pdf-forms-info-reader.mjs.map +1 -0
  130. package/dist/actions/pdf-from-document-txt.cjs +32 -0
  131. package/dist/actions/pdf-from-document-txt.cjs.map +1 -0
  132. package/dist/actions/pdf-from-document-txt.d.cts +9 -0
  133. package/dist/actions/pdf-from-document-txt.d.cts.map +1 -0
  134. package/dist/actions/pdf-from-document-txt.d.mts +9 -0
  135. package/dist/actions/pdf-from-document-txt.d.mts.map +1 -0
  136. package/dist/actions/pdf-from-document-txt.mjs +29 -0
  137. package/dist/actions/pdf-from-document-txt.mjs.map +1 -0
  138. package/dist/actions/pdf-from-email.cjs +31 -0
  139. package/dist/actions/pdf-from-email.cjs.map +1 -0
  140. package/dist/actions/pdf-from-email.d.cts +9 -0
  141. package/dist/actions/pdf-from-email.d.cts.map +1 -0
  142. package/dist/actions/pdf-from-email.d.mts +9 -0
  143. package/dist/actions/pdf-from-email.d.mts.map +1 -0
  144. package/dist/actions/pdf-from-email.mjs +28 -0
  145. package/dist/actions/pdf-from-email.mjs.map +1 -0
  146. package/dist/actions/pdf-from-html.cjs +40 -0
  147. package/dist/actions/pdf-from-html.cjs.map +1 -0
  148. package/dist/actions/pdf-from-html.d.cts +9 -0
  149. package/dist/actions/pdf-from-html.d.cts.map +1 -0
  150. package/dist/actions/pdf-from-html.d.mts +9 -0
  151. package/dist/actions/pdf-from-html.d.mts.map +1 -0
  152. package/dist/actions/pdf-from-html.mjs +37 -0
  153. package/dist/actions/pdf-from-html.mjs.map +1 -0
  154. package/dist/actions/pdf-info-reader.cjs +21 -0
  155. package/dist/actions/pdf-info-reader.cjs.map +1 -0
  156. package/dist/actions/pdf-info-reader.d.cts +9 -0
  157. package/dist/actions/pdf-info-reader.d.cts.map +1 -0
  158. package/dist/actions/pdf-info-reader.d.mts +9 -0
  159. package/dist/actions/pdf-info-reader.d.mts.map +1 -0
  160. package/dist/actions/pdf-info-reader.mjs +18 -0
  161. package/dist/actions/pdf-info-reader.mjs.map +1 -0
  162. package/dist/actions/pdf-merge.cjs +27 -0
  163. package/dist/actions/pdf-merge.cjs.map +1 -0
  164. package/dist/actions/pdf-merge.d.cts +9 -0
  165. package/dist/actions/pdf-merge.d.cts.map +1 -0
  166. package/dist/actions/pdf-merge.d.mts +9 -0
  167. package/dist/actions/pdf-merge.d.mts.map +1 -0
  168. package/dist/actions/pdf-merge.mjs +24 -0
  169. package/dist/actions/pdf-merge.mjs.map +1 -0
  170. package/dist/actions/pdf-rotate.cjs +33 -0
  171. package/dist/actions/pdf-rotate.cjs.map +1 -0
  172. package/dist/actions/pdf-rotate.d.cts +9 -0
  173. package/dist/actions/pdf-rotate.d.cts.map +1 -0
  174. package/dist/actions/pdf-rotate.d.mts +9 -0
  175. package/dist/actions/pdf-rotate.d.mts.map +1 -0
  176. package/dist/actions/pdf-rotate.mjs +30 -0
  177. package/dist/actions/pdf-rotate.mjs.map +1 -0
  178. package/dist/actions/pdf-search-and-delete-text.cjs +34 -0
  179. package/dist/actions/pdf-search-and-delete-text.cjs.map +1 -0
  180. package/dist/actions/pdf-search-and-delete-text.d.cts +9 -0
  181. package/dist/actions/pdf-search-and-delete-text.d.cts.map +1 -0
  182. package/dist/actions/pdf-search-and-delete-text.d.mts +9 -0
  183. package/dist/actions/pdf-search-and-delete-text.d.mts.map +1 -0
  184. package/dist/actions/pdf-search-and-delete-text.mjs +31 -0
  185. package/dist/actions/pdf-search-and-delete-text.mjs.map +1 -0
  186. package/dist/actions/pdf-search-and-replace-text.cjs +35 -0
  187. package/dist/actions/pdf-search-and-replace-text.cjs.map +1 -0
  188. package/dist/actions/pdf-search-and-replace-text.d.cts +9 -0
  189. package/dist/actions/pdf-search-and-replace-text.d.cts.map +1 -0
  190. package/dist/actions/pdf-search-and-replace-text.d.mts +9 -0
  191. package/dist/actions/pdf-search-and-replace-text.d.mts.map +1 -0
  192. package/dist/actions/pdf-search-and-replace-text.mjs +32 -0
  193. package/dist/actions/pdf-search-and-replace-text.mjs.map +1 -0
  194. package/dist/actions/pdf-split.cjs +44 -0
  195. package/dist/actions/pdf-split.cjs.map +1 -0
  196. package/dist/actions/pdf-split.d.cts +9 -0
  197. package/dist/actions/pdf-split.d.cts.map +1 -0
  198. package/dist/actions/pdf-split.d.mts +9 -0
  199. package/dist/actions/pdf-split.d.mts.map +1 -0
  200. package/dist/actions/pdf-split.mjs +41 -0
  201. package/dist/actions/pdf-split.mjs.map +1 -0
  202. package/dist/actions/pdf-to-csv.cjs +33 -0
  203. package/dist/actions/pdf-to-csv.cjs.map +1 -0
  204. package/dist/actions/pdf-to-csv.d.cts +9 -0
  205. package/dist/actions/pdf-to-csv.d.cts.map +1 -0
  206. package/dist/actions/pdf-to-csv.d.mts +9 -0
  207. package/dist/actions/pdf-to-csv.d.mts.map +1 -0
  208. package/dist/actions/pdf-to-csv.mjs +30 -0
  209. package/dist/actions/pdf-to-csv.mjs.map +1 -0
  210. package/dist/actions/pdf-to-html.cjs +36 -0
  211. package/dist/actions/pdf-to-html.cjs.map +1 -0
  212. package/dist/actions/pdf-to-html.d.cts +9 -0
  213. package/dist/actions/pdf-to-html.d.cts.map +1 -0
  214. package/dist/actions/pdf-to-html.d.mts +9 -0
  215. package/dist/actions/pdf-to-html.d.mts.map +1 -0
  216. package/dist/actions/pdf-to-html.mjs +33 -0
  217. package/dist/actions/pdf-to-html.mjs.map +1 -0
  218. package/dist/actions/pdf-to-image.cjs +34 -0
  219. package/dist/actions/pdf-to-image.cjs.map +1 -0
  220. package/dist/actions/pdf-to-image.d.cts +9 -0
  221. package/dist/actions/pdf-to-image.d.cts.map +1 -0
  222. package/dist/actions/pdf-to-image.d.mts +9 -0
  223. package/dist/actions/pdf-to-image.d.mts.map +1 -0
  224. package/dist/actions/pdf-to-image.mjs +31 -0
  225. package/dist/actions/pdf-to-image.mjs.map +1 -0
  226. package/dist/actions/pdf-to-json.cjs +63 -0
  227. package/dist/actions/pdf-to-json.cjs.map +1 -0
  228. package/dist/actions/pdf-to-json.d.cts +9 -0
  229. package/dist/actions/pdf-to-json.d.cts.map +1 -0
  230. package/dist/actions/pdf-to-json.d.mts +9 -0
  231. package/dist/actions/pdf-to-json.d.mts.map +1 -0
  232. package/dist/actions/pdf-to-json.mjs +62 -0
  233. package/dist/actions/pdf-to-json.mjs.map +1 -0
  234. package/dist/actions/pdf-to-text.cjs +41 -0
  235. package/dist/actions/pdf-to-text.cjs.map +1 -0
  236. package/dist/actions/pdf-to-text.d.cts +9 -0
  237. package/dist/actions/pdf-to-text.d.cts.map +1 -0
  238. package/dist/actions/pdf-to-text.d.mts +9 -0
  239. package/dist/actions/pdf-to-text.d.mts.map +1 -0
  240. package/dist/actions/pdf-to-text.mjs +38 -0
  241. package/dist/actions/pdf-to-text.mjs.map +1 -0
  242. package/dist/actions/pdf-to-xls.cjs +30 -0
  243. package/dist/actions/pdf-to-xls.cjs.map +1 -0
  244. package/dist/actions/pdf-to-xls.d.cts +9 -0
  245. package/dist/actions/pdf-to-xls.d.cts.map +1 -0
  246. package/dist/actions/pdf-to-xls.d.mts +9 -0
  247. package/dist/actions/pdf-to-xls.d.mts.map +1 -0
  248. package/dist/actions/pdf-to-xls.mjs +27 -0
  249. package/dist/actions/pdf-to-xls.mjs.map +1 -0
  250. package/dist/actions/pdf-to-xlsx.cjs +37 -0
  251. package/dist/actions/pdf-to-xlsx.cjs.map +1 -0
  252. package/dist/actions/pdf-to-xlsx.d.cts +9 -0
  253. package/dist/actions/pdf-to-xlsx.d.cts.map +1 -0
  254. package/dist/actions/pdf-to-xlsx.d.mts +9 -0
  255. package/dist/actions/pdf-to-xlsx.d.mts.map +1 -0
  256. package/dist/actions/pdf-to-xlsx.mjs +34 -0
  257. package/dist/actions/pdf-to-xlsx.mjs.map +1 -0
  258. package/dist/actions/pdf-to-xml.cjs +29 -0
  259. package/dist/actions/pdf-to-xml.cjs.map +1 -0
  260. package/dist/actions/pdf-to-xml.d.cts +9 -0
  261. package/dist/actions/pdf-to-xml.d.cts.map +1 -0
  262. package/dist/actions/pdf-to-xml.d.mts +9 -0
  263. package/dist/actions/pdf-to-xml.d.mts.map +1 -0
  264. package/dist/actions/pdf-to-xml.mjs +26 -0
  265. package/dist/actions/pdf-to-xml.mjs.map +1 -0
  266. package/dist/actions/pdfco-post-barcode-generate.cjs +92 -0
  267. package/dist/actions/pdfco-post-barcode-generate.cjs.map +1 -0
  268. package/dist/actions/pdfco-post-barcode-generate.d.cts +9 -0
  269. package/dist/actions/pdfco-post-barcode-generate.d.cts.map +1 -0
  270. package/dist/actions/pdfco-post-barcode-generate.d.mts +9 -0
  271. package/dist/actions/pdfco-post-barcode-generate.d.mts.map +1 -0
  272. package/dist/actions/pdfco-post-barcode-generate.mjs +89 -0
  273. package/dist/actions/pdfco-post-barcode-generate.mjs.map +1 -0
  274. package/dist/actions/pdfco-post-file-upload-base64.cjs +30 -0
  275. package/dist/actions/pdfco-post-file-upload-base64.cjs.map +1 -0
  276. package/dist/actions/pdfco-post-file-upload-base64.d.cts +9 -0
  277. package/dist/actions/pdfco-post-file-upload-base64.d.cts.map +1 -0
  278. package/dist/actions/pdfco-post-file-upload-base64.d.mts +9 -0
  279. package/dist/actions/pdfco-post-file-upload-base64.d.mts.map +1 -0
  280. package/dist/actions/pdfco-post-file-upload-base64.mjs +27 -0
  281. package/dist/actions/pdfco-post-file-upload-base64.mjs.map +1 -0
  282. package/dist/app.cjs +9 -0
  283. package/dist/app.cjs.map +1 -0
  284. package/dist/app.d.cts +5 -0
  285. package/dist/app.d.cts.map +1 -0
  286. package/dist/app.d.mts +5 -0
  287. package/dist/app.d.mts.map +1 -0
  288. package/dist/app.mjs +10 -0
  289. package/dist/app.mjs.map +1 -0
  290. package/dist/catalog.cjs +15 -0
  291. package/dist/catalog.cjs.map +1 -0
  292. package/dist/catalog.d.cts +14 -0
  293. package/dist/catalog.d.cts.map +1 -0
  294. package/dist/catalog.d.mts +14 -0
  295. package/dist/catalog.d.mts.map +1 -0
  296. package/dist/catalog.mjs +15 -0
  297. package/dist/catalog.mjs.map +1 -0
  298. package/dist/execute.cjs +18 -0
  299. package/dist/execute.cjs.map +1 -0
  300. package/dist/execute.mjs +18 -0
  301. package/dist/execute.mjs.map +1 -0
  302. package/dist/index.cjs +74 -0
  303. package/dist/index.d.cts +37 -0
  304. package/dist/index.d.mts +37 -0
  305. package/dist/index.mjs +38 -0
  306. package/package.json +49 -0
@@ -0,0 +1,33 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pdfCoPdfExtractAttachments = action("PDF_CO_PDF_EXTRACT_ATTACHMENTS", {
4
+ slug: "pdf_co-pdf-extract-attachments",
5
+ name: "Extract PDF Attachments",
6
+ description: "Tool to extract embedded attachments from a PDF. Use when you need to retrieve embedded files from a PDF after uploading.",
7
+ input: z.object({
8
+ url: z.string().describe("URL of the input PDF file to process."),
9
+ inline: z.boolean().describe("If true, returns attachment data inline; otherwise returns URLs.").optional(),
10
+ callback: z.string().describe("Webhook URL for receiving async results.").optional(),
11
+ password: z.string().describe("Password for protected PDF file (if applicable).").optional(),
12
+ async_job: z.boolean().describe("Run processing asynchronously. If true, returns a jobId for async processing.").optional(),
13
+ expiration: z.number().int().describe("Set the expiration time for the output link in minutes. Default is 60.").optional(),
14
+ httppassword: z.string().describe("HTTP authentication password for accessing the source URL.").optional(),
15
+ httpusername: z.string().describe("HTTP authentication username for accessing the source URL.").optional()
16
+ }).describe("Request model for extracting attachments from a PDF."),
17
+ output: z.object({
18
+ name: z.string().describe("Output filename.").nullable().optional(),
19
+ urls: z.array(z.string()).describe("List of URLs to the extracted attachment files.").nullable().optional(),
20
+ error: z.boolean().describe("True if an error occurred."),
21
+ jobId: z.string().describe("Job ID for async processing (when async=true).").nullable().optional(),
22
+ status: z.number().int().describe("HTTP status code of the operation."),
23
+ credits: z.number().int().describe("Credits used for this operation.").nullable().optional(),
24
+ message: z.string().describe("Error or status message.").nullable().optional(),
25
+ duration: z.number().int().describe("Processing duration in milliseconds.").nullable().optional(),
26
+ pageCount: z.number().int().describe("Number of pages in the PDF.").nullable().optional(),
27
+ remainingCredits: z.number().int().describe("Remaining account credits.").nullable().optional()
28
+ }).describe("Response model for extracting attachments from a PDF.")
29
+ });
30
+ //#endregion
31
+ export { pdfCoPdfExtractAttachments };
32
+
33
+ //# sourceMappingURL=pdf-extract-attachments.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-extract-attachments.mjs","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput: z.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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.\"),\n credits: z.number().int().describe(\"Credits used for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n}).describe(\"Response model for extracting attachments from a PDF.\");\n\nexport const pdfCoPdfExtractAttachments = action(\"PDF_CO_PDF_EXTRACT_ATTACHMENTS\", {\n slug: \"pdf_co-pdf-extract-attachments\",\n name: \"Extract PDF Attachments\",\n description: \"Tool to extract embedded attachments from a PDF. Use when you need to retrieve embedded files from a PDF after uploading.\",\n input: PdfCoPdfExtractAttachmentsInput,\n output: PdfCoPdfExtractAttachmentsOutput,\n});\n"],"mappings":";;AA2BA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E,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-find.ts
4
+ const PdfCoPdfFindInput = zod.z.object({
5
+ url: zod.z.string().describe("Publicly accessible URL of the PDF file to search."),
6
+ pages: zod.z.string().describe("Comma-separated page ranges to search, e.g., '1-3,5'.").optional(),
7
+ password: zod.z.string().describe("Password for protected PDF, if applicable.").optional(),
8
+ profiles: zod.z.string().describe("Advanced JSON configuration for PDF processing.").optional(),
9
+ regexSearch: zod.z.boolean().default(false).describe("Whether to treat searchString as a regular expression (default: false).").optional(),
10
+ searchString: zod.z.string().describe("Keyword or regex pattern to find in the document."),
11
+ caseSensitive: zod.z.boolean().default(false).describe("Whether the search is case-sensitive (default: false).").optional()
12
+ }).describe("Request model for searching text in a PDF document.");
13
+ const PdfCoPdfFind_PdfFindMatchSchema = zod.z.object({
14
+ top: zod.z.number().describe("Top coordinate of the match on the page."),
15
+ left: zod.z.number().describe("Left coordinate of the match on the page."),
16
+ text: zod.z.string().describe("The exact matched text."),
17
+ width: zod.z.number().describe("Width of the matched area."),
18
+ height: zod.z.number().describe("Height of the matched area."),
19
+ pageIndex: zod.z.number().int().describe("Zero-based index of the page where found."),
20
+ pageNumber: zod.z.number().int().describe("One-based number of the page where found.")
21
+ });
22
+ const PdfCoPdfFindOutput = zod.z.object({
23
+ error: zod.z.string().describe("Error message, if any.").nullable().optional(),
24
+ found: zod.z.number().int().describe("Total number of occurrences found."),
25
+ status: zod.z.string().describe("API call status, e.g., 'success'."),
26
+ matches: zod.z.array(PdfCoPdfFind_PdfFindMatchSchema).describe("List of match details.")
27
+ });
28
+ const pdfCoPdfFind = require_action.action("PDF_CO_PDF_FIND", {
29
+ slug: "pdf_co-pdf-find",
30
+ name: "Find Text in PDF",
31
+ description: "Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.",
32
+ input: PdfCoPdfFindInput,
33
+ output: PdfCoPdfFindOutput
34
+ });
35
+ //#endregion
36
+ exports.pdfCoPdfFind = pdfCoPdfFind;
37
+
38
+ //# sourceMappingURL=pdf-find.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-find.cjs","names":["z","action"],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file to search.\"),\n pages: z.string().describe(\"Comma-separated page ranges to search, e.g., '1-3,5'.\").optional(),\n password: z.string().describe(\"Password for protected PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"Advanced JSON configuration for PDF processing.\").optional(),\n regexSearch: z.boolean().default(false).describe(\"Whether to treat searchString as a regular expression (default: false).\").optional(),\n searchString: z.string().describe(\"Keyword or regex pattern to find in the document.\"),\n caseSensitive: z.boolean().default(false).describe(\"Whether the search is case-sensitive (default: false).\").optional(),\n}).describe(\"Request model for searching text in a PDF document.\");\nconst PdfCoPdfFind_PdfFindMatchSchema: z.ZodTypeAny = z.object({\n top: z.number().describe(\"Top coordinate of the match on the page.\"),\n left: z.number().describe(\"Left coordinate of the match on the page.\"),\n text: z.string().describe(\"The exact matched text.\"),\n width: z.number().describe(\"Width of the matched area.\"),\n height: z.number().describe(\"Height of the matched area.\"),\n pageIndex: z.number().int().describe(\"Zero-based index of the page where found.\"),\n pageNumber: z.number().int().describe(\"One-based number of the page where found.\"),\n});\nexport const PdfCoPdfFindOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message, if any.\").nullable().optional(),\n found: z.number().int().describe(\"Total number of occurrences found.\"),\n status: z.string().describe(\"API call status, e.g., 'success'.\"),\n matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe(\"List of match details.\"),\n});\n\nexport const pdfCoPdfFind = action(\"PDF_CO_PDF_FIND\", {\n slug: \"pdf_co-pdf-find\",\n name: \"Find Text in PDF\",\n description: \"Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.\",\n input: PdfCoPdfFindInput,\n output: PdfCoPdfFindOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACrI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACrF,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;AACnF,CAAC;AACD,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC/D,SAASA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;AACrF,CAAC;AAED,MAAa,eAAeC,eAAAA,OAAO,mBAAmB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-find.d.ts
4
+ declare const PdfCoPdfFindInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFindOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFind: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFind };
9
+ //# sourceMappingURL=pdf-find.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-find.d.cts","names":[],"sources":["../../src/actions/pdf-find.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UAQgC;AAAA,cAUrD,kBAAA,EAAoB,CAAA,CAAE,UAKjC;AAAA,cAEW,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-find.d.ts
4
+ declare const PdfCoPdfFindInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFindOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFind: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFind };
9
+ //# sourceMappingURL=pdf-find.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-find.d.mts","names":[],"sources":["../../src/actions/pdf-find.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UAQgC;AAAA,cAUrD,kBAAA,EAAoB,CAAA,CAAE,UAKjC;AAAA,cAEW,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/pdf-find.ts
4
+ const PdfCoPdfFindInput = z.object({
5
+ url: z.string().describe("Publicly accessible URL of the PDF file to search."),
6
+ pages: z.string().describe("Comma-separated page ranges to search, e.g., '1-3,5'.").optional(),
7
+ password: z.string().describe("Password for protected PDF, if applicable.").optional(),
8
+ profiles: z.string().describe("Advanced JSON configuration for PDF processing.").optional(),
9
+ regexSearch: z.boolean().default(false).describe("Whether to treat searchString as a regular expression (default: false).").optional(),
10
+ searchString: z.string().describe("Keyword or regex pattern to find in the document."),
11
+ caseSensitive: z.boolean().default(false).describe("Whether the search is case-sensitive (default: false).").optional()
12
+ }).describe("Request model for searching text in a PDF document.");
13
+ const PdfCoPdfFind_PdfFindMatchSchema = z.object({
14
+ top: z.number().describe("Top coordinate of the match on the page."),
15
+ left: z.number().describe("Left coordinate of the match on the page."),
16
+ text: z.string().describe("The exact matched text."),
17
+ width: z.number().describe("Width of the matched area."),
18
+ height: z.number().describe("Height of the matched area."),
19
+ pageIndex: z.number().int().describe("Zero-based index of the page where found."),
20
+ pageNumber: z.number().int().describe("One-based number of the page where found.")
21
+ });
22
+ const pdfCoPdfFind = action("PDF_CO_PDF_FIND", {
23
+ slug: "pdf_co-pdf-find",
24
+ name: "Find Text in PDF",
25
+ description: "Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.",
26
+ input: PdfCoPdfFindInput,
27
+ output: z.object({
28
+ error: z.string().describe("Error message, if any.").nullable().optional(),
29
+ found: z.number().int().describe("Total number of occurrences found."),
30
+ status: z.string().describe("API call status, e.g., 'success'."),
31
+ matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe("List of match details.")
32
+ })
33
+ });
34
+ //#endregion
35
+ export { pdfCoPdfFind };
36
+
37
+ //# sourceMappingURL=pdf-find.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-find.mjs","names":[],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file to search.\"),\n pages: z.string().describe(\"Comma-separated page ranges to search, e.g., '1-3,5'.\").optional(),\n password: z.string().describe(\"Password for protected PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"Advanced JSON configuration for PDF processing.\").optional(),\n regexSearch: z.boolean().default(false).describe(\"Whether to treat searchString as a regular expression (default: false).\").optional(),\n searchString: z.string().describe(\"Keyword or regex pattern to find in the document.\"),\n caseSensitive: z.boolean().default(false).describe(\"Whether the search is case-sensitive (default: false).\").optional(),\n}).describe(\"Request model for searching text in a PDF document.\");\nconst PdfCoPdfFind_PdfFindMatchSchema: z.ZodTypeAny = z.object({\n top: z.number().describe(\"Top coordinate of the match on the page.\"),\n left: z.number().describe(\"Left coordinate of the match on the page.\"),\n text: z.string().describe(\"The exact matched text.\"),\n width: z.number().describe(\"Width of the matched area.\"),\n height: z.number().describe(\"Height of the matched area.\"),\n pageIndex: z.number().int().describe(\"Zero-based index of the page where found.\"),\n pageNumber: z.number().int().describe(\"One-based number of the page where found.\"),\n});\nexport const PdfCoPdfFindOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message, if any.\").nullable().optional(),\n found: z.number().int().describe(\"Total number of occurrences found.\"),\n status: z.string().describe(\"API call status, e.g., 'success'.\"),\n matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe(\"List of match details.\"),\n});\n\nexport const pdfCoPdfFind = action(\"PDF_CO_PDF_FIND\", {\n slug: \"pdf_co-pdf-find\",\n name: \"Find Text in PDF\",\n description: \"Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.\",\n input: PdfCoPdfFindInput,\n output: PdfCoPdfFindOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAkC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACrI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACrF,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kCAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;AACnF,CAAC;AAQD,MAAa,eAAe,OAAO,mBAAmB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8C,EAAE,OAAO;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC/D,SAAS,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;CACrF,CAOU;AACV,CAAC"}
@@ -0,0 +1,49 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-forms-info-reader.ts
4
+ const PdfCoPdfFormsInfoReaderInput = zod.z.object({
5
+ url: zod.z.string().describe("Publicly accessible URL of the PDF file containing form fields."),
6
+ async: zod.z.boolean().describe("If true, runs the job asynchronously and returns a jobId for status checking.").optional(),
7
+ password: zod.z.string().describe("Password for encrypted PDF, if applicable.").optional()
8
+ }).describe("Request model for extracting form field information from a PDF.");
9
+ const PdfCoPdfFormsInfoReader_FormFieldInfoSchema = zod.z.object({
10
+ Top: zod.z.number().describe("Top position of the field.").nullable().optional(),
11
+ Left: zod.z.number().describe("Left position of the field.").nullable().optional(),
12
+ Type: zod.z.string().describe("Type of the form field, e.g., CheckBox, EditBox, RadioButton, ComboBox."),
13
+ Value: zod.z.string().describe("Current value of the form field, if any.").nullable().optional(),
14
+ Width: zod.z.number().describe("Width of the field.").nullable().optional(),
15
+ Height: zod.z.number().describe("Height of the field.").nullable().optional(),
16
+ FieldName: zod.z.string().describe("Internal name of the form field."),
17
+ PageIndex: zod.z.number().int().describe("Page index where the field is located (0-based).").nullable().optional()
18
+ }).passthrough().describe("Detailed information about a single form field in a PDF.");
19
+ const PdfCoPdfFormsInfoReader_FieldsInfoContainerSchema = zod.z.object({ Fields: zod.z.array(PdfCoPdfFormsInfoReader_FormFieldInfoSchema).describe("List of form fields found in the document.").nullable().optional() }).passthrough().describe("Container for form fields list.");
20
+ const PdfCoPdfFormsInfoReader_PdfInfoSchema = zod.z.object({
21
+ Title: zod.z.string().describe("Title of the PDF document.").nullable().optional(),
22
+ Author: zod.z.string().describe("Author of the PDF document.").nullable().optional(),
23
+ Subject: zod.z.string().describe("Subject of the PDF document.").nullable().optional(),
24
+ Producer: zod.z.string().describe("Software used to produce the PDF.").nullable().optional(),
25
+ Encrypted: zod.z.boolean().describe("Whether the PDF is encrypted.").nullable().optional(),
26
+ PageCount: zod.z.number().int().describe("Number of pages in the PDF.").nullable().optional(),
27
+ FieldsInfo: PdfCoPdfFormsInfoReader_FieldsInfoContainerSchema.nullable().optional(),
28
+ CreationDate: zod.z.string().describe("Date the PDF was created.").nullable().optional(),
29
+ PasswordProtected: zod.z.boolean().describe("Whether the PDF is password protected.").nullable().optional()
30
+ }).passthrough().describe("PDF document information including metadata and form fields.");
31
+ const PdfCoPdfFormsInfoReaderOutput = zod.z.object({
32
+ info: PdfCoPdfFormsInfoReader_PdfInfoSchema.nullable().optional(),
33
+ error: zod.z.boolean().describe("True if an error occurred during processing."),
34
+ status: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
35
+ message: zod.z.string().describe("Error or status message.").nullable().optional(),
36
+ errorCode: zod.z.number().int().describe("Error code if an error occurred.").nullable().optional(),
37
+ remainingCredits: zod.z.number().int().describe("Remaining API credits.").nullable().optional()
38
+ }).passthrough().describe("Response model containing form field information extracted from a PDF.");
39
+ const pdfCoPdfFormsInfoReader = require_action.action("PDF_CO_PDF_FORMS_INFO_READER", {
40
+ slug: "pdf_co-pdf-forms-info-reader",
41
+ name: "PDF Forms Info Reader",
42
+ description: "Tool to extract form field information from a PDF. Use when you need to retrieve names, types, and values of form fields. Returns field names, types (CheckBox, EditBox, RadioButton, ComboBox), values, and position coordinates.",
43
+ input: PdfCoPdfFormsInfoReaderInput,
44
+ output: PdfCoPdfFormsInfoReaderOutput
45
+ });
46
+ //#endregion
47
+ exports.pdfCoPdfFormsInfoReader = pdfCoPdfFormsInfoReader;
48
+
49
+ //# sourceMappingURL=pdf-forms-info-reader.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-forms-info-reader.cjs","names":["z","action"],"sources":["../../src/actions/pdf-forms-info-reader.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFormsInfoReaderInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file containing form fields.\"),\n async: z.boolean().describe(\"If true, runs the job asynchronously and returns a jobId for status checking.\").optional(),\n password: z.string().describe(\"Password for encrypted PDF, if applicable.\").optional(),\n}).describe(\"Request model for extracting form field information from a PDF.\");\nconst PdfCoPdfFormsInfoReader_FormFieldInfoSchema: z.ZodTypeAny = z.object({\n Top: z.number().describe(\"Top position of the field.\").nullable().optional(),\n Left: z.number().describe(\"Left position of the field.\").nullable().optional(),\n Type: z.string().describe(\"Type of the form field, e.g., CheckBox, EditBox, RadioButton, ComboBox.\"),\n Value: z.string().describe(\"Current value of the form field, if any.\").nullable().optional(),\n Width: z.number().describe(\"Width of the field.\").nullable().optional(),\n Height: z.number().describe(\"Height of the field.\").nullable().optional(),\n FieldName: z.string().describe(\"Internal name of the form field.\"),\n PageIndex: z.number().int().describe(\"Page index where the field is located (0-based).\").nullable().optional(),\n}).passthrough().describe(\"Detailed information about a single form field in a PDF.\");\nconst PdfCoPdfFormsInfoReader_FieldsInfoContainerSchema: z.ZodTypeAny = z.object({\n Fields: z.array(PdfCoPdfFormsInfoReader_FormFieldInfoSchema).describe(\"List of form fields found in the document.\").nullable().optional(),\n}).passthrough().describe(\"Container for form fields list.\");\nconst PdfCoPdfFormsInfoReader_PdfInfoSchema: z.ZodTypeAny = z.object({\n Title: z.string().describe(\"Title of the PDF document.\").nullable().optional(),\n Author: z.string().describe(\"Author of the PDF document.\").nullable().optional(),\n Subject: z.string().describe(\"Subject of the PDF document.\").nullable().optional(),\n Producer: z.string().describe(\"Software used to produce the PDF.\").nullable().optional(),\n Encrypted: z.boolean().describe(\"Whether the PDF is encrypted.\").nullable().optional(),\n PageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n FieldsInfo: PdfCoPdfFormsInfoReader_FieldsInfoContainerSchema.nullable().optional(),\n CreationDate: z.string().describe(\"Date the PDF was created.\").nullable().optional(),\n PasswordProtected: z.boolean().describe(\"Whether the PDF is password protected.\").nullable().optional(),\n}).passthrough().describe(\"PDF document information including metadata and form fields.\");\nexport const PdfCoPdfFormsInfoReaderOutput: z.ZodTypeAny = z.object({\n info: PdfCoPdfFormsInfoReader_PdfInfoSchema.nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during processing.\"),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n message: z.string().describe(\"Error or status message.\").nullable().optional(),\n errorCode: z.number().int().describe(\"Error code if an error occurred.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining API credits.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing form field information extracted from a PDF.\");\n\nexport const pdfCoPdfFormsInfoReader = action(\"PDF_CO_PDF_FORMS_INFO_READER\", {\n slug: \"pdf_co-pdf-forms-info-reader\",\n name: \"PDF Forms Info Reader\",\n description: \"Tool to extract form field information from a PDF. Use when you need to retrieve names, types, and values of form fields. Returns field names, types (CheckBox, EditBox, RadioButton, ComboBox), values, and position coordinates.\",\n input: PdfCoPdfFormsInfoReaderInput,\n output: PdfCoPdfFormsInfoReaderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC1F,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,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,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAA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AS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAM,sCAAsC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;CAC1E,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,0BAA0BC,eAAAA,OAAO,gCAAgC;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-forms-info-reader.d.ts
4
+ declare const PdfCoPdfFormsInfoReaderInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFormsInfoReaderOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFormsInfoReader: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFormsInfoReader };
9
+ //# sourceMappingURL=pdf-forms-info-reader.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-forms-info-reader.d.cts","names":[],"sources":["../../src/actions/pdf-forms-info-reader.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAIiC;AAAA,cAyBjE,6BAAA,EAA+B,CAAA,CAAE,UAOqD;AAAA,cAEtF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-forms-info-reader.d.ts
4
+ declare const PdfCoPdfFormsInfoReaderInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFormsInfoReaderOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFormsInfoReader: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFormsInfoReader };
9
+ //# sourceMappingURL=pdf-forms-info-reader.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-forms-info-reader.d.mts","names":[],"sources":["../../src/actions/pdf-forms-info-reader.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAIiC;AAAA,cAyBjE,6BAAA,EAA+B,CAAA,CAAE,UAOqD;AAAA,cAEtF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,48 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/pdf-forms-info-reader.ts
4
+ const PdfCoPdfFormsInfoReaderInput = z.object({
5
+ url: z.string().describe("Publicly accessible URL of the PDF file containing form fields."),
6
+ async: z.boolean().describe("If true, runs the job asynchronously and returns a jobId for status checking.").optional(),
7
+ password: z.string().describe("Password for encrypted PDF, if applicable.").optional()
8
+ }).describe("Request model for extracting form field information from a PDF.");
9
+ const PdfCoPdfFormsInfoReader_FormFieldInfoSchema = z.object({
10
+ Top: z.number().describe("Top position of the field.").nullable().optional(),
11
+ Left: z.number().describe("Left position of the field.").nullable().optional(),
12
+ Type: z.string().describe("Type of the form field, e.g., CheckBox, EditBox, RadioButton, ComboBox."),
13
+ Value: z.string().describe("Current value of the form field, if any.").nullable().optional(),
14
+ Width: z.number().describe("Width of the field.").nullable().optional(),
15
+ Height: z.number().describe("Height of the field.").nullable().optional(),
16
+ FieldName: z.string().describe("Internal name of the form field."),
17
+ PageIndex: z.number().int().describe("Page index where the field is located (0-based).").nullable().optional()
18
+ }).passthrough().describe("Detailed information about a single form field in a PDF.");
19
+ const PdfCoPdfFormsInfoReader_FieldsInfoContainerSchema = z.object({ Fields: z.array(PdfCoPdfFormsInfoReader_FormFieldInfoSchema).describe("List of form fields found in the document.").nullable().optional() }).passthrough().describe("Container for form fields list.");
20
+ const PdfCoPdfFormsInfoReader_PdfInfoSchema = z.object({
21
+ Title: z.string().describe("Title of the PDF document.").nullable().optional(),
22
+ Author: z.string().describe("Author of the PDF document.").nullable().optional(),
23
+ Subject: z.string().describe("Subject of the PDF document.").nullable().optional(),
24
+ Producer: z.string().describe("Software used to produce the PDF.").nullable().optional(),
25
+ Encrypted: z.boolean().describe("Whether the PDF is encrypted.").nullable().optional(),
26
+ PageCount: z.number().int().describe("Number of pages in the PDF.").nullable().optional(),
27
+ FieldsInfo: PdfCoPdfFormsInfoReader_FieldsInfoContainerSchema.nullable().optional(),
28
+ CreationDate: z.string().describe("Date the PDF was created.").nullable().optional(),
29
+ PasswordProtected: z.boolean().describe("Whether the PDF is password protected.").nullable().optional()
30
+ }).passthrough().describe("PDF document information including metadata and form fields.");
31
+ const pdfCoPdfFormsInfoReader = action("PDF_CO_PDF_FORMS_INFO_READER", {
32
+ slug: "pdf_co-pdf-forms-info-reader",
33
+ name: "PDF Forms Info Reader",
34
+ description: "Tool to extract form field information from a PDF. Use when you need to retrieve names, types, and values of form fields. Returns field names, types (CheckBox, EditBox, RadioButton, ComboBox), values, and position coordinates.",
35
+ input: PdfCoPdfFormsInfoReaderInput,
36
+ output: z.object({
37
+ info: PdfCoPdfFormsInfoReader_PdfInfoSchema.nullable().optional(),
38
+ error: z.boolean().describe("True if an error occurred during processing."),
39
+ status: z.union([z.number().int(), z.string()]).nullable().optional(),
40
+ message: z.string().describe("Error or status message.").nullable().optional(),
41
+ errorCode: z.number().int().describe("Error code if an error occurred.").nullable().optional(),
42
+ remainingCredits: z.number().int().describe("Remaining API credits.").nullable().optional()
43
+ }).passthrough().describe("Response model containing form field information extracted from a PDF.")
44
+ });
45
+ //#endregion
46
+ export { pdfCoPdfFormsInfoReader };
47
+
48
+ //# sourceMappingURL=pdf-forms-info-reader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-forms-info-reader.mjs","names":[],"sources":["../../src/actions/pdf-forms-info-reader.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFormsInfoReaderInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file containing form fields.\"),\n async: z.boolean().describe(\"If true, runs the job asynchronously and returns a jobId for status checking.\").optional(),\n password: z.string().describe(\"Password for encrypted PDF, if applicable.\").optional(),\n}).describe(\"Request model for extracting form field information from a PDF.\");\nconst PdfCoPdfFormsInfoReader_FormFieldInfoSchema: z.ZodTypeAny = z.object({\n Top: z.number().describe(\"Top position of the field.\").nullable().optional(),\n Left: z.number().describe(\"Left position of the field.\").nullable().optional(),\n Type: z.string().describe(\"Type of the form field, e.g., CheckBox, EditBox, RadioButton, ComboBox.\"),\n Value: z.string().describe(\"Current value of the form field, if any.\").nullable().optional(),\n Width: z.number().describe(\"Width of the field.\").nullable().optional(),\n Height: z.number().describe(\"Height of the field.\").nullable().optional(),\n FieldName: z.string().describe(\"Internal name of the form field.\"),\n PageIndex: z.number().int().describe(\"Page index where the field is located (0-based).\").nullable().optional(),\n}).passthrough().describe(\"Detailed information about a single form field in a PDF.\");\nconst PdfCoPdfFormsInfoReader_FieldsInfoContainerSchema: z.ZodTypeAny = z.object({\n Fields: z.array(PdfCoPdfFormsInfoReader_FormFieldInfoSchema).describe(\"List of form fields found in the document.\").nullable().optional(),\n}).passthrough().describe(\"Container for form fields list.\");\nconst PdfCoPdfFormsInfoReader_PdfInfoSchema: z.ZodTypeAny = z.object({\n Title: z.string().describe(\"Title of the PDF document.\").nullable().optional(),\n Author: z.string().describe(\"Author of the PDF document.\").nullable().optional(),\n Subject: z.string().describe(\"Subject of the PDF document.\").nullable().optional(),\n Producer: z.string().describe(\"Software used to produce the PDF.\").nullable().optional(),\n Encrypted: z.boolean().describe(\"Whether the PDF is encrypted.\").nullable().optional(),\n PageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n FieldsInfo: PdfCoPdfFormsInfoReader_FieldsInfoContainerSchema.nullable().optional(),\n CreationDate: z.string().describe(\"Date the PDF was created.\").nullable().optional(),\n PasswordProtected: z.boolean().describe(\"Whether the PDF is password protected.\").nullable().optional(),\n}).passthrough().describe(\"PDF document information including metadata and form fields.\");\nexport const PdfCoPdfFormsInfoReaderOutput: z.ZodTypeAny = z.object({\n info: PdfCoPdfFormsInfoReader_PdfInfoSchema.nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during processing.\"),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n message: z.string().describe(\"Error or status message.\").nullable().optional(),\n errorCode: z.number().int().describe(\"Error code if an error occurred.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining API credits.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing form field information extracted from a PDF.\");\n\nexport const pdfCoPdfFormsInfoReader = action(\"PDF_CO_PDF_FORMS_INFO_READER\", {\n slug: \"pdf_co-pdf-forms-info-reader\",\n name: \"PDF Forms Info Reader\",\n description: \"Tool to extract form field information from a PDF. Use when you need to retrieve names, types, and values of form fields. Returns field names, types (CheckBox, EditBox, RadioButton, ComboBox), values, and position coordinates.\",\n input: PdfCoPdfFormsInfoReaderInput,\n output: PdfCoPdfFormsInfoReaderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC1F,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,8CAA4D,EAAE,OAAO;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,oDAAkE,EAAE,OAAO,EAC/E,QAAQ,EAAE,MAAM,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AC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAOhB;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-from-document-txt.ts
4
+ const PdfCoPdfFromDocumentTxtInput = zod.z.object({
5
+ url: zod.z.string().describe("Direct public URL to the source text (.txt) file. The endpoint only accepts a downloadable URL; raw/inline text is not supported and will return HTTP 400 'Invalid input parameters'. Upload the text first (e.g. via PDF.co file upload) and pass the resulting URL here."),
6
+ name: zod.z.string().describe("Name of the resulting PDF file (e.g., 'result.pdf')."),
7
+ profiles: zod.z.string().describe("Optional JSON-formatted string with advanced API options.").optional(),
8
+ async_job: zod.z.boolean().default(false).describe("Run processing asynchronously; if true, returns a jobId for status checking.").optional()
9
+ }).describe("Request model for converting plain text to PDF using PDF.co API.");
10
+ const PdfCoPdfFromDocumentTxtOutput = zod.z.object({
11
+ url: zod.z.string().describe("URL of the generated PDF document.").nullable().optional(),
12
+ name: zod.z.string().describe("Name of the output file.").nullable().optional(),
13
+ error: zod.z.boolean().describe("Error flag indicating if the request failed."),
14
+ jobId: zod.z.string().describe("Job identifier returned for async requests. Use to poll job status.").nullable().optional(),
15
+ status: zod.z.union([zod.z.number().int(), zod.z.string()]),
16
+ credits: zod.z.number().int().describe("Number of credits consumed by the request.").nullable().optional(),
17
+ message: zod.z.string().describe("Additional information about processing or error message.").nullable().optional(),
18
+ duration: zod.z.number().int().describe("Time taken for the operation in milliseconds.").nullable().optional(),
19
+ pageCount: zod.z.number().int().describe("Number of pages in the PDF document.").nullable().optional(),
20
+ remainingCredits: zod.z.number().int().describe("Number of credits remaining in the account.").nullable().optional()
21
+ }).passthrough().describe("Response model for converting plain text to PDF.");
22
+ const pdfCoPdfFromDocumentTxt = require_action.action("PDF_CO_PDF_FROM_DOCUMENT_TXT", {
23
+ slug: "pdf_co-pdf-from-document-txt",
24
+ name: "Convert Text to PDF",
25
+ description: "Tool to convert a plain text (.txt) file to PDF. Use when you have a public URL to a text file; raw inline text is not accepted by the endpoint.",
26
+ input: PdfCoPdfFromDocumentTxtInput,
27
+ output: PdfCoPdfFromDocumentTxtOutput
28
+ });
29
+ //#endregion
30
+ exports.pdfCoPdfFromDocumentTxt = pdfCoPdfFromDocumentTxt;
31
+
32
+ //# sourceMappingURL=pdf-from-document-txt.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-document-txt.cjs","names":["z","action"],"sources":["../../src/actions/pdf-from-document-txt.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFromDocumentTxtInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Direct public URL to the source text (.txt) file. The endpoint only accepts a downloadable URL; raw/inline text is not supported and will return HTTP 400 'Invalid input parameters'. Upload the text first (e.g. via PDF.co file upload) and pass the resulting URL here.\"),\n name: z.string().describe(\"Name of the resulting PDF file (e.g., 'result.pdf').\"),\n profiles: z.string().describe(\"Optional JSON-formatted string with advanced API options.\").optional(),\n async_job: z.boolean().default(false).describe(\"Run processing asynchronously; if true, returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for converting plain text to PDF using PDF.co API.\");\nexport const PdfCoPdfFromDocumentTxtOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the generated PDF document.\").nullable().optional(),\n name: z.string().describe(\"Name of the output file.\").nullable().optional(),\n error: z.boolean().describe(\"Error flag indicating if the request failed.\"),\n jobId: z.string().describe(\"Job identifier returned for async requests. Use to poll job status.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]),\n credits: z.number().int().describe(\"Number of credits consumed by the request.\").nullable().optional(),\n message: z.string().describe(\"Additional information about processing or error message.\").nullable().optional(),\n duration: z.number().int().describe(\"Time taken for the operation in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF document.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of credits remaining in the account.\").nullable().optional(),\n}).passthrough().describe(\"Response model for converting plain text to PDF.\");\n\nexport const pdfCoPdfFromDocumentTxt = action(\"PDF_CO_PDF_FROM_DOCUMENT_TXT\", {\n slug: \"pdf_co-pdf-from-document-txt\",\n name: \"Convert Text to PDF\",\n description: \"Tool to convert a plain text (.txt) file to PDF. Use when you have a public URL to a text file; raw inline text is not accepted by the endpoint.\",\n input: PdfCoPdfFromDocumentTxtInput,\n output: PdfCoPdfFromDocumentTxtOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4QAA4Q;CACrS,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAA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;
6
+ declare const pdfCoPdfFromDocumentTxt: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFromDocumentTxt };
9
+ //# sourceMappingURL=pdf-from-document-txt.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-document-txt.d.cts","names":[],"sources":["../../src/actions/pdf-from-document-txt.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAKkC;AAAA,cAClE,6BAAA,EAA+B,CAAA,CAAE,UAW+B;AAAA,cAEhE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-from-document-txt.d.ts
4
+ declare const PdfCoPdfFromDocumentTxtInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFromDocumentTxtOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFromDocumentTxt: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFromDocumentTxt };
9
+ //# sourceMappingURL=pdf-from-document-txt.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-document-txt.d.mts","names":[],"sources":["../../src/actions/pdf-from-document-txt.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAKkC;AAAA,cAClE,6BAAA,EAA+B,CAAA,CAAE,UAW+B;AAAA,cAEhE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pdfCoPdfFromDocumentTxt = action("PDF_CO_PDF_FROM_DOCUMENT_TXT", {
4
+ slug: "pdf_co-pdf-from-document-txt",
5
+ name: "Convert Text to PDF",
6
+ description: "Tool to convert a plain text (.txt) file to PDF. Use when you have a public URL to a text file; raw inline text is not accepted by the endpoint.",
7
+ input: z.object({
8
+ url: z.string().describe("Direct public URL to the source text (.txt) file. The endpoint only accepts a downloadable URL; raw/inline text is not supported and will return HTTP 400 'Invalid input parameters'. Upload the text first (e.g. via PDF.co file upload) and pass the resulting URL here."),
9
+ name: z.string().describe("Name of the resulting PDF file (e.g., 'result.pdf')."),
10
+ profiles: z.string().describe("Optional JSON-formatted string with advanced API options.").optional(),
11
+ async_job: z.boolean().default(false).describe("Run processing asynchronously; if true, returns a jobId for status checking.").optional()
12
+ }).describe("Request model for converting plain text to PDF using PDF.co API."),
13
+ output: z.object({
14
+ url: z.string().describe("URL of the generated PDF document.").nullable().optional(),
15
+ name: z.string().describe("Name of the output file.").nullable().optional(),
16
+ error: z.boolean().describe("Error flag indicating if the request failed."),
17
+ jobId: z.string().describe("Job identifier returned for async requests. Use to poll job status.").nullable().optional(),
18
+ status: z.union([z.number().int(), z.string()]),
19
+ credits: z.number().int().describe("Number of credits consumed by the request.").nullable().optional(),
20
+ message: z.string().describe("Additional information about processing or error message.").nullable().optional(),
21
+ duration: z.number().int().describe("Time taken for the operation in milliseconds.").nullable().optional(),
22
+ pageCount: z.number().int().describe("Number of pages in the PDF document.").nullable().optional(),
23
+ remainingCredits: z.number().int().describe("Number of credits remaining in the account.").nullable().optional()
24
+ }).passthrough().describe("Response model for converting plain text to PDF.")
25
+ });
26
+ //#endregion
27
+ export { pdfCoPdfFromDocumentTxt };
28
+
29
+ //# sourceMappingURL=pdf-from-document-txt.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-document-txt.mjs","names":[],"sources":["../../src/actions/pdf-from-document-txt.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFromDocumentTxtInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Direct public URL to the source text (.txt) file. The endpoint only accepts a downloadable URL; raw/inline text is not supported and will return HTTP 400 'Invalid input parameters'. Upload the text first (e.g. via PDF.co file upload) and pass the resulting URL here.\"),\n name: z.string().describe(\"Name of the resulting PDF file (e.g., 'result.pdf').\"),\n profiles: z.string().describe(\"Optional JSON-formatted string with advanced API options.\").optional(),\n async_job: z.boolean().default(false).describe(\"Run processing asynchronously; if true, returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for converting plain text to PDF using PDF.co API.\");\nexport const PdfCoPdfFromDocumentTxtOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the generated PDF document.\").nullable().optional(),\n name: z.string().describe(\"Name of the output file.\").nullable().optional(),\n error: z.boolean().describe(\"Error flag indicating if the request failed.\"),\n jobId: z.string().describe(\"Job identifier returned for async requests. Use to poll job status.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]),\n credits: z.number().int().describe(\"Number of credits consumed by the request.\").nullable().optional(),\n message: z.string().describe(\"Additional information about processing or error message.\").nullable().optional(),\n duration: z.number().int().describe(\"Time taken for the operation in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF document.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of credits remaining in the account.\").nullable().optional(),\n}).passthrough().describe(\"Response model for converting plain text to PDF.\");\n\nexport const pdfCoPdfFromDocumentTxt = action(\"PDF_CO_PDF_FROM_DOCUMENT_TXT\", {\n slug: \"pdf_co-pdf-from-document-txt\",\n name: \"Convert Text to PDF\",\n description: \"Tool to convert a plain text (.txt) file to PDF. Use when you have a public URL to a text file; raw inline text is not accepted by the endpoint.\",\n input: PdfCoPdfFromDocumentTxtInput,\n output: PdfCoPdfFromDocumentTxtOutput,\n});\n"],"mappings":";;AAuBA,MAAa,0BAA0B,OAAO,gCAAgC;CAC5E,MAAM;CACN,MAAM;CACN,aA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AA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -0,0 +1,31 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-from-email.ts
4
+ const PdfCoPdfFromEmailInput = zod.z.object({
5
+ url: zod.z.string().describe("Direct URL to the input EML or MSG file. Must be a publicly reachable URL; local file paths and raw content strings are not accepted."),
6
+ name: zod.z.string().describe("Optional name for the resulting PDF file.").optional(),
7
+ profiles: zod.z.string().describe("Advanced configuration as a JSON-formatted string (must be a string, not an object). Only profile keys documented by PDF.co for the email-to-PDF endpoint are accepted; unsupported keys return a 444 'Profiles parsing error'. See samples at https://docs.pdf.co/api-reference/profiles. Leave unset unless you have a valid profile.").optional(),
8
+ async_job: zod.z.boolean().default(false).describe("Run processing asynchronously; if true, returns a jobId for status checking.").optional()
9
+ }).describe("Request model for converting email files (.eml/.msg) to PDF.");
10
+ const PdfCoPdfFromEmailOutput = zod.z.object({
11
+ url: zod.z.string().describe("URL to the generated PDF file.").nullable().optional(),
12
+ name: zod.z.string().describe("Name of the output file.").nullable().optional(),
13
+ error: zod.z.boolean().describe("True if an error occurred."),
14
+ jobId: zod.z.string().describe("Job ID for async execution when async=true.").nullable().optional(),
15
+ status: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
16
+ message: zod.z.string().describe("Error or status message.").nullable().optional(),
17
+ errorCode: zod.z.number().int().describe("Error code if an error occurred.").nullable().optional(),
18
+ pageCount: zod.z.number().int().describe("Number of pages in the generated PDF.").nullable().optional(),
19
+ remainingCredits: zod.z.number().int().describe("Credits available after request.").nullable().optional()
20
+ }).passthrough().describe("Response model for email-to-PDF conversion.");
21
+ const pdfCoPdfFromEmail = require_action.action("PDF_CO_PDF_FROM_EMAIL", {
22
+ slug: "pdf_co-pdf-from-email",
23
+ name: "Convert Email to PDF",
24
+ description: "Tool to convert email files (.eml/.msg) to PDF. Use when you need to transform standalone email messages into PDF documents.",
25
+ input: PdfCoPdfFromEmailInput,
26
+ output: PdfCoPdfFromEmailOutput
27
+ });
28
+ //#endregion
29
+ exports.pdfCoPdfFromEmail = pdfCoPdfFromEmail;
30
+
31
+ //# sourceMappingURL=pdf-from-email.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-email.cjs","names":["z","action"],"sources":["../../src/actions/pdf-from-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFromEmailInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Direct URL to the input EML or MSG file. Must be a publicly reachable URL; local file paths and raw content strings are not accepted.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n profiles: z.string().describe(\"Advanced configuration as a JSON-formatted string (must be a string, not an object). Only profile keys documented by PDF.co for the email-to-PDF endpoint are accepted; unsupported keys return a 444 'Profiles parsing error'. See samples at https://docs.pdf.co/api-reference/profiles. Leave unset unless you have a valid profile.\").optional(),\n async_job: z.boolean().default(false).describe(\"Run processing asynchronously; if true, returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for converting email files (.eml/.msg) to PDF.\");\nexport const PdfCoPdfFromEmailOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the generated PDF file.\").nullable().optional(),\n name: z.string().describe(\"Name of the output file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\"),\n jobId: z.string().describe(\"Job ID for async execution when async=true.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n message: z.string().describe(\"Error or status message.\").nullable().optional(),\n errorCode: z.number().int().describe(\"Error code if an error occurred.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the generated PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Credits available after request.\").nullable().optional(),\n}).passthrough().describe(\"Response model for email-to-PDF conversion.\");\n\nexport const pdfCoPdfFromEmail = action(\"PDF_CO_PDF_FROM_EMAIL\", {\n slug: \"pdf_co-pdf-from-email\",\n name: \"Convert Email to PDF\",\n description: \"Tool to convert email files (.eml/.msg) to PDF. Use when you need to transform standalone email messages into PDF documents.\",\n input: PdfCoPdfFromEmailInput,\n output: PdfCoPdfFromEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAChK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yUAAyU,CAAC,CAAC,SAAS;CAClX,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,oBAAoBC,eAAAA,OAAO,yBAAyB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-from-email.d.ts
4
+ declare const PdfCoPdfFromEmailInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFromEmailOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFromEmail: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFromEmail };
9
+ //# sourceMappingURL=pdf-from-email.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-email.d.cts","names":[],"sources":["../../src/actions/pdf-from-email.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAKoC;AAAA,cAC9D,uBAAA,EAAyB,CAAA,CAAE,UAUgC;AAAA,cAE3D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-from-email.d.ts
4
+ declare const PdfCoPdfFromEmailInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFromEmailOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFromEmail: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFromEmail };
9
+ //# sourceMappingURL=pdf-from-email.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-email.d.mts","names":[],"sources":["../../src/actions/pdf-from-email.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAKoC;AAAA,cAC9D,uBAAA,EAAyB,CAAA,CAAE,UAUgC;AAAA,cAE3D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,28 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pdfCoPdfFromEmail = action("PDF_CO_PDF_FROM_EMAIL", {
4
+ slug: "pdf_co-pdf-from-email",
5
+ name: "Convert Email to PDF",
6
+ description: "Tool to convert email files (.eml/.msg) to PDF. Use when you need to transform standalone email messages into PDF documents.",
7
+ input: z.object({
8
+ url: z.string().describe("Direct URL to the input EML or MSG file. Must be a publicly reachable URL; local file paths and raw content strings are not accepted."),
9
+ name: z.string().describe("Optional name for the resulting PDF file.").optional(),
10
+ profiles: z.string().describe("Advanced configuration as a JSON-formatted string (must be a string, not an object). Only profile keys documented by PDF.co for the email-to-PDF endpoint are accepted; unsupported keys return a 444 'Profiles parsing error'. See samples at https://docs.pdf.co/api-reference/profiles. Leave unset unless you have a valid profile.").optional(),
11
+ async_job: z.boolean().default(false).describe("Run processing asynchronously; if true, returns a jobId for status checking.").optional()
12
+ }).describe("Request model for converting email files (.eml/.msg) to PDF."),
13
+ output: z.object({
14
+ url: z.string().describe("URL to the generated PDF file.").nullable().optional(),
15
+ name: z.string().describe("Name of the output file.").nullable().optional(),
16
+ error: z.boolean().describe("True if an error occurred."),
17
+ jobId: z.string().describe("Job ID for async execution when async=true.").nullable().optional(),
18
+ status: z.union([z.number().int(), z.string()]).nullable().optional(),
19
+ message: z.string().describe("Error or status message.").nullable().optional(),
20
+ errorCode: z.number().int().describe("Error code if an error occurred.").nullable().optional(),
21
+ pageCount: z.number().int().describe("Number of pages in the generated PDF.").nullable().optional(),
22
+ remainingCredits: z.number().int().describe("Credits available after request.").nullable().optional()
23
+ }).passthrough().describe("Response model for email-to-PDF conversion.")
24
+ });
25
+ //#endregion
26
+ export { pdfCoPdfFromEmail };
27
+
28
+ //# sourceMappingURL=pdf-from-email.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-email.mjs","names":[],"sources":["../../src/actions/pdf-from-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFromEmailInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Direct URL to the input EML or MSG file. Must be a publicly reachable URL; local file paths and raw content strings are not accepted.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n profiles: z.string().describe(\"Advanced configuration as a JSON-formatted string (must be a string, not an object). Only profile keys documented by PDF.co for the email-to-PDF endpoint are accepted; unsupported keys return a 444 'Profiles parsing error'. See samples at https://docs.pdf.co/api-reference/profiles. Leave unset unless you have a valid profile.\").optional(),\n async_job: z.boolean().default(false).describe(\"Run processing asynchronously; if true, returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for converting email files (.eml/.msg) to PDF.\");\nexport const PdfCoPdfFromEmailOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the generated PDF file.\").nullable().optional(),\n name: z.string().describe(\"Name of the output file.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\"),\n jobId: z.string().describe(\"Job ID for async execution when async=true.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\n message: z.string().describe(\"Error or status message.\").nullable().optional(),\n errorCode: z.number().int().describe(\"Error code if an error occurred.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the generated PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Credits available after request.\").nullable().optional(),\n}).passthrough().describe(\"Response model for email-to-PDF conversion.\");\n\nexport const pdfCoPdfFromEmail = action(\"PDF_CO_PDF_FROM_EMAIL\", {\n slug: \"pdf_co-pdf-from-email\",\n name: \"Convert Email to PDF\",\n description: \"Tool to convert email files (.eml/.msg) to PDF. Use when you need to transform standalone email messages into PDF documents.\",\n input: PdfCoPdfFromEmailInput,\n output: PdfCoPdfFromEmailOutput,\n});\n"],"mappings":";;AAsBA,MAAa,oBAAoB,OAAO,yBAAyB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBkD,EAAE,OAAO;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;EAChK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yUAAyU,CAAC,CAAC,SAAS;EAClX,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,8DAiBH;CACP,QAjBmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,QAAQ,EAAE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