@keystrokehq/pdf_co 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/account-balance-info.cjs +1 -1
  4. package/dist/actions/account-balance-info.cjs.map +1 -1
  5. package/dist/actions/account-balance-info.d.cts +10 -3
  6. package/dist/actions/account-balance-info.d.cts.map +1 -1
  7. package/dist/actions/account-balance-info.d.mts +10 -3
  8. package/dist/actions/account-balance-info.d.mts.map +1 -1
  9. package/dist/actions/account-balance-info.mjs +1 -1
  10. package/dist/actions/account-balance-info.mjs.map +1 -1
  11. package/dist/actions/convert-excel-to-csv.cjs +1 -1
  12. package/dist/actions/convert-excel-to-csv.cjs.map +1 -1
  13. package/dist/actions/convert-excel-to-csv.d.cts +28 -3
  14. package/dist/actions/convert-excel-to-csv.d.cts.map +1 -1
  15. package/dist/actions/convert-excel-to-csv.d.mts +28 -3
  16. package/dist/actions/convert-excel-to-csv.d.mts.map +1 -1
  17. package/dist/actions/convert-excel-to-csv.mjs +1 -1
  18. package/dist/actions/convert-excel-to-csv.mjs.map +1 -1
  19. package/dist/actions/convert-excel-to-html.cjs +2 -2
  20. package/dist/actions/convert-excel-to-html.cjs.map +1 -1
  21. package/dist/actions/convert-excel-to-html.d.cts +21 -3
  22. package/dist/actions/convert-excel-to-html.d.cts.map +1 -1
  23. package/dist/actions/convert-excel-to-html.d.mts +21 -3
  24. package/dist/actions/convert-excel-to-html.d.mts.map +1 -1
  25. package/dist/actions/convert-excel-to-html.mjs +2 -2
  26. package/dist/actions/convert-excel-to-html.mjs.map +1 -1
  27. package/dist/actions/convert-excel-to-json.cjs +5 -5
  28. package/dist/actions/convert-excel-to-json.cjs.map +1 -1
  29. package/dist/actions/convert-excel-to-json.d.cts +20 -3
  30. package/dist/actions/convert-excel-to-json.d.cts.map +1 -1
  31. package/dist/actions/convert-excel-to-json.d.mts +20 -3
  32. package/dist/actions/convert-excel-to-json.d.mts.map +1 -1
  33. package/dist/actions/convert-excel-to-json.mjs +5 -5
  34. package/dist/actions/convert-excel-to-json.mjs.map +1 -1
  35. package/dist/actions/convert-excel-to-text.cjs +1 -1
  36. package/dist/actions/convert-excel-to-text.cjs.map +1 -1
  37. package/dist/actions/convert-excel-to-text.d.cts +27 -3
  38. package/dist/actions/convert-excel-to-text.d.cts.map +1 -1
  39. package/dist/actions/convert-excel-to-text.d.mts +27 -3
  40. package/dist/actions/convert-excel-to-text.d.mts.map +1 -1
  41. package/dist/actions/convert-excel-to-text.mjs +1 -1
  42. package/dist/actions/convert-excel-to-text.mjs.map +1 -1
  43. package/dist/actions/convert-excel-to-xml.cjs.map +1 -1
  44. package/dist/actions/convert-excel-to-xml.d.cts +56 -3
  45. package/dist/actions/convert-excel-to-xml.d.cts.map +1 -1
  46. package/dist/actions/convert-excel-to-xml.d.mts +56 -3
  47. package/dist/actions/convert-excel-to-xml.d.mts.map +1 -1
  48. package/dist/actions/convert-excel-to-xml.mjs.map +1 -1
  49. package/dist/actions/document-parser.cjs +3 -3
  50. package/dist/actions/document-parser.cjs.map +1 -1
  51. package/dist/actions/document-parser.d.cts +35 -3
  52. package/dist/actions/document-parser.d.cts.map +1 -1
  53. package/dist/actions/document-parser.d.mts +35 -3
  54. package/dist/actions/document-parser.d.mts.map +1 -1
  55. package/dist/actions/document-parser.mjs +3 -3
  56. package/dist/actions/document-parser.mjs.map +1 -1
  57. package/dist/actions/file-upload.cjs +5 -5
  58. package/dist/actions/file-upload.cjs.map +1 -1
  59. package/dist/actions/file-upload.d.cts +27 -3
  60. package/dist/actions/file-upload.d.cts.map +1 -1
  61. package/dist/actions/file-upload.d.mts +27 -3
  62. package/dist/actions/file-upload.d.mts.map +1 -1
  63. package/dist/actions/file-upload.mjs +5 -5
  64. package/dist/actions/file-upload.mjs.map +1 -1
  65. package/dist/actions/job-check.cjs +2 -2
  66. package/dist/actions/job-check.cjs.map +1 -1
  67. package/dist/actions/job-check.d.cts +28 -3
  68. package/dist/actions/job-check.d.cts.map +1 -1
  69. package/dist/actions/job-check.d.mts +28 -3
  70. package/dist/actions/job-check.d.mts.map +1 -1
  71. package/dist/actions/job-check.mjs +2 -2
  72. package/dist/actions/job-check.mjs.map +1 -1
  73. package/dist/actions/pdf-add.cjs +1 -1
  74. package/dist/actions/pdf-add.cjs.map +1 -1
  75. package/dist/actions/pdf-add.d.cts +27 -3
  76. package/dist/actions/pdf-add.d.cts.map +1 -1
  77. package/dist/actions/pdf-add.d.mts +27 -3
  78. package/dist/actions/pdf-add.d.mts.map +1 -1
  79. package/dist/actions/pdf-add.mjs +1 -1
  80. package/dist/actions/pdf-add.mjs.map +1 -1
  81. package/dist/actions/pdf-change-text-searchable.cjs +4 -4
  82. package/dist/actions/pdf-change-text-searchable.cjs.map +1 -1
  83. package/dist/actions/pdf-change-text-searchable.d.cts +25 -3
  84. package/dist/actions/pdf-change-text-searchable.d.cts.map +1 -1
  85. package/dist/actions/pdf-change-text-searchable.d.mts +25 -3
  86. package/dist/actions/pdf-change-text-searchable.d.mts.map +1 -1
  87. package/dist/actions/pdf-change-text-searchable.mjs +4 -4
  88. package/dist/actions/pdf-change-text-searchable.mjs.map +1 -1
  89. package/dist/actions/pdf-delete-pages.cjs +5 -5
  90. package/dist/actions/pdf-delete-pages.cjs.map +1 -1
  91. package/dist/actions/pdf-delete-pages.d.cts +23 -3
  92. package/dist/actions/pdf-delete-pages.d.cts.map +1 -1
  93. package/dist/actions/pdf-delete-pages.d.mts +23 -3
  94. package/dist/actions/pdf-delete-pages.d.mts.map +1 -1
  95. package/dist/actions/pdf-delete-pages.mjs +5 -5
  96. package/dist/actions/pdf-delete-pages.mjs.map +1 -1
  97. package/dist/actions/pdf-extract-attachments.cjs +3 -3
  98. package/dist/actions/pdf-extract-attachments.cjs.map +1 -1
  99. package/dist/actions/pdf-extract-attachments.d.cts +32 -3
  100. package/dist/actions/pdf-extract-attachments.d.cts.map +1 -1
  101. package/dist/actions/pdf-extract-attachments.d.mts +32 -3
  102. package/dist/actions/pdf-extract-attachments.d.mts.map +1 -1
  103. package/dist/actions/pdf-extract-attachments.mjs +3 -3
  104. package/dist/actions/pdf-extract-attachments.mjs.map +1 -1
  105. package/dist/actions/pdf-find.cjs +11 -11
  106. package/dist/actions/pdf-find.cjs.map +1 -1
  107. package/dist/actions/pdf-find.d.cts +32 -3
  108. package/dist/actions/pdf-find.d.cts.map +1 -1
  109. package/dist/actions/pdf-find.d.mts +32 -3
  110. package/dist/actions/pdf-find.d.mts.map +1 -1
  111. package/dist/actions/pdf-find.mjs +11 -11
  112. package/dist/actions/pdf-find.mjs.map +1 -1
  113. package/dist/actions/pdf-forms-info-reader.cjs +3 -3
  114. package/dist/actions/pdf-forms-info-reader.cjs.map +1 -1
  115. package/dist/actions/pdf-forms-info-reader.d.cts +39 -3
  116. package/dist/actions/pdf-forms-info-reader.d.cts.map +1 -1
  117. package/dist/actions/pdf-forms-info-reader.d.mts +39 -3
  118. package/dist/actions/pdf-forms-info-reader.d.mts.map +1 -1
  119. package/dist/actions/pdf-forms-info-reader.mjs +3 -3
  120. package/dist/actions/pdf-forms-info-reader.mjs.map +1 -1
  121. package/dist/actions/pdf-from-document-txt.cjs +1 -1
  122. package/dist/actions/pdf-from-document-txt.cjs.map +1 -1
  123. package/dist/actions/pdf-from-document-txt.d.cts +24 -3
  124. package/dist/actions/pdf-from-document-txt.d.cts.map +1 -1
  125. package/dist/actions/pdf-from-document-txt.d.mts +24 -3
  126. package/dist/actions/pdf-from-document-txt.d.mts.map +1 -1
  127. package/dist/actions/pdf-from-document-txt.mjs +1 -1
  128. package/dist/actions/pdf-from-document-txt.mjs.map +1 -1
  129. package/dist/actions/pdf-from-email.cjs +1 -1
  130. package/dist/actions/pdf-from-email.cjs.map +1 -1
  131. package/dist/actions/pdf-from-email.d.cts +23 -3
  132. package/dist/actions/pdf-from-email.d.cts.map +1 -1
  133. package/dist/actions/pdf-from-email.d.mts +23 -3
  134. package/dist/actions/pdf-from-email.d.mts.map +1 -1
  135. package/dist/actions/pdf-from-email.mjs +1 -1
  136. package/dist/actions/pdf-from-email.mjs.map +1 -1
  137. package/dist/actions/pdf-from-html.cjs +2 -2
  138. package/dist/actions/pdf-from-html.cjs.map +1 -1
  139. package/dist/actions/pdf-from-html.d.cts +42 -3
  140. package/dist/actions/pdf-from-html.d.cts.map +1 -1
  141. package/dist/actions/pdf-from-html.d.mts +42 -3
  142. package/dist/actions/pdf-from-html.d.mts.map +1 -1
  143. package/dist/actions/pdf-from-html.mjs +2 -2
  144. package/dist/actions/pdf-from-html.mjs.map +1 -1
  145. package/dist/actions/pdf-info-reader.cjs +4 -4
  146. package/dist/actions/pdf-info-reader.cjs.map +1 -1
  147. package/dist/actions/pdf-info-reader.d.cts +12 -3
  148. package/dist/actions/pdf-info-reader.d.cts.map +1 -1
  149. package/dist/actions/pdf-info-reader.d.mts +12 -3
  150. package/dist/actions/pdf-info-reader.d.mts.map +1 -1
  151. package/dist/actions/pdf-info-reader.mjs +4 -4
  152. package/dist/actions/pdf-info-reader.mjs.map +1 -1
  153. package/dist/actions/pdf-merge.cjs +3 -3
  154. package/dist/actions/pdf-merge.cjs.map +1 -1
  155. package/dist/actions/pdf-merge.d.cts +19 -3
  156. package/dist/actions/pdf-merge.d.cts.map +1 -1
  157. package/dist/actions/pdf-merge.d.mts +19 -3
  158. package/dist/actions/pdf-merge.d.mts.map +1 -1
  159. package/dist/actions/pdf-merge.mjs +3 -3
  160. package/dist/actions/pdf-merge.mjs.map +1 -1
  161. package/dist/actions/pdf-rotate.cjs +3 -3
  162. package/dist/actions/pdf-rotate.cjs.map +1 -1
  163. package/dist/actions/pdf-rotate.d.cts +23 -3
  164. package/dist/actions/pdf-rotate.d.cts.map +1 -1
  165. package/dist/actions/pdf-rotate.d.mts +23 -3
  166. package/dist/actions/pdf-rotate.d.mts.map +1 -1
  167. package/dist/actions/pdf-rotate.mjs +3 -3
  168. package/dist/actions/pdf-rotate.mjs.map +1 -1
  169. package/dist/actions/pdf-search-and-delete-text.cjs +6 -6
  170. package/dist/actions/pdf-search-and-delete-text.cjs.map +1 -1
  171. package/dist/actions/pdf-search-and-delete-text.d.cts +30 -3
  172. package/dist/actions/pdf-search-and-delete-text.d.cts.map +1 -1
  173. package/dist/actions/pdf-search-and-delete-text.d.mts +30 -3
  174. package/dist/actions/pdf-search-and-delete-text.d.mts.map +1 -1
  175. package/dist/actions/pdf-search-and-delete-text.mjs +6 -6
  176. package/dist/actions/pdf-search-and-delete-text.mjs.map +1 -1
  177. package/dist/actions/pdf-search-and-replace-text.cjs +1 -1
  178. package/dist/actions/pdf-search-and-replace-text.cjs.map +1 -1
  179. package/dist/actions/pdf-search-and-replace-text.d.cts +30 -3
  180. package/dist/actions/pdf-search-and-replace-text.d.cts.map +1 -1
  181. package/dist/actions/pdf-search-and-replace-text.d.mts +30 -3
  182. package/dist/actions/pdf-search-and-replace-text.d.mts.map +1 -1
  183. package/dist/actions/pdf-search-and-replace-text.mjs +1 -1
  184. package/dist/actions/pdf-search-and-replace-text.mjs.map +1 -1
  185. package/dist/actions/pdf-split.cjs +3 -3
  186. package/dist/actions/pdf-split.cjs.map +1 -1
  187. package/dist/actions/pdf-split.d.cts +52 -3
  188. package/dist/actions/pdf-split.d.cts.map +1 -1
  189. package/dist/actions/pdf-split.d.mts +52 -3
  190. package/dist/actions/pdf-split.d.mts.map +1 -1
  191. package/dist/actions/pdf-split.mjs +3 -3
  192. package/dist/actions/pdf-split.mjs.map +1 -1
  193. package/dist/actions/pdf-to-csv.cjs +3 -3
  194. package/dist/actions/pdf-to-csv.cjs.map +1 -1
  195. package/dist/actions/pdf-to-csv.d.cts +30 -3
  196. package/dist/actions/pdf-to-csv.d.cts.map +1 -1
  197. package/dist/actions/pdf-to-csv.d.mts +30 -3
  198. package/dist/actions/pdf-to-csv.d.mts.map +1 -1
  199. package/dist/actions/pdf-to-csv.mjs +3 -3
  200. package/dist/actions/pdf-to-csv.mjs.map +1 -1
  201. package/dist/actions/pdf-to-html.cjs.map +1 -1
  202. package/dist/actions/pdf-to-html.d.cts +33 -3
  203. package/dist/actions/pdf-to-html.d.cts.map +1 -1
  204. package/dist/actions/pdf-to-html.d.mts +33 -3
  205. package/dist/actions/pdf-to-html.d.mts.map +1 -1
  206. package/dist/actions/pdf-to-html.mjs.map +1 -1
  207. package/dist/actions/pdf-to-image.cjs +2 -2
  208. package/dist/actions/pdf-to-image.cjs.map +1 -1
  209. package/dist/actions/pdf-to-image.d.cts +29 -3
  210. package/dist/actions/pdf-to-image.d.cts.map +1 -1
  211. package/dist/actions/pdf-to-image.d.mts +29 -3
  212. package/dist/actions/pdf-to-image.d.mts.map +1 -1
  213. package/dist/actions/pdf-to-image.mjs +2 -2
  214. package/dist/actions/pdf-to-image.mjs.map +1 -1
  215. package/dist/actions/pdf-to-json.cjs +3 -3
  216. package/dist/actions/pdf-to-json.cjs.map +1 -1
  217. package/dist/actions/pdf-to-json.d.cts +221 -3
  218. package/dist/actions/pdf-to-json.d.cts.map +1 -1
  219. package/dist/actions/pdf-to-json.d.mts +221 -3
  220. package/dist/actions/pdf-to-json.d.mts.map +1 -1
  221. package/dist/actions/pdf-to-json.mjs +3 -3
  222. package/dist/actions/pdf-to-json.mjs.map +1 -1
  223. package/dist/actions/pdf-to-text.cjs.map +1 -1
  224. package/dist/actions/pdf-to-text.d.cts +43 -3
  225. package/dist/actions/pdf-to-text.d.cts.map +1 -1
  226. package/dist/actions/pdf-to-text.d.mts +43 -3
  227. package/dist/actions/pdf-to-text.d.mts.map +1 -1
  228. package/dist/actions/pdf-to-text.mjs.map +1 -1
  229. package/dist/actions/pdf-to-xls.cjs +3 -3
  230. package/dist/actions/pdf-to-xls.cjs.map +1 -1
  231. package/dist/actions/pdf-to-xls.d.cts +24 -3
  232. package/dist/actions/pdf-to-xls.d.cts.map +1 -1
  233. package/dist/actions/pdf-to-xls.d.mts +24 -3
  234. package/dist/actions/pdf-to-xls.d.mts.map +1 -1
  235. package/dist/actions/pdf-to-xls.mjs +3 -3
  236. package/dist/actions/pdf-to-xls.mjs.map +1 -1
  237. package/dist/actions/pdf-to-xlsx.cjs +3 -3
  238. package/dist/actions/pdf-to-xlsx.cjs.map +1 -1
  239. package/dist/actions/pdf-to-xlsx.d.cts +36 -3
  240. package/dist/actions/pdf-to-xlsx.d.cts.map +1 -1
  241. package/dist/actions/pdf-to-xlsx.d.mts +36 -3
  242. package/dist/actions/pdf-to-xlsx.d.mts.map +1 -1
  243. package/dist/actions/pdf-to-xlsx.mjs +3 -3
  244. package/dist/actions/pdf-to-xlsx.mjs.map +1 -1
  245. package/dist/actions/pdf-to-xml.cjs +3 -3
  246. package/dist/actions/pdf-to-xml.cjs.map +1 -1
  247. package/dist/actions/pdf-to-xml.d.cts +22 -3
  248. package/dist/actions/pdf-to-xml.d.cts.map +1 -1
  249. package/dist/actions/pdf-to-xml.d.mts +22 -3
  250. package/dist/actions/pdf-to-xml.d.mts.map +1 -1
  251. package/dist/actions/pdf-to-xml.mjs +3 -3
  252. package/dist/actions/pdf-to-xml.mjs.map +1 -1
  253. package/dist/actions/pdfco-post-barcode-generate.cjs +2 -2
  254. package/dist/actions/pdfco-post-barcode-generate.cjs.map +1 -1
  255. package/dist/actions/pdfco-post-barcode-generate.d.cts +88 -3
  256. package/dist/actions/pdfco-post-barcode-generate.d.cts.map +1 -1
  257. package/dist/actions/pdfco-post-barcode-generate.d.mts +88 -3
  258. package/dist/actions/pdfco-post-barcode-generate.d.mts.map +1 -1
  259. package/dist/actions/pdfco-post-barcode-generate.mjs +2 -2
  260. package/dist/actions/pdfco-post-barcode-generate.mjs.map +1 -1
  261. package/dist/actions/pdfco-post-file-upload-base64.cjs +3 -3
  262. package/dist/actions/pdfco-post-file-upload-base64.cjs.map +1 -1
  263. package/dist/actions/pdfco-post-file-upload-base64.d.cts +21 -3
  264. package/dist/actions/pdfco-post-file-upload-base64.d.cts.map +1 -1
  265. package/dist/actions/pdfco-post-file-upload-base64.d.mts +21 -3
  266. package/dist/actions/pdfco-post-file-upload-base64.d.mts.map +1 -1
  267. package/dist/actions/pdfco-post-file-upload-base64.mjs +3 -3
  268. package/dist/actions/pdfco-post-file-upload-base64.mjs.map +1 -1
  269. package/dist/catalog.cjs +7 -1
  270. package/dist/catalog.cjs.map +1 -1
  271. package/dist/catalog.d.cts +8 -0
  272. package/dist/catalog.d.mts +8 -0
  273. package/dist/catalog.mjs +7 -1
  274. package/dist/catalog.mjs.map +1 -1
  275. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-change-text-searchable.mjs","names":[],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfChangeTextSearchableInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Public URL of the source PDF file.\"),\n rect: z.string().describe(\"Comma-separated rectangle coordinates 'left,top,width,height' to limit OCR.\").optional(),\n pages: z.string().describe(\"Single 0-indexed page number to process (e.g., '0' for the first page). The /pdf/makesearchable endpoint does not accept page ranges or comma-separated lists and will return HTTP 450 'Invalid page range specified' for values like '0-2' or '0,1'. Omit this field to OCR every page.\").optional(),\n inline: z.boolean().default(false).describe(\"Whether to return the processed PDF data inline (base64) or as a URL. Set to true for inline response, false for URL.\").optional(),\n language: z.string().default(\"eng\").describe(\"Language code for OCR (default: eng).\").optional(),\n password: z.string().describe(\"Password for encrypted PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"JSON string with advanced OCR profiles and configurations.\").optional(),\n}).describe(\"Request model for making a PDF's text searchable using OCR.\");\nexport const PdfCoPdfChangeTextSearchableOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the processed PDF file with searchable text.\"),\n error: z.boolean().describe(\"Indicates if an error occurred during processing.\"),\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 remaining: z.number().int().describe(\"Remaining API credits on the account.\").nullable().optional(),\n}).describe(\"Response model for searchable text PDF creation.\");\n\nexport const pdfCoPdfChangeTextSearchable = action(\"PDF_CO_PDF_CHANGE_TEXT_SEARCHABLE\", {\n slug: \"pdf_co-pdf-change-text-searchable\",\n name: \"Change PDF Text Searchable\",\n description: \"Tool to make PDF text searchable using OCR. Use when you need to add a searchable text layer to scanned or image-only PDF documents.\",\n input: PdfCoPdfChangeTextSearchableInput,\n output: PdfCoPdfChangeTextSearchableOutput,\n});\n"],"mappings":";;AAqBA,MAAa,+BAA+B,OAAO,qCAAqC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB6D,EAAE,OAAO;EACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;EAChU,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EAC9K,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,6DAaH;CACP,QAb8D,EAAE,OAAO;EACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC9E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;EAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-change-text-searchable.mjs","names":[],"sources":["../../src/actions/pdf-change-text-searchable.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfChangeTextSearchableInput = z.object({\n url: z.string().describe(\"Public URL of the source PDF file.\"),\n rect: z.string().describe(\"Comma-separated rectangle coordinates 'left,top,width,height' to limit OCR.\").optional(),\n pages: z.string().describe(\"Single 0-indexed page number to process (e.g., '0' for the first page). The /pdf/makesearchable endpoint does not accept page ranges or comma-separated lists and will return HTTP 450 'Invalid page range specified' for values like '0-2' or '0,1'. Omit this field to OCR every page.\").optional(),\n inline: z.boolean().default(false).describe(\"Whether to return the processed PDF data inline (base64) or as a URL. Set to true for inline response, false for URL.\").optional(),\n language: z.string().default(\"eng\").describe(\"Language code for OCR (default: eng).\").optional(),\n password: z.string().describe(\"Password for encrypted PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"JSON string with advanced OCR profiles and configurations.\").optional(),\n}).describe(\"Request model for making a PDF's text searchable using OCR.\");\nexport const PdfCoPdfChangeTextSearchableOutput = z.object({\n url: z.string().describe(\"URL of the processed PDF file with searchable text.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred during processing.\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remaining: z.number().int().describe(\"Remaining API credits on the account.\").nullable().optional(),\n}).passthrough().describe(\"Response model for searchable text PDF creation.\");\n\nexport const pdfCoPdfChangeTextSearchable = action(\"PDF_CO_PDF_CHANGE_TEXT_SEARCHABLE\", {\n slug: \"pdf_co-pdf-change-text-searchable\",\n name: \"Change PDF Text Searchable\",\n description: \"Tool to make PDF text searchable using OCR. Use when you need to add a searchable text layer to scanned or image-only PDF documents.\",\n input: PdfCoPdfChangeTextSearchableInput,\n output: PdfCoPdfChangeTextSearchableOutput,\n});\n"],"mappings":";;AAqBA,MAAa,+BAA+B,OAAO,qCAAqC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;EAChU,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EAC9K,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,6DAaH;CACP,QAbgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACzF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -10,12 +10,12 @@ const PdfCoPdfDeletePagesInput = zod.z.object({
