@keystrokehq/pdf_co 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) 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 -0
  4. package/dist/actions/account-balance-info.cjs.map +1 -1
  5. package/dist/actions/account-balance-info.d.cts +3 -1
  6. package/dist/actions/account-balance-info.d.cts.map +1 -1
  7. package/dist/actions/account-balance-info.d.mts +3 -1
  8. package/dist/actions/account-balance-info.d.mts.map +1 -1
  9. package/dist/actions/account-balance-info.mjs +1 -0
  10. package/dist/actions/account-balance-info.mjs.map +1 -1
  11. package/dist/actions/convert-excel-to-csv.cjs +1 -0
  12. package/dist/actions/convert-excel-to-csv.cjs.map +1 -1
  13. package/dist/actions/convert-excel-to-csv.d.cts +3 -8
  14. package/dist/actions/convert-excel-to-csv.d.cts.map +1 -1
  15. package/dist/actions/convert-excel-to-csv.d.mts +3 -8
  16. package/dist/actions/convert-excel-to-csv.d.mts.map +1 -1
  17. package/dist/actions/convert-excel-to-csv.mjs +1 -0
  18. package/dist/actions/convert-excel-to-csv.mjs.map +1 -1
  19. package/dist/actions/convert-excel-to-html.cjs +1 -0
  20. package/dist/actions/convert-excel-to-html.cjs.map +1 -1
  21. package/dist/actions/convert-excel-to-html.d.cts +3 -6
  22. package/dist/actions/convert-excel-to-html.d.cts.map +1 -1
  23. package/dist/actions/convert-excel-to-html.d.mts +3 -6
  24. package/dist/actions/convert-excel-to-html.d.mts.map +1 -1
  25. package/dist/actions/convert-excel-to-html.mjs +1 -0
  26. package/dist/actions/convert-excel-to-html.mjs.map +1 -1
  27. package/dist/actions/convert-excel-to-json.cjs +1 -0
  28. package/dist/actions/convert-excel-to-json.cjs.map +1 -1
  29. package/dist/actions/convert-excel-to-json.d.cts +3 -7
  30. package/dist/actions/convert-excel-to-json.d.cts.map +1 -1
  31. package/dist/actions/convert-excel-to-json.d.mts +3 -7
  32. package/dist/actions/convert-excel-to-json.d.mts.map +1 -1
  33. package/dist/actions/convert-excel-to-json.mjs +1 -0
  34. package/dist/actions/convert-excel-to-json.mjs.map +1 -1
  35. package/dist/actions/convert-excel-to-text.cjs +1 -0
  36. package/dist/actions/convert-excel-to-text.cjs.map +1 -1
  37. package/dist/actions/convert-excel-to-text.d.cts +3 -9
  38. package/dist/actions/convert-excel-to-text.d.cts.map +1 -1
  39. package/dist/actions/convert-excel-to-text.d.mts +3 -9
  40. package/dist/actions/convert-excel-to-text.d.mts.map +1 -1
  41. package/dist/actions/convert-excel-to-text.mjs +1 -0
  42. package/dist/actions/convert-excel-to-text.mjs.map +1 -1
  43. package/dist/actions/convert-excel-to-xml.cjs +1 -0
  44. package/dist/actions/convert-excel-to-xml.cjs.map +1 -1
  45. package/dist/actions/convert-excel-to-xml.d.cts +3 -18
  46. package/dist/actions/convert-excel-to-xml.d.cts.map +1 -1
  47. package/dist/actions/convert-excel-to-xml.d.mts +3 -18
  48. package/dist/actions/convert-excel-to-xml.d.mts.map +1 -1
  49. package/dist/actions/convert-excel-to-xml.mjs +1 -0
  50. package/dist/actions/convert-excel-to-xml.mjs.map +1 -1
  51. package/dist/actions/document-parser.cjs +1 -0
  52. package/dist/actions/document-parser.cjs.map +1 -1
  53. package/dist/actions/document-parser.d.cts +3 -11
  54. package/dist/actions/document-parser.d.cts.map +1 -1
  55. package/dist/actions/document-parser.d.mts +3 -11
  56. package/dist/actions/document-parser.d.mts.map +1 -1
  57. package/dist/actions/document-parser.mjs +1 -0
  58. package/dist/actions/document-parser.mjs.map +1 -1
  59. package/dist/actions/file-upload.cjs +1 -0
  60. package/dist/actions/file-upload.cjs.map +1 -1
  61. package/dist/actions/file-upload.d.cts +3 -10
  62. package/dist/actions/file-upload.d.cts.map +1 -1
  63. package/dist/actions/file-upload.d.mts +3 -10
  64. package/dist/actions/file-upload.d.mts.map +1 -1
  65. package/dist/actions/file-upload.mjs +1 -0
  66. package/dist/actions/file-upload.mjs.map +1 -1
  67. package/dist/actions/job-check.cjs +1 -0
  68. package/dist/actions/job-check.cjs.map +1 -1
  69. package/dist/actions/job-check.d.cts +3 -4
  70. package/dist/actions/job-check.d.cts.map +1 -1
  71. package/dist/actions/job-check.d.mts +3 -4
  72. package/dist/actions/job-check.d.mts.map +1 -1
  73. package/dist/actions/job-check.mjs +1 -0
  74. package/dist/actions/job-check.mjs.map +1 -1
  75. package/dist/actions/pdf-add.cjs +1 -0
  76. package/dist/actions/pdf-add.cjs.map +1 -1
  77. package/dist/actions/pdf-add.d.cts +3 -8
  78. package/dist/actions/pdf-add.d.cts.map +1 -1
  79. package/dist/actions/pdf-add.d.mts +3 -8
  80. package/dist/actions/pdf-add.d.mts.map +1 -1
  81. package/dist/actions/pdf-add.mjs +1 -0
  82. package/dist/actions/pdf-add.mjs.map +1 -1
  83. package/dist/actions/pdf-change-text-searchable.cjs +1 -0
  84. package/dist/actions/pdf-change-text-searchable.cjs.map +1 -1
  85. package/dist/actions/pdf-change-text-searchable.d.cts +3 -9
  86. package/dist/actions/pdf-change-text-searchable.d.cts.map +1 -1
  87. package/dist/actions/pdf-change-text-searchable.d.mts +3 -9
  88. package/dist/actions/pdf-change-text-searchable.d.mts.map +1 -1
  89. package/dist/actions/pdf-change-text-searchable.mjs +1 -0
  90. package/dist/actions/pdf-change-text-searchable.mjs.map +1 -1
  91. package/dist/actions/pdf-delete-pages.cjs +1 -0
  92. package/dist/actions/pdf-delete-pages.cjs.map +1 -1
  93. package/dist/actions/pdf-delete-pages.d.cts +3 -8
  94. package/dist/actions/pdf-delete-pages.d.cts.map +1 -1
  95. package/dist/actions/pdf-delete-pages.d.mts +3 -8
  96. package/dist/actions/pdf-delete-pages.d.mts.map +1 -1
  97. package/dist/actions/pdf-delete-pages.mjs +1 -0
  98. package/dist/actions/pdf-delete-pages.mjs.map +1 -1
  99. package/dist/actions/pdf-extract-attachments.cjs +1 -0
  100. package/dist/actions/pdf-extract-attachments.cjs.map +1 -1
  101. package/dist/actions/pdf-extract-attachments.d.cts +3 -10
  102. package/dist/actions/pdf-extract-attachments.d.cts.map +1 -1
  103. package/dist/actions/pdf-extract-attachments.d.mts +3 -10
  104. package/dist/actions/pdf-extract-attachments.d.mts.map +1 -1
  105. package/dist/actions/pdf-extract-attachments.mjs +1 -0
  106. package/dist/actions/pdf-extract-attachments.mjs.map +1 -1
  107. package/dist/actions/pdf-find.cjs +1 -0
  108. package/dist/actions/pdf-find.cjs.map +1 -1
  109. package/dist/actions/pdf-find.d.cts +3 -9
  110. package/dist/actions/pdf-find.d.cts.map +1 -1
  111. package/dist/actions/pdf-find.d.mts +3 -9
  112. package/dist/actions/pdf-find.d.mts.map +1 -1
  113. package/dist/actions/pdf-find.mjs +1 -0
  114. package/dist/actions/pdf-find.mjs.map +1 -1
  115. package/dist/actions/pdf-forms-info-reader.cjs +1 -0
  116. package/dist/actions/pdf-forms-info-reader.cjs.map +1 -1
  117. package/dist/actions/pdf-forms-info-reader.d.cts +3 -5
  118. package/dist/actions/pdf-forms-info-reader.d.cts.map +1 -1
  119. package/dist/actions/pdf-forms-info-reader.d.mts +3 -5
  120. package/dist/actions/pdf-forms-info-reader.d.mts.map +1 -1
  121. package/dist/actions/pdf-forms-info-reader.mjs +1 -0
  122. package/dist/actions/pdf-forms-info-reader.mjs.map +1 -1
  123. package/dist/actions/pdf-from-document-txt.cjs +1 -0
  124. package/dist/actions/pdf-from-document-txt.cjs.map +1 -1
  125. package/dist/actions/pdf-from-document-txt.d.cts +3 -6
  126. package/dist/actions/pdf-from-document-txt.d.cts.map +1 -1
  127. package/dist/actions/pdf-from-document-txt.d.mts +3 -6
  128. package/dist/actions/pdf-from-document-txt.d.mts.map +1 -1
  129. package/dist/actions/pdf-from-document-txt.mjs +1 -0
  130. package/dist/actions/pdf-from-document-txt.mjs.map +1 -1
  131. package/dist/actions/pdf-from-email.cjs +1 -0
  132. package/dist/actions/pdf-from-email.cjs.map +1 -1
  133. package/dist/actions/pdf-from-email.d.cts +3 -6
  134. package/dist/actions/pdf-from-email.d.cts.map +1 -1
  135. package/dist/actions/pdf-from-email.d.mts +3 -6
  136. package/dist/actions/pdf-from-email.d.mts.map +1 -1
  137. package/dist/actions/pdf-from-email.mjs +1 -0
  138. package/dist/actions/pdf-from-email.mjs.map +1 -1
  139. package/dist/actions/pdf-from-html.cjs +1 -0
  140. package/dist/actions/pdf-from-html.cjs.map +1 -1
  141. package/dist/actions/pdf-from-html.d.cts +3 -16
  142. package/dist/actions/pdf-from-html.d.cts.map +1 -1
  143. package/dist/actions/pdf-from-html.d.mts +3 -16
  144. package/dist/actions/pdf-from-html.d.mts.map +1 -1
  145. package/dist/actions/pdf-from-html.mjs +1 -0
  146. package/dist/actions/pdf-from-html.mjs.map +1 -1
  147. package/dist/actions/pdf-info-reader.cjs +1 -0
  148. package/dist/actions/pdf-info-reader.cjs.map +1 -1
  149. package/dist/actions/pdf-info-reader.d.cts +3 -3
  150. package/dist/actions/pdf-info-reader.d.cts.map +1 -1
  151. package/dist/actions/pdf-info-reader.d.mts +3 -3
  152. package/dist/actions/pdf-info-reader.d.mts.map +1 -1
  153. package/dist/actions/pdf-info-reader.mjs +1 -0
  154. package/dist/actions/pdf-info-reader.mjs.map +1 -1
  155. package/dist/actions/pdf-merge.cjs +1 -0
  156. package/dist/actions/pdf-merge.cjs.map +1 -1
  157. package/dist/actions/pdf-merge.d.cts +3 -6
  158. package/dist/actions/pdf-merge.d.cts.map +1 -1
  159. package/dist/actions/pdf-merge.d.mts +3 -6
  160. package/dist/actions/pdf-merge.d.mts.map +1 -1
  161. package/dist/actions/pdf-merge.mjs +1 -0
  162. package/dist/actions/pdf-merge.mjs.map +1 -1
  163. package/dist/actions/pdf-rotate.cjs +1 -0
  164. package/dist/actions/pdf-rotate.cjs.map +1 -1
  165. package/dist/actions/pdf-rotate.d.cts +3 -8
  166. package/dist/actions/pdf-rotate.d.cts.map +1 -1
  167. package/dist/actions/pdf-rotate.d.mts +3 -8
  168. package/dist/actions/pdf-rotate.d.mts.map +1 -1
  169. package/dist/actions/pdf-rotate.mjs +1 -0
  170. package/dist/actions/pdf-rotate.mjs.map +1 -1
  171. package/dist/actions/pdf-search-and-delete-text.cjs +1 -0
  172. package/dist/actions/pdf-search-and-delete-text.cjs.map +1 -1
  173. package/dist/actions/pdf-search-and-delete-text.d.cts +3 -10
  174. package/dist/actions/pdf-search-and-delete-text.d.cts.map +1 -1
  175. package/dist/actions/pdf-search-and-delete-text.d.mts +3 -10
  176. package/dist/actions/pdf-search-and-delete-text.d.mts.map +1 -1
  177. package/dist/actions/pdf-search-and-delete-text.mjs +1 -0
  178. package/dist/actions/pdf-search-and-delete-text.mjs.map +1 -1
  179. package/dist/actions/pdf-search-and-replace-text.cjs +1 -0
  180. package/dist/actions/pdf-search-and-replace-text.cjs.map +1 -1
  181. package/dist/actions/pdf-search-and-replace-text.d.cts +3 -9
  182. package/dist/actions/pdf-search-and-replace-text.d.cts.map +1 -1
  183. package/dist/actions/pdf-search-and-replace-text.d.mts +3 -9
  184. package/dist/actions/pdf-search-and-replace-text.d.mts.map +1 -1
  185. package/dist/actions/pdf-search-and-replace-text.mjs +1 -0
  186. package/dist/actions/pdf-search-and-replace-text.mjs.map +1 -1
  187. package/dist/actions/pdf-split.cjs +1 -0
  188. package/dist/actions/pdf-split.cjs.map +1 -1
  189. package/dist/actions/pdf-split.d.cts +3 -22
  190. package/dist/actions/pdf-split.d.cts.map +1 -1
  191. package/dist/actions/pdf-split.d.mts +3 -22
  192. package/dist/actions/pdf-split.d.mts.map +1 -1
  193. package/dist/actions/pdf-split.mjs +1 -0
  194. package/dist/actions/pdf-split.mjs.map +1 -1
  195. package/dist/actions/pdf-to-csv.cjs +1 -0
  196. package/dist/actions/pdf-to-csv.cjs.map +1 -1
  197. package/dist/actions/pdf-to-csv.d.cts +3 -11
  198. package/dist/actions/pdf-to-csv.d.cts.map +1 -1
  199. package/dist/actions/pdf-to-csv.d.mts +3 -11
  200. package/dist/actions/pdf-to-csv.d.mts.map +1 -1
  201. package/dist/actions/pdf-to-csv.mjs +1 -0
  202. package/dist/actions/pdf-to-csv.mjs.map +1 -1
  203. package/dist/actions/pdf-to-html.cjs +1 -0
  204. package/dist/actions/pdf-to-html.cjs.map +1 -1
  205. package/dist/actions/pdf-to-html.d.cts +3 -11
  206. package/dist/actions/pdf-to-html.d.cts.map +1 -1
  207. package/dist/actions/pdf-to-html.d.mts +3 -11
  208. package/dist/actions/pdf-to-html.d.mts.map +1 -1
  209. package/dist/actions/pdf-to-html.mjs +1 -0
  210. package/dist/actions/pdf-to-html.mjs.map +1 -1
  211. package/dist/actions/pdf-to-image.cjs +1 -0
  212. package/dist/actions/pdf-to-image.cjs.map +1 -1
  213. package/dist/actions/pdf-to-image.d.cts +3 -9
  214. package/dist/actions/pdf-to-image.d.cts.map +1 -1
  215. package/dist/actions/pdf-to-image.d.mts +3 -9
  216. package/dist/actions/pdf-to-image.d.mts.map +1 -1
  217. package/dist/actions/pdf-to-image.mjs +1 -0
  218. package/dist/actions/pdf-to-image.mjs.map +1 -1
  219. package/dist/actions/pdf-to-json.cjs +1 -0
  220. package/dist/actions/pdf-to-json.cjs.map +1 -1
  221. package/dist/actions/pdf-to-json.d.cts +3 -11
  222. package/dist/actions/pdf-to-json.d.cts.map +1 -1
  223. package/dist/actions/pdf-to-json.d.mts +3 -11
  224. package/dist/actions/pdf-to-json.d.mts.map +1 -1
  225. package/dist/actions/pdf-to-json.mjs +1 -0
  226. package/dist/actions/pdf-to-json.mjs.map +1 -1
  227. package/dist/actions/pdf-to-text.cjs +1 -0
  228. package/dist/actions/pdf-to-text.cjs.map +1 -1
  229. package/dist/actions/pdf-to-text.d.cts +3 -16
  230. package/dist/actions/pdf-to-text.d.cts.map +1 -1
  231. package/dist/actions/pdf-to-text.d.mts +3 -16
  232. package/dist/actions/pdf-to-text.d.mts.map +1 -1
  233. package/dist/actions/pdf-to-text.mjs +1 -0
  234. package/dist/actions/pdf-to-text.mjs.map +1 -1
  235. package/dist/actions/pdf-to-xls.cjs +1 -0
  236. package/dist/actions/pdf-to-xls.cjs.map +1 -1
  237. package/dist/actions/pdf-to-xls.d.cts +3 -8
  238. package/dist/actions/pdf-to-xls.d.cts.map +1 -1
  239. package/dist/actions/pdf-to-xls.d.mts +3 -8
  240. package/dist/actions/pdf-to-xls.d.mts.map +1 -1
  241. package/dist/actions/pdf-to-xls.mjs +1 -0
  242. package/dist/actions/pdf-to-xls.mjs.map +1 -1
  243. package/dist/actions/pdf-to-xlsx.cjs +1 -0
  244. package/dist/actions/pdf-to-xlsx.cjs.map +1 -1
  245. package/dist/actions/pdf-to-xlsx.d.cts +3 -13
  246. package/dist/actions/pdf-to-xlsx.d.cts.map +1 -1
  247. package/dist/actions/pdf-to-xlsx.d.mts +3 -13
  248. package/dist/actions/pdf-to-xlsx.d.mts.map +1 -1
  249. package/dist/actions/pdf-to-xlsx.mjs +1 -0
  250. package/dist/actions/pdf-to-xlsx.mjs.map +1 -1
  251. package/dist/actions/pdf-to-xml.cjs +1 -0
  252. package/dist/actions/pdf-to-xml.cjs.map +1 -1
  253. package/dist/actions/pdf-to-xml.d.cts +3 -7
  254. package/dist/actions/pdf-to-xml.d.cts.map +1 -1
  255. package/dist/actions/pdf-to-xml.d.mts +3 -7
  256. package/dist/actions/pdf-to-xml.d.mts.map +1 -1
  257. package/dist/actions/pdf-to-xml.mjs +1 -0
  258. package/dist/actions/pdf-to-xml.mjs.map +1 -1
  259. package/dist/actions/pdfco-post-barcode-generate.cjs +1 -0
  260. package/dist/actions/pdfco-post-barcode-generate.cjs.map +1 -1
  261. package/dist/actions/pdfco-post-barcode-generate.d.cts +3 -15
  262. package/dist/actions/pdfco-post-barcode-generate.d.cts.map +1 -1
  263. package/dist/actions/pdfco-post-barcode-generate.d.mts +3 -15
  264. package/dist/actions/pdfco-post-barcode-generate.d.mts.map +1 -1
  265. package/dist/actions/pdfco-post-barcode-generate.mjs +1 -0
  266. package/dist/actions/pdfco-post-barcode-generate.mjs.map +1 -1
  267. package/dist/actions/pdfco-post-file-upload-base64.cjs +1 -0
  268. package/dist/actions/pdfco-post-file-upload-base64.cjs.map +1 -1
  269. package/dist/actions/pdfco-post-file-upload-base64.d.cts +3 -5
  270. package/dist/actions/pdfco-post-file-upload-base64.d.cts.map +1 -1
  271. package/dist/actions/pdfco-post-file-upload-base64.d.mts +3 -5
  272. package/dist/actions/pdfco-post-file-upload-base64.d.mts.map +1 -1
  273. package/dist/actions/pdfco-post-file-upload-base64.mjs +1 -0
  274. package/dist/actions/pdfco-post-file-upload-base64.mjs.map +1 -1
  275. package/dist/app.cjs +5 -2
  276. package/dist/app.cjs.map +1 -1
  277. package/dist/app.d.cts +7 -1
  278. package/dist/app.d.cts.map +1 -1
  279. package/dist/app.d.mts +7 -1
  280. package/dist/app.d.mts.map +1 -1
  281. package/dist/app.mjs +3 -2
  282. package/dist/app.mjs.map +1 -1
  283. package/dist/index.d.cts +1 -1
  284. package/dist/index.d.mts +1 -1
  285. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-rotate.d.ts
