@keystrokehq/parseur 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 (221) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/copy-document.cjs +1 -0
  4. package/dist/actions/copy-document.cjs.map +1 -1
  5. package/dist/actions/copy-document.d.cts +3 -4
  6. package/dist/actions/copy-document.d.cts.map +1 -1
  7. package/dist/actions/copy-document.d.mts +3 -4
  8. package/dist/actions/copy-document.d.mts.map +1 -1
  9. package/dist/actions/copy-document.mjs +1 -0
  10. package/dist/actions/copy-document.mjs.map +1 -1
  11. package/dist/actions/copy-mailbox.cjs +1 -0
  12. package/dist/actions/copy-mailbox.cjs.map +1 -1
  13. package/dist/actions/copy-mailbox.d.cts +3 -3
  14. package/dist/actions/copy-mailbox.d.cts.map +1 -1
  15. package/dist/actions/copy-mailbox.d.mts +3 -3
  16. package/dist/actions/copy-mailbox.d.mts.map +1 -1
  17. package/dist/actions/copy-mailbox.mjs +1 -0
  18. package/dist/actions/copy-mailbox.mjs.map +1 -1
  19. package/dist/actions/create-custom-download.cjs +1 -0
  20. package/dist/actions/create-custom-download.cjs.map +1 -1
  21. package/dist/actions/create-custom-download.d.cts +3 -11
  22. package/dist/actions/create-custom-download.d.cts.map +1 -1
  23. package/dist/actions/create-custom-download.d.mts +3 -11
  24. package/dist/actions/create-custom-download.d.mts.map +1 -1
  25. package/dist/actions/create-custom-download.mjs +1 -0
  26. package/dist/actions/create-custom-download.mjs.map +1 -1
  27. package/dist/actions/create-mailbox.cjs +1 -0
  28. package/dist/actions/create-mailbox.cjs.map +1 -1
  29. package/dist/actions/create-mailbox.d.cts +3 -11
  30. package/dist/actions/create-mailbox.d.cts.map +1 -1
  31. package/dist/actions/create-mailbox.d.mts +3 -11
  32. package/dist/actions/create-mailbox.d.mts.map +1 -1
  33. package/dist/actions/create-mailbox.mjs +1 -0
  34. package/dist/actions/create-mailbox.mjs.map +1 -1
  35. package/dist/actions/delete-custom-download.cjs +1 -0
  36. package/dist/actions/delete-custom-download.cjs.map +1 -1
  37. package/dist/actions/delete-custom-download.d.cts +3 -4
  38. package/dist/actions/delete-custom-download.d.cts.map +1 -1
  39. package/dist/actions/delete-custom-download.d.mts +3 -4
  40. package/dist/actions/delete-custom-download.d.mts.map +1 -1
  41. package/dist/actions/delete-custom-download.mjs +1 -0
  42. package/dist/actions/delete-custom-download.mjs.map +1 -1
  43. package/dist/actions/delete-document.cjs +1 -0
  44. package/dist/actions/delete-document.cjs.map +1 -1
  45. package/dist/actions/delete-document.d.cts +3 -3
  46. package/dist/actions/delete-document.d.cts.map +1 -1
  47. package/dist/actions/delete-document.d.mts +3 -3
  48. package/dist/actions/delete-document.d.mts.map +1 -1
  49. package/dist/actions/delete-document.mjs +1 -0
  50. package/dist/actions/delete-document.mjs.map +1 -1
  51. package/dist/actions/delete-mailbox.cjs +1 -0
  52. package/dist/actions/delete-mailbox.cjs.map +1 -1
  53. package/dist/actions/delete-mailbox.d.cts +3 -3
  54. package/dist/actions/delete-mailbox.d.cts.map +1 -1
  55. package/dist/actions/delete-mailbox.d.mts +3 -3
  56. package/dist/actions/delete-mailbox.d.mts.map +1 -1
  57. package/dist/actions/delete-mailbox.mjs +1 -0
  58. package/dist/actions/delete-mailbox.mjs.map +1 -1
  59. package/dist/actions/delete-webhook.cjs +1 -0
  60. package/dist/actions/delete-webhook.cjs.map +1 -1
  61. package/dist/actions/delete-webhook.d.cts +3 -3
  62. package/dist/actions/delete-webhook.d.cts.map +1 -1
  63. package/dist/actions/delete-webhook.d.mts +3 -3
  64. package/dist/actions/delete-webhook.d.mts.map +1 -1
  65. package/dist/actions/delete-webhook.mjs +1 -0
  66. package/dist/actions/delete-webhook.mjs.map +1 -1
  67. package/dist/actions/disable-webhook.cjs +1 -0
  68. package/dist/actions/disable-webhook.cjs.map +1 -1
  69. package/dist/actions/disable-webhook.d.cts +3 -4
  70. package/dist/actions/disable-webhook.d.cts.map +1 -1
  71. package/dist/actions/disable-webhook.d.mts +3 -4
  72. package/dist/actions/disable-webhook.d.mts.map +1 -1
  73. package/dist/actions/disable-webhook.mjs +1 -0
  74. package/dist/actions/disable-webhook.mjs.map +1 -1
  75. package/dist/actions/enable-webhook.cjs +1 -0
  76. package/dist/actions/enable-webhook.cjs.map +1 -1
  77. package/dist/actions/enable-webhook.d.cts +3 -4
  78. package/dist/actions/enable-webhook.d.cts.map +1 -1
  79. package/dist/actions/enable-webhook.d.mts +3 -4
  80. package/dist/actions/enable-webhook.d.mts.map +1 -1
  81. package/dist/actions/enable-webhook.mjs +1 -0
  82. package/dist/actions/enable-webhook.mjs.map +1 -1
  83. package/dist/actions/get-bootstrap-config.cjs +1 -0
  84. package/dist/actions/get-bootstrap-config.cjs.map +1 -1
  85. package/dist/actions/get-bootstrap-config.d.cts +3 -1
  86. package/dist/actions/get-bootstrap-config.d.cts.map +1 -1
  87. package/dist/actions/get-bootstrap-config.d.mts +3 -1
  88. package/dist/actions/get-bootstrap-config.d.mts.map +1 -1
  89. package/dist/actions/get-bootstrap-config.mjs +1 -0
  90. package/dist/actions/get-bootstrap-config.mjs.map +1 -1
  91. package/dist/actions/get-document-logs.cjs +1 -0
  92. package/dist/actions/get-document-logs.cjs.map +1 -1
  93. package/dist/actions/get-document-logs.d.cts +3 -7
  94. package/dist/actions/get-document-logs.d.cts.map +1 -1
  95. package/dist/actions/get-document-logs.d.mts +3 -7
  96. package/dist/actions/get-document-logs.d.mts.map +1 -1
  97. package/dist/actions/get-document-logs.mjs +1 -0
  98. package/dist/actions/get-document-logs.mjs.map +1 -1
  99. package/dist/actions/get-document.cjs +1 -0
  100. package/dist/actions/get-document.cjs.map +1 -1
  101. package/dist/actions/get-document.d.cts +3 -3
  102. package/dist/actions/get-document.d.cts.map +1 -1
  103. package/dist/actions/get-document.d.mts +3 -3
  104. package/dist/actions/get-document.d.mts.map +1 -1
  105. package/dist/actions/get-document.mjs +1 -0
  106. package/dist/actions/get-document.mjs.map +1 -1
  107. package/dist/actions/get-mailbox-schema.cjs +1 -0
  108. package/dist/actions/get-mailbox-schema.cjs.map +1 -1
  109. package/dist/actions/get-mailbox-schema.d.cts +3 -3
  110. package/dist/actions/get-mailbox-schema.d.cts.map +1 -1
  111. package/dist/actions/get-mailbox-schema.d.mts +3 -3
  112. package/dist/actions/get-mailbox-schema.d.mts.map +1 -1
  113. package/dist/actions/get-mailbox-schema.mjs +1 -0
  114. package/dist/actions/get-mailbox-schema.mjs.map +1 -1
  115. package/dist/actions/get-mailbox.cjs +1 -0
  116. package/dist/actions/get-mailbox.cjs.map +1 -1
  117. package/dist/actions/get-mailbox.d.cts +3 -3
  118. package/dist/actions/get-mailbox.d.cts.map +1 -1
  119. package/dist/actions/get-mailbox.d.mts +3 -3
  120. package/dist/actions/get-mailbox.d.mts.map +1 -1
  121. package/dist/actions/get-mailbox.mjs +1 -0
  122. package/dist/actions/get-mailbox.mjs.map +1 -1
  123. package/dist/actions/list-custom-downloads.cjs +1 -0
  124. package/dist/actions/list-custom-downloads.cjs.map +1 -1
  125. package/dist/actions/list-custom-downloads.d.cts +3 -3
  126. package/dist/actions/list-custom-downloads.d.cts.map +1 -1
  127. package/dist/actions/list-custom-downloads.d.mts +3 -3
  128. package/dist/actions/list-custom-downloads.d.mts.map +1 -1
  129. package/dist/actions/list-custom-downloads.mjs +1 -0
  130. package/dist/actions/list-custom-downloads.mjs.map +1 -1
  131. package/dist/actions/list-documents-in-mailbox.cjs +1 -0
  132. package/dist/actions/list-documents-in-mailbox.cjs.map +1 -1
  133. package/dist/actions/list-documents-in-mailbox.d.cts +3 -11
  134. package/dist/actions/list-documents-in-mailbox.d.cts.map +1 -1
  135. package/dist/actions/list-documents-in-mailbox.d.mts +3 -11
  136. package/dist/actions/list-documents-in-mailbox.d.mts.map +1 -1
  137. package/dist/actions/list-documents-in-mailbox.mjs +1 -0
  138. package/dist/actions/list-documents-in-mailbox.mjs.map +1 -1
  139. package/dist/actions/list-mailboxes2.cjs +1 -0
  140. package/dist/actions/list-mailboxes2.cjs.map +1 -1
  141. package/dist/actions/list-mailboxes2.d.cts +3 -6
  142. package/dist/actions/list-mailboxes2.d.cts.map +1 -1
  143. package/dist/actions/list-mailboxes2.d.mts +3 -6
  144. package/dist/actions/list-mailboxes2.d.mts.map +1 -1
  145. package/dist/actions/list-mailboxes2.mjs +1 -0
  146. package/dist/actions/list-mailboxes2.mjs.map +1 -1
  147. package/dist/actions/list-templates.cjs +1 -0
  148. package/dist/actions/list-templates.cjs.map +1 -1
  149. package/dist/actions/list-templates.d.cts +3 -7
  150. package/dist/actions/list-templates.d.cts.map +1 -1
  151. package/dist/actions/list-templates.d.mts +3 -7
  152. package/dist/actions/list-templates.d.mts.map +1 -1
  153. package/dist/actions/list-templates.mjs +1 -0
  154. package/dist/actions/list-templates.mjs.map +1 -1
  155. package/dist/actions/reprocess-document.cjs +1 -0
  156. package/dist/actions/reprocess-document.cjs.map +1 -1
  157. package/dist/actions/reprocess-document.d.cts +3 -3
  158. package/dist/actions/reprocess-document.d.cts.map +1 -1
  159. package/dist/actions/reprocess-document.d.mts +3 -3
  160. package/dist/actions/reprocess-document.d.mts.map +1 -1
  161. package/dist/actions/reprocess-document.mjs +1 -0
  162. package/dist/actions/reprocess-document.mjs.map +1 -1
  163. package/dist/actions/retrieve-webhook.cjs +1 -0
  164. package/dist/actions/retrieve-webhook.cjs.map +1 -1
  165. package/dist/actions/retrieve-webhook.d.cts +3 -3
  166. package/dist/actions/retrieve-webhook.d.cts.map +1 -1
  167. package/dist/actions/retrieve-webhook.d.mts +3 -3
  168. package/dist/actions/retrieve-webhook.d.mts.map +1 -1
  169. package/dist/actions/retrieve-webhook.mjs +1 -0
  170. package/dist/actions/retrieve-webhook.mjs.map +1 -1
  171. package/dist/actions/skip-document.cjs +1 -0
  172. package/dist/actions/skip-document.cjs.map +1 -1
  173. package/dist/actions/skip-document.d.cts +3 -3
  174. package/dist/actions/skip-document.d.cts.map +1 -1
  175. package/dist/actions/skip-document.d.mts +3 -3
  176. package/dist/actions/skip-document.d.mts.map +1 -1
  177. package/dist/actions/skip-document.mjs +1 -0
  178. package/dist/actions/skip-document.mjs.map +1 -1
  179. package/dist/actions/update-custom-download.cjs +1 -0
  180. package/dist/actions/update-custom-download.cjs.map +1 -1
  181. package/dist/actions/update-custom-download.d.cts +3 -9
  182. package/dist/actions/update-custom-download.d.cts.map +1 -1
  183. package/dist/actions/update-custom-download.d.mts +3 -9
  184. package/dist/actions/update-custom-download.d.mts.map +1 -1
  185. package/dist/actions/update-custom-download.mjs +1 -0
  186. package/dist/actions/update-custom-download.mjs.map +1 -1
  187. package/dist/actions/update-mailbox.cjs +1 -0
  188. package/dist/actions/update-mailbox.cjs.map +1 -1
  189. package/dist/actions/update-mailbox.d.cts +3 -35
  190. package/dist/actions/update-mailbox.d.cts.map +1 -1
  191. package/dist/actions/update-mailbox.d.mts +3 -35
  192. package/dist/actions/update-mailbox.d.mts.map +1 -1
  193. package/dist/actions/update-mailbox.mjs +1 -0
  194. package/dist/actions/update-mailbox.mjs.map +1 -1
  195. package/dist/actions/update-webhook.cjs +1 -0
  196. package/dist/actions/update-webhook.cjs.map +1 -1
  197. package/dist/actions/update-webhook.d.cts +3 -8
  198. package/dist/actions/update-webhook.d.cts.map +1 -1
  199. package/dist/actions/update-webhook.d.mts +3 -8
  200. package/dist/actions/update-webhook.d.mts.map +1 -1
  201. package/dist/actions/update-webhook.mjs +1 -0
  202. package/dist/actions/update-webhook.mjs.map +1 -1
  203. package/dist/actions/upload-email-document.cjs +1 -0
  204. package/dist/actions/upload-email-document.cjs.map +1 -1
  205. package/dist/actions/upload-email-document.d.cts +3 -11
  206. package/dist/actions/upload-email-document.d.cts.map +1 -1
  207. package/dist/actions/upload-email-document.d.mts +3 -11
  208. package/dist/actions/upload-email-document.d.mts.map +1 -1
  209. package/dist/actions/upload-email-document.mjs +1 -0
  210. package/dist/actions/upload-email-document.mjs.map +1 -1
  211. package/dist/app.cjs +5 -2
  212. package/dist/app.cjs.map +1 -1
  213. package/dist/app.d.cts +7 -1
  214. package/dist/app.d.cts.map +1 -1
  215. package/dist/app.d.mts +7 -1
  216. package/dist/app.d.mts.map +1 -1
  217. package/dist/app.mjs +3 -2
  218. package/dist/app.mjs.map +1 -1
  219. package/dist/index.d.cts +1 -1
  220. package/dist/index.d.mts +1 -1
  221. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-custom-download.d.ts