10
10
  async_job: zod.z.boolean().describe("Process request asynchronously. If true, returns a job ID instead of immediate URL.").optional()
11
11
  }).describe("Request model for deleting pages from a PDF via PDF.co API.");
12
12
  const PdfCoPdfDeletePagesOutput = zod.z.object({
13
- url: zod.z.string().describe("URL of the PDF file with pages deleted."),
14
- error: zod.z.boolean().describe("Indicates if an error occurred."),
15
- status: zod.z.number().int().describe("HTTP status code of the operation."),
13
+ url: zod.z.string().describe("URL of the PDF file with pages deleted.").nullable(),
14
+ error: zod.z.boolean().describe("Indicates if an error occurred.").nullable(),
15
+ status: zod.z.number().int().describe("HTTP status code of the operation.").nullable(),
16
16
  message: zod.z.string().describe("Error or operation message.").nullable().optional(),
17
- pageCount: zod.z.number().int().describe("Number of pages in the output PDF document.")
18
- }).describe("Response model for deleting PDF pages.");
17
+ pageCount: zod.z.number().int().describe("Number of pages in the output PDF document.").nullable()
18
+ }).passthrough().describe("Response model for deleting PDF pages.");
19
19
  const pdfCoPdfDeletePages = require_action.action("PDF_CO_PDF_DELETE_PAGES", {
20
20
  slug: "pdf_co-pdf-delete-pages",
21
21
  name: "Delete PDF Pages",
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-delete-pages.cjs","names":["z","action"],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfDeletePagesInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL or base64-encoded content of the source PDF.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to delete (1-based). E.g., '1,3-5' to delete pages 1, 3, 4, and 5.\"),\n password: z.string().describe(\"Password for protected PDF file.\").optional(),\n profiles: z.string().describe(\"Optional JSON string for advanced configuration.\").optional(),\n async_job: z.boolean().describe(\"Process request asynchronously. If true, returns a job ID instead of immediate URL.\").optional(),\n}).describe(\"Request model for deleting pages from a PDF via PDF.co API.\");\nexport const PdfCoPdfDeletePagesOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the PDF file with pages deleted.\"),\n error: z.boolean().describe(\"Indicates if an error occurred.\"),\n status: z.number().int().describe(\"HTTP status code of the operation.\"),\n message: z.string().describe(\"Error or operation message.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF document.\"),\n}).describe(\"Response model for deleting PDF pages.\");\n\nexport const pdfCoPdfDeletePages = action(\"PDF_CO_PDF_DELETE_PAGES\", {\n slug: \"pdf_co-pdf-delete-pages\",\n name: \"Delete PDF Pages\",\n description: \"Tool to delete specific pages from a PDF file. Use when you need to remove unwanted pages before further processing.\",\n input: PdfCoPdfDeletePagesInput,\n output: PdfCoPdfDeletePagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC9I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AACpF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,sBAAsBC,eAAAA,OAAO,2BAA2B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-delete-pages.cjs","names":["z","action"],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfDeletePagesInput = z.object({\n url: z.string().describe(\"URL or base64-encoded content of the source PDF.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to delete (1-based). E.g., '1,3-5' to delete pages 1, 3, 4, and 5.\"),\n password: z.string().describe(\"Password for protected PDF file.\").optional(),\n profiles: z.string().describe(\"Optional JSON string for advanced configuration.\").optional(),\n async_job: z.boolean().describe(\"Process request asynchronously. If true, returns a job ID instead of immediate URL.\").optional(),\n}).describe(\"Request model for deleting pages from a PDF via PDF.co API.\");\nexport const PdfCoPdfDeletePagesOutput = z.object({\n url: z.string().describe(\"URL of the PDF file with pages deleted.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred.\").nullable(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n message: z.string().describe(\"Error or operation message.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF document.\").nullable(),\n}).passthrough().describe(\"Response model for deleting PDF pages.\");\n\nexport const pdfCoPdfDeletePages = action(\"PDF_CO_PDF_DELETE_PAGES\", {\n slug: \"pdf_co-pdf-delete-pages\",\n name: \"Delete PDF Pages\",\n description: \"Tool to delete specific pages from a PDF file. Use when you need to remove unwanted pages before further processing.\",\n input: PdfCoPdfDeletePagesInput,\n output: PdfCoPdfDeletePagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC9I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,sBAAsBC,eAAAA,OAAO,2BAA2B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/pdf-delete-pages.d.ts
4
- declare const PdfCoPdfDeletePagesInput: z.ZodTypeAny;
5
- declare const PdfCoPdfDeletePagesOutput: z.ZodTypeAny;
6
- declare const pdfCoPdfDeletePages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdfCoPdfDeletePagesInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ pages: z.ZodString;
8
+ password: z.ZodOptional<z.ZodString>;
9
+ profiles: z.ZodOptional<z.ZodString>;
10
+ async_job: z.ZodOptional<z.ZodBoolean>;
11
+ }, z.core.$strip>;
12
+ declare const PdfCoPdfDeletePagesOutput: z.ZodObject<{
13
+ url: z.ZodNullable<z.ZodString>;
14
+ error: z.ZodNullable<z.ZodBoolean>;
15
+ status: z.ZodNullable<z.ZodNumber>;
16
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ pageCount: z.ZodNullable<z.ZodNumber>;
18
+ }, z.core.$loose>;
19
+ declare const pdfCoPdfDeletePages: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ url: string;
21
+ pages: string;
22
+ name?: string | undefined;
23
+ password?: string | undefined;
24
+ profiles?: string | undefined;
25
+ async_job?: boolean | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { pdfCoPdfDeletePages };
9
29
  //# sourceMappingURL=pdf-delete-pages.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-delete-pages.d.cts","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAOiC;AAAA,cAC7D,yBAAA,EAA2B,CAAA,CAAE,UAMW;AAAA,cAExC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"pdf-delete-pages.d.cts","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/pdf-delete-pages.d.ts
4
- declare const PdfCoPdfDeletePagesInput: z.ZodTypeAny;
5
- declare const PdfCoPdfDeletePagesOutput: z.ZodTypeAny;
6
- declare const pdfCoPdfDeletePages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdfCoPdfDeletePagesInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ pages: z.ZodString;
8
+ password: z.ZodOptional<z.ZodString>;
9
+ profiles: z.ZodOptional<z.ZodString>;
10
+ async_job: z.ZodOptional<z.ZodBoolean>;
11
+ }, z.core.$strip>;
12
+ declare const PdfCoPdfDeletePagesOutput: z.ZodObject<{
13
+ url: z.ZodNullable<z.ZodString>;
14
+ error: z.ZodNullable<z.ZodBoolean>;
15
+ status: z.ZodNullable<z.ZodNumber>;
16
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ pageCount: z.ZodNullable<z.ZodNumber>;
18
+ }, z.core.$loose>;
19
+ declare const pdfCoPdfDeletePages: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ url: string;
21
+ pages: string;
22
+ name?: string | undefined;
23
+ password?: string | undefined;
24
+ profiles?: string | undefined;
25
+ async_job?: boolean | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { pdfCoPdfDeletePages };
9
29
  //# sourceMappingURL=pdf-delete-pages.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-delete-pages.d.mts","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAOiC;AAAA,cAC7D,yBAAA,EAA2B,CAAA,CAAE,UAMW;AAAA,cAExC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"pdf-delete-pages.d.mts","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
@@ -13,12 +13,12 @@ const pdfCoPdfDeletePages = action("PDF_CO_PDF_DELETE_PAGES", {
13
13
  async_job: z.boolean().describe("Process request asynchronously. If true, returns a job ID instead of immediate URL.").optional()
14
14
  }).describe("Request model for deleting pages from a PDF via PDF.co API."),
15
15
  output: z.object({
16
- url: z.string().describe("URL of the PDF file with pages deleted."),
17
- error: z.boolean().describe("Indicates if an error occurred."),
18
- status: z.number().int().describe("HTTP status code of the operation."),
16
+ url: z.string().describe("URL of the PDF file with pages deleted.").nullable(),
17
+ error: z.boolean().describe("Indicates if an error occurred.").nullable(),
18
+ status: z.number().int().describe("HTTP status code of the operation.").nullable(),
19
19
  message: z.string().describe("Error or operation message.").nullable().optional(),
20
- pageCount: z.number().int().describe("Number of pages in the output PDF document.")
21
- }).describe("Response model for deleting PDF pages.")
20
+ pageCount: z.number().int().describe("Number of pages in the output PDF document.").nullable()
21
+ }).passthrough().describe("Response model for deleting PDF pages.")
22
22
  });