@@ -16,14 +18,7 @@ declare const PdfCoPdfRotateOutput: z.ZodObject<{
16
18
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  remaining_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
20
  }, z.core.$loose>;
19
- declare const pdfCoPdfRotate: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- url: string;
21
- angle: 90 | 180 | 270;
22
- pages: string;
23
- name?: string | undefined;
24
- password?: string | undefined;
25
- run_async?: boolean | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const pdfCoPdfRotate: AppAction<typeof PdfCoPdfRotateInput, typeof PdfCoPdfRotateOutput, typeof pdfCo.credential>;
27
22
  //#endregion
28
23
  export { pdfCoPdfRotate };
29
24
  //# sourceMappingURL=pdf-rotate.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-rotate.d.mts","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;cAQpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"pdf-rotate.d.mts","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;cAQpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pdfCoPdfRotate = action("PDF_CO_PDF_ROTATE", {
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-rotate.mjs","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfRotateInput = z.object({\n url: z.string().describe(\"URL of the source PDF file to rotate\"),\n name: z.string().describe(\"Optional filename for the resulting PDF (should end with .pdf)\").optional(),\n angle: z.union([z.literal(90), z.literal(180), z.literal(270)]).describe(\"Rotation angle in degrees; must be one of 90, 180, or 270\"),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')\"),\n password: z.string().describe(\"Password for encrypted PDFs, if required\").optional(),\n run_async: z.boolean().describe(\"Run the operation asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for rotating pages in a PDF document.\");\nexport const PdfCoPdfRotateOutput = z.object({\n url: z.string().describe(\"URL to the resulting rotated PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n message: z.string().describe(\"Success or error message from the API\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of remaining API credits after the call\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFRotate action.\");\n\nexport const pdfCoPdfRotate = action(\"PDF_CO_PDF_ROTATE\", {\n slug: \"pdf_co-pdf-rotate\",\n name: \"Rotate PDF Pages\",\n description: \"Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.\",\n input: PdfCoPdfRotateInput,\n output: PdfCoPdfRotateOutput,\n});\n"],"mappings":";;AAoBA,MAAa,iBAAiB,OAAO,qBAAqB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBiC,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,MAAM;GAAC,EAAE,QAAQ,EAAE;GAAG,EAAE,QAAQ,GAAG;GAAG,EAAE,QAAQ,GAAG;EAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;EACpI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,qDAaH;CACP,QAbkC,EAAE,OAAO;EAC3C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-rotate.mjs","names":[],"sources":["../../src/actions/pdf-rotate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfRotateInput = z.object({\n url: z.string().describe(\"URL of the source PDF file to rotate\"),\n name: z.string().describe(\"Optional filename for the resulting PDF (should end with .pdf)\").optional(),\n angle: z.union([z.literal(90), z.literal(180), z.literal(270)]).describe(\"Rotation angle in degrees; must be one of 90, 180, or 270\"),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to rotate (e.g., '0,2-5')\"),\n password: z.string().describe(\"Password for encrypted PDFs, if required\").optional(),\n run_async: z.boolean().describe(\"Run the operation asynchronously; if true, returns a jobId for status checking\").optional(),\n}).describe(\"Request model for rotating pages in a PDF document.\");\nexport const PdfCoPdfRotateOutput = z.object({\n url: z.string().describe(\"URL to the resulting rotated PDF file\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred\").nullable(),\n status: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n message: z.string().describe(\"Success or error message from the API\").nullable().optional(),\n remaining_credits: z.number().int().describe(\"Number of remaining API credits after the call\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDFRotate action.\");\n\nexport const pdfCoPdfRotate: AppAction<\n typeof PdfCoPdfRotateInput,\n typeof PdfCoPdfRotateOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_ROTATE\", {\n slug: \"pdf_co-pdf-rotate\",\n name: \"Rotate PDF Pages\",\n description: \"Tool to rotate selected pages in a PDF. Use when you need to adjust the orientation of specific pages in an online PDF file before further processing.\",\n input: PdfCoPdfRotateInput,\n output: PdfCoPdfRotateOutput,\n});\n"],"mappings":";;;AAsBA,MAAa,iBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBiC,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,MAAM;GAAC,EAAE,QAAQ,EAAE;GAAG,EAAE,QAAQ,GAAG;GAAG,EAAE,QAAQ,GAAG;EAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;EACpI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,qDAiBH;CACP,QAjBkC,EAAE,OAAO;EAC3C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/pdf-search-and-delete-text.ts
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-search-and-delete-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSearchAndDeleteTextInput = z.object({\n url: z.string().describe(\"URL or base64 content of the source PDF file.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run operation asynchronously. Returns jobId if true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.\").optional(),\n regex: z.boolean().describe(\"Treat searchString as regular expression.\").optional(),\n password: z.string().describe(\"Password for protected PDF if required.\").optional(),\n searchString: z.string().describe(\"Text string or regex pattern to search and delete.\"),\n caseSensitive: z.boolean().describe(\"Enable case-sensitive matching. Default is true.\").optional(),\n}).describe(\"Request model for searching and deleting text in a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndDeleteTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting PDF file after text deletion.\").nullable(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during the operation.\").nullable(),\n status: z.number().int().describe(\"Status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF.\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the request.\").nullable(),\n}).passthrough().describe(\"Response model for searching and deleting text in a PDF.\");\n\nexport const pdfCoPdfSearchAndDeleteText = action(\"PDF_CO_PDF_SEARCH_AND_DELETE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-delete-text\",\n name: \"Search and Delete Text in PDF\",\n description: \"Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.\",\n input: PdfCoPdfSearchAndDeleteTextInput,\n output: PdfCoPdfSearchAndDeleteTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACtF,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,8BAA8BC,eAAAA,OAAO,qCAAqC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-search-and-delete-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfSearchAndDeleteTextInput = z.object({\n url: z.string().describe(\"URL or base64 content of the source PDF file.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run operation asynchronously. Returns jobId if true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.\").optional(),\n regex: z.boolean().describe(\"Treat searchString as regular expression.\").optional(),\n password: z.string().describe(\"Password for protected PDF if required.\").optional(),\n searchString: z.string().describe(\"Text string or regex pattern to search and delete.\"),\n caseSensitive: z.boolean().describe(\"Enable case-sensitive matching. Default is true.\").optional(),\n}).describe(\"Request model for searching and deleting text in a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndDeleteTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting PDF file after text deletion.\").nullable(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during the operation.\").nullable(),\n status: z.number().int().describe(\"Status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF.\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the request.\").nullable(),\n}).passthrough().describe(\"Response model for searching and deleting text in a PDF.\");\n\nexport const pdfCoPdfSearchAndDeleteText: AppAction<\n typeof PdfCoPdfSearchAndDeleteTextInput,\n typeof PdfCoPdfSearchAndDeleteTextOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_SEARCH_AND_DELETE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-delete-text\",\n name: \"Search and Delete Text in PDF\",\n description: \"Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.\",\n input: PdfCoPdfSearchAndDeleteTextInput,\n output: PdfCoPdfSearchAndDeleteTextOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2C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QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-search-and-delete-text.d.ts
@@ -21,16 +23,7 @@ declare const PdfCoPdfSearchAndDeleteTextOutput: z.ZodObject<{
21
23
  pageCount: z.ZodNullable<z.ZodNumber>;
22
24
  remainingCredits: z.ZodNullable<z.ZodNumber>;
23
25
  }, z.core.$loose>;
24
- declare const pdfCoPdfSearchAndDeleteText: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- url: string;
26
- searchString: string;
27
- name?: string | undefined;
28
- async?: boolean | undefined;
29
- pages?: string | undefined;
30
- regex?: boolean | undefined;
31
- password?: string | undefined;
32
- caseSensitive?: boolean | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
+ declare const pdfCoPdfSearchAndDeleteText: AppAction<typeof PdfCoPdfSearchAndDeleteTextInput, typeof PdfCoPdfSearchAndDeleteTextOutput, typeof pdfCo.credential>;
34
27
  //#endregion
35
28
  export { pdfCoPdfSearchAndDeleteText };
36
29
  //# sourceMappingURL=pdf-search-and-delete-text.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-search-and-delete-text.d.cts","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;cAUhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAWjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"pdf-search-and-delete-text.d.cts","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;cAUhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAWjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-search-and-delete-text.d.ts
@@ -21,16 +23,7 @@ declare const PdfCoPdfSearchAndDeleteTextOutput: z.ZodObject<{
21
23
  pageCount: z.ZodNullable<z.ZodNumber>;
22
24
  remainingCredits: z.ZodNullable<z.ZodNumber>;
23
25
  }, z.core.$loose>;
24
- declare const pdfCoPdfSearchAndDeleteText: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- url: string;
26
- searchString: string;
27
- name?: string | undefined;
28
- async?: boolean | undefined;
29
- pages?: string | undefined;
30
- regex?: boolean | undefined;
31
- password?: string | undefined;
32
- caseSensitive?: boolean | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
+ declare const pdfCoPdfSearchAndDeleteText: AppAction<typeof PdfCoPdfSearchAndDeleteTextInput, typeof PdfCoPdfSearchAndDeleteTextOutput, typeof pdfCo.credential>;
34
27
  //#endregion
35
28
  export { pdfCoPdfSearchAndDeleteText };
36
29
  //# sourceMappingURL=pdf-search-and-delete-text.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-search-and-delete-text.d.mts","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;cAUhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAWjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"pdf-search-and-delete-text.d.mts","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;cAUhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAWjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pdfCoPdfSearchAndDeleteText = action("PDF_CO_PDF_SEARCH_AND_DELETE_TEXT", {
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-search-and-delete-text.mjs","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSearchAndDeleteTextInput = z.object({\n url: z.string().describe(\"URL or base64 content of the source PDF file.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run operation asynchronously. Returns jobId if true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.\").optional(),\n regex: z.boolean().describe(\"Treat searchString as regular expression.\").optional(),\n password: z.string().describe(\"Password for protected PDF if required.\").optional(),\n searchString: z.string().describe(\"Text string or regex pattern to search and delete.\"),\n caseSensitive: z.boolean().describe(\"Enable case-sensitive matching. Default is true.\").optional(),\n}).describe(\"Request model for searching and deleting text in a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndDeleteTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting PDF file after text deletion.\").nullable(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during the operation.\").nullable(),\n status: z.number().int().describe(\"Status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF.\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the request.\").nullable(),\n}).passthrough().describe(\"Response model for searching and deleting text in a PDF.\");\n\nexport const pdfCoPdfSearchAndDeleteText = action(\"PDF_CO_PDF_SEARCH_AND_DELETE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-delete-text\",\n name: \"Search and Delete Text in PDF\",\n description: \"Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.\",\n input: PdfCoPdfSearchAndDeleteTextInput,\n output: PdfCoPdfSearchAndDeleteTextOutput,\n});\n"],"mappings":";;AAyBA,MAAa,8BAA8B,OAAO,qCAAqC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB8C,EAAE,OAAO;EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC3H,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACtF,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,wEAgBH;CACP,QAhB+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-search-and-delete-text.mjs","names":[],"sources":["../../src/actions/pdf-search-and-delete-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfSearchAndDeleteTextInput = z.object({\n url: z.string().describe(\"URL or base64 content of the source PDF file.\"),\n name: z.string().describe(\"Desired output filename for the PDF result.\").optional(),\n async: z.boolean().describe(\"Run operation asynchronously. Returns jobId if true.\").optional(),\n pages: z.string().describe(\"Comma-separated list of page indices or ranges to process (0-based), e.g., '0,2-5'.\").optional(),\n regex: z.boolean().describe(\"Treat searchString as regular expression.\").optional(),\n password: z.string().describe(\"Password for protected PDF if required.\").optional(),\n searchString: z.string().describe(\"Text string or regex pattern to search and delete.\"),\n caseSensitive: z.boolean().describe(\"Enable case-sensitive matching. Default is true.\").optional(),\n}).describe(\"Request model for searching and deleting text in a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndDeleteTextOutput = z.object({\n url: z.string().describe(\"URL to the resulting PDF file after text deletion.\").nullable(),\n name: z.string().describe(\"Output filename.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during the operation.\").nullable(),\n status: z.number().int().describe(\"Status code of the operation.\").nullable(),\n credits: z.number().int().describe(\"Credits consumed for this operation.\").nullable().optional(),\n duration: z.number().int().describe(\"Processing duration in milliseconds.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the output PDF.\").nullable(),\n remainingCredits: z.number().int().describe(\"Remaining API credits after the request.\").nullable(),\n}).passthrough().describe(\"Response model for searching and deleting text in a PDF.\");\n\nexport const pdfCoPdfSearchAndDeleteText: AppAction<\n typeof PdfCoPdfSearchAndDeleteTextInput,\n typeof PdfCoPdfSearchAndDeleteTextOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_SEARCH_AND_DELETE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-delete-text\",\n name: \"Search and Delete Text in PDF\",\n description: \"Tool to search for and delete text in a PDF by keyword or regex. Use when you need to remove sensitive or unwanted text from a PDF document.\",\n input: PdfCoPdfSearchAndDeleteTextInput,\n output: PdfCoPdfSearchAndDeleteTextOutput,\n});\n"],"mappings":";;;AA2BA,MAAa,8BAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7B8C,EAAE,OAAO;EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC3H,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACtF,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,wEAoBH;CACP,QApB+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/pdf-search-and-replace-text.ts
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-search-and-replace-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-search-and-replace-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSearchAndReplaceTextInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the source PDF file.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n async: z.boolean().describe(\"Set to true to run process asynchronously (returns jobId).\").optional(),\n password: z.string().describe(\"Password for protected PDF, if required.\").optional(),\n regexSearch: z.boolean().describe(\"Enable regular expression search if true.\").optional(),\n searchString: z.string().describe(\"Text to search for in the document.\"),\n replaceString: z.string().describe(\"Text to replace each found occurrence with.\"),\n}).describe(\"Request model for searching and replacing text within a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndReplaceTextOutput = z.object({\n url: z.string().describe(\"URL of the modified PDF file.\").nullable().optional(),\n name: z.string().describe(\"Name of the output file.\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async operations.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\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 errorCode: z.number().int().describe(\"Error code if any.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining credits after operation.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF search and replace text operation.\");\n\nexport const pdfCoPdfSearchAndReplaceText = action(\"PDF_CO_PDF_SEARCH_AND_REPLACE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-replace-text\",\n name: \"Search and Replace Text in PDF\",\n description: \"Tool to search for and replace text in a PDF document. Use when you need to update specific text instances within an existing PDF file (e.g., changing invoice numbers).\",\n input: PdfCoPdfSearchAndReplaceTextInput,\n output: PdfCoPdfSearchAndReplaceTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CA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AAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,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,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,+BAA+BC,eAAAA,OAAO,sCAAsC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-search-and-replace-text.cjs","names":["z","action"],"sources":["../../src/actions/pdf-search-and-replace-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfSearchAndReplaceTextInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the source PDF file.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n async: z.boolean().describe(\"Set to true to run process asynchronously (returns jobId).\").optional(),\n password: z.string().describe(\"Password for protected PDF, if required.\").optional(),\n regexSearch: z.boolean().describe(\"Enable regular expression search if true.\").optional(),\n searchString: z.string().describe(\"Text to search for in the document.\"),\n replaceString: z.string().describe(\"Text to replace each found occurrence with.\"),\n}).describe(\"Request model for searching and replacing text within a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndReplaceTextOutput = z.object({\n url: z.string().describe(\"URL of the modified PDF file.\").nullable().optional(),\n name: z.string().describe(\"Name of the output file.\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async operations.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\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 errorCode: z.number().int().describe(\"Error code if any.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining credits after operation.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF search and replace text operation.\");\n\nexport const pdfCoPdfSearchAndReplaceText: AppAction<\n typeof PdfCoPdfSearchAndReplaceTextInput,\n typeof PdfCoPdfSearchAndReplaceTextOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_SEARCH_AND_REPLACE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-replace-text\",\n name: \"Search and Replace Text in PDF\",\n description: \"Tool to search for and replace text in a PDF document. Use when you need to update specific text instances within an existing PDF file (e.g., changing invoice numbers).\",\n input: PdfCoPdfSearchAndReplaceTextInput,\n output: PdfCoPdfSearchAndReplaceTextOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACvE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAClF,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,qCAAqCA,IAAAA,E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Q;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-search-and-replace-text.d.ts
@@ -22,15 +24,7 @@ declare const PdfCoPdfSearchAndReplaceTextOutput: z.ZodObject<{
22
24
  pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
25
  remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
26
  }, z.core.$loose>;
25
- declare const pdfCoPdfSearchAndReplaceText: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- url: string;
27
- searchString: string;
28
- replaceString: string;
29
- name?: string | undefined;
30
- async?: boolean | undefined;
31
- password?: string | undefined;
32
- regexSearch?: boolean | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const pdfCoPdfSearchAndReplaceText: AppAction<typeof PdfCoPdfSearchAndReplaceTextInput, typeof PdfCoPdfSearchAndReplaceTextOutput, typeof pdfCo.credential>;
34
28
  //#endregion
35
29
  export { pdfCoPdfSearchAndReplaceText };
36
30
  //# sourceMappingURL=pdf-search-and-replace-text.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-search-and-replace-text.d.cts","names":[],"sources":["../../src/actions/pdf-search-and-replace-text.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cASjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"pdf-search-and-replace-text.d.cts","names":[],"sources":["../../src/actions/pdf-search-and-replace-text.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cASjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-search-and-replace-text.d.ts
@@ -22,15 +24,7 @@ declare const PdfCoPdfSearchAndReplaceTextOutput: z.ZodObject<{
22
24
  pageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
25
  remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
26
  }, z.core.$loose>;
25
- declare const pdfCoPdfSearchAndReplaceText: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- url: string;
27
- searchString: string;
28
- replaceString: string;
29
- name?: string | undefined;
30
- async?: boolean | undefined;
31
- password?: string | undefined;
32
- regexSearch?: boolean | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const pdfCoPdfSearchAndReplaceText: AppAction<typeof PdfCoPdfSearchAndReplaceTextInput, typeof PdfCoPdfSearchAndReplaceTextOutput, typeof pdfCo.credential>;
34
28
  //#endregion
35
29
  export { pdfCoPdfSearchAndReplaceText };
36
30
  //# sourceMappingURL=pdf-search-and-replace-text.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-search-and-replace-text.d.mts","names":[],"sources":["../../src/actions/pdf-search-and-replace-text.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cASjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"pdf-search-and-replace-text.d.mts","names":[],"sources":["../../src/actions/pdf-search-and-replace-text.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cASjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pdfCoPdfSearchAndReplaceText = action("PDF_CO_PDF_SEARCH_AND_REPLACE_TEXT", {
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-search-and-replace-text.mjs","names":[],"sources":["../../src/actions/pdf-search-and-replace-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSearchAndReplaceTextInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the source PDF file.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n async: z.boolean().describe(\"Set to true to run process asynchronously (returns jobId).\").optional(),\n password: z.string().describe(\"Password for protected PDF, if required.\").optional(),\n regexSearch: z.boolean().describe(\"Enable regular expression search if true.\").optional(),\n searchString: z.string().describe(\"Text to search for in the document.\"),\n replaceString: z.string().describe(\"Text to replace each found occurrence with.\"),\n}).describe(\"Request model for searching and replacing text within a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndReplaceTextOutput = z.object({\n url: z.string().describe(\"URL of the modified PDF file.\").nullable().optional(),\n name: z.string().describe(\"Name of the output file.\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async operations.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\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 errorCode: z.number().int().describe(\"Error code if any.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining credits after operation.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF search and replace text operation.\");\n\nexport const pdfCoPdfSearchAndReplaceText = action(\"PDF_CO_PDF_SEARCH_AND_REPLACE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-replace-text\",\n name: \"Search and Replace Text in PDF\",\n description: \"Tool to search for and replace text in a PDF document. Use when you need to update specific text instances within an existing PDF file (e.g., changing invoice numbers).\",\n input: PdfCoPdfSearchAndReplaceTextInput,\n output: PdfCoPdfSearchAndReplaceTextOutput,\n});\n"],"mappings":";;AA0BA,MAAa,+BAA+B,OAAO,sCAAsC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1B+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACvE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAClF,CAAC,CAAC,CAAC,SAAS,6EAkBH;CACP,QAlBgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpE,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,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,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,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-search-and-replace-text.mjs","names":[],"sources":["../../src/actions/pdf-search-and-replace-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfSearchAndReplaceTextInput = z.object({\n url: z.string().describe(\"Publicly accessible URL of the source PDF file.\"),\n name: z.string().describe(\"Optional name for the resulting PDF file.\").optional(),\n async: z.boolean().describe(\"Set to true to run process asynchronously (returns jobId).\").optional(),\n password: z.string().describe(\"Password for protected PDF, if required.\").optional(),\n regexSearch: z.boolean().describe(\"Enable regular expression search if true.\").optional(),\n searchString: z.string().describe(\"Text to search for in the document.\"),\n replaceString: z.string().describe(\"Text to replace each found occurrence with.\"),\n}).describe(\"Request model for searching and replacing text within a PDF via PDF.co API.\");\nexport const PdfCoPdfSearchAndReplaceTextOutput = z.object({\n url: z.string().describe(\"URL of the modified PDF file.\").nullable().optional(),\n name: z.string().describe(\"Name of the output file.\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for async operations.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]).nullable().optional(),\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 errorCode: z.number().int().describe(\"Error code if any.\").nullable().optional(),\n pageCount: z.number().int().describe(\"Number of pages in the PDF.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Remaining credits after operation.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF search and replace text operation.\");\n\nexport const pdfCoPdfSearchAndReplaceText: AppAction<\n typeof PdfCoPdfSearchAndReplaceTextInput,\n typeof PdfCoPdfSearchAndReplaceTextOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_SEARCH_AND_REPLACE_TEXT\", {\n slug: \"pdf_co-pdf-search-and-replace-text\",\n name: \"Search and Replace Text in PDF\",\n description: \"Tool to search for and replace text in a PDF document. Use when you need to update specific text instances within an existing PDF file (e.g., changing invoice numbers).\",\n input: PdfCoPdfSearchAndReplaceTextInput,\n output: PdfCoPdfSearchAndReplaceTextOutput,\n});\n"],"mappings":";;;AA4BA,MAAa,+BAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9B+C,EAAE,OAAO;EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SA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AC,YAAY,CAAC,CAAC,SAAS,2DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/pdf-split.ts
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-split.cjs","names":["z","action"],"sources":["../../src/actions/pdf-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSplitInput = z.object({\n url: z.string().describe(\"Public URL of the PDF file to split.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"PDF file to upload for splitting instead of using a URL.\").optional(),\n name: z.string().describe(\"Base name for output files; each part receives a suffix.\").optional(),\n pages: z.string().describe(\"Comma-separated or dash page ranges to split, e.g. '1-2,4'. 1-based indexing; omit to split all pages.\").optional(),\n inline: z.boolean().default(false).describe(\"Return split documents inline (base64) instead of URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for async notifications; only used when run_async is True.\").optional(),\n password: z.string().describe(\"Owner password for encrypted PDF files, if any.\").optional(),\n profiles: z.record(z.string(), z.unknown()).describe(\"Advanced processing profiles as JSON-formatted dict.\").optional(),\n run_async: z.boolean().default(false).describe(\"Run processing asynchronously; returns jobId instead of immediate results.\").optional(),\n expiration: z.number().int().describe(\"Minutes before temporary output links expire; default is service default.\").optional(),\n httppassword: z.string().describe(\"HTTP basic auth password if the source URL is protected.\").optional(),\n httpusername: z.string().describe(\"HTTP basic auth username if the source URL is protected.\").optional(),\n DataEncryptionIV: z.string().describe(\"Base64-encoded IV for output data encryption.\").optional(),\n outputDataFormat: z.string().describe(\"Set to 'base64' to return split PDFs as base64 strings.\").optional(),\n DataEncryptionKey: z.string().describe(\"Base64-encoded key for output data encryption.\").optional(),\n DataEncryptionAlgorithm: z.string().describe(\"Algorithm for user-controlled output encryption (AES128, AES192, AES256).\").optional(),\n}).describe(\"Request model for splitting a PDF file into multiple documents by page ranges.\\nAt least one of `url` or `file` must be provided.\");\nexport const PdfCoPdfSplitOutput = z.object({\n urls: z.array(z.string()).describe(\"URLs of the resulting split PDF files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for asynchronous operations.\").nullable().optional(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n documents: z.array(z.string()).describe(\"Base64-encoded split PDF documents when inline is True.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF split action.\");\n\nexport const pdfCoPdfSplit = action(\"PDF_CO_PDF_SPLIT\", {\n slug: \"pdf_co-pdf-split\",\n name: \"Split PDF\",\n description: \"Tool to split a PDF into multiple files by page ranges. Use when you need to extract specific pages or page ranges from a PDF.\",\n input: PdfCoPdfSplitInput,\n output: PdfCoPdfSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SA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C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,gBAAgBC,eAAAA,OAAO,oBAAoB;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-split.cjs","names":["z","action"],"sources":["../../src/actions/pdf-split.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfSplitInput = z.object({\n url: z.string().describe(\"Public URL of the PDF file to split.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"PDF file to upload for splitting instead of using a URL.\").optional(),\n name: z.string().describe(\"Base name for output files; each part receives a suffix.\").optional(),\n pages: z.string().describe(\"Comma-separated or dash page ranges to split, e.g. '1-2,4'. 1-based indexing; omit to split all pages.\").optional(),\n inline: z.boolean().default(false).describe(\"Return split documents inline (base64) instead of URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for async notifications; only used when run_async is True.\").optional(),\n password: z.string().describe(\"Owner password for encrypted PDF files, if any.\").optional(),\n profiles: z.record(z.string(), z.unknown()).describe(\"Advanced processing profiles as JSON-formatted dict.\").optional(),\n run_async: z.boolean().default(false).describe(\"Run processing asynchronously; returns jobId instead of immediate results.\").optional(),\n expiration: z.number().int().describe(\"Minutes before temporary output links expire; default is service default.\").optional(),\n httppassword: z.string().describe(\"HTTP basic auth password if the source URL is protected.\").optional(),\n httpusername: z.string().describe(\"HTTP basic auth username if the source URL is protected.\").optional(),\n DataEncryptionIV: z.string().describe(\"Base64-encoded IV for output data encryption.\").optional(),\n outputDataFormat: z.string().describe(\"Set to 'base64' to return split PDFs as base64 strings.\").optional(),\n DataEncryptionKey: z.string().describe(\"Base64-encoded key for output data encryption.\").optional(),\n DataEncryptionAlgorithm: z.string().describe(\"Algorithm for user-controlled output encryption (AES128, AES192, AES256).\").optional(),\n}).describe(\"Request model for splitting a PDF file into multiple documents by page ranges.\\nAt least one of `url` or `file` must be provided.\");\nexport const PdfCoPdfSplitOutput = z.object({\n urls: z.array(z.string()).describe(\"URLs of the resulting split PDF files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for asynchronous operations.\").nullable().optional(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n documents: z.array(z.string()).describe(\"Base64-encoded split PDF documents when inline is True.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF split action.\");\n\nexport const pdfCoPdfSplit: AppAction<\n typeof PdfCoPdfSplitInput,\n typeof PdfCoPdfSplitOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_SPLIT\", {\n slug: \"pdf_co-pdf-split\",\n name: \"Split PDF\",\n description: \"Tool to split a PDF into multiple files by page ranges. Use when you need to extract specific pages or page ranges from a PDF.\",\n input: PdfCoPdfSplitInput,\n output: PdfCoPdfSplitOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC9I,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2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CAAsC;AAEhE,MAAa,gBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-split.d.ts
@@ -31,28 +33,7 @@ declare const PdfCoPdfSplitOutput: z.ZodObject<{
31
33
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
34
  documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
33
35
  }, z.core.$loose>;
34
- declare const pdfCoPdfSplit: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- url?: string | undefined;
36
- file?: {
37
- name: string;
38
- s3key: string;
39
- mimetype: string;
40
- } | undefined;
41
- name?: string | undefined;
42
- pages?: string | undefined;
43
- inline?: boolean | undefined;
44
- callback?: string | undefined;
45
- password?: string | undefined;
46
- profiles?: Record<string, unknown> | undefined;
47
- run_async?: boolean | undefined;
48
- expiration?: number | undefined;
49
- httppassword?: string | undefined;
50
- httpusername?: string | undefined;
51
- DataEncryptionIV?: string | undefined;
52
- outputDataFormat?: string | undefined;
53
- DataEncryptionKey?: string | undefined;
54
- DataEncryptionAlgorithm?: string | undefined;
55
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ declare const pdfCoPdfSplit: AppAction<typeof PdfCoPdfSplitInput, typeof PdfCoPdfSplitOutput, typeof pdfCo.credential>;
56
37
  //#endregion
57
38
  export { pdfCoPdfSplit };
58
39
  //# sourceMappingURL=pdf-split.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-split.d.cts","names":[],"sources":["../../src/actions/pdf-split.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAsBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cASnB,aAAA,gCAAa,wBAAA;;;;;;;;;;;;aAMxB,MAAA"}
1
+ {"version":3,"file":"pdf-split.d.cts","names":[],"sources":["../../src/actions/pdf-split.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAsBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cASnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-split.d.ts
@@ -31,28 +33,7 @@ declare const PdfCoPdfSplitOutput: z.ZodObject<{
31
33
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
34
  documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
33
35
  }, z.core.$loose>;
34
- declare const pdfCoPdfSplit: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- url?: string | undefined;
36
- file?: {
37
- name: string;
38
- s3key: string;
39
- mimetype: string;
40
- } | undefined;
41
- name?: string | undefined;
42
- pages?: string | undefined;
43
- inline?: boolean | undefined;
44
- callback?: string | undefined;
45
- password?: string | undefined;
46
- profiles?: Record<string, unknown> | undefined;
47
- run_async?: boolean | undefined;
48
- expiration?: number | undefined;
49
- httppassword?: string | undefined;
50
- httpusername?: string | undefined;
51
- DataEncryptionIV?: string | undefined;
52
- outputDataFormat?: string | undefined;
53
- DataEncryptionKey?: string | undefined;
54
- DataEncryptionAlgorithm?: string | undefined;
55
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ declare const pdfCoPdfSplit: AppAction<typeof PdfCoPdfSplitInput, typeof PdfCoPdfSplitOutput, typeof pdfCo.credential>;
56
37
  //#endregion
57
38
  export { pdfCoPdfSplit };
58
39
  //# sourceMappingURL=pdf-split.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-split.d.mts","names":[],"sources":["../../src/actions/pdf-split.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAsBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cASnB,aAAA,gCAAa,wBAAA;;;;;;;;;;;;aAMxB,MAAA"}
1
+ {"version":3,"file":"pdf-split.d.mts","names":[],"sources":["../../src/actions/pdf-split.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAsBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cASnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pdfCoPdfSplit = action("PDF_CO_PDF_SPLIT", {
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-split.mjs","names":[],"sources":["../../src/actions/pdf-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfSplitInput = z.object({\n url: z.string().describe(\"Public URL of the PDF file to split.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"PDF file to upload for splitting instead of using a URL.\").optional(),\n name: z.string().describe(\"Base name for output files; each part receives a suffix.\").optional(),\n pages: z.string().describe(\"Comma-separated or dash page ranges to split, e.g. '1-2,4'. 1-based indexing; omit to split all pages.\").optional(),\n inline: z.boolean().default(false).describe(\"Return split documents inline (base64) instead of URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for async notifications; only used when run_async is True.\").optional(),\n password: z.string().describe(\"Owner password for encrypted PDF files, if any.\").optional(),\n profiles: z.record(z.string(), z.unknown()).describe(\"Advanced processing profiles as JSON-formatted dict.\").optional(),\n run_async: z.boolean().default(false).describe(\"Run processing asynchronously; returns jobId instead of immediate results.\").optional(),\n expiration: z.number().int().describe(\"Minutes before temporary output links expire; default is service default.\").optional(),\n httppassword: z.string().describe(\"HTTP basic auth password if the source URL is protected.\").optional(),\n httpusername: z.string().describe(\"HTTP basic auth username if the source URL is protected.\").optional(),\n DataEncryptionIV: z.string().describe(\"Base64-encoded IV for output data encryption.\").optional(),\n outputDataFormat: z.string().describe(\"Set to 'base64' to return split PDFs as base64 strings.\").optional(),\n DataEncryptionKey: z.string().describe(\"Base64-encoded key for output data encryption.\").optional(),\n DataEncryptionAlgorithm: z.string().describe(\"Algorithm for user-controlled output encryption (AES128, AES192, AES256).\").optional(),\n}).describe(\"Request model for splitting a PDF file into multiple documents by page ranges.\\nAt least one of `url` or `file` must be provided.\");\nexport const PdfCoPdfSplitOutput = z.object({\n urls: z.array(z.string()).describe(\"URLs of the resulting split PDF files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for asynchronous operations.\").nullable().optional(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n documents: z.array(z.string()).describe(\"Base64-encoded split PDF documents when inline is True.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF split action.\");\n\nexport const pdfCoPdfSplit = action(\"PDF_CO_PDF_SPLIT\", {\n slug: \"pdf_co-pdf-split\",\n name: \"Split PDF\",\n description: \"Tool to split a PDF into multiple files by page ranges. Use when you need to extract specific pages or page ranges from a PDF.\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AS,0DAA0D,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC1G,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAClG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,mIAcH;CACP,QAdiC,EAAE,OAAO;EAC1C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-split.mjs","names":[],"sources":["../../src/actions/pdf-split.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfSplitInput = z.object({\n url: z.string().describe(\"Public URL of the PDF file to split.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"PDF file to upload for splitting instead of using a URL.\").optional(),\n name: z.string().describe(\"Base name for output files; each part receives a suffix.\").optional(),\n pages: z.string().describe(\"Comma-separated or dash page ranges to split, e.g. '1-2,4'. 1-based indexing; omit to split all pages.\").optional(),\n inline: z.boolean().default(false).describe(\"Return split documents inline (base64) instead of URLs.\").optional(),\n callback: z.string().describe(\"Webhook URL for async notifications; only used when run_async is True.\").optional(),\n password: z.string().describe(\"Owner password for encrypted PDF files, if any.\").optional(),\n profiles: z.record(z.string(), z.unknown()).describe(\"Advanced processing profiles as JSON-formatted dict.\").optional(),\n run_async: z.boolean().default(false).describe(\"Run processing asynchronously; returns jobId instead of immediate results.\").optional(),\n expiration: z.number().int().describe(\"Minutes before temporary output links expire; default is service default.\").optional(),\n httppassword: z.string().describe(\"HTTP basic auth password if the source URL is protected.\").optional(),\n httpusername: z.string().describe(\"HTTP basic auth username if the source URL is protected.\").optional(),\n DataEncryptionIV: z.string().describe(\"Base64-encoded IV for output data encryption.\").optional(),\n outputDataFormat: z.string().describe(\"Set to 'base64' to return split PDFs as base64 strings.\").optional(),\n DataEncryptionKey: z.string().describe(\"Base64-encoded key for output data encryption.\").optional(),\n DataEncryptionAlgorithm: z.string().describe(\"Algorithm for user-controlled output encryption (AES128, AES192, AES256).\").optional(),\n}).describe(\"Request model for splitting a PDF file into multiple documents by page ranges.\\nAt least one of `url` or `file` must be provided.\");\nexport const PdfCoPdfSplitOutput = z.object({\n urls: z.array(z.string()).describe(\"URLs of the resulting split PDF files.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred.\").nullable(),\n jobId: z.string().describe(\"Job ID for asynchronous operations.\").nullable().optional(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n documents: z.array(z.string()).describe(\"Base64-encoded split PDF documents when inline is True.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF split action.\");\n\nexport const pdfCoPdfSplit: AppAction<\n typeof PdfCoPdfSplitInput,\n typeof PdfCoPdfSplitOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_SPLIT\", {\n slug: \"pdf_co-pdf-split\",\n name: \"Split PDF\",\n description: \"Tool to split a PDF into multiple files by page ranges. Use when you need to extract specific pages or page ranges from a PDF.\",\n input: PdfCoPdfSplitInput,\n output: PdfCoPdfSplitOutput,\n});\n"],"mappings":";;;AAqCA,MAAa,gBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvCgC,EAAE,OAAO;EACzC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;EAC9I,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,Q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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/pdf-to-csv.ts
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-to-csv.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-csv.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToCsvInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\"),\n lang: z.string().describe(\"Language for OCR text recognition (e.g., 'eng', 'deu').\").optional(),\n name: z.string().describe(\"Optional name for the output CSV file (must end with .csv).\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n inline: z.boolean().describe(\"If true, returns CSV data inline; otherwise returns a URL to the CSV.\").optional(),\n encrypt: z.boolean().describe(\"If true, encrypts the output CSV file.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion settings in JSON format.\").optional(),\n run_async: z.boolean().describe(\"Run job asynchronously; returns jobId for status checking.\").optional(),\n}).describe(\"Request model for converting PDF documents to CSV.\");\nexport const PdfCoPdfToCsvOutput = z.object({\n url: z.string().describe(\"URL to the resulting CSV file or inline CSV data.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of remaining credits after the call.\").nullable().optional(),\n estimatedExecutionTime: z.string().describe(\"Estimated time for async request processing.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to CSV conversion.\");\n\nexport const pdfCoPdfToCsv = action(\"PDF_CO_PDF_TO_CSV\", {\n slug: \"pdf_co-pdf-to-csv\",\n name: \"Convert PDF to CSV\",\n description: \"Tool to convert PDF or scanned images to CSV format. Use when you need to extract tabular data from a PDF into CSV format.\",\n input: PdfCoPdfToCsvInput,\n output: PdfCoPdfToCsvOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,gBAAgBC,eAAAA,OAAO,qBAAqB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"pdf-to-csv.cjs","names":["z","action"],"sources":["../../src/actions/pdf-to-csv.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToCsvInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\"),\n lang: z.string().describe(\"Language for OCR text recognition (e.g., 'eng', 'deu').\").optional(),\n name: z.string().describe(\"Optional name for the output CSV file (must end with .csv).\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n inline: z.boolean().describe(\"If true, returns CSV data inline; otherwise returns a URL to the CSV.\").optional(),\n encrypt: z.boolean().describe(\"If true, encrypts the output CSV file.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion settings in JSON format.\").optional(),\n run_async: z.boolean().describe(\"Run job asynchronously; returns jobId for status checking.\").optional(),\n}).describe(\"Request model for converting PDF documents to CSV.\");\nexport const PdfCoPdfToCsvOutput = z.object({\n url: z.string().describe(\"URL to the resulting CSV file or inline CSV data.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of remaining credits after the call.\").nullable().optional(),\n estimatedExecutionTime: z.string().describe(\"Estimated time for async request processing.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to CSV conversion.\");\n\nexport const pdfCoPdfToCsv: AppAction<\n typeof PdfCoPdfToCsvInput,\n typeof PdfCoPdfToCsvOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_CSV\", {\n slug: \"pdf_co-pdf-to-csv\",\n name: \"Convert PDF to CSV\",\n description: \"Tool to convert PDF or scanned images to CSV format. Use when you need to extract tabular data from a PDF into CSV format.\",\n input: PdfCoPdfToCsvInput,\n output: PdfCoPdfToCsvOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,gBAITC,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-to-csv.d.ts
@@ -20,17 +22,7 @@ declare const PdfCoPdfToCsvOutput: z.ZodObject<{
20
22
  remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  estimatedExecutionTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>;
23
- declare const pdfCoPdfToCsv: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- url: string;
25
- lang?: string | undefined;
26
- name?: string | undefined;
27
- pages?: string | undefined;
28
- inline?: boolean | undefined;
29
- encrypt?: boolean | undefined;
30
- password?: string | undefined;
31
- profiles?: string | undefined;
32
- run_async?: boolean | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ declare const pdfCoPdfToCsv: AppAction<typeof PdfCoPdfToCsvInput, typeof PdfCoPdfToCsvOutput, typeof pdfCo.credential>;
34
26
  //#endregion
35
27
  export { pdfCoPdfToCsv };
36
28
  //# sourceMappingURL=pdf-to-csv.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-to-csv.d.cts","names":[],"sources":["../../src/actions/pdf-to-csv.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cASnB,aAAA,gCAAa,wBAAA"}
1
+ {"version":3,"file":"pdf-to-csv.d.cts","names":[],"sources":["../../src/actions/pdf-to-csv.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cASnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pdfCo } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/pdf-to-csv.d.ts
@@ -20,17 +22,7 @@ declare const PdfCoPdfToCsvOutput: z.ZodObject<{
20
22
  remainingCredits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  estimatedExecutionTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>;
23
- declare const pdfCoPdfToCsv: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- url: string;
25
- lang?: string | undefined;
26
- name?: string | undefined;
27
- pages?: string | undefined;
28
- inline?: boolean | undefined;
29
- encrypt?: boolean | undefined;
30
- password?: string | undefined;
31
- profiles?: string | undefined;
32
- run_async?: boolean | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ declare const pdfCoPdfToCsv: AppAction<typeof PdfCoPdfToCsvInput, typeof PdfCoPdfToCsvOutput, typeof pdfCo.credential>;
34
26
  //#endregion
35
27
  export { pdfCoPdfToCsv };
36
28
  //# sourceMappingURL=pdf-to-csv.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-to-csv.d.mts","names":[],"sources":["../../src/actions/pdf-to-csv.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cASnB,aAAA,gCAAa,wBAAA"}
1
+ {"version":3,"file":"pdf-to-csv.d.mts","names":[],"sources":["../../src/actions/pdf-to-csv.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cASnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const pdfCoPdfToCsv = action("PDF_CO_PDF_TO_CSV", {
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-to-csv.mjs","names":[],"sources":["../../src/actions/pdf-to-csv.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PdfCoPdfToCsvInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\"),\n lang: z.string().describe(\"Language for OCR text recognition (e.g., 'eng', 'deu').\").optional(),\n name: z.string().describe(\"Optional name for the output CSV file (must end with .csv).\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n inline: z.boolean().describe(\"If true, returns CSV data inline; otherwise returns a URL to the CSV.\").optional(),\n encrypt: z.boolean().describe(\"If true, encrypts the output CSV file.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion settings in JSON format.\").optional(),\n run_async: z.boolean().describe(\"Run job asynchronously; returns jobId for status checking.\").optional(),\n}).describe(\"Request model for converting PDF documents to CSV.\");\nexport const PdfCoPdfToCsvOutput = z.object({\n url: z.string().describe(\"URL to the resulting CSV file or inline CSV data.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of remaining credits after the call.\").nullable().optional(),\n estimatedExecutionTime: z.string().describe(\"Estimated time for async request processing.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to CSV conversion.\");\n\nexport const pdfCoPdfToCsv = action(\"PDF_CO_PDF_TO_CSV\", {\n slug: \"pdf_co-pdf-to-csv\",\n name: \"Convert PDF to CSV\",\n description: \"Tool to convert PDF or scanned images to CSV format. Use when you need to extract tabular data from a PDF into CSV format.\",\n input: PdfCoPdfToCsvInput,\n output: PdfCoPdfToCsvOutput,\n});\n"],"mappings":";;AAwBA,MAAa,gBAAgB,OAAO,qBAAqB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBgC,EAAE,OAAO;EACzC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;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AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pdfCo } from \"../app\";\n\nexport const PdfCoPdfToCsvInput = z.object({\n url: z.string().describe(\"Link to the PDF file to be converted.\"),\n lang: z.string().describe(\"Language for OCR text recognition (e.g., 'eng', 'deu').\").optional(),\n name: z.string().describe(\"Optional name for the output CSV file (must end with .csv).\").optional(),\n pages: z.string().describe(\"Comma-separated page indices or ranges to convert (e.g., '1,3-5').\").optional(),\n inline: z.boolean().describe(\"If true, returns CSV data inline; otherwise returns a URL to the CSV.\").optional(),\n encrypt: z.boolean().describe(\"If true, encrypts the output CSV file.\").optional(),\n password: z.string().describe(\"Password for protected PDF files, if required.\").optional(),\n profiles: z.string().describe(\"Advanced conversion settings in JSON format.\").optional(),\n run_async: z.boolean().describe(\"Run job asynchronously; returns jobId for status checking.\").optional(),\n}).describe(\"Request model for converting PDF documents to CSV.\");\nexport const PdfCoPdfToCsvOutput = z.object({\n url: z.string().describe(\"URL to the resulting CSV file or inline CSV data.\").nullable().optional(),\n error: z.boolean().describe(\"True if an error occurred during conversion.\").nullable(),\n status: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n message: z.string().describe(\"Error or informational message from the API.\").nullable().optional(),\n remainingCredits: z.number().int().describe(\"Number of remaining credits after the call.\").nullable().optional(),\n estimatedExecutionTime: z.string().describe(\"Estimated time for async request processing.\").nullable().optional(),\n}).passthrough().describe(\"Response model for PDF to CSV conversion.\");\n\nexport const pdfCoPdfToCsv: AppAction<\n typeof PdfCoPdfToCsvInput,\n typeof PdfCoPdfToCsvOutput,\n typeof pdfCo.credential\n> = action(\"PDF_CO_PDF_TO_CSV\", {\n slug: \"pdf_co-pdf-to-csv\",\n name: \"Convert PDF to CSV\",\n description: \"Tool to convert PDF or scanned images to CSV format. Use when you need to extract tabular data from a PDF into CSV format.\",\n input: PdfCoPdfToCsvInput,\n output: PdfCoPdfToCsvOutput,\n});\n"],"mappings":";;;AA0BA,MA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