@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,40 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-from-html.ts
4
+ const PdfCoPdfFromHtmlInput = zod.z.object({
5
+ url: zod.z.string().describe("The HTML page or resource URL to convert into PDF. Must be a reachable HTTP(S) URL; raw HTML strings and local file paths are not accepted. Upload local HTML files first to obtain a URL."),
6
+ name: zod.z.string().describe("Desired output filename for the PDF result.").optional(),
7
+ async: zod.z.boolean().describe("Run conversion as background job; returns jobId when true.").optional(),
8
+ footer: zod.z.string().describe("HTML snippet for page footers applied to each page.").optional(),
9
+ header: zod.z.string().describe("HTML snippet for page headers applied to each page.").optional(),
10
+ margins: zod.z.string().describe("Custom page margins in '{top} {right} {bottom} {left}' format (units: px, mm, cm, in).").optional(),
11
+ callback: zod.z.string().describe("Webhook URL to receive asynchronous results when async=true.").optional(),
12
+ profiles: zod.z.string().describe("Advanced conversion profiles/settings as JSON string.").optional(),
13
+ mediaType: zod.z.string().describe("CSS media type: 'print', 'screen', or 'none'.").optional(),
14
+ paperSize: zod.z.string().describe("Paper size: standard like 'Letter', 'Legal', 'A4'–'A6', or custom '200px 300px', '8in 10in'.").optional(),
15
+ expiration: zod.z.number().int().describe("Expiration time in minutes for the output file link.").optional(),
16
+ orientation: zod.z.string().describe("Document orientation: 'Portrait' or 'Landscape'.").optional(),
17
+ printBackground: zod.z.boolean().describe("Include background graphics (colors/images) if true.").optional(),
18
+ DoNotWaitFullLoad: zod.z.boolean().describe("If true, speeds up conversion by not waiting for full page load.").optional()
19
+ }).describe("Request model for converting HTML or URL to PDF.");
20
+ const PdfCoPdfFromHtmlOutput = zod.z.object({
21
+ url: zod.z.string().describe("Link to the generated PDF file.").nullable().optional(),
22
+ name: zod.z.string().describe("Output filename of the generated PDF.").nullable().optional(),
23
+ error: zod.z.boolean().describe("True if an error occurred."),
24
+ jobId: zod.z.string().describe("Asynchronous job ID if async=true.").nullable().optional(),
25
+ status: zod.z.string().describe("Processing status of the request.").nullable().optional(),
26
+ credits: zod.z.number().int().describe("Number of credits consumed for this operation.").nullable().optional(),
27
+ message: zod.z.string().describe("Error or informational message.").nullable().optional(),
28
+ remainingCredits: zod.z.number().int().describe("Remaining account credit balance.").nullable().optional()
29
+ }).describe("Response model for converting HTML or URL to PDF.");
30
+ const pdfCoPdfFromHtml = require_action.action("PDF_CO_PDF_FROM_HTML", {
31
+ slug: "pdf_co-pdf-from-html",
32
+ name: "Convert HTML to PDF",
33
+ description: "Tool to convert HTML code or webpage URL into a PDF document. Use when you need to capture a webpage or HTML snippet as a PDF file.",
34
+ input: PdfCoPdfFromHtmlInput,
35
+ output: PdfCoPdfFromHtmlOutput
36
+ });
37
+ //#endregion
38
+ exports.pdfCoPdfFromHtml = pdfCoPdfFromHtml;
39
+
40
+ //# sourceMappingURL=pdf-from-html.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-html.cjs","names":["z","action"],"sources":["../../src/actions/pdf-from-html.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFromHtmlInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The HTML page or resource URL to convert into PDF. Must be a reachable HTTP(S) URL; raw HTML strings and local file paths are not accepted. Upload local HTML files first to obtain a URL.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run conversion as background job; returns jobId when true.\").optional(),\n footer: z.string().describe(\"HTML snippet for page footers applied to each page.\").optional(),\n header: z.string().describe(\"HTML snippet for page headers applied to each page.\").optional(),\n margins: z.string().describe(\"Custom page margins in '{top} {right} {bottom} {left}' format (units: px, mm, cm, in).\").optional(),\n callback: z.string().describe(\"Webhook URL to receive asynchronous results when async=true.\").optional(),\n profiles: z.string().describe(\"Advanced conversion profiles/settings as JSON string.\").optional(),\n mediaType: z.string().describe(\"CSS media type: 'print', 'screen', or 'none'.\").optional(),\n paperSize: z.string().describe(\"Paper size: standard like 'Letter', 'Legal', 'A4'–'A6', or custom '200px 300px', '8in 10in'.\").optional(),\n expiration: z.number().int().describe(\"Expiration time in minutes for the output file link.\").optional(),\n orientation: z.string().describe(\"Document orientation: 'Portrait' or 'Landscape'.\").optional(),\n printBackground: z.boolean().describe(\"Include background graphics (colors/images) if true.\").optional(),\n DoNotWaitFullLoad: z.boolean().describe(\"If true, speeds up conversion by not waiting for full page load.\").optional(),\n}).describe(\"Request model for converting HTML or URL to PDF.\");\nexport const PdfCoPdfFromHtmlOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the generated PDF file.\").nullable().optional(),\n name: z.string().describe(\"Output filename of the generated PDF.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\"),\n jobId: z.string().describe(\"Asynchronous job ID if async=true.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the request.\").nullable().optional(),\n credits: z.number().int().describe(\"Number of credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or informational message.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credit balance.\").nullable().optional(),\n}).describe(\"Response model for converting HTML or URL to PDF.\");\n\nexport const pdfCoPdfFromHtml = action(\"PDF_CO_PDF_FROM_HTML\", {\n slug: \"pdf_co-pdf-from-html\",\n name: \"Convert HTML to PDF\",\n description: \"Tool to convert HTML code or webpage URL into a PDF document. Use when you need to capture a webpage or HTML snippet as a PDF file.\",\n input: PdfCoPdfFromHtmlInput,\n output: PdfCoPdfFromHtmlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4LAA4L;CACrN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAChI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvG,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,mBAAmBC,eAAAA,OAAO,wBAAwB;CAC7D,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-html.d.ts
4
+ declare const PdfCoPdfFromHtmlInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFromHtmlOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFromHtml: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFromHtml };
9
+ //# sourceMappingURL=pdf-from-html.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-html.d.cts","names":[],"sources":["../../src/actions/pdf-from-html.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAeyB;AAAA,cAClD,sBAAA,EAAwB,CAAA,CAAE,UASyB;AAAA,cAEnD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-from-html.d.ts
4
+ declare const PdfCoPdfFromHtmlInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfFromHtmlOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfFromHtml: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfFromHtml };
9
+ //# sourceMappingURL=pdf-from-html.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-html.d.mts","names":[],"sources":["../../src/actions/pdf-from-html.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAeyB;AAAA,cAClD,sBAAA,EAAwB,CAAA,CAAE,UASyB;AAAA,cAEnD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pdfCoPdfFromHtml = action("PDF_CO_PDF_FROM_HTML", {
4
+ slug: "pdf_co-pdf-from-html",
5
+ name: "Convert HTML to PDF",
6
+ description: "Tool to convert HTML code or webpage URL into a PDF document. Use when you need to capture a webpage or HTML snippet as a PDF file.",
7
+ input: z.object({
8
+ url: z.string().describe("The HTML page or resource URL to convert into PDF. Must be a reachable HTTP(S) URL; raw HTML strings and local file paths are not accepted. Upload local HTML files first to obtain a URL."),
9
+ name: z.string().describe("Desired output filename for the PDF result.").optional(),
10
+ async: z.boolean().describe("Run conversion as background job; returns jobId when true.").optional(),
11
+ footer: z.string().describe("HTML snippet for page footers applied to each page.").optional(),
12
+ header: z.string().describe("HTML snippet for page headers applied to each page.").optional(),
13
+ margins: z.string().describe("Custom page margins in '{top} {right} {bottom} {left}' format (units: px, mm, cm, in).").optional(),
14
+ callback: z.string().describe("Webhook URL to receive asynchronous results when async=true.").optional(),
15
+ profiles: z.string().describe("Advanced conversion profiles/settings as JSON string.").optional(),
16
+ mediaType: z.string().describe("CSS media type: 'print', 'screen', or 'none'.").optional(),
17
+ paperSize: z.string().describe("Paper size: standard like 'Letter', 'Legal', 'A4'–'A6', or custom '200px 300px', '8in 10in'.").optional(),
18
+ expiration: z.number().int().describe("Expiration time in minutes for the output file link.").optional(),
19
+ orientation: z.string().describe("Document orientation: 'Portrait' or 'Landscape'.").optional(),
20
+ printBackground: z.boolean().describe("Include background graphics (colors/images) if true.").optional(),
21
+ DoNotWaitFullLoad: z.boolean().describe("If true, speeds up conversion by not waiting for full page load.").optional()
22
+ }).describe("Request model for converting HTML or URL to PDF."),
23
+ output: z.object({
24
+ url: z.string().describe("Link to the generated PDF file.").nullable().optional(),
25
+ name: z.string().describe("Output filename of the generated PDF.").nullable().optional(),
26
+ error: z.boolean().describe("True if an error occurred."),
27
+ jobId: z.string().describe("Asynchronous job ID if async=true.").nullable().optional(),
28
+ status: z.string().describe("Processing status of the request.").nullable().optional(),
29
+ credits: z.number().int().describe("Number of credits consumed for this operation.").nullable().optional(),
30
+ message: z.string().describe("Error or informational message.").nullable().optional(),
31
+ remainingCredits: z.number().int().describe("Remaining account credit balance.").nullable().optional()
32
+ }).describe("Response model for converting HTML or URL to PDF.")
33
+ });
34
+ //#endregion
35
+ export { pdfCoPdfFromHtml };
36
+
37
+ //# sourceMappingURL=pdf-from-html.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-from-html.mjs","names":[],"sources":["../../src/actions/pdf-from-html.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFromHtmlInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The HTML page or resource URL to convert into PDF. Must be a reachable HTTP(S) URL; raw HTML strings and local file paths are not accepted. Upload local HTML files first to obtain a URL.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run conversion as background job; returns jobId when true.\").optional(),\n footer: z.string().describe(\"HTML snippet for page footers applied to each page.\").optional(),\n header: z.string().describe(\"HTML snippet for page headers applied to each page.\").optional(),\n margins: z.string().describe(\"Custom page margins in '{top} {right} {bottom} {left}' format (units: px, mm, cm, in).\").optional(),\n callback: z.string().describe(\"Webhook URL to receive asynchronous results when async=true.\").optional(),\n profiles: z.string().describe(\"Advanced conversion profiles/settings as JSON string.\").optional(),\n mediaType: z.string().describe(\"CSS media type: 'print', 'screen', or 'none'.\").optional(),\n paperSize: z.string().describe(\"Paper size: standard like 'Letter', 'Legal', 'A4'–'A6', or custom '200px 300px', '8in 10in'.\").optional(),\n expiration: z.number().int().describe(\"Expiration time in minutes for the output file link.\").optional(),\n orientation: z.string().describe(\"Document orientation: 'Portrait' or 'Landscape'.\").optional(),\n printBackground: z.boolean().describe(\"Include background graphics (colors/images) if true.\").optional(),\n DoNotWaitFullLoad: z.boolean().describe(\"If true, speeds up conversion by not waiting for full page load.\").optional(),\n}).describe(\"Request model for converting HTML or URL to PDF.\");\nexport const PdfCoPdfFromHtmlOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the generated PDF file.\").nullable().optional(),\n name: z.string().describe(\"Output filename of the generated PDF.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\"),\n jobId: z.string().describe(\"Asynchronous job ID if async=true.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the request.\").nullable().optional(),\n credits: z.number().int().describe(\"Number of credits consumed for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or informational message.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credit balance.\").nullable().optional(),\n}).describe(\"Response model for converting HTML or URL to PDF.\");\n\nexport const pdfCoPdfFromHtml = action(\"PDF_CO_PDF_FROM_HTML\", {\n slug: \"pdf_co-pdf-from-html\",\n name: \"Convert HTML to PDF\",\n description: \"Tool to convert HTML code or webpage URL into a PDF document. Use when you need to capture a webpage or HTML snippet as a PDF file.\",\n input: PdfCoPdfFromHtmlInput,\n output: PdfCoPdfFromHtmlOutput,\n});\n"],"mappings":";;AA+BA,MAAa,mBAAmB,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BiD,EAAE,OAAO;EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4LAA4L;EACrN,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EAChI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACvG,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,SAAS,kDAgBH;CACP,QAhBkD,EAAE,OAAO;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-info-reader.ts
4
+ const PdfCoPdfInfoReaderInput = zod.z.object({ url: zod.z.string().describe("URL to the source PDF file") }).describe("Request model for retrieving detailed information and metadata of a PDF document.");
5
+ const PdfCoPdfInfoReaderOutput = zod.z.object({
6
+ info: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Extracted metadata and security permissions of the PDF"),
7
+ error: zod.z.boolean().describe("Indicates if an error occurred"),
8
+ status: zod.z.number().int().describe("HTTP status code returned by the API"),
9
+ remainingCredits: zod.z.number().int().describe("Remaining API credits for the account")
10
+ }).describe("Response model for PDF Info Reader.");
11
+ const pdfCoPdfInfoReader = require_action.action("PDF_CO_PDF_INFO_READER", {
12
+ slug: "pdf_co-pdf-info-reader",
13
+ name: "PDF Info Reader",
14
+ description: "Tool to retrieve detailed information and metadata of a PDF. Use when you need page count, author, encryption details, and other document properties.",
15
+ input: PdfCoPdfInfoReaderInput,
16
+ output: PdfCoPdfInfoReaderOutput
17
+ });
18
+ //#endregion
19
+ exports.pdfCoPdfInfoReader = pdfCoPdfInfoReader;
20
+
21
+ //# sourceMappingURL=pdf-info-reader.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-info-reader.cjs","names":["z","action"],"sources":["../../src/actions/pdf-info-reader.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfInfoReaderInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the source PDF file\"),\n}).describe(\"Request model for retrieving detailed information and metadata of a PDF document.\");\nexport const PdfCoPdfInfoReaderOutput: z.ZodTypeAny = z.object({\n info: z.record(z.string(), z.unknown()).describe(\"Extracted metadata and security permissions of the PDF\"),\n error: z.boolean().describe(\"Indicates if an error occurred\"),\n status: z.number().int().describe(\"HTTP status code returned by the API\"),\n remainingCredits: z.number().int().describe(\"Remaining API credits for the account\"),\n}).describe(\"Response model for PDF Info Reader.\");\n\nexport const pdfCoPdfInfoReader = action(\"PDF_CO_PDF_INFO_READER\", {\n slug: \"pdf_co-pdf-info-reader\",\n name: \"PDF Info Reader\",\n description: \"Tool to retrieve detailed information and metadata of a PDF. Use when you need page count, author, encryption details, and other document properties.\",\n input: PdfCoPdfInfoReaderInput,\n output: PdfCoPdfInfoReaderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACvD,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD;CACzG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACxE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;AACrF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,qBAAqBC,eAAAA,OAAO,0BAA0B;CACjE,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-info-reader.d.ts
4
+ declare const PdfCoPdfInfoReaderInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfInfoReaderOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfInfoReader: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfInfoReader };
9
+ //# sourceMappingURL=pdf-info-reader.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-info-reader.d.cts","names":[],"sources":["../../src/actions/pdf-info-reader.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEwD;AAAA,cACnF,wBAAA,EAA0B,CAAA,CAAE,UAKS;AAAA,cAErC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-info-reader.d.ts
4
+ declare const PdfCoPdfInfoReaderInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfInfoReaderOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfInfoReader: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfInfoReader };
9
+ //# sourceMappingURL=pdf-info-reader.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-info-reader.d.mts","names":[],"sources":["../../src/actions/pdf-info-reader.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEwD;AAAA,cACnF,wBAAA,EAA0B,CAAA,CAAE,UAKS;AAAA,cAErC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,18 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pdfCoPdfInfoReader = action("PDF_CO_PDF_INFO_READER", {
4
+ slug: "pdf_co-pdf-info-reader",
5
+ name: "PDF Info Reader",
6
+ description: "Tool to retrieve detailed information and metadata of a PDF. Use when you need page count, author, encryption details, and other document properties.",
7
+ input: z.object({ url: z.string().describe("URL to the source PDF file") }).describe("Request model for retrieving detailed information and metadata of a PDF document."),
8
+ output: z.object({
9
+ info: z.record(z.string(), z.unknown()).describe("Extracted metadata and security permissions of the PDF"),
10
+ error: z.boolean().describe("Indicates if an error occurred"),
11
+ status: z.number().int().describe("HTTP status code returned by the API"),
12
+ remainingCredits: z.number().int().describe("Remaining API credits for the account")
13
+ }).describe("Response model for PDF Info Reader.")
14
+ });
15
+ //#endregion
16
+ export { pdfCoPdfInfoReader };
17
+
18
+ //# sourceMappingURL=pdf-info-reader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-info-reader.mjs","names":[],"sources":["../../src/actions/pdf-info-reader.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfInfoReaderInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the source PDF file\"),\n}).describe(\"Request model for retrieving detailed information and metadata of a PDF document.\");\nexport const PdfCoPdfInfoReaderOutput: z.ZodTypeAny = z.object({\n info: z.record(z.string(), z.unknown()).describe(\"Extracted metadata and security permissions of the PDF\"),\n error: z.boolean().describe(\"Indicates if an error occurred\"),\n status: z.number().int().describe(\"HTTP status code returned by the API\"),\n remainingCredits: z.number().int().describe(\"Remaining API credits for the account\"),\n}).describe(\"Response model for PDF Info Reader.\");\n\nexport const pdfCoPdfInfoReader = action(\"PDF_CO_PDF_INFO_READER\", {\n slug: \"pdf_co-pdf-info-reader\",\n name: \"PDF Info Reader\",\n description: \"Tool to retrieve detailed information and metadata of a PDF. Use when you need page count, author, encryption details, and other document properties.\",\n input: PdfCoPdfInfoReaderInput,\n output: PdfCoPdfInfoReaderOutput,\n});\n"],"mappings":";;AAcA,MAAa,qBAAqB,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdmD,EAAE,OAAO,EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACvD,CAAC,CAAC,CAAC,SAAS,mFAYH;CACP,QAZoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD;EACzG,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EACxE,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACrF,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
@@ -0,0 +1,27 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-merge.ts
4
+ const PdfCoPdfMergeInput = zod.z.object({
5
+ name: zod.z.string().describe("Optional name for the resulting PDF file (must end with .pdf)").optional(),
6
+ urls: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]),
7
+ profiles: zod.z.string().describe("(Advanced) Custom JSON profiles for processing.").optional(),
8
+ run_async: zod.z.boolean().describe("Run the merge asynchronously; if true returns a jobId for status checking.").optional()
9
+ }).describe("Request model for merging multiple PDF files into one document.");
10
+ const PdfCoPdfMergeOutput = zod.z.object({
11
+ url: zod.z.string().describe("URL to the resulting merged PDF file").nullable().optional(),
12
+ error: zod.z.boolean().describe("True if an error occurred"),
13
+ jobId: zod.z.string().describe("Job ID when running in asynchronous mode").nullable().optional(),
14
+ status: zod.z.number().int().describe("HTTP status code returned by the API"),
15
+ message: zod.z.string().describe("Error or informational message from the API").nullable().optional()
16
+ }).describe("Response model for PDF merge action.");
17
+ const pdfCoPdfMerge = require_action.action("PDF_CO_PDF_MERGE", {
18
+ slug: "pdf_co-pdf-merge",
19
+ name: "Merge PDFs",
20
+ description: "Tool to merge multiple PDF files into one document. Use when you need to combine several PDF URLs into a single PDF file.",
21
+ input: PdfCoPdfMergeInput,
22
+ output: PdfCoPdfMergeOutput
23
+ });
24
+ //#endregion
25
+ exports.pdfCoPdfMerge = pdfCoPdfMerge;
26
+
27
+ //# sourceMappingURL=pdf-merge.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-merge.cjs","names":["z","action"],"sources":["../../src/actions/pdf-merge.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfMergeInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Optional name for the resulting PDF file (must end with .pdf)\").optional(),\n urls: z.union([z.string(), z.array(z.string())]),\n profiles: z.string().describe(\"(Advanced) Custom JSON profiles for processing.\").optional(),\n run_async: z.boolean().describe(\"Run the merge asynchronously; if true returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for merging multiple PDF files into one document.\");\nexport const PdfCoPdfMergeOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the resulting merged PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\"),\n jobId: z.string().describe(\"Job ID when running in asynchronous mode\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code returned by the API\"),\n message: z.string().describe(\"Error or informational message from the API\").nullable().optional(),\n}).describe(\"Response model for PDF merge action.\");\n\nexport const pdfCoPdfMerge = action(\"PDF_CO_PDF_MERGE\", {\n slug: \"pdf_co-pdf-merge\",\n name: \"Merge PDFs\",\n description: \"Tool to merge multiple PDF files into one document. Use when you need to combine several PDF URLs into a single PDF file.\",\n input: PdfCoPdfMergeInput,\n output: PdfCoPdfMergeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,gBAAgBC,eAAAA,OAAO,oBAAoB;CACtD,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-merge.d.ts
4
+ declare const PdfCoPdfMergeInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfMergeOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfMerge: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfMerge };
9
+ //# sourceMappingURL=pdf-merge.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-merge.d.cts","names":[],"sources":["../../src/actions/pdf-merge.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAK2C;AAAA,cACjE,mBAAA,EAAqB,CAAA,CAAE,UAMe;AAAA,cAEtC,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-merge.d.ts
4
+ declare const PdfCoPdfMergeInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfMergeOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfMerge: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfMerge };
9
+ //# sourceMappingURL=pdf-merge.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-merge.d.mts","names":[],"sources":["../../src/actions/pdf-merge.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAK2C;AAAA,cACjE,mBAAA,EAAqB,CAAA,CAAE,UAMe;AAAA,cAEtC,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,24 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pdfCoPdfMerge = action("PDF_CO_PDF_MERGE", {
4
+ slug: "pdf_co-pdf-merge",
5
+ name: "Merge PDFs",
6
+ description: "Tool to merge multiple PDF files into one document. Use when you need to combine several PDF URLs into a single PDF file.",
7
+ input: z.object({
8
+ name: z.string().describe("Optional name for the resulting PDF file (must end with .pdf)").optional(),
9
+ urls: z.union([z.string(), z.array(z.string())]),
10
+ profiles: z.string().describe("(Advanced) Custom JSON profiles for processing.").optional(),
11
+ run_async: z.boolean().describe("Run the merge asynchronously; if true returns a jobId for status checking.").optional()
12
+ }).describe("Request model for merging multiple PDF files into one document."),
13
+ output: z.object({
14
+ url: z.string().describe("URL to the resulting merged PDF file").nullable().optional(),
15
+ error: z.boolean().describe("True if an error occurred"),
16
+ jobId: z.string().describe("Job ID when running in asynchronous mode").nullable().optional(),
17
+ status: z.number().int().describe("HTTP status code returned by the API"),
18
+ message: z.string().describe("Error or informational message from the API").nullable().optional()
19
+ }).describe("Response model for PDF merge action.")
20
+ });
21
+ //#endregion
22
+ export { pdfCoPdfMerge };
23
+
24
+ //# sourceMappingURL=pdf-merge.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-merge.mjs","names":[],"sources":["../../src/actions/pdf-merge.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfMergeInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Optional name for the resulting PDF file (must end with .pdf)\").optional(),\n urls: z.union([z.string(), z.array(z.string())]),\n profiles: z.string().describe(\"(Advanced) Custom JSON profiles for processing.\").optional(),\n run_async: z.boolean().describe(\"Run the merge asynchronously; if true returns a jobId for status checking.\").optional(),\n}).describe(\"Request model for merging multiple PDF files into one document.\");\nexport const PdfCoPdfMergeOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the resulting merged PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\"),\n jobId: z.string().describe(\"Job ID when running in asynchronous mode\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code returned by the API\"),\n message: z.string().describe(\"Error or informational message from the API\").nullable().optional(),\n}).describe(\"Response model for PDF merge action.\");\n\nexport const pdfCoPdfMerge = action(\"PDF_CO_PDF_MERGE\", {\n slug: \"pdf_co-pdf-merge\",\n name: \"Merge PDFs\",\n description: \"Tool to merge multiple PDF files into one document. Use when you need to combine several PDF URLs into a single PDF file.\",\n input: PdfCoPdfMergeInput,\n output: PdfCoPdfMergeOutput,\n});\n"],"mappings":";;AAkBA,MAAa,gBAAgB,OAAO,oBAAoB;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,iEAaH;CACP,QAb+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -0,0 +1,33 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-rotate.ts
4
+ const PdfCoPdfRotateInput = zod.z.object({
5
+ url: zod.z.string().describe("URL of the source PDF file to rotate"),
6
+ name: zod.z.string().describe("Optional filename for the resulting PDF (should end with .pdf)").optional(),
7
+ angle: zod.z.union([
8
+ zod.z.literal(90),
9
+ zod.z.literal(180),
10
+ zod.z.literal(270)
11
+ ]).describe("Rotation angle in degrees; must be one of 90, 180, or 270"),
12
+ pages: zod.z.string().describe("Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')"),
13
+ password: zod.z.string().describe("Password for encrypted PDFs, if required").optional(),
14
+ run_async: zod.z.boolean().describe("Run the operation asynchronously; if true, returns a jobId for status checking").optional()
15
+ }).describe("Request model for rotating pages in a PDF document.");
16
+ const PdfCoPdfRotateOutput = zod.z.object({
17
+ url: zod.z.string().describe("URL to the resulting rotated PDF file").nullable().optional(),
18
+ error: zod.z.boolean().describe("True if an error occurred"),
19
+ status: zod.z.number().int().describe("HTTP status code returned by the API"),
20
+ message: zod.z.string().describe("Success or error message from the API").nullable().optional(),
21
+ remaining_credits: zod.z.number().int().describe("Number of remaining API credits after the call").nullable().optional()
22
+ }).describe("Response model for PDFRotate action.");
23
+ const pdfCoPdfRotate = require_action.action("PDF_CO_PDF_ROTATE", {
24
+ slug: "pdf_co-pdf-rotate",
25
+ name: "Rotate PDF Pages",
26
+ description: "Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.",
27
+ input: PdfCoPdfRotateInput,
28
+ output: PdfCoPdfRotateOutput
29
+ });
30
+ //#endregion
31
+ exports.pdfCoPdfRotate = pdfCoPdfRotate;
32
+
33
+ //# sourceMappingURL=pdf-rotate.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-rotate.cjs","names":["z","action"],"sources":["../../src/actions/pdf-rotate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfRotateInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the source PDF file to rotate\"),\n name: z.string().describe(\"Optional filename for the resulting PDF (should end with .pdf)\").optional(),\n angle: z.union([z.literal(90), z.literal(180), z.literal(270)]).describe(\"Rotation angle in degrees; must be one of 90, 180, or 270\"),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')\"),\n password: z.string().describe(\"Password for encrypted PDFs, if required\").optional(),\n run_async: z.boolean().describe(\"Run the operation asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for rotating pages in a PDF document.\");\nexport const PdfCoPdfRotateOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the resulting rotated PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\"),\n status: z.number().int().describe(\"HTTP status code returned by the API\"),\n message: z.string().describe(\"Success or error message from the API\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of remaining API credits after the call\").nullable().optional(),\n}).describe(\"Response model for PDFRotate action.\");\n\nexport const pdfCoPdfRotate = action(\"PDF_CO_PDF_ROTATE\", {\n slug: \"pdf_co-pdf-rotate\",\n name: \"Rotate PDF Pages\",\n description: \"Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.\",\n input: PdfCoPdfRotateInput,\n output: PdfCoPdfRotateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,EAAE;EAAGA,IAAAA,EAAE,QAAQ,GAAG;EAAGA,IAAAA,EAAE,QAAQ,GAAG;CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;CACpI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACrG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,iBAAiBC,eAAAA,OAAO,qBAAqB;CACxD,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-rotate.d.ts
4
+ declare const PdfCoPdfRotateInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfRotateOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfRotate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfRotate };
9
+ //# sourceMappingURL=pdf-rotate.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-rotate.d.cts","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAO8B;AAAA,cACrD,oBAAA,EAAsB,CAAA,CAAE,UAMc;AAAA,cAEtC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-rotate.d.ts
4
+ declare const PdfCoPdfRotateInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfRotateOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfRotate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfRotate };
9
+ //# sourceMappingURL=pdf-rotate.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-rotate.d.mts","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAO8B;AAAA,cACrD,oBAAA,EAAsB,CAAA,CAAE,UAMc;AAAA,cAEtC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pdfCoPdfRotate = action("PDF_CO_PDF_ROTATE", {
4
+ slug: "pdf_co-pdf-rotate",
5
+ name: "Rotate PDF Pages",
6
+ description: "Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.",
7
+ input: z.object({
8
+ url: z.string().describe("URL of the source PDF file to rotate"),
9
+ name: z.string().describe("Optional filename for the resulting PDF (should end with .pdf)").optional(),
10
+ angle: z.union([
11
+ z.literal(90),
12
+ z.literal(180),
13
+ z.literal(270)
14
+ ]).describe("Rotation angle in degrees; must be one of 90, 180, or 270"),
15
+ pages: z.string().describe("Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')"),
16
+ password: z.string().describe("Password for encrypted PDFs, if required").optional(),
17
+ run_async: z.boolean().describe("Run the operation asynchronously; if true, returns a jobId for status checking").optional()
18
+ }).describe("Request model for rotating pages in a PDF document."),
19
+ output: z.object({
20
+ url: z.string().describe("URL to the resulting rotated PDF file").nullable().optional(),
21
+ error: z.boolean().describe("True if an error occurred"),
22
+ status: z.number().int().describe("HTTP status code returned by the API"),
23
+ message: z.string().describe("Success or error message from the API").nullable().optional(),
24
+ remaining_credits: z.number().int().describe("Number of remaining API credits after the call").nullable().optional()
25
+ }).describe("Response model for PDFRotate action.")
26
+ });
27
+ //#endregion
28
+ export { pdfCoPdfRotate };
29
+
30
+ //# sourceMappingURL=pdf-rotate.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-rotate.mjs","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfRotateInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the source PDF file to rotate\"),\n name: z.string().describe(\"Optional filename for the resulting PDF (should end with .pdf)\").optional(),\n angle: z.union([z.literal(90), z.literal(180), z.literal(270)]).describe(\"Rotation angle in degrees; must be one of 90, 180, or 270\"),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')\"),\n password: z.string().describe(\"Password for encrypted PDFs, if required\").optional(),\n run_async: z.boolean().describe(\"Run the operation asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for rotating pages in a PDF document.\");\nexport const PdfCoPdfRotateOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the resulting rotated PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\"),\n status: z.number().int().describe(\"HTTP status code returned by the API\"),\n message: z.string().describe(\"Success or error message from the API\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of remaining API credits after the call\").nullable().optional(),\n}).describe(\"Response model for PDFRotate action.\");\n\nexport const pdfCoPdfRotate = action(\"PDF_CO_PDF_ROTATE\", {\n slug: \"pdf_co-pdf-rotate\",\n name: \"Rotate PDF Pages\",\n description: \"Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.\",\n input: PdfCoPdfRotateInput,\n output: PdfCoPdfRotateOutput,\n});\n"],"mappings":";;AAoBA,MAAa,iBAAiB,OAAO,qBAAqB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,MAAM;GAAC,EAAE,QAAQ,EAAE;GAAG,EAAE,QAAQ,GAAG;GAAG,EAAE,QAAQ,GAAG;EAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;EACpI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,qDAaH;CACP,QAbgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -0,0 +1,34 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-search-and-delete-text.ts
4
+ const PdfCoPdfSearchAndDeleteTextInput = zod.z.object({
5
+ url: zod.z.string().describe("URL or base64 content of the source PDF file."),
6
+ name: zod.z.string().describe("Desired output filename for the PDF result.").optional(),
7
+ async: zod.z.boolean().describe("Run operation asynchronously. Returns jobId if true.").optional(),
8
+ pages: zod.z.string().describe("Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.").optional(),
9
+ regex: zod.z.boolean().describe("Treat searchString as regular expression.").optional(),
10
+ password: zod.z.string().describe("Password for protected PDF if required.").optional(),
11
+ searchString: zod.z.string().describe("Text string or regex pattern to search and delete."),
12
+ caseSensitive: zod.z.boolean().describe("Enable case-sensitive matching. Default is true.").optional()
13
+ }).describe("Request model for searching and deleting text in a PDF via PDF.co API.");
14
+ const PdfCoPdfSearchAndDeleteTextOutput = zod.z.object({
15
+ url: zod.z.string().describe("URL to the resulting PDF file after text deletion."),
16
+ name: zod.z.string().describe("Output filename.").nullable().optional(),
17
+ error: zod.z.boolean().describe("True if an error occurred during the operation."),
18
+ status: zod.z.number().int().describe("Status code of the operation."),
19
+ credits: zod.z.number().int().describe("Credits consumed for this operation.").nullable().optional(),
20
+ duration: zod.z.number().int().describe("Processing duration in milliseconds.").nullable().optional(),
21
+ pageCount: zod.z.number().int().describe("Number of pages in the output PDF."),
22
+ remainingCredits: zod.z.number().int().describe("Remaining API credits after the request.")
23
+ }).describe("Response model for searching and deleting text in a PDF.");
24
+ const pdfCoPdfSearchAndDeleteText = require_action.action("PDF_CO_PDF_SEARCH_AND_DELETE_TEXT", {
25
+ slug: "pdf_co-pdf-search-and-delete-text",
26
+ name: "Search and Delete Text in PDF",
27
+ description: "Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.",
28
+ input: PdfCoPdfSearchAndDeleteTextInput,
29
+ output: PdfCoPdfSearchAndDeleteTextOutput
30
+ });
31
+ //#endregion
32
+ exports.pdfCoPdfSearchAndDeleteText = pdfCoPdfSearchAndDeleteText;
33
+
34
+ //# sourceMappingURL=pdf-search-and-delete-text.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-search-and-delete-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSearchAndDeleteTextInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL or base64 content of the source PDF file.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run operation asynchronously. Returns jobId if true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.\").optional(),\n regex: z.boolean().describe(\"Treat searchString as regular expression.\").optional(),\n password: z.string().describe(\"Password for protected PDF if required.\").optional(),\n searchString: z.string().describe(\"Text string or regex pattern to search and delete.\"),\n caseSensitive: z.boolean().describe(\"Enable case-sensitive matching. Default is true.\").optional(),\n}).describe(\"Request model for searching and deleting text in a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndDeleteTextOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the resulting PDF file after text deletion.\"),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during the operation.\"),\n status: z.number().int().describe(\"Status code of the operation.\"),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF.\"),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the request.\"),\n}).describe(\"Response model for searching and deleting text in a PDF.\");\n\nexport const pdfCoPdfSearchAndDeleteText = action(\"PDF_CO_PDF_SEARCH_AND_DELETE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-delete-text\",\n name: \"Search and Delete Text in PDF\",\n description: \"Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.\",\n input: PdfCoPdfSearchAndDeleteTextInput,\n output: PdfCoPdfSearchAndDeleteTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACtF,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;AACxF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,8BAA8BC,eAAAA,OAAO,qCAAqC;CACrF,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-search-and-delete-text.d.ts
4
+ declare const PdfCoPdfSearchAndDeleteTextInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfSearchAndDeleteTextOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfSearchAndDeleteText: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfSearchAndDeleteText };
9
+ //# sourceMappingURL=pdf-search-and-delete-text.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-search-and-delete-text.d.cts","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UASoC;AAAA,cACxE,iCAAA,EAAmC,CAAA,CAAE,UASqB;AAAA,cAE1D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/pdf-search-and-delete-text.d.ts
4
+ declare const PdfCoPdfSearchAndDeleteTextInput: z.ZodTypeAny;
5
+ declare const PdfCoPdfSearchAndDeleteTextOutput: z.ZodTypeAny;
6
+ declare const pdfCoPdfSearchAndDeleteText: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pdfCoPdfSearchAndDeleteText };
9
+ //# sourceMappingURL=pdf-search-and-delete-text.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-search-and-delete-text.d.mts","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UASoC;AAAA,cACxE,iCAAA,EAAmC,CAAA,CAAE,UASqB;AAAA,cAE1D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,31 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pdfCoPdfSearchAndDeleteText = action("PDF_CO_PDF_SEARCH_AND_DELETE_TEXT", {
4
+ slug: "pdf_co-pdf-search-and-delete-text",
5
+ name: "Search and Delete Text in PDF",
6
+ description: "Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.",
7
+ input: z.object({
8
+ url: z.string().describe("URL or base64 content of the source PDF file."),
9
+ name: z.string().describe("Desired output filename for the PDF result.").optional(),
10
+ async: z.boolean().describe("Run operation asynchronously. Returns jobId if true.").optional(),
11
+ pages: z.string().describe("Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.").optional(),
12
+ regex: z.boolean().describe("Treat searchString as regular expression.").optional(),
13
+ password: z.string().describe("Password for protected PDF if required.").optional(),
14
+ searchString: z.string().describe("Text string or regex pattern to search and delete."),
15
+ caseSensitive: z.boolean().describe("Enable case-sensitive matching. Default is true.").optional()
16
+ }).describe("Request model for searching and deleting text in a PDF via PDF.co API."),
17
+ output: z.object({
18
+ url: z.string().describe("URL to the resulting PDF file after text deletion."),
19
+ name: z.string().describe("Output filename.").nullable().optional(),
20
+ error: z.boolean().describe("True if an error occurred during the operation."),
21
+ status: z.number().int().describe("Status code of the operation."),
22
+ credits: z.number().int().describe("Credits consumed for this operation.").nullable().optional(),
23
+ duration: z.number().int().describe("Processing duration in milliseconds.").nullable().optional(),
24
+ pageCount: z.number().int().describe("Number of pages in the output PDF."),
25
+ remainingCredits: z.number().int().describe("Remaining API credits after the request.")
26
+ }).describe("Response model for searching and deleting text in a PDF.")
27
+ });
28
+ //#endregion
29
+ export { pdfCoPdfSearchAndDeleteText };
30
+
31
+ //# sourceMappingURL=pdf-search-and-delete-text.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-search-and-delete-text.mjs","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSearchAndDeleteTextInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL or base64 content of the source PDF file.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run operation asynchronously. Returns jobId if true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.\").optional(),\n regex: z.boolean().describe(\"Treat searchString as regular expression.\").optional(),\n password: z.string().describe(\"Password for protected PDF if required.\").optional(),\n searchString: z.string().describe(\"Text string or regex pattern to search and delete.\"),\n caseSensitive: z.boolean().describe(\"Enable case-sensitive matching. Default is true.\").optional(),\n}).describe(\"Request model for searching and deleting text in a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndDeleteTextOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the resulting PDF file after text deletion.\"),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during the operation.\"),\n status: z.number().int().describe(\"Status code of the operation.\"),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF.\"),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the request.\"),\n}).describe(\"Response model for searching and deleting text in a PDF.\");\n\nexport const pdfCoPdfSearchAndDeleteText = action(\"PDF_CO_PDF_SEARCH_AND_DELETE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-delete-text\",\n name: \"Search and Delete Text in PDF\",\n description: \"Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.\",\n input: PdfCoPdfSearchAndDeleteTextInput,\n output: PdfCoPdfSearchAndDeleteTextOutput,\n});\n"],"mappings":";;AAyBA,MAAa,8BAA8B,OAAO,qCAAqC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB4D,EAAE,OAAO;EACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC3H,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACtF,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,wEAgBH;CACP,QAhB6D,EAAE,OAAO;EACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;EAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,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,oCAAoC;EACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACxF,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/pdf-search-and-replace-text.ts
4
+ const PdfCoPdfSearchAndReplaceTextInput = zod.z.object({
5
+ url: zod.z.string().describe("Publicly accessible URL of the source PDF file."),
6
+ name: zod.z.string().describe("Optional name for the resulting PDF file.").optional(),
7
+ async: zod.z.boolean().describe("Set to true to run process asynchronously (returns jobId).").optional(),
8
+ password: zod.z.string().describe("Password for protected PDF, if required.").optional(),
9
+ regexSearch: zod.z.boolean().describe("Enable regular expression search if true.").optional(),
10
+ searchString: zod.z.string().describe("Text to search for in the document."),
11
+ replaceString: zod.z.string().describe("Text to replace each found occurrence with.")
12
+ }).describe("Request model for searching and replacing text within a PDF via PDF.co API.");
13
+ const PdfCoPdfSearchAndReplaceTextOutput = zod.z.object({
14
+ url: zod.z.string().describe("URL of the modified PDF file.").nullable().optional(),
15
+ name: zod.z.string().describe("Name of the output file.").nullable().optional(),
16
+ error: zod.z.boolean().describe("Indicates whether an error occurred."),
17
+ jobId: zod.z.string().describe("Job ID for async operations.").nullable().optional(),
18
+ status: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
19
+ credits: zod.z.number().int().describe("Credits used for this operation.").nullable().optional(),
20
+ message: zod.z.string().describe("Error or status message.").nullable().optional(),
21
+ errorCode: zod.z.number().int().describe("Error code if any.").nullable().optional(),
22
+ pageCount: zod.z.number().int().describe("Number of pages in the PDF.").nullable().optional(),
23
+ remainingCredits: zod.z.number().int().describe("Remaining credits after operation.").nullable().optional()
24
+ }).passthrough().describe("Response model for PDF search and replace text operation.");
25
+ const pdfCoPdfSearchAndReplaceText = require_action.action("PDF_CO_PDF_SEARCH_AND_REPLACE_TEXT", {
26
+ slug: "pdf_co-pdf-search-and-replace-text",
27
+ name: "Search and Replace Text in PDF",
28
+ description: "Tool to search for and replace text in a PDF document. Use when you need to update specific text instances within an existing PDF file (e.g., changing invoice numbers).",
29
+ input: PdfCoPdfSearchAndReplaceTextInput,
30
+ output: PdfCoPdfSearchAndReplaceTextOutput
31
+ });
32
+ //#endregion
33
+ exports.pdfCoPdfSearchAndReplaceText = pdfCoPdfSearchAndReplaceText;
34
+
35
+ //# sourceMappingURL=pdf-search-and-replace-text.cjs.map