23
23
  //#endregion
24
24
  export { pdfCoPdfDeletePages };
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-delete-pages.mjs","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfDeletePagesInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL or base64-encoded content of the source PDF.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to delete (1-based). E.g., '1,3-5' to delete pages 1, 3, 4, and 5.\"),\n password: z.string().describe(\"Password for protected PDF file.\").optional(),\n profiles: z.string().describe(\"Optional JSON string for advanced configuration.\").optional(),\n async_job: z.boolean().describe(\"Process request asynchronously. If true, returns a job ID instead of immediate URL.\").optional(),\n}).describe(\"Request model for deleting pages from a PDF via PDF.co API.\");\nexport const PdfCoPdfDeletePagesOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the PDF file with pages deleted.\"),\n error: z.boolean().describe(\"Indicates if an error occurred.\"),\n status: z.number().int().describe(\"HTTP status code of the operation.\"),\n message: z.string().describe(\"Error or operation message.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF document.\"),\n}).describe(\"Response model for deleting PDF pages.\");\n\nexport const pdfCoPdfDeletePages = action(\"PDF_CO_PDF_DELETE_PAGES\", {\n slug: \"pdf_co-pdf-delete-pages\",\n name: \"Delete PDF Pages\",\n description: \"Tool to delete specific pages from a PDF file. Use when you need to remove unwanted pages before further processing.\",\n input: PdfCoPdfDeletePagesInput,\n output: PdfCoPdfDeletePagesOutput,\n});\n"],"mappings":";;AAoBA,MAAa,sBAAsB,OAAO,2BAA2B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBoD,EAAE,OAAO;EAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;EAC9I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,6DAaH;CACP,QAbqD,EAAE,OAAO;EAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EAClE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACpF,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-delete-pages.mjs","names":[],"sources":["../../src/actions/pdf-delete-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfDeletePagesInput = z.object({\n url: z.string().describe(\"URL or base64-encoded content of the source PDF.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to delete (1-based). E.g., '1,3-5' to delete pages 1, 3, 4, and 5.\"),\n password: z.string().describe(\"Password for protected PDF file.\").optional(),\n profiles: z.string().describe(\"Optional JSON string for advanced configuration.\").optional(),\n async_job: z.boolean().describe(\"Process request asynchronously. If true, returns a job ID instead of immediate URL.\").optional(),\n}).describe(\"Request model for deleting pages from a PDF via PDF.co API.\");\nexport const PdfCoPdfDeletePagesOutput = z.object({\n url: z.string().describe(\"URL of the PDF file with pages deleted.\").nullable(),\n error: z.boolean().describe(\"Indicates if an error occurred.\").nullable(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n message: z.string().describe(\"Error or operation message.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF document.\").nullable(),\n}).passthrough().describe(\"Response model for deleting PDF pages.\");\n\nexport const pdfCoPdfDeletePages = action(\"PDF_CO_PDF_DELETE_PAGES\", {\n slug: \"pdf_co-pdf-delete-pages\",\n name: \"Delete PDF Pages\",\n description: \"Tool to delete specific pages from a PDF file. Use when you need to remove unwanted pages before further processing.\",\n input: PdfCoPdfDeletePagesInput,\n output: PdfCoPdfDeletePagesOutput,\n});\n"],"mappings":";;AAoBA,MAAa,sBAAsB,OAAO,2BAA2B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;EAC9I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,6DAaH;CACP,QAbuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -14,15 +14,15 @@ const PdfCoPdfExtractAttachmentsInput = zod.z.object({
14
14
  const PdfCoPdfExtractAttachmentsOutput = zod.z.object({
15
15
  name: zod.z.string().describe("Output filename.").nullable().optional(),
16
16
  urls: zod.z.array(zod.z.string()).describe("List of URLs to the extracted attachment files.").nullable().optional(),
17
- error: zod.z.boolean().describe("True if an error occurred."),
17
+ error: zod.z.boolean().describe("True if an error occurred.").nullable(),
18
18
  jobId: zod.z.string().describe("Job ID for async processing (when async=true).").nullable().optional(),
19
- status: zod.z.number().int().describe("HTTP status code of the operation."),
19
+ status: zod.z.number().int().describe("HTTP status code of the operation.").nullable(),
20
20
  credits: zod.z.number().int().describe("Credits used for this operation.").nullable().optional(),
21
21
  message: zod.z.string().describe("Error or status message.").nullable().optional(),
22
22
  duration: zod.z.number().int().describe("Processing duration in milliseconds.").nullable().optional(),
23
23
  pageCount: zod.z.number().int().describe("Number of pages in the PDF.").nullable().optional(),
24
24
  remainingCredits: zod.z.number().int().describe("Remaining account credits.").nullable().optional()
25
- }).describe("Response model for extracting attachments from a PDF.");
25
+ }).passthrough().describe("Response model for extracting attachments from a PDF.");
26
26
  const pdfCoPdfExtractAttachments = require_action.action("PDF_CO_PDF_EXTRACT_ATTACHMENTS", {
27
27
  slug: "pdf_co-pdf-extract-attachments",
28
28
  name: "Extract PDF Attachments",
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-extract-attachments.cjs","names":["z","action"],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput: z.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":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACzH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-extract-attachments.cjs","names":["z","action"],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput = z.object({\n url: z.string().describe(\"URL of the input PDF file to process.\"),\n inline: z.boolean().describe(\"If true, returns attachment data inline; otherwise returns URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for receiving async results.\").optional(),\n password: z.string().describe(\"Password for protected PDF file (if applicable).\").optional(),\n async_job: z.boolean().describe(\"Run processing asynchronously. If true, returns a jobId for async processing.\").optional(),\n expiration: z.number().int().describe(\"Set the expiration time for the output link in minutes. Default is 60.\").optional(),\n httppassword: z.string().describe(\"HTTP authentication password for accessing the source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP authentication username for accessing the source URL.\").optional(),\n}).describe(\"Request model for extracting attachments from a PDF.\");\nexport const PdfCoPdfExtractAttachmentsOutput = z.object({\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n urls: z.array(z.string()).describe(\"List of URLs to the extracted attachment files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async processing (when async=true).\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits used for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n}).passthrough().describe(\"Response model for extracting attachments from a PDF.\");\n\nexport const pdfCoPdfExtractAttachments = action(\"PDF_CO_PDF_EXTRACT_ATTACHMENTS\", {\n slug: \"pdf_co-pdf-extract-attachments\",\n name: \"Extract PDF Attachments\",\n description: \"Tool to extract embedded attachments from a PDF. Use when you need to retrieve embedded files from a PDF after uploading.\",\n input: PdfCoPdfExtractAttachmentsInput,\n output: PdfCoPdfExtractAttachmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACzH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/pdf-extract-attachments.d.ts
4
- declare const PdfCoPdfExtractAttachmentsInput: z.ZodTypeAny;
5
- declare const PdfCoPdfExtractAttachmentsOutput: z.ZodTypeAny;
6
- declare const pdfCoPdfExtractAttachments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdfCoPdfExtractAttachmentsInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ inline: z.ZodOptional<z.ZodBoolean>;
7
+ callback: z.ZodOptional<z.ZodString>;
8
+ password: z.ZodOptional<z.ZodString>;
9
+ async_job: z.ZodOptional<z.ZodBoolean>;
10
+ expiration: z.ZodOptional<z.ZodNumber>;
11
+ httppassword: z.ZodOptional<z.ZodString>;
12
+ httpusername: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const PdfCoPdfExtractAttachmentsOutput: z.ZodObject<{
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
17
+ error: z.ZodNullable<z.ZodBoolean>;
18
+ jobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ status: z.ZodNullable<z.ZodNumber>;
20
+ credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ }, z.core.$loose>;
26
+ declare const pdfCoPdfExtractAttachments: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ url: string;
28
+ inline?: boolean | undefined;
29
+ callback?: string | undefined;
30
+ password?: string | undefined;
31
+ async_job?: boolean | undefined;
32
+ expiration?: number | undefined;
33
+ httppassword?: string | undefined;
34
+ httpusername?: string | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { pdfCoPdfExtractAttachments };
9
38
  //# sourceMappingURL=pdf-extract-attachments.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-extract-attachments.d.cts","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UASmB;AAAA,cACtD,gCAAA,EAAkC,CAAA,CAAE,UAWmB;AAAA,cAEvD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"pdf-extract-attachments.d.cts","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAU/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAahC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/pdf-extract-attachments.d.ts
4
- declare const PdfCoPdfExtractAttachmentsInput: z.ZodTypeAny;
5
- declare const PdfCoPdfExtractAttachmentsOutput: z.ZodTypeAny;
6
- declare const pdfCoPdfExtractAttachments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PdfCoPdfExtractAttachmentsInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ inline: z.ZodOptional<z.ZodBoolean>;
7
+ callback: z.ZodOptional<z.ZodString>;
8
+ password: z.ZodOptional<z.ZodString>;
9
+ async_job: z.ZodOptional<z.ZodBoolean>;
10
+ expiration: z.ZodOptional<z.ZodNumber>;
11
+ httppassword: z.ZodOptional<z.ZodString>;
12
+ httpusername: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const PdfCoPdfExtractAttachmentsOutput: z.ZodObject<{
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
17
+ error: z.ZodNullable<z.ZodBoolean>;
18
+ jobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ status: z.ZodNullable<z.ZodNumber>;
20
+ credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ }, z.core.$loose>;
26
+ declare const pdfCoPdfExtractAttachments: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ url: string;
28
+ inline?: boolean | undefined;
29
+ callback?: string | undefined;
30
+ password?: string | undefined;
31
+ async_job?: boolean | undefined;
32
+ expiration?: number | undefined;
33
+ httppassword?: string | undefined;
34
+ httpusername?: string | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { pdfCoPdfExtractAttachments };
9
38
  //# sourceMappingURL=pdf-extract-attachments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-extract-attachments.d.mts","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UASmB;AAAA,cACtD,gCAAA,EAAkC,CAAA,CAAE,UAWmB;AAAA,cAEvD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"pdf-extract-attachments.d.mts","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAU/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAahC,0BAAA,gCAA0B,wBAAA"}
@@ -17,15 +17,15 @@ const pdfCoPdfExtractAttachments = action("PDF_CO_PDF_EXTRACT_ATTACHMENTS", {
17
17
  output: z.object({
18
18
  name: z.string().describe("Output filename.").nullable().optional(),
19
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."),
20
+ error: z.boolean().describe("True if an error occurred.").nullable(),
21
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."),
22
+ status: z.number().int().describe("HTTP status code of the operation.").nullable(),
23
23
  credits: z.number().int().describe("Credits used for this operation.").nullable().optional(),
24
24
  message: z.string().describe("Error or status message.").nullable().optional(),
25
25
  duration: z.number().int().describe("Processing duration in milliseconds.").nullable().optional(),
26
26
  pageCount: z.number().int().describe("Number of pages in the PDF.").nullable().optional(),
27
27
  remainingCredits: z.number().int().describe("Remaining account credits.").nullable().optional()
28
- }).describe("Response model for extracting attachments from a PDF.")
28
+ }).passthrough().describe("Response model for extracting attachments from a PDF.")
29
29
  });