@@ -8,10 +10,7 @@ declare const ParseurDeleteCustomDownloadInput: z.ZodObject<{
8
10
  declare const ParseurDeleteCustomDownloadOutput: z.ZodObject<{
9
11
  message: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const parseurDeleteCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- id: string;
13
- mailbox_id: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const parseurDeleteCustomDownload: AppAction<typeof ParseurDeleteCustomDownloadInput, typeof ParseurDeleteCustomDownloadOutput, typeof parseur.credential>;
15
14
  //#endregion
16
15
  export { parseurDeleteCustomDownload };
17
16
  //# sourceMappingURL=delete-custom-download.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-download.d.cts","names":[],"sources":["../../src/actions/delete-custom-download.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAIhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"delete-custom-download.d.cts","names":[],"sources":["../../src/actions/delete-custom-download.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAIhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-custom-download.d.ts
@@ -8,10 +10,7 @@ declare const ParseurDeleteCustomDownloadInput: z.ZodObject<{
8
10
  declare const ParseurDeleteCustomDownloadOutput: z.ZodObject<{
9
11
  message: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const parseurDeleteCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- id: string;
13
- mailbox_id: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const parseurDeleteCustomDownload: AppAction<typeof ParseurDeleteCustomDownloadInput, typeof ParseurDeleteCustomDownloadOutput, typeof parseur.credential>;
15
14
  //#endregion
16
15
  export { parseurDeleteCustomDownload };
17
16
  //# sourceMappingURL=delete-custom-download.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-download.d.mts","names":[],"sources":["../../src/actions/delete-custom-download.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAIhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"delete-custom-download.d.mts","names":[],"sources":["../../src/actions/delete-custom-download.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAIhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,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 parseurDeleteCustomDownload = action("PARSEUR_DELETE_CUSTOM_DOWNLOAD", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-download.mjs","names":[],"sources":["../../src/actions/delete-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDeleteCustomDownloadInput = z.object({\n id: z.string().describe(\"Unique identifier of the custom download (export configuration) to delete.\"),\n mailbox_id: z.string().describe(\"Unique identifier of the mailbox (parser) that contains the custom download. Obtain from List Mailboxes action.\"),\n}).describe(\"Request model for deleting a custom download (export configuration).\");\nexport const ParseurDeleteCustomDownloadOutput = z.object({\n message: z.string().describe(\"Confirmation message after custom download deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a custom download.\");\n\nexport const parseurDeleteCustomDownload = action(\"PARSEUR_DELETE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-delete-custom-download\",\n name: \"Delete custom download\",\n description: \"Tool to delete a custom download (export configuration) from a mailbox. Use when permanently removing an export configuration after confirming its ID.\",\n input: ParseurDeleteCustomDownloadInput,\n output: ParseurDeleteCustomDownloadOutput,\n});\n"],"mappings":";;AAYA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CACnJ,CAAC,CAAC,CAAC,SAAS,sEASH;CACP,QAT+C,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,EAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-custom-download.mjs","names":[],"sources":["../../src/actions/delete-custom-download.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDeleteCustomDownloadInput = z.object({\n id: z.string().describe(\"Unique identifier of the custom download (export configuration) to delete.\"),\n mailbox_id: z.string().describe(\"Unique identifier of the mailbox (parser) that contains the custom download. Obtain from List Mailboxes action.\"),\n}).describe(\"Request model for deleting a custom download (export configuration).\");\nexport const ParseurDeleteCustomDownloadOutput = z.object({\n message: z.string().describe(\"Confirmation message after custom download deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a custom download.\");\n\nexport const parseurDeleteCustomDownload: AppAction<\n typeof ParseurDeleteCustomDownloadInput,\n typeof ParseurDeleteCustomDownloadOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DELETE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-delete-custom-download\",\n name: \"Delete custom download\",\n description: \"Tool to delete a custom download (export configuration) from a mailbox. Use when permanently removing an export configuration after confirming its ID.\",\n input: ParseurDeleteCustomDownloadInput,\n output: ParseurDeleteCustomDownloadOutput,\n});\n"],"mappings":";;;AAcA,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CACnJ,CAAC,CAAC,CAAC,SAAS,sEAaH;CACP,QAb+C,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,EAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;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/delete-document.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDeleteDocumentInput = z.object({\n document_id: z.string().describe(\"Unique identifier of the document to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur document.\");\nexport const ParseurDeleteDocumentOutput = z.object({\n message: z.string().describe(\"Confirmation message after document deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Parseur document.\");\n\nexport const parseurDeleteDocument = action(\"PARSEUR_DELETE_DOCUMENT\", {\n slug: \"parseur-delete-document\",\n name: \"Delete document\",\n description: \"Tool to delete a specific document by ID. Use when permanently removing a document after confirming its ID.\",\n input: ParseurDeleteDocumentInput,\n output: ParseurDeleteDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACjF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDeleteDocumentInput = z.object({\n document_id: z.string().describe(\"Unique identifier of the document to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur document.\");\nexport const ParseurDeleteDocumentOutput = z.object({\n message: z.string().describe(\"Confirmation message after document deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Parseur document.\");\n\nexport const parseurDeleteDocument: AppAction<\n typeof ParseurDeleteDocumentInput,\n typeof ParseurDeleteDocumentOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DELETE_DOCUMENT\", {\n slug: \"parseur-delete-document\",\n name: \"Delete document\",\n description: \"Tool to delete a specific document by ID. Use when permanently removing a document after confirming its ID.\",\n input: ParseurDeleteDocumentInput,\n output: ParseurDeleteDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACjF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-document.d.ts
@@ -7,9 +9,7 @@ declare const ParseurDeleteDocumentInput: z.ZodObject<{
7
9
  declare const ParseurDeleteDocumentOutput: z.ZodObject<{
8
10
  message: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>;
10
- declare const parseurDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
11
- document_id: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const parseurDeleteDocument: AppAction<typeof ParseurDeleteDocumentInput, typeof ParseurDeleteDocumentOutput, typeof parseur.credential>;
13
13
  //#endregion
14
14
  export { parseurDeleteDocument };
15
15
  //# sourceMappingURL=delete-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-document.d.ts
@@ -7,9 +9,7 @@ declare const ParseurDeleteDocumentInput: z.ZodObject<{
7
9
  declare const ParseurDeleteDocumentOutput: z.ZodObject<{
8
10
  message: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>;
10
- declare const parseurDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
11
- document_id: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const parseurDeleteDocument: AppAction<typeof ParseurDeleteDocumentInput, typeof ParseurDeleteDocumentOutput, typeof parseur.credential>;
13
13
  //#endregion
14
14
  export { parseurDeleteDocument };
15
15
  //# sourceMappingURL=delete-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,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 parseurDeleteDocument = action("PARSEUR_DELETE_DOCUMENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDeleteDocumentInput = z.object({\n document_id: z.string().describe(\"Unique identifier of the document to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur document.\");\nexport const ParseurDeleteDocumentOutput = z.object({\n message: z.string().describe(\"Confirmation message after document deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Parseur document.\");\n\nexport const parseurDeleteDocument = action(\"PARSEUR_DELETE_DOCUMENT\", {\n slug: \"parseur-delete-document\",\n name: \"Delete document\",\n description: \"Tool to delete a specific document by ID. Use when permanently removing a document after confirming its ID.\",\n input: ParseurDeleteDocumentInput,\n output: ParseurDeleteDocumentOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXwC,EAAE,OAAO,EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACjF,CAAC,CAAC,CAAC,SAAS,yDASH;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDeleteDocumentInput = z.object({\n document_id: z.string().describe(\"Unique identifier of the document to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur document.\");\nexport const ParseurDeleteDocumentOutput = z.object({\n message: z.string().describe(\"Confirmation message after document deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Parseur document.\");\n\nexport const parseurDeleteDocument: AppAction<\n typeof ParseurDeleteDocumentInput,\n typeof ParseurDeleteDocumentOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DELETE_DOCUMENT\", {\n slug: \"parseur-delete-document\",\n name: \"Delete document\",\n description: \"Tool to delete a specific document by ID. Use when permanently removing a document after confirming its ID.\",\n input: ParseurDeleteDocumentInput,\n output: ParseurDeleteDocumentOutput,\n});\n"],"mappings":";;;AAaA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfwC,EAAE,OAAO,EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACjF,CAAC,CAAC,CAAC,SAAS,yDAaH;CACP,QAbyC,EAAE,OAAO,EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;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/delete-mailbox.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-mailbox.cjs","names":["z","action"],"sources":["../../src/actions/delete-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDeleteMailboxInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the mailbox (parser) to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur mailbox (parser).\");\nconst ParseurDeleteMailbox_NotificationSetSchema = z.object({\n info: z.array(z.string()).describe(\"List of informational messages about the deletion operation.\").nullable().optional(),\n}).passthrough().describe(\"Notification information returned after mailbox deletion.\");\nexport const ParseurDeleteMailboxOutput = z.object({\n notification_set: ParseurDeleteMailbox_NotificationSetSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for deleting a Parseur mailbox.\");\n\nexport const parseurDeleteMailbox = action(\"PARSEUR_DELETE_MAILBOX\", {\n slug: \"parseur-delete-mailbox\",\n name: \"Delete mailbox\",\n description: \"Tool to delete a mailbox (parser) by ID. Use when permanently removing a mailbox after confirming its ID.\",\n input: ParseurDeleteMailboxInput,\n output: ParseurDeleteMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,EACtF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,kBAAkB,2CAA2C,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-mailbox.cjs","names":["z","action"],"sources":["../../src/actions/delete-mailbox.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDeleteMailboxInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the mailbox (parser) to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur mailbox (parser).\");\nconst ParseurDeleteMailbox_NotificationSetSchema = z.object({\n info: z.array(z.string()).describe(\"List of informational messages about the deletion operation.\").nullable().optional(),\n}).passthrough().describe(\"Notification information returned after mailbox deletion.\");\nexport const ParseurDeleteMailboxOutput = z.object({\n notification_set: ParseurDeleteMailbox_NotificationSetSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for deleting a Parseur mailbox.\");\n\nexport const parseurDeleteMailbox: AppAction<\n typeof ParseurDeleteMailboxInput,\n typeof ParseurDeleteMailboxOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DELETE_MAILBOX\", {\n slug: \"parseur-delete-mailbox\",\n name: \"Delete mailbox\",\n description: \"Tool to delete a mailbox (parser) by ID. Use when permanently removing a mailbox after confirming its ID.\",\n input: ParseurDeleteMailboxInput,\n output: ParseurDeleteMailboxOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,EACtF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,kBAAkB,2CAA2C,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-mailbox.d.ts
@@ -9,9 +11,7 @@ declare const ParseurDeleteMailboxOutput: z.ZodObject<{
9
11
  info: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
10
12
  }, z.core.$loose>>>;
11
13
  }, z.core.$loose>;
12
- declare const parseurDeleteMailbox: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const parseurDeleteMailbox: AppAction<typeof ParseurDeleteMailboxInput, typeof ParseurDeleteMailboxOutput, typeof parseur.credential>;
15
15
  //#endregion
16
16
  export { parseurDeleteMailbox };
17
17
  //# sourceMappingURL=delete-mailbox.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-mailbox.d.cts","names":[],"sources":["../../src/actions/delete-mailbox.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"delete-mailbox.d.cts","names":[],"sources":["../../src/actions/delete-mailbox.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-mailbox.d.ts
@@ -9,9 +11,7 @@ declare const ParseurDeleteMailboxOutput: z.ZodObject<{
9
11
  info: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
10
12
  }, z.core.$loose>>>;
11
13
  }, z.core.$loose>;
12
- declare const parseurDeleteMailbox: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const parseurDeleteMailbox: AppAction<typeof ParseurDeleteMailboxInput, typeof ParseurDeleteMailboxOutput, typeof parseur.credential>;
15
15
  //#endregion
16
16
  export { parseurDeleteMailbox };
17
17
  //# sourceMappingURL=delete-mailbox.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-mailbox.d.mts","names":[],"sources":["../../src/actions/delete-mailbox.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"delete-mailbox.d.mts","names":[],"sources":["../../src/actions/delete-mailbox.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/delete-mailbox.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-mailbox.mjs","names":[],"sources":["../../src/actions/delete-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDeleteMailboxInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the mailbox (parser) to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur mailbox (parser).\");\nconst ParseurDeleteMailbox_NotificationSetSchema = z.object({\n info: z.array(z.string()).describe(\"List of informational messages about the deletion operation.\").nullable().optional(),\n}).passthrough().describe(\"Notification information returned after mailbox deletion.\");\nexport const ParseurDeleteMailboxOutput = z.object({\n notification_set: ParseurDeleteMailbox_NotificationSetSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for deleting a Parseur mailbox.\");\n\nexport const parseurDeleteMailbox = action(\"PARSEUR_DELETE_MAILBOX\", {\n slug: \"parseur-delete-mailbox\",\n name: \"Delete mailbox\",\n description: \"Tool to delete a mailbox (parser) by ID. Use when permanently removing a mailbox after confirming its ID.\",\n input: ParseurDeleteMailboxInput,\n output: ParseurDeleteMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,EACtF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,6CAA6C,EAAE,OAAO,EAC1D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAKrF,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,kBAAkB,2CAA2C,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-mailbox.mjs","names":[],"sources":["../../src/actions/delete-mailbox.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDeleteMailboxInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the mailbox (parser) to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur mailbox (parser).\");\nconst ParseurDeleteMailbox_NotificationSetSchema = z.object({\n info: z.array(z.string()).describe(\"List of informational messages about the deletion operation.\").nullable().optional(),\n}).passthrough().describe(\"Notification information returned after mailbox deletion.\");\nexport const ParseurDeleteMailboxOutput = z.object({\n notification_set: ParseurDeleteMailbox_NotificationSetSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for deleting a Parseur mailbox.\");\n\nexport const parseurDeleteMailbox: AppAction<\n typeof ParseurDeleteMailboxInput,\n typeof ParseurDeleteMailboxOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DELETE_MAILBOX\", {\n slug: \"parseur-delete-mailbox\",\n name: \"Delete mailbox\",\n description: \"Tool to delete a mailbox (parser) by ID. Use when permanently removing a mailbox after confirming its ID.\",\n input: ParseurDeleteMailboxInput,\n output: ParseurDeleteMailboxOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,EACtF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,6CAA6C,EAAE,OAAO,EAC1D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAKrF,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,kBAAkB,2CAA2C,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;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/delete-webhook.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-webhook.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDeleteWebhookInput = z.object({\n webhook_id: z.number().int().describe(\"Unique identifier of the webhook to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur webhook.\");\nexport const ParseurDeleteWebhookOutput = z.object({\n message: z.string().describe(\"Confirmation message after webhook deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Parseur webhook.\");\n\nexport const parseurDeleteWebhook = action(\"PARSEUR_DELETE_WEBHOOK\", {\n slug: \"parseur-delete-webhook\",\n name: \"Delete webhook\",\n description: \"Tool to delete a specific webhook. Use when permanently removing a webhook after confirming its ID.\",\n input: ParseurDeleteWebhookInput,\n output: ParseurDeleteWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,EACrF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-webhook.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDeleteWebhookInput = z.object({\n webhook_id: z.number().int().describe(\"Unique identifier of the webhook to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur webhook.\");\nexport const ParseurDeleteWebhookOutput = z.object({\n message: z.string().describe(\"Confirmation message after webhook deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Parseur webhook.\");\n\nexport const parseurDeleteWebhook: AppAction<\n typeof ParseurDeleteWebhookInput,\n typeof ParseurDeleteWebhookOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DELETE_WEBHOOK\", {\n slug: \"parseur-delete-webhook\",\n name: \"Delete webhook\",\n description: \"Tool to delete a specific webhook. Use when permanently removing a webhook after confirming its ID.\",\n input: ParseurDeleteWebhookInput,\n output: ParseurDeleteWebhookOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,EACrF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-webhook.d.ts
@@ -7,9 +9,7 @@ declare const ParseurDeleteWebhookInput: z.ZodObject<{
7
9
  declare const ParseurDeleteWebhookOutput: z.ZodObject<{
8
10
  message: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>;
10
- declare const parseurDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
11
- webhook_id: number;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const parseurDeleteWebhook: AppAction<typeof ParseurDeleteWebhookInput, typeof ParseurDeleteWebhookOutput, typeof parseur.credential>;
13
13
  //#endregion
14
14
  export { parseurDeleteWebhook };
15
15
  //# sourceMappingURL=delete-webhook.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-webhook.d.ts
@@ -7,9 +9,7 @@ declare const ParseurDeleteWebhookInput: z.ZodObject<{
7
9
  declare const ParseurDeleteWebhookOutput: z.ZodObject<{
8
10
  message: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>;
10
- declare const parseurDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
11
- webhook_id: number;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const parseurDeleteWebhook: AppAction<typeof ParseurDeleteWebhookInput, typeof ParseurDeleteWebhookOutput, typeof parseur.credential>;
13
13
  //#endregion
14
14
  export { parseurDeleteWebhook };
15
15
  //# sourceMappingURL=delete-webhook.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-webhook.d.mts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"delete-webhook.d.mts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,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 parseurDeleteWebhook = action("PARSEUR_DELETE_WEBHOOK", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-webhook.mjs","names":[],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDeleteWebhookInput = z.object({\n webhook_id: z.number().int().describe(\"Unique identifier of the webhook to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur webhook.\");\nexport const ParseurDeleteWebhookOutput = z.object({\n message: z.string().describe(\"Confirmation message after webhook deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Parseur webhook.\");\n\nexport const parseurDeleteWebhook = action(\"PARSEUR_DELETE_WEBHOOK\", {\n slug: \"parseur-delete-webhook\",\n name: \"Delete webhook\",\n description: \"Tool to delete a specific webhook. Use when permanently removing a webhook after confirming its ID.\",\n input: ParseurDeleteWebhookInput,\n output: ParseurDeleteWebhookOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuC,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,EACrF,CAAC,CAAC,CAAC,SAAS,wDASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-webhook.mjs","names":[],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDeleteWebhookInput = z.object({\n webhook_id: z.number().int().describe(\"Unique identifier of the webhook to delete.\"),\n}).describe(\"Request model for deleting a specific Parseur webhook.\");\nexport const ParseurDeleteWebhookOutput = z.object({\n message: z.string().describe(\"Confirmation message after webhook deletion.\").nullable(),\n}).passthrough().describe(\"Response model for deleting a Parseur webhook.\");\n\nexport const parseurDeleteWebhook: AppAction<\n typeof ParseurDeleteWebhookInput,\n typeof ParseurDeleteWebhookOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DELETE_WEBHOOK\", {\n slug: \"parseur-delete-webhook\",\n name: \"Delete webhook\",\n description: \"Tool to delete a specific webhook. Use when permanently removing a webhook after confirming its ID.\",\n input: ParseurDeleteWebhookInput,\n output: ParseurDeleteWebhookOutput,\n});\n"],"mappings":";;;AAaA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuC,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,EACrF,CAAC,CAAC,CAAC,SAAS,wDAaH;CACP,QAbwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;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/disable-webhook.ts
@@ -1 +1 @@
1
- {"version":3,"file":"disable-webhook.cjs","names":["z","action"],"sources":["../../src/actions/disable-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDisableWebhookInput = z.object({\n mailbox_id: z.number().int().describe(\"Unique numeric ID of the parser mailbox containing the webhook. Obtain via List Mailboxes action.\"),\n webhook_id: z.number().int().describe(\"Unique numeric ID of the active webhook to disable. Obtain from webhook_set via List Webhooks action.\"),\n});\nconst ParseurDisableWebhook_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Webhook ID\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type that triggers the webhook\").nullable(),\n target: z.string().describe(\"Target URL where webhook payloads are sent\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Webhook category\").nullable(),\n parser_field_set: z.array(z.unknown()).describe(\"List of parser fields or table-fields assigned to the webhook\").nullable().optional(),\n}).passthrough();\nconst ParseurDisableWebhook_DocumentPerStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable().optional(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported by our system\").nullable().optional(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable().optional(),\n TRANSKO: z.number().int().describe(\"Files where our Python post-processing failed to process\").nullable().optional(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable().optional(),\n INCOMING: z.number().int().describe(\"Files that have been received by our system but are awaiting processing\").nullable().optional(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable().optional(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable().optional(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine for that mailbox\").nullable().optional(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because the user does not have enough credits to process them\").nullable().optional(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against our system's import parameters and the user's mailbox settings\").nullable().optional(),\n}).passthrough();\nexport const ParseurDisableWebhookOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable().optional(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes its instructions on to others\").nullable().optional(),\n webhook_set: z.array(ParseurDisableWebhook_WebhookInfoSchema).describe(\"List of active webhooks for this parser. The disabled webhook will not appear in this list.\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for your account\").nullable().optional(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n last_activity: z.string().describe(\"Last activity timestamp\").nullable().optional(),\n available_webhook_set: z.array(ParseurDisableWebhook_WebhookInfoSchema).describe(\"List of available (paused/disabled) webhooks. The disabled webhook will appear here.\").nullable().optional(),\n document_per_status_count: ParseurDisableWebhook_DocumentPerStatusCountSchema.nullable().optional(),\n}).passthrough();\n\nexport const parseurDisableWebhook = action(\"PARSEUR_DISABLE_WEBHOOK\", {\n slug: \"parseur-disable-webhook\",\n name: \"Disable webhook\",\n description: \"Tool to disable a webhook for a mailbox. Removes the webhook association from the specified mailbox. Use when you need to stop an active webhook from sending parsed data.\",\n input: ParseurDisableWebhookInput,\n output: ParseurDisableWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG;CACzI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG;AAC/I,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC3D,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS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O,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1L,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,uBAAuBA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,2BAA2B,mDAAmD,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"disable-webhook.cjs","names":["z","action"],"sources":["../../src/actions/disable-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDisableWebhookInput = z.object({\n mailbox_id: z.number().int().describe(\"Unique numeric ID of the parser mailbox containing the webhook. Obtain via List Mailboxes action.\"),\n webhook_id: z.number().int().describe(\"Unique numeric ID of the active webhook to disable. Obtain from webhook_set via List Webhooks action.\"),\n});\nconst ParseurDisableWebhook_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Webhook ID\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type that triggers the webhook\").nullable(),\n target: z.string().describe(\"Target URL where webhook payloads are sent\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Webhook category\").nullable(),\n parser_field_set: z.array(z.unknown()).describe(\"List of parser fields or table-fields assigned to the webhook\").nullable().optional(),\n}).passthrough();\nconst ParseurDisableWebhook_DocumentPerStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable().optional(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported by our system\").nullable().optional(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable().optional(),\n TRANSKO: z.number().int().describe(\"Files where our Python post-processing failed to process\").nullable().optional(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable().optional(),\n INCOMING: z.number().int().describe(\"Files that have been received by our system but are awaiting processing\").nullable().optional(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable().optional(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable().optional(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine for that mailbox\").nullable().optional(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because the user does not have enough credits to process them\").nullable().optional(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against our system's import parameters and the user's mailbox settings\").nullable().optional(),\n}).passthrough();\nexport const ParseurDisableWebhookOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable().optional(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes its instructions on to others\").nullable().optional(),\n webhook_set: z.array(ParseurDisableWebhook_WebhookInfoSchema).describe(\"List of active webhooks for this parser. The disabled webhook will not appear in this list.\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for your account\").nullable().optional(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n last_activity: z.string().describe(\"Last activity timestamp\").nullable().optional(),\n available_webhook_set: z.array(ParseurDisableWebhook_WebhookInfoSchema).describe(\"List of available (paused/disabled) webhooks. The disabled webhook will appear here.\").nullable().optional(),\n document_per_status_count: ParseurDisableWebhook_DocumentPerStatusCountSchema.nullable().optional(),\n}).passthrough();\n\nexport const parseurDisableWebhook: AppAction<\n typeof ParseurDisableWebhookInput,\n typeof ParseurDisableWebhookOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DISABLE_WEBHOOK\", {\n slug: \"parseur-disable-webhook\",\n name: \"Disable webhook\",\n description: \"Tool to disable a webhook for a mailbox. Removes the webhook association from the specified mailbox. Use when you need to stop an active webhook from sending parsed data.\",\n input: ParseurDisableWebhookInput,\n output: ParseurDisableWebhookOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG;CACzI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG;AAC/I,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,QAA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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,uBAAuBA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,2BAA2B,mDAAmD,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/disable-webhook.d.ts
@@ -44,10 +46,7 @@ declare const ParseurDisableWebhookOutput: z.ZodObject<{
44
46
  ANALYZING: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
47
  }, z.core.$loose>>>;
46
48
  }, z.core.$loose>;
47
- declare const parseurDisableWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
48
- mailbox_id: number;
49
- webhook_id: number;
50
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
+ declare const parseurDisableWebhook: AppAction<typeof ParseurDisableWebhookInput, typeof ParseurDisableWebhookOutput, typeof parseur.credential>;
51
50
  //#endregion
52
51
  export { parseurDisableWebhook };
53
52
  //# sourceMappingURL=disable-webhook.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"disable-webhook.d.cts","names":[],"sources":["../../src/actions/disable-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cA0B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"disable-webhook.d.cts","names":[],"sources":["../../src/actions/disable-webhook.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cA0B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/disable-webhook.d.ts
@@ -44,10 +46,7 @@ declare const ParseurDisableWebhookOutput: z.ZodObject<{
44
46
  ANALYZING: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
47
  }, z.core.$loose>>>;
46
48
  }, z.core.$loose>;
47
- declare const parseurDisableWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
48
- mailbox_id: number;
49
- webhook_id: number;
50
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
+ declare const parseurDisableWebhook: AppAction<typeof ParseurDisableWebhookInput, typeof ParseurDisableWebhookOutput, typeof parseur.credential>;
51
50
  //#endregion
52
51
  export { parseurDisableWebhook };
53
52
  //# sourceMappingURL=disable-webhook.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"disable-webhook.d.mts","names":[],"sources":["../../src/actions/disable-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cA0B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"disable-webhook.d.mts","names":[],"sources":["../../src/actions/disable-webhook.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cA0B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/disable-webhook.ts
@@ -1 +1 @@
1
- {"version":3,"file":"disable-webhook.mjs","names":[],"sources":["../../src/actions/disable-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurDisableWebhookInput = z.object({\n mailbox_id: z.number().int().describe(\"Unique numeric ID of the parser mailbox containing the webhook. Obtain via List Mailboxes action.\"),\n webhook_id: z.number().int().describe(\"Unique numeric ID of the active webhook to disable. Obtain from webhook_set via List Webhooks action.\"),\n});\nconst ParseurDisableWebhook_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Webhook ID\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type that triggers the webhook\").nullable(),\n target: z.string().describe(\"Target URL where webhook payloads are sent\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Webhook category\").nullable(),\n parser_field_set: z.array(z.unknown()).describe(\"List of parser fields or table-fields assigned to the webhook\").nullable().optional(),\n}).passthrough();\nconst ParseurDisableWebhook_DocumentPerStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable().optional(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported by our system\").nullable().optional(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable().optional(),\n TRANSKO: z.number().int().describe(\"Files where our Python post-processing failed to process\").nullable().optional(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable().optional(),\n INCOMING: z.number().int().describe(\"Files that have been received by our system but are awaiting processing\").nullable().optional(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable().optional(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable().optional(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine for that mailbox\").nullable().optional(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because the user does not have enough credits to process them\").nullable().optional(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against our system's import parameters and the user's mailbox settings\").nullable().optional(),\n}).passthrough();\nexport const ParseurDisableWebhookOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable().optional(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes its instructions on to others\").nullable().optional(),\n webhook_set: z.array(ParseurDisableWebhook_WebhookInfoSchema).describe(\"List of active webhooks for this parser. The disabled webhook will not appear in this list.\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for your account\").nullable().optional(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n last_activity: z.string().describe(\"Last activity timestamp\").nullable().optional(),\n available_webhook_set: z.array(ParseurDisableWebhook_WebhookInfoSchema).describe(\"List of available (paused/disabled) webhooks. The disabled webhook will appear here.\").nullable().optional(),\n document_per_status_count: ParseurDisableWebhook_DocumentPerStatusCountSchema.nullable().optional(),\n}).passthrough();\n\nexport const parseurDisableWebhook = action(\"PARSEUR_DISABLE_WEBHOOK\", {\n slug: \"parseur-disable-webhook\",\n name: \"Disable webhook\",\n description: \"Tool to disable a webhook for a mailbox. Removes the webhook association from the specified mailbox. Use when you need to stop an active webhook from sending parsed data.\",\n input: ParseurDisableWebhookInput,\n output: ParseurDisableWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG;CACzI,YAA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AAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,uBAAuB,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7L,2BAA2B,mDAAmD,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"disable-webhook.mjs","names":[],"sources":["../../src/actions/disable-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurDisableWebhookInput = z.object({\n mailbox_id: z.number().int().describe(\"Unique numeric ID of the parser mailbox containing the webhook. Obtain via List Mailboxes action.\"),\n webhook_id: z.number().int().describe(\"Unique numeric ID of the active webhook to disable. Obtain from webhook_set via List Webhooks action.\"),\n});\nconst ParseurDisableWebhook_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Webhook ID\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type that triggers the webhook\").nullable(),\n target: z.string().describe(\"Target URL where webhook payloads are sent\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Webhook category\").nullable(),\n parser_field_set: z.array(z.unknown()).describe(\"List of parser fields or table-fields assigned to the webhook\").nullable().optional(),\n}).passthrough();\nconst ParseurDisableWebhook_DocumentPerStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable().optional(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported by our system\").nullable().optional(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable().optional(),\n TRANSKO: z.number().int().describe(\"Files where our Python post-processing failed to process\").nullable().optional(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable().optional(),\n INCOMING: z.number().int().describe(\"Files that have been received by our system but are awaiting processing\").nullable().optional(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable().optional(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable().optional(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine for that mailbox\").nullable().optional(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because the user does not have enough credits to process them\").nullable().optional(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against our system's import parameters and the user's mailbox settings\").nullable().optional(),\n}).passthrough();\nexport const ParseurDisableWebhookOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable().optional(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes its instructions on to others\").nullable().optional(),\n webhook_set: z.array(ParseurDisableWebhook_WebhookInfoSchema).describe(\"List of active webhooks for this parser. The disabled webhook will not appear in this list.\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for your account\").nullable().optional(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n last_activity: z.string().describe(\"Last activity timestamp\").nullable().optional(),\n available_webhook_set: z.array(ParseurDisableWebhook_WebhookInfoSchema).describe(\"List of available (paused/disabled) webhooks. The disabled webhook will appear here.\").nullable().optional(),\n document_per_status_count: ParseurDisableWebhook_DocumentPerStatusCountSchema.nullable().optional(),\n}).passthrough();\n\nexport const parseurDisableWebhook: AppAction<\n typeof ParseurDisableWebhookInput,\n typeof ParseurDisableWebhookOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_DISABLE_WEBHOOK\", {\n slug: \"parseur-disable-webhook\",\n name: \"Disable webhook\",\n description: \"Tool to disable a webhook for a mailbox. Removes the webhook association from the specified mailbox. Use when you need to stop an active webhook from sending parsed data.\",\n input: ParseurDisableWebhookInput,\n output: ParseurDisableWebhookOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG;CACzI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG;AAC/I,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC3D,kBAAkB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,qDAAqD,EAAE,OAAO;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E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EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1L,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,uBAAuB,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7L,2BAA2B,mDAAmD,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAWO;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/enable-webhook.ts
@@ -1 +1 @@
1
- {"version":3,"file":"enable-webhook.cjs","names":["z","action"],"sources":["../../src/actions/enable-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurEnableWebhookInput = z.object({\n mailbox_id: z.number().int().describe(\"Unique numeric ID of the parser mailbox containing the webhook. Obtain via List Mailboxes action.\"),\n webhook_id: z.number().int().describe(\"Unique numeric ID of the paused webhook to enable. Obtain from available_webhook_set via List Webhooks action.\"),\n});\nexport const ParseurEnableWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique ID of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type that triggers the webhook\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) associated with the webhook\").nullable().optional(),\n target: z.string().describe(\"Target URL where webhook payloads are sent\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook, if any\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Webhook category (always 'CUSTOM' for user-created webhooks)\").nullable(),\n parser_field: z.string().describe(\"ID of the field that triggers the webhook (format: 'PF12345'), if any\").nullable().optional(),\n parser_field_set: z.array(z.unknown()).describe(\"List of parser fields or table-fields assigned to the webhook\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage for the webhook, if applicable\").nullable().optional(),\n}).passthrough();\n\nexport const parseurEnableWebhook = action(\"PARSEUR_ENABLE_WEBHOOK\", {\n slug: \"parseur-enable-webhook\",\n name: \"Enable webhook\",\n description: \"Enables a paused webhook for a specified mailbox, allowing it to receive and forward parsed document events. Use this action to re-enable a webhook that was previously paused. Only webhooks listed in 'available_webhook_set' (paused webhooks) can be enabled. After enabling, the webhook will appear in 'webhook_set' (active webhooks) and begin sending HTTP POST requests to its target URL when the configured event occurs (e.g., document.processed).\",\n input: ParseurEnableWebhookInput,\n output: ParseurEnableWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG;CACzI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH;AACxJ,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC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../src/actions/enable-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurEnableWebhookInput = z.object({\n mailbox_id: z.number().int().describe(\"Unique numeric ID of the parser mailbox containing the webhook. Obtain via List Mailboxes action.\"),\n webhook_id: z.number().int().describe(\"Unique numeric ID of the paused webhook to enable. Obtain from available_webhook_set via List Webhooks action.\"),\n});\nexport const ParseurEnableWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique ID of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type that triggers the webhook\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) associated with the webhook\").nullable().optional(),\n target: z.string().describe(\"Target URL where webhook payloads are sent\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook, if any\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Webhook category (always 'CUSTOM' for user-created webhooks)\").nullable(),\n parser_field: z.string().describe(\"ID of the field that triggers the webhook (format: 'PF12345'), if any\").nullable().optional(),\n parser_field_set: z.array(z.unknown()).describe(\"List of parser fields or table-fields assigned to the webhook\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage for the webhook, if applicable\").nullable().optional(),\n}).passthrough();\n\nexport const parseurEnableWebhook: AppAction<\n typeof ParseurEnableWebhookInput,\n typeof ParseurEnableWebhookOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_ENABLE_WEBHOOK\", {\n slug: \"parseur-enable-webhook\",\n name: \"Enable webhook\",\n description: \"Enables a paused webhook for a specified mailbox, allowing it to receive and forward parsed document events. Use this action to re-enable a webhook that was previously paused. Only webhooks listed in 'available_webhook_set' (paused webhooks) can be enabled. After enabling, the webhook will appear in 'webhook_set' (active webhooks) and begin sending HTTP POST requests to its target URL when the configured event occurs (e.g., document.processed).\",\n input: ParseurEnableWebhookInput,\n output: ParseurEnableWebhookOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG;CACzI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH;AACxJ,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAsB;EAAgC;EAA4B;CAAiB,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/enable-webhook.d.ts
@@ -23,10 +25,7 @@ declare const ParseurEnableWebhookOutput: z.ZodObject<{
23
25
  parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
24
26
  default_driver_fee_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
27
  }, z.core.$loose>;
26
- declare const parseurEnableWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- mailbox_id: number;
28
- webhook_id: number;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const parseurEnableWebhook: AppAction<typeof ParseurEnableWebhookInput, typeof ParseurEnableWebhookOutput, typeof parseur.credential>;
30
29
  //#endregion
31
30
  export { parseurEnableWebhook };
32
31
  //# sourceMappingURL=enable-webhook.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable-webhook.d.cts","names":[],"sources":["../../src/actions/enable-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAc1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"enable-webhook.d.cts","names":[],"sources":["../../src/actions/enable-webhook.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAc1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parseur } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/enable-webhook.d.ts
@@ -23,10 +25,7 @@ declare const ParseurEnableWebhookOutput: z.ZodObject<{
23
25
  parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
24
26
  default_driver_fee_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
27
  }, z.core.$loose>;
26
- declare const parseurEnableWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- mailbox_id: number;
28
- webhook_id: number;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const parseurEnableWebhook: AppAction<typeof ParseurEnableWebhookInput, typeof ParseurEnableWebhookOutput, typeof parseur.credential>;
30
29
  //#endregion
31
30
  export { parseurEnableWebhook };
32
31
  //# sourceMappingURL=enable-webhook.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable-webhook.d.mts","names":[],"sources":["../../src/actions/enable-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAc1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"enable-webhook.d.mts","names":[],"sources":["../../src/actions/enable-webhook.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAc1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,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 parseurEnableWebhook = action("PARSEUR_ENABLE_WEBHOOK", {
@@ -1 +1 @@
1
- {"version":3,"file":"enable-webhook.mjs","names":[],"sources":["../../src/actions/enable-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurEnableWebhookInput = z.object({\n mailbox_id: z.number().int().describe(\"Unique numeric ID of the parser mailbox containing the webhook. Obtain via List Mailboxes action.\"),\n webhook_id: z.number().int().describe(\"Unique numeric ID of the paused webhook to enable. Obtain from available_webhook_set via List Webhooks action.\"),\n});\nexport const ParseurEnableWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique ID of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type that triggers the webhook\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) associated with the webhook\").nullable().optional(),\n target: z.string().describe(\"Target URL where webhook payloads are sent\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook, if any\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Webhook category (always 'CUSTOM' for user-created webhooks)\").nullable(),\n parser_field: z.string().describe(\"ID of the field that triggers the webhook (format: 'PF12345'), if any\").nullable().optional(),\n parser_field_set: z.array(z.unknown()).describe(\"List of parser fields or table-fields assigned to the webhook\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage for the webhook, if applicable\").nullable().optional(),\n}).passthrough();\n\nexport const parseurEnableWebhook = action(\"PARSEUR_ENABLE_WEBHOOK\", {\n slug: \"parseur-enable-webhook\",\n name: \"Enable webhook\",\n description: \"Enables a paused webhook for a specified mailbox, allowing it to receive and forward parsed document events. Use this action to re-enable a webhook that was previously paused. Only webhooks listed in 'available_webhook_set' (paused webhooks) can be enabled. After enabling, the webhook will appear in 'webhook_set' (active webhooks) and begin sending HTTP POST requests to its target URL when the configured event occurs (e.g., document.processed).\",\n input: ParseurEnableWebhookInput,\n output: ParseurEnableWebhookOutput,\n});\n"],"mappings":";;AAsBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBuC,EAAE,OAAO;EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG;EACzI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH;CACxJ,CAmBS;CACP,QAnBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,KAAK;GAAC;GAAsB;GAAgC;GAA4B;EAAiB,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC/K,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,kBAAkB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"enable-webhook.mjs","names":[],"sources":["../../src/actions/enable-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurEnableWebhookInput = z.object({\n mailbox_id: z.number().int().describe(\"Unique numeric ID of the parser mailbox containing the webhook. Obtain via List Mailboxes action.\"),\n webhook_id: z.number().int().describe(\"Unique numeric ID of the paused webhook to enable. Obtain from available_webhook_set via List Webhooks action.\"),\n});\nexport const ParseurEnableWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique ID of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type that triggers the webhook\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) associated with the webhook\").nullable().optional(),\n target: z.string().describe(\"Target URL where webhook payloads are sent\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook, if any\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Webhook category (always 'CUSTOM' for user-created webhooks)\").nullable(),\n parser_field: z.string().describe(\"ID of the field that triggers the webhook (format: 'PF12345'), if any\").nullable().optional(),\n parser_field_set: z.array(z.unknown()).describe(\"List of parser fields or table-fields assigned to the webhook\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage for the webhook, if applicable\").nullable().optional(),\n}).passthrough();\n\nexport const parseurEnableWebhook: AppAction<\n typeof ParseurEnableWebhookInput,\n typeof ParseurEnableWebhookOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_ENABLE_WEBHOOK\", {\n slug: \"parseur-enable-webhook\",\n name: \"Enable webhook\",\n description: \"Enables a paused webhook for a specified mailbox, allowing it to receive and forward parsed document events. Use this action to re-enable a webhook that was previously paused. Only webhooks listed in 'available_webhook_set' (paused webhooks) can be enabled. After enabling, the webhook will appear in 'webhook_set' (active webhooks) and begin sending HTTP POST requests to its target URL when the configured event occurs (e.g., document.processed).\",\n input: ParseurEnableWebhookInput,\n output: ParseurEnableWebhookOutput,\n});\n"],"mappings":";;;AAwBA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BuC,EAAE,OAAO;EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG;EACzI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH;CACxJ,CAuBS;CACP,QAvBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,KAAK;GAAC;GAAsB;GAAgC;GAA4B;E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