@keystrokehq/parseur 0.1.5 → 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 -16
  6. package/dist/actions/copy-document.d.cts.map +1 -1
  7. package/dist/actions/copy-document.d.mts +3 -16
  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 -15
  14. package/dist/actions/copy-mailbox.d.cts.map +1 -1
  15. package/dist/actions/copy-mailbox.d.mts +3 -15
  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 -23
  22. package/dist/actions/create-custom-download.d.cts.map +1 -1
  23. package/dist/actions/create-custom-download.d.mts +3 -23
  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 +7 -27
  30. package/dist/actions/create-mailbox.d.cts.map +1 -1
  31. package/dist/actions/create-mailbox.d.mts +7 -27
  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 -16
  38. package/dist/actions/delete-custom-download.d.cts.map +1 -1
  39. package/dist/actions/delete-custom-download.d.mts +3 -16
  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 -15
  46. package/dist/actions/delete-document.d.cts.map +1 -1
  47. package/dist/actions/delete-document.d.mts +3 -15
  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 -15
  54. package/dist/actions/delete-mailbox.d.cts.map +1 -1
  55. package/dist/actions/delete-mailbox.d.mts +3 -15
  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 -15
  62. package/dist/actions/delete-webhook.d.cts.map +1 -1
  63. package/dist/actions/delete-webhook.d.mts +3 -15
  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 -16
  70. package/dist/actions/disable-webhook.d.cts.map +1 -1
  71. package/dist/actions/disable-webhook.d.mts +3 -16
  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 -16
  78. package/dist/actions/enable-webhook.d.cts.map +1 -1
  79. package/dist/actions/enable-webhook.d.mts +3 -16
  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 -13
  86. package/dist/actions/get-bootstrap-config.d.cts.map +1 -1
  87. package/dist/actions/get-bootstrap-config.d.mts +3 -13
  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 -19
  94. package/dist/actions/get-document-logs.d.cts.map +1 -1
  95. package/dist/actions/get-document-logs.d.mts +3 -19
  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 +5 -17
  102. package/dist/actions/get-document.d.cts.map +1 -1
  103. package/dist/actions/get-document.d.mts +5 -17
  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 -15
  110. package/dist/actions/get-mailbox-schema.d.cts.map +1 -1
  111. package/dist/actions/get-mailbox-schema.d.mts +3 -15
  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 -15
  118. package/dist/actions/get-mailbox.d.cts.map +1 -1
  119. package/dist/actions/get-mailbox.d.mts +3 -15
  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 -15
  126. package/dist/actions/list-custom-downloads.d.cts.map +1 -1
  127. package/dist/actions/list-custom-downloads.d.mts +3 -15
  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 -23
  134. package/dist/actions/list-documents-in-mailbox.d.cts.map +1 -1
  135. package/dist/actions/list-documents-in-mailbox.d.mts +3 -23
  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 -18
  142. package/dist/actions/list-mailboxes2.d.cts.map +1 -1
  143. package/dist/actions/list-mailboxes2.d.mts +3 -18
  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 +5 -21
  150. package/dist/actions/list-templates.d.cts.map +1 -1
  151. package/dist/actions/list-templates.d.mts +5 -21
  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 -15
  158. package/dist/actions/reprocess-document.d.cts.map +1 -1
  159. package/dist/actions/reprocess-document.d.mts +3 -15
  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 -15
  166. package/dist/actions/retrieve-webhook.d.cts.map +1 -1
  167. package/dist/actions/retrieve-webhook.d.mts +3 -15
  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 -15
  174. package/dist/actions/skip-document.d.cts.map +1 -1
  175. package/dist/actions/skip-document.d.mts +3 -15
  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 -21
  182. package/dist/actions/update-custom-download.d.cts.map +1 -1
  183. package/dist/actions/update-custom-download.d.mts +3 -21
  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 +5 -49
  190. package/dist/actions/update-mailbox.d.cts.map +1 -1
  191. package/dist/actions/update-mailbox.d.mts +5 -49
  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 -20
  198. package/dist/actions/update-webhook.d.cts.map +1 -1
  199. package/dist/actions/update-webhook.d.mts +3 -20
  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 -23
  206. package/dist/actions/upload-email-document.d.cts.map +1 -1
  207. package/dist/actions/upload-email-document.d.mts +3 -23
  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 +2 -2
  212. package/dist/app.cjs.map +1 -1
  213. package/dist/app.d.cts +4 -6
  214. package/dist/app.d.cts.map +1 -1
  215. package/dist/app.d.mts +4 -6
  216. package/dist/app.d.mts.map +1 -1
  217. package/dist/app.mjs +0 -1
  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 +1 @@