30
30
  //#endregion
31
31
  export { pdfCoPdfExtractAttachments };
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-extract-attachments.mjs","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput: z.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,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B2D,EAAE,OAAO;EACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAChE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACzH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,sDAkBH;CACP,QAlB4D,EAAE,OAAO;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACtE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-extract-attachments.mjs","names":[],"sources":["../../src/actions/pdf-extract-attachments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfExtractAttachmentsInput = z.object({\n url: z.string().describe(\"URL of the input PDF file to process.\"),\n inline: z.boolean().describe(\"If true, returns attachment data inline; otherwise returns URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for receiving async results.\").optional(),\n password: z.string().describe(\"Password for protected PDF file (if applicable).\").optional(),\n async_job: z.boolean().describe(\"Run processing asynchronously. If true, returns a jobId for async processing.\").optional(),\n expiration: z.number().int().describe(\"Set the expiration time for the output link in minutes. Default is 60.\").optional(),\n httppassword: z.string().describe(\"HTTP authentication password for accessing the source URL.\").optional(),\n httpusername: z.string().describe(\"HTTP authentication username for accessing the source URL.\").optional(),\n}).describe(\"Request model for extracting attachments from a PDF.\");\nexport const PdfCoPdfExtractAttachmentsOutput = z.object({\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n urls: z.array(z.string()).describe(\"List of URLs to the extracted attachment files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async processing (when async=true).\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits used for this operation.\").nullable().optional(),\n message: z.string().describe(\"Error or status message.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining account credits.\").nullable().optional(),\n}).passthrough().describe(\"Response model for extracting attachments from a PDF.\");\n\nexport const pdfCoPdfExtractAttachments = action(\"PDF_CO_PDF_EXTRACT_ATTACHMENTS\", {\n slug: \"pdf_co-pdf-extract-attachments\",\n name: \"Extract PDF Attachments\",\n description: \"Tool to extract embedded attachments from a PDF. Use when you need to retrieve embedded files from a PDF after uploading.\",\n input: PdfCoPdfExtractAttachmentsInput,\n output: PdfCoPdfExtractAttachmentsOutput,\n});\n"],"mappings":";;AA2BA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAChE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACzH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,sDAkBH;CACP,QAlB8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
@@ -11,20 +11,20 @@ const PdfCoPdfFindInput = zod.z.object({
11
11
  caseSensitive: zod.z.boolean().default(false).describe("Whether the search is case-sensitive (default: false).").optional()
12
12
  }).describe("Request model for searching text in a PDF document.");
13
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
- });
14
+ top: zod.z.number().describe("Top coordinate of the match on the page.").nullable(),
15
+ left: zod.z.number().describe("Left coordinate of the match on the page.").nullable(),
16
+ text: zod.z.string().describe("The exact matched text.").nullable(),
17
+ width: zod.z.number().describe("Width of the matched area.").nullable(),
18
+ height: zod.z.number().describe("Height of the matched area.").nullable(),
19
+ pageIndex: zod.z.number().int().describe("Zero-based index of the page where found.").nullable(),
20
+ pageNumber: zod.z.number().int().describe("One-based number of the page where found.").nullable()
21
+ }).passthrough();
22
22
  const PdfCoPdfFindOutput = zod.z.object({
23
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'."),
24
+ found: zod.z.number().int().describe("Total number of occurrences found.").nullable(),
25
+ status: zod.z.string().describe("API call status, e.g., 'success'.").nullable(),
26
26
  matches: zod.z.array(PdfCoPdfFind_PdfFindMatchSchema).describe("List of match details.")
27
- });
27
+ }).passthrough();
28
28
  const pdfCoPdfFind = require_action.action("PDF_CO_PDF_FIND", {
29
29
  slug: "pdf_co-pdf-find",
30
30
  name: "Find Text in PDF",
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-find.cjs","names":["z","action"],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput: z.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"}
1
+ {"version":3,"file":"pdf-find.cjs","names":["z","action"],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file to search.\"),\n pages: z.string().describe(\"Comma-separated page ranges to search, e.g., '1-3,5'.\").optional(),\n password: z.string().describe(\"Password for protected PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"Advanced JSON configuration for PDF processing.\").optional(),\n regexSearch: z.boolean().default(false).describe(\"Whether to treat searchString as a regular expression (default: false).\").optional(),\n searchString: z.string().describe(\"Keyword or regex pattern to find in the document.\"),\n caseSensitive: z.boolean().default(false).describe(\"Whether the search is case-sensitive (default: false).\").optional(),\n}).describe(\"Request model for searching text in a PDF document.\");\nconst PdfCoPdfFind_PdfFindMatchSchema = z.object({\n top: z.number().describe(\"Top coordinate of the match on the page.\").nullable(),\n left: z.number().describe(\"Left coordinate of the match on the page.\").nullable(),\n text: z.string().describe(\"The exact matched text.\").nullable(),\n width: z.number().describe(\"Width of the matched area.\").nullable(),\n height: z.number().describe(\"Height of the matched area.\").nullable(),\n pageIndex: z.number().int().describe(\"Zero-based index of the page where found.\").nullable(),\n pageNumber: z.number().int().describe(\"One-based number of the page where found.\").nullable(),\n}).passthrough();\nexport const PdfCoPdfFindOutput = z.object({\n error: z.string().describe(\"Error message, if any.\").nullable().optional(),\n found: z.number().int().describe(\"Total number of occurrences found.\").nullable(),\n status: z.string().describe(\"API call status, e.g., 'success'.\").nullable(),\n matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe(\"List of match details.\"),\n}).passthrough();\n\nexport const pdfCoPdfFind = action(\"PDF_CO_PDF_FIND\", {\n slug: \"pdf_co-pdf-find\",\n name: \"Find Text in PDF\",\n description: \"Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.\",\n input: PdfCoPdfFindInput,\n output: PdfCoPdfFindOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,KAAKA,IAAAA,EAAE,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,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;AACrF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,eAAeC,eAAAA,OAAO,mBAAmB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PdfCoPdfFindInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ pages: z.ZodOptional<z.ZodString>;
7
+ password: z.ZodOptional<z.ZodString>;
8
+ profiles: z.ZodOptional<z.ZodString>;
9
+ regexSearch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
+ searchString: z.ZodString;
11
+ caseSensitive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12
+ }, z.core.$strip>;
13
+ declare const PdfCoPdfFindOutput: z.ZodObject<{
14
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ found: z.ZodNullable<z.ZodNumber>;
16
+ status: z.ZodNullable<z.ZodString>;
17
+ matches: z.ZodArray<z.ZodObject<{
18
+ top: z.ZodNullable<z.ZodNumber>;
19
+ left: z.ZodNullable<z.ZodNumber>;
20
+ text: z.ZodNullable<z.ZodString>;
21
+ width: z.ZodNullable<z.ZodNumber>;
22
+ height: z.ZodNullable<z.ZodNumber>;
23
+ pageIndex: z.ZodNullable<z.ZodNumber>;
24
+ pageNumber: z.ZodNullable<z.ZodNumber>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
+ declare const pdfCoPdfFind: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ url: string;
29
+ searchString: string;
30
+ pages?: string | undefined;
31
+ password?: string | undefined;
32
+ profiles?: string | undefined;
33
+ regexSearch?: boolean | undefined;
34
+ caseSensitive?: boolean | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { pdfCoPdfFind };
9
38
  //# sourceMappingURL=pdf-find.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"pdf-find.d.cts","names":[],"sources":["../../src/actions/pdf-find.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;cAkBjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAOlB,YAAA,gCAAY,wBAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PdfCoPdfFindInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ pages: z.ZodOptional<z.ZodString>;
7
+ password: z.ZodOptional<z.ZodString>;
8
+ profiles: z.ZodOptional<z.ZodString>;
9
+ regexSearch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
+ searchString: z.ZodString;
11
+ caseSensitive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12
+ }, z.core.$strip>;
13
+ declare const PdfCoPdfFindOutput: z.ZodObject<{
14
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ found: z.ZodNullable<z.ZodNumber>;
16
+ status: z.ZodNullable<z.ZodString>;
17
+ matches: z.ZodArray<z.ZodObject<{
18
+ top: z.ZodNullable<z.ZodNumber>;
19
+ left: z.ZodNullable<z.ZodNumber>;
20
+ text: z.ZodNullable<z.ZodString>;
21
+ width: z.ZodNullable<z.ZodNumber>;
22
+ height: z.ZodNullable<z.ZodNumber>;
23
+ pageIndex: z.ZodNullable<z.ZodNumber>;
24
+ pageNumber: z.ZodNullable<z.ZodNumber>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
+ declare const pdfCoPdfFind: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ url: string;
29
+ searchString: string;
30
+ pages?: string | undefined;
31
+ password?: string | undefined;
32
+ profiles?: string | undefined;
33
+ regexSearch?: boolean | undefined;
34
+ caseSensitive?: boolean | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { pdfCoPdfFind };
9
38
  //# sourceMappingURL=pdf-find.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"pdf-find.d.mts","names":[],"sources":["../../src/actions/pdf-find.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;cAkBjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAOlB,YAAA,gCAAY,wBAAA"}
@@ -11,14 +11,14 @@ const PdfCoPdfFindInput = z.object({
11
11
  caseSensitive: z.boolean().default(false).describe("Whether the search is case-sensitive (default: false).").optional()
12
12
  }).describe("Request model for searching text in a PDF document.");
13
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
- });
14
+ top: z.number().describe("Top coordinate of the match on the page.").nullable(),
15
+ left: z.number().describe("Left coordinate of the match on the page.").nullable(),
16
+ text: z.string().describe("The exact matched text.").nullable(),
17
+ width: z.number().describe("Width of the matched area.").nullable(),
18
+ height: z.number().describe("Height of the matched area.").nullable(),
19
+ pageIndex: z.number().int().describe("Zero-based index of the page where found.").nullable(),
20
+ pageNumber: z.number().int().describe("One-based number of the page where found.").nullable()
21
+ }).passthrough();
22
22
  const pdfCoPdfFind = action("PDF_CO_PDF_FIND", {
23
23
  slug: "pdf_co-pdf-find",
24
24
  name: "Find Text in PDF",
@@ -26,10 +26,10 @@ const pdfCoPdfFind = action("PDF_CO_PDF_FIND", {
26
26
  input: PdfCoPdfFindInput,
27
27
  output: z.object({
28
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'."),
29
+ found: z.number().int().describe("Total number of occurrences found.").nullable(),
30
+ status: z.string().describe("API call status, e.g., 'success'.").nullable(),
31
31
  matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe("List of match details.")
32
- })
32
+ }).passthrough()
33
33
  });