1
- {"version":3,"file":"create-mailbox.d.mts","names":[],"sources":["../../src/actions/create-mailbox.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiC1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-mailbox.d.mts","names":[],"sources":["../../src/actions/create-mailbox.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiC1B,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/create-mailbox.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-mailbox.mjs","names":[],"sources":["../../src/actions/create-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCreateMailboxInput = z.object({\n name: z.string().describe(\"The name of the parser/mailbox. If not specified, a default name will be assigned.\").optional(),\n ai_engine: z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for document parsing.\").optional(),\n force_ocr: z.boolean().describe(\"Whether to force OCR on every document uploaded to this parser.\").optional(),\n ai_instructions: z.string().describe(\"General AI instructions for this parser to guide the parsing behavior.\").optional(),\n retention_policy: z.number().int().describe(\"Number of days documents and data are stored before deletion. Default is 90 days.\").optional(),\n allowed_extensions: z.array(z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\")).describe(\"List of file extensions allowed for processing. If not specified, all extensions are enabled.\").optional(),\n master_parser_slug: z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template options.\").optional(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled on this parser.\").optional(),\n identification_status: z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status options for the parser.\").optional(),\n}).describe(\"Request parameters for creating a new mailbox (parser).\");\nconst ParseurCreateMailbox_AIEngineSchema = z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for document parsing.\");\nconst ParseurCreateMailbox_TableItemSchema = z.object({\n id: z.string().describe(\"Table ID.\").nullable(),\n name: z.string().describe(\"Table name.\").nullable(),\n}).passthrough().describe(\"Table configuration item.\");\nconst ParseurCreateMailbox_FileExtensionSchema = z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\");\nconst ParseurCreateMailbox_MasterParserSlugSchema = z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template options.\");\nconst ParseurCreateMailbox_WebhookItemSchema = z.object({\n id: z.number().int().describe(\"Webhook ID.\").nullable(),\n name: z.string().describe(\"Webhook name.\").nullable().optional(),\n event: z.string().describe(\"Event type for the webhook.\").nullable(),\n target: z.string().describe(\"Target URL for the webhook.\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom headers for the webhook.\").nullable().optional(),\n category: z.string().describe(\"Webhook category.\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"Parser fields associated with the webhook.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration item.\");\nconst ParseurCreateMailbox_IdentificationStatusSchema = z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status options for the parser.\");\nconst ParseurCreateMailbox_DocumentStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files split into multiple documents.\").nullable(),\n INVALID: z.number().int().describe(\"Files not supported by the system and not processed.\").nullable(),\n SKIPPED: z.number().int().describe(\"Files skipped because of a template.\").nullable(),\n TRANSKO: z.number().int().describe(\"Files where Python post-processing failed.\").nullable(),\n EXPORTKO: z.number().int().describe(\"Files where exporting parsed data failed.\").nullable(),\n INCOMING: z.number().int().describe(\"Files received by the system awaiting processing.\").nullable(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed.\").nullable(),\n PARSEDOK: z.number().int().describe(\"Files successfully processed with data available for export.\").nullable(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine.\").nullable(),\n QUOTAEXC: z.number().int().describe(\"Files where processing stopped due to insufficient credits.\").nullable(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against system parameters.\").nullable(),\n}).passthrough().describe(\"Breakdown of documents by processing status.\");\nexport const ParseurCreateMailboxOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser.\").nullable(),\n name: z.string().describe(\"The name of the parser.\").nullable().optional(),\n secret: z.string().describe(\"Secret key for the parser.\").nullable(),\n ai_engine: ParseurCreateMailbox_AIEngineSchema.nullable(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document.\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes its instructions to others.\").nullable(),\n table_set: z.array(ParseurCreateMailbox_TableItemSchema).describe(\"List of tables configured in the parser.\"),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for your account.\").nullable(),\n csv_download: z.string().describe(\"URL to download data as CSV.\").nullable(),\n email_prefix: z.string().describe(\"The email prefix for the parser.\").nullable().optional(),\n xls_download: z.string().describe(\"URL to download data as XLS.\").nullable(),\n can_transform: z.boolean().describe(\"Whether Python Post-Processing is enabled for this parser.\").nullable(),\n json_download: z.string().describe(\"URL to download data as JSON.\").nullable(),\n last_activity: z.string().describe(\"Timestamp of last activity (ISO 8601 format).\").nullable(),\n webhook_count: z.number().int().describe(\"The number of webhooks the parser has.\").nullable().optional(),\n document_count: z.number().int().describe(\"The number of documents in the parser.\").nullable(),\n template_count: z.number().int().describe(\"The number of templates the parser has.\").nullable().optional(),\n ai_instructions: z.string().describe(\"General AI instruction for this parser.\").nullable().optional(),\n attachments_only: z.boolean().describe(\"Whether the parser skips email processing.\").nullable(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored before deletion.\").nullable().optional(),\n allowed_extensions: z.array(ParseurCreateMailbox_FileExtensionSchema).describe(\"List of file extensions to process. If not present, all extensions are enabled.\").nullable().optional(),\n master_parser_name: z.string().describe(\"The name of this parser's master parser.\").nullable().optional(),\n master_parser_slug: ParseurCreateMailbox_MasterParserSlugSchema.nullable().optional(),\n parser_object_count: z.number().int().describe(\"The total number of field and metadata outputs currently configured in the parser.\").nullable(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled.\").nullable().optional(),\n available_webhook_set: z.array(ParseurCreateMailbox_WebhookItemSchema).describe(\"List of available webhooks for the parser.\"),\n identification_status: ParseurCreateMailbox_IdentificationStatusSchema.nullable().optional(),\n document_per_status_count: ParseurCreateMailbox_DocumentStatusCountSchema.nullable(),\n template_set_last_modified: z.string().describe(\"Timestamp when templates were last modified.\").nullable().optional(),\n parser_object_set_last_modified: z.string().describe(\"Timestamp when parser objects were last modified.\").nullable().optional(),\n}).passthrough().describe(\"Response containing the created mailbox details.\");\n\nexport const parseurCreateMailbox = action(\"PARSEUR_CREATE_MAILBOX\", {\n slug: \"parseur-create-mailbox\",\n name: \"Create mailbox\",\n description: \"Tool to create a new mailbox (parser) in Parseur. Use when you need to set up a new parser for document parsing with custom configuration.\",\n input: ParseurCreateMailboxInput,\n output: ParseurCreateMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACzH,WAAW,EAAE,KAAK;EAAC;EAAY;EAAY;EAAY;CAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnI,WAAW,EAAE,QAAQ,CAAC,CAAC,S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BAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC9F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,oBAAoB,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtL,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,oBAAoB,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC9I,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,uBAAuB,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4CAA4C;EAC5H,uBAAuB,gDAAgD,SAAS,CAAC,CAAC,SAAS;EAC3F,2BAA2B,+CAA+C,SAAS;EACnF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,iCAAiC,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-mailbox.mjs","names":[],"sources":["../../src/actions/create-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 ParseurCreateMailboxInput = z.object({\n name: z.string().describe(\"The name of the parser/mailbox. If not specified, a default name will be assigned.\").optional(),\n ai_engine: z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for document parsing.\").optional(),\n force_ocr: z.boolean().describe(\"Whether to force OCR on every document uploaded to this parser.\").optional(),\n ai_instructions: z.string().describe(\"General AI instructions for this parser to guide the parsing behavior.\").optional(),\n retention_policy: z.number().int().describe(\"Number of days documents and data are stored before deletion. Default is 90 days.\").optional(),\n allowed_extensions: z.array(z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\")).describe(\"List of file extensions allowed for processing. If not specified, all extensions are enabled.\").optional(),\n master_parser_slug: z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template options.\").optional(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled on this parser.\").optional(),\n identification_status: z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status options for the parser.\").optional(),\n}).describe(\"Request parameters for creating a new mailbox (parser).\");\nconst ParseurCreateMailbox_AIEngineSchema = z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for document parsing.\");\nconst ParseurCreateMailbox_TableItemSchema = z.object({\n id: z.string().describe(\"Table ID.\").nullable(),\n name: z.string().describe(\"Table name.\").nullable(),\n}).passthrough().describe(\"Table configuration item.\");\nconst ParseurCreateMailbox_FileExtensionSchema = z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\");\nconst ParseurCreateMailbox_MasterParserSlugSchema = z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template options.\");\nconst ParseurCreateMailbox_WebhookItemSchema = z.object({\n id: z.number().int().describe(\"Webhook ID.\").nullable(),\n name: z.string().describe(\"Webhook name.\").nullable().optional(),\n event: z.string().describe(\"Event type for the webhook.\").nullable(),\n target: z.string().describe(\"Target URL for the webhook.\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom headers for the webhook.\").nullable().optional(),\n category: z.string().describe(\"Webhook category.\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"Parser fields associated with the webhook.\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration item.\");\nconst ParseurCreateMailbox_IdentificationStatusSchema = z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status options for the parser.\");\nconst ParseurCreateMailbox_DocumentStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files split into multiple documents.\").nullable(),\n INVALID: z.number().int().describe(\"Files not supported by the system and not processed.\").nullable(),\n SKIPPED: z.number().int().describe(\"Files skipped because of a template.\").nullable(),\n TRANSKO: z.number().int().describe(\"Files where Python post-processing failed.\").nullable(),\n EXPORTKO: z.number().int().describe(\"Files where exporting parsed data failed.\").nullable(),\n INCOMING: z.number().int().describe(\"Files received by the system awaiting processing.\").nullable(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed.\").nullable(),\n PARSEDOK: z.number().int().describe(\"Files successfully processed with data available for export.\").nullable(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine.\").nullable(),\n QUOTAEXC: z.number().int().describe(\"Files where processing stopped due to insufficient credits.\").nullable(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against system parameters.\").nullable(),\n}).passthrough().describe(\"Breakdown of documents by processing status.\");\nexport const ParseurCreateMailboxOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser.\").nullable(),\n name: z.string().describe(\"The name of the parser.\").nullable().optional(),\n secret: z.string().describe(\"Secret key for the parser.\").nullable(),\n ai_engine: ParseurCreateMailbox_AIEngineSchema.nullable(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document.\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes its instructions to others.\").nullable(),\n table_set: z.array(ParseurCreateMailbox_TableItemSchema).describe(\"List of tables configured in the parser.\"),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for your account.\").nullable(),\n csv_download: z.string().describe(\"URL to download data as CSV.\").nullable(),\n email_prefix: z.string().describe(\"The email prefix for the parser.\").nullable().optional(),\n xls_download: z.string().describe(\"URL to download data as XLS.\").nullable(),\n can_transform: z.boolean().describe(\"Whether Python Post-Processing is enabled for this parser.\").nullable(),\n json_download: z.string().describe(\"URL to download data as JSON.\").nullable(),\n last_activity: z.string().describe(\"Timestamp of last activity (ISO 8601 format).\").nullable(),\n webhook_count: z.number().int().describe(\"The number of webhooks the parser has.\").nullable().optional(),\n document_count: z.number().int().describe(\"The number of documents in the parser.\").nullable(),\n template_count: z.number().int().describe(\"The number of templates the parser has.\").nullable().optional(),\n ai_instructions: z.string().describe(\"General AI instruction for this parser.\").nullable().optional(),\n attachments_only: z.boolean().describe(\"Whether the parser skips email processing.\").nullable(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored before deletion.\").nullable().optional(),\n allowed_extensions: z.array(ParseurCreateMailbox_FileExtensionSchema).describe(\"List of file extensions to process. If not present, all extensions are enabled.\").nullable().optional(),\n master_parser_name: z.string().describe(\"The name of this parser's master parser.\").nullable().optional(),\n master_parser_slug: ParseurCreateMailbox_MasterParserSlugSchema.nullable().optional(),\n parser_object_count: z.number().int().describe(\"The total number of field and metadata outputs currently configured in the parser.\").nullable(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled.\").nullable().optional(),\n available_webhook_set: z.array(ParseurCreateMailbox_WebhookItemSchema).describe(\"List of available webhooks for the parser.\"),\n identification_status: ParseurCreateMailbox_IdentificationStatusSchema.nullable().optional(),\n document_per_status_count: ParseurCreateMailbox_DocumentStatusCountSchema.nullable(),\n template_set_last_modified: z.string().describe(\"Timestamp when templates were last modified.\").nullable().optional(),\n parser_object_set_last_modified: z.string().describe(\"Timestamp when parser objects were last modified.\").nullable().optional(),\n}).passthrough().describe(\"Response containing the created mailbox details.\");\n\nexport const parseurCreateMailbox: AppAction<\n typeof ParseurCreateMailboxInput,\n typeof ParseurCreateMailboxOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_CREATE_MAILBOX\", {\n slug: \"parseur-create-mailbox\",\n name: \"Create mailbox\",\n description: \"Tool to create a new mailbox (parser) in Parseur. Use when you need to set up a new parser for document parsing with custom configuration.\",\n input: ParseurCreateMailboxInput,\n output: ParseurCreateMailboxOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACzH,WAAW,EAAE,KAAK;EAAC;EAAY;EAAY;EAAY;CAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnI,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC5G,i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AyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC9F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,oBAAoB,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtL,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,oBAAoB,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC9I,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,uBAAuB,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4CAA4C;EAC5H,uBAAuB,gDAAgD,SAAS,CAAC,CAAC,SAAS;EAC3F,2BAA2B,+CAA+C,SAAS;EACnF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,iCAAiC,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;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-custom-download.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-download.cjs","names":["z","action"],"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":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;AACnJ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,EAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-custom-download.cjs","names":["z","action"],"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":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;AACnJ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,EAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,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-custom-download.d.ts
@@ -8,22 +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<"parseur", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
13
+ declare const parseurDeleteCustomDownload: AppAction<typeof ParseurDeleteCustomDownloadInput, typeof ParseurDeleteCustomDownloadOutput, typeof parseur.credential>;
27
14
  //#endregion
28
15
  export { parseurDeleteCustomDownload };
29
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,22 +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<"parseur", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
13
+ declare const parseurDeleteCustomDownload: AppAction<typeof ParseurDeleteCustomDownloadInput, typeof ParseurDeleteCustomDownloadOutput, typeof parseur.credential>;
27
14
  //#endregion
28
15
  export { parseurDeleteCustomDownload };
29
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,21 +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<"parseur", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- generic_api_key: z.ZodString;
18
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>;
12
+ declare const parseurDeleteDocument: AppAction<typeof ParseurDeleteDocumentInput, typeof ParseurDeleteDocumentOutput, typeof parseur.credential>;
25
13
  //#endregion
26
14
  export { parseurDeleteDocument };
27
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,21 +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<"parseur", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- generic_api_key: z.ZodString;
18
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>;
12
+ declare const parseurDeleteDocument: AppAction<typeof ParseurDeleteDocumentInput, typeof ParseurDeleteDocumentOutput, typeof parseur.credential>;
25
13
  //#endregion
26
14
  export { parseurDeleteDocument };
27
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,21 +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<"parseur", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
14
+ declare const parseurDeleteMailbox: AppAction<typeof ParseurDeleteMailboxInput, typeof ParseurDeleteMailboxOutput, typeof parseur.credential>;
27
15
  //#endregion
28
16
  export { parseurDeleteMailbox };
29
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,21 +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<"parseur", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
14
+ declare const parseurDeleteMailbox: AppAction<typeof ParseurDeleteMailboxInput, typeof ParseurDeleteMailboxOutput, typeof parseur.credential>;
27
15
  //#endregion
28
16
  export { parseurDeleteMailbox };
29
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,21 +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<"parseur", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- generic_api_key: z.ZodString;
18
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>;
12
+ declare const parseurDeleteWebhook: AppAction<typeof ParseurDeleteWebhookInput, typeof ParseurDeleteWebhookOutput, typeof parseur.credential>;
25
13
  //#endregion
26
14
  export { parseurDeleteWebhook };
27
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,21 +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<"parseur", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- generic_api_key: z.ZodString;
18
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>;
12
+ declare const parseurDeleteWebhook: AppAction<typeof ParseurDeleteWebhookInput, typeof ParseurDeleteWebhookOutput, typeof parseur.credential>;
25
13
  //#endregion
26
14
  export { parseurDeleteWebhook };
27
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,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eA,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,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,SA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IA,IAAAA,EAAE,OAAO,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,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,22 +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<"parseur", z.ZodObject<{
51
- connectionId: z.ZodString;
52
- entityId: z.ZodString;
53
- instanceId: z.ZodString;
54
- }, z.core.$strip>, z.ZodObject<{
55
- generic_api_key: z.ZodString;
56
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parseur", z.ZodObject<{
57
- connectionId: z.ZodString;
58
- entityId: z.ZodString;
59
- instanceId: z.ZodString;
60
- }, z.core.$strip>, z.ZodObject<{
61
- generic_api_key: z.ZodString;
62
- }, z.core.$strip>>]>;
49
+ declare const parseurDisableWebhook: AppAction<typeof ParseurDisableWebhookInput, typeof ParseurDisableWebhookOutput, typeof parseur.credential>;
63
50
  //#endregion
64
51
  export { parseurDisableWebhook };
65
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"}