34
34
  //#endregion
35
35
  export { pdfCoPdfFind };
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-find.mjs","names":[],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput: z.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"}
1
+ {"version":3,"file":"pdf-find.mjs","names":[],"sources":["../../src/actions/pdf-find.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfFindInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the PDF file to search.\"),\n pages: z.string().describe(\"Comma-separated page ranges to search, e.g., '1-3,5'.\").optional(),\n password: z.string().describe(\"Password for protected PDF, if applicable.\").optional(),\n profiles: z.string().describe(\"Advanced JSON configuration for PDF processing.\").optional(),\n regexSearch: z.boolean().default(false).describe(\"Whether to treat searchString as a regular expression (default: false).\").optional(),\n searchString: z.string().describe(\"Keyword or regex pattern to find in the document.\"),\n caseSensitive: z.boolean().default(false).describe(\"Whether the search is case-sensitive (default: false).\").optional(),\n}).describe(\"Request model for searching text in a PDF document.\");\nconst PdfCoPdfFind_PdfFindMatchSchema = z.object({\n top: z.number().describe(\"Top coordinate of the match on the page.\").nullable(),\n left: z.number().describe(\"Left coordinate of the match on the page.\").nullable(),\n text: z.string().describe(\"The exact matched text.\").nullable(),\n width: z.number().describe(\"Width of the matched area.\").nullable(),\n height: z.number().describe(\"Height of the matched area.\").nullable(),\n pageIndex: z.number().int().describe(\"Zero-based index of the page where found.\").nullable(),\n pageNumber: z.number().int().describe(\"One-based number of the page where found.\").nullable(),\n}).passthrough();\nexport const PdfCoPdfFindOutput = z.object({\n error: z.string().describe(\"Error message, if any.\").nullable().optional(),\n found: z.number().int().describe(\"Total number of occurrences found.\").nullable(),\n status: z.string().describe(\"API call status, e.g., 'success'.\").nullable(),\n matches: z.array(PdfCoPdfFind_PdfFindMatchSchema).describe(\"List of match details.\"),\n}).passthrough();\n\nexport const pdfCoPdfFind = action(\"PDF_CO_PDF_FIND\", {\n slug: \"pdf_co-pdf-find\",\n name: \"Find Text in PDF\",\n description: \"Tool to find text in a PDF document. Use when you need to locate keywords or regex patterns and get their page positions.\",\n input: PdfCoPdfFindInput,\n output: PdfCoPdfFindOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoB,EAAE,OAAO;CACxC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACrI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACrF,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kCAAkC,EAAE,OAAO;CAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,eAAe,OAAO,mBAAmB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZgC,EAAE,OAAO;EACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC1E,SAAS,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,wBAAwB;CACrF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -9,11 +9,11 @@ const PdfCoPdfFormsInfoReaderInput = zod.z.object({
9
9
  const PdfCoPdfFormsInfoReader_FormFieldInfoSchema = zod.z.object({
10
10
  Top: zod.z.number().describe("Top position of the field.").nullable().optional(),
11
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."),
12
+ Type: zod.z.string().describe("Type of the form field, e.g., CheckBox, EditBox, RadioButton, ComboBox.").nullable(),
13
13
  Value: zod.z.string().describe("Current value of the form field, if any.").nullable().optional(),
14
14
  Width: zod.z.number().describe("Width of the field.").nullable().optional(),
15
15
  Height: zod.z.number().describe("Height of the field.").nullable().optional(),
16
- FieldName: zod.z.string().describe("Internal name of the form field."),
16
+ FieldName: zod.z.string().describe("Internal name of the form field.").nullable(),
17
17
  PageIndex: zod.z.number().int().describe("Page index where the field is located (0-based).").nullable().optional()
18
18
  }).passthrough().describe("Detailed information about a single form field in a PDF.");
19
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.");
@@ -30,7 +30,7 @@ const PdfCoPdfFormsInfoReader_PdfInfoSchema = zod.z.object({
30
30
  }).passthrough().describe("PDF document information including metadata and form fields.");
31
31
  const PdfCoPdfFormsInfoReaderOutput = zod.z.object({
32
32
  info: PdfCoPdfFormsInfoReader_PdfInfoSchema.nullable().optional(),
33
- error: zod.z.boolean().describe("True if an error occurred during processing."),
33
+ error: zod.z.boolean().describe("True if an error occurred during processing.").nullable(),
34
34
  status: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
35
35
  message: zod.z.string().describe("Error or status message.").nullable().optional(),
36
36
  errorCode: zod.z.number().int().describe("Error code if an error occurred.").nullable().optional(),