@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 +1 @@
1
- {"version":3,"file":"get-bootstrap-config.cjs","names":["z","action"],"sources":["../../src/actions/get-bootstrap-config.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).passthrough().describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.record(z.string(), z.unknown()).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.record(z.string(), z.unknown()).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).passthrough().describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).passthrough().describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).passthrough().describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).passthrough().describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).passthrough().describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).passthrough().describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI;AACxM,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE,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IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,mBAAmB,gDAAgD,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iGAAiG;AAE3H,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-bootstrap-config.cjs","names":["z","action"],"sources":["../../src/actions/get-bootstrap-config.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 ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).passthrough().describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.record(z.string(), z.unknown()).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.record(z.string(), z.unknown()).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).passthrough().describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).passthrough().describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).passthrough().describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).passthrough().describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).passthrough().describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).passthrough().describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig: AppAction<\n typeof ParseurGetBootstrapConfigInput,\n typeof ParseurGetBootstrapConfigOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI;AACxM,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEA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AC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,mBAAmBA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,mBAAmB,gDAAgD,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iGAAiG;AAE3H,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,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/get-bootstrap-config.d.ts
@@ -54,7 +56,7 @@ declare const ParseurGetBootstrapConfigOutput: z.ZodObject<{
54
56
  email: z.ZodNullable<z.ZodNumber>;
55
57
  }, z.core.$loose>>;
56
58
  }, z.core.$loose>;
57
- declare const parseurGetBootstrapConfig: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
59
+ declare const parseurGetBootstrapConfig: AppAction<typeof ParseurGetBootstrapConfigInput, typeof ParseurGetBootstrapConfigOutput, typeof parseur.credential>;
58
60
  //#endregion
59
61
  export { parseurGetBootstrapConfig };
60
62
  //# sourceMappingURL=get-bootstrap-config.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-bootstrap-config.d.cts","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-bootstrap-config.d.cts","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/get-bootstrap-config.d.ts
@@ -54,7 +56,7 @@ declare const ParseurGetBootstrapConfigOutput: z.ZodObject<{
54
56
  email: z.ZodNullable<z.ZodNumber>;
55
57
  }, z.core.$loose>>;
56
58
  }, z.core.$loose>;
57
- declare const parseurGetBootstrapConfig: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
59
+ declare const parseurGetBootstrapConfig: AppAction<typeof ParseurGetBootstrapConfigInput, typeof ParseurGetBootstrapConfigOutput, typeof parseur.credential>;
58
60
  //#endregion
59
61
  export { parseurGetBootstrapConfig };
60
62
  //# sourceMappingURL=get-bootstrap-config.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-bootstrap-config.d.mts","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-bootstrap-config.d.mts","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/get-bootstrap-config.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-bootstrap-config.mjs","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).passthrough().describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.record(z.string(), z.unknown()).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.record(z.string(), z.unknown()).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).passthrough().describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).passthrough().describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).passthrough().describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).passthrough().describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).passthrough().describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).passthrough().describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI;AACxM,MAAM,0CAA0C,EAAE,OAAO;CACvD,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SA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AkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAUhF,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6C,EAAE,OAAO;EACtD,SAAS,wCAAwC,SAAS;EAC1D,UAAU,yCAAyC,SAAS;EAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,mBAAmB,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,mBAAmB,gDAAgD,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iGAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-bootstrap-config.mjs","names":[],"sources":["../../src/actions/get-bootstrap-config.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 ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).passthrough().describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.record(z.string(), z.unknown()).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.record(z.string(), z.unknown()).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).passthrough().describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).passthrough().describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).passthrough().describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).passthrough().describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).passthrough().describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).passthrough().describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig: AppAction<\n typeof ParseurGetBootstrapConfigInput,\n typeof ParseurGetBootstrapConfigOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,C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C,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,mBAAmB,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,mBAAmB,gDAAgD,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iGAWhB;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/get-document-logs.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).passthrough().describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).passthrough().describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC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AS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0CAA0C;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-document-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-document-logs.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 ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).passthrough().describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).passthrough().describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs: AppAction<\n typeof ParseurGetDocumentLogsInput,\n typeof ParseurGetDocumentLogsOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CA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EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACrE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0CAA0C;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,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/get-document-logs.d.ts
@@ -28,13 +30,7 @@ declare const ParseurGetDocumentLogsOutput: z.ZodObject<{
28
30
  template_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
31
  }, z.core.$loose>>;
30
32
  }, z.core.$loose>;
31
- declare const parseurGetDocumentLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- id: string;
33
- page?: number | undefined;
34
- search?: string | undefined;
35
- ordering?: string | undefined;
36
- page_size?: number | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ declare const parseurGetDocumentLogs: AppAction<typeof ParseurGetDocumentLogsInput, typeof ParseurGetDocumentLogsOutput, typeof parseur.credential>;
38
34
  //#endregion
39
35
  export { parseurGetDocumentLogs };
40
36
  //# sourceMappingURL=get-document-logs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-logs.d.cts","names":[],"sources":["../../src/actions/get-document-logs.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAsB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-document-logs.d.cts","names":[],"sources":["../../src/actions/get-document-logs.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAsB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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/get-document-logs.d.ts
@@ -28,13 +30,7 @@ declare const ParseurGetDocumentLogsOutput: z.ZodObject<{
28
30
  template_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
31
  }, z.core.$loose>>;
30
32
  }, z.core.$loose>;
31
- declare const parseurGetDocumentLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- id: string;
33
- page?: number | undefined;
34
- search?: string | undefined;
35
- ordering?: string | undefined;
36
- page_size?: number | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ declare const parseurGetDocumentLogs: AppAction<typeof ParseurGetDocumentLogsInput, typeof ParseurGetDocumentLogsOutput, typeof parseur.credential>;
38
34
  //#endregion
39
35
  export { parseurGetDocumentLogs };
40
36
  //# sourceMappingURL=get-document-logs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-logs.d.mts","names":[],"sources":["../../src/actions/get-document-logs.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAsB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-document-logs.d.mts","names":[],"sources":["../../src/actions/get-document-logs.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAsB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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/get-document-logs.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-logs.mjs","names":[],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).passthrough().describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).passthrough().describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentL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,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACrE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAQ9D,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0CAA0C;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-document-logs.mjs","names":[],"sources":["../../src/actions/get-document-logs.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 ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).passthrough().describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).passthrough().describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs: AppAction<\n typeof ParseurGetDocumentLogsInput,\n typeof ParseurGetDocumentLogsOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACrE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAQ9D,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0CAA0C;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;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/get-document.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to retrieve. Obtain this ID from the List Documents action or webhook payloads.\"),\n});\nconst ParseurGetDocument_DocumentStatusSchema = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in this set\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image object containing page data\"),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_DocumentStatusSourceSchema = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\").nullable(),\n result: z.string().describe(\"Parsed result string, or null if not yet parsed\").nullable().optional(),\n status: ParseurGetDocument_DocumentStatusSchema.nullable(),\n content: z.string().describe(\"Raw content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in the mailbox, or null if this is the last\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in the mailbox, or null if this is the first\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used to parse the document, or null if none\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, or null if standalone\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurGetDocument_OcrPageSchema).describe(\"List of OCR pages extracted from the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split into multiple documents\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document, or null if not available\").nullable().optional(),\n status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\").nullable(),\n original_document_url: z.string().describe(\"URL to download the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\").nullable(),\n}).passthrough();\n\nexport const parseurGetDocument = action(\"PARSEUR_GET_DOCUMENT\", {\n slug: \"parseur-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve full details of a specific document by ID. Returns document status, processing info, parsed results, and download URLs for JSON, CSV, and XLS formats.\",\n input: ParseurGetDocumentInput,\n output: ParseurGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACjJ,CAAC;AACD,MAAM,0CAA0CA,IAAAA,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cA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC1G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAe,8CAA8C,SAAS,CAAC,CAAC,SAAS;CACjF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAClG,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-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 ParseurGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to retrieve. Obtain this ID from the List Documents action or webhook payloads.\"),\n});\nconst ParseurGetDocument_DocumentStatusSchema = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in this set\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image object containing page data\"),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_DocumentStatusSourceSchema = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\").nullable(),\n result: z.string().describe(\"Parsed result string, or null if not yet parsed\").nullable().optional(),\n status: ParseurGetDocument_DocumentStatusSchema.nullable(),\n content: z.string().describe(\"Raw content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in the mailbox, or null if this is the last\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in the mailbox, or null if this is the first\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used to parse the document, or null if none\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, or null if standalone\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurGetDocument_OcrPageSchema).describe(\"List of OCR pages extracted from the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split into multiple documents\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document, or null if not available\").nullable().optional(),\n status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\").nullable(),\n original_document_url: z.string().describe(\"URL to download the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\").nullable(),\n}).passthrough();\n\nexport const parseurGetDocument: AppAction<\n typeof ParseurGetDocumentInput,\n typeof ParseurGetDocumentOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_GET_DOCUMENT\", {\n slug: \"parseur-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve full details of a specific document by ID. Returns document status, processing info, parsed results, and download URLs for JSON, CSV, and XLS formats.\",\n input: ParseurGetDocumentInput,\n output: ParseurGetDocumentOutput,\n});\n"],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M;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/get-document.d.ts
@@ -63,9 +65,7 @@ declare const ParseurGetDocumentOutput: z.ZodObject<{
63
65
  original_document_url: z.ZodNullable<z.ZodString>;
64
66
  conventional_credits_used: z.ZodNullable<z.ZodNumber>;
65
67
  }, z.core.$loose>;
66
- declare const parseurGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
67
- id: string;
68
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
68
+ declare const parseurGetDocument: AppAction<typeof ParseurGetDocumentInput, typeof ParseurGetDocumentOutput, typeof parseur.credential>;
69
69
  //#endregion
70
70
  export { parseurGetDocument };
71
71
  //# sourceMappingURL=get-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,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/get-document.d.ts
@@ -63,9 +65,7 @@ declare const ParseurGetDocumentOutput: z.ZodObject<{
63
65
  original_document_url: z.ZodNullable<z.ZodString>;
64
66
  conventional_credits_used: z.ZodNullable<z.ZodNumber>;
65
67
  }, z.core.$loose>;
66
- declare const parseurGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
67
- id: string;
68
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
68
+ declare const parseurGetDocument: AppAction<typeof ParseurGetDocumentInput, typeof ParseurGetDocumentOutput, typeof parseur.credential>;
69
69
  //#endregion
70
70
  export { parseurGetDocument };
71
71
  //# sourceMappingURL=get-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,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/get-document.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to retrieve. Obtain this ID from the List Documents action or webhook payloads.\"),\n});\nconst ParseurGetDocument_DocumentStatusSchema = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in this set\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image object containing page data\"),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_DocumentStatusSourceSchema = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\").nullable(),\n result: z.string().describe(\"Parsed result string, or null if not yet parsed\").nullable().optional(),\n status: ParseurGetDocument_DocumentStatusSchema.nullable(),\n content: z.string().describe(\"Raw content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in the mailbox, or null if this is the last\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in the mailbox, or null if this is the first\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used to parse the document, or null if none\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, or null if standalone\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurGetDocument_OcrPageSchema).describe(\"List of OCR pages extracted from the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split into multiple documents\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document, or null if not available\").nullable().optional(),\n status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\").nullable(),\n original_document_url: z.string().describe(\"URL to download the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\").nullable(),\n}).passthrough();\n\nexport const parseurGetDocument = action(\"PARSEUR_GET_DOCUMENT\", {\n slug: \"parseur-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve full details of a specific document by ID. Returns document status, processing info, parsed results, and download URLs for JSON, CSV, and XLS formats.\",\n input: ParseurGetDocumentInput,\n output: ParseurGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAA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AS;EACtI,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,eAAe,8CAA8C,SAAS,CAAC,CAAC,SAAS;EACjF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACjF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAClG,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACvG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7F,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-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 ParseurGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to retrieve. Obtain this ID from the List Documents action or webhook payloads.\"),\n});\nconst ParseurGetDocument_DocumentStatusSchema = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in this set\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image object containing page data\"),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_DocumentStatusSourceSchema = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\").nullable(),\n result: z.string().describe(\"Parsed result string, or null if not yet parsed\").nullable().optional(),\n status: ParseurGetDocument_DocumentStatusSchema.nullable(),\n content: z.string().describe(\"Raw content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in the mailbox, or null if this is the last\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in the mailbox, or null if this is the first\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used to parse the document, or null if none\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, or null if standalone\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurGetDocument_OcrPageSchema).describe(\"List of OCR pages extracted from the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split into multiple documents\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document, or null if not available\").nullable().optional(),\n status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\").nullable(),\n original_document_url: z.string().describe(\"URL to download the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\").nullable(),\n}).passthrough();\n\nexport const parseurGetDocument: AppAction<\n typeof ParseurGetDocumentInput,\n typeof ParseurGetDocumentOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_GET_DOCUMENT\", {\n slug: \"parseur-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve full details of a specific document by ID. Returns document status, processing info, parsed results, and download URLs for JSON, CSV, and XLS formats.\",\n input: ParseurGetDocumentInput,\n output: ParseurGetDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACjJ,CAAC;AACD,MAAM,0CAA0C,EAAE,KAAK;CAAC;CAAY;CAAa;CAAY;CAAY;CAAY;CAAY;CAAW;CAAS;CAAY;CAAW;AAAS,CAAC;AACtL,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,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AAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACjF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAClG,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACvG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7F,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAChH,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/get-mailbox-schema.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailbox-schema.cjs","names":["z","action"],"sources":["../../src/actions/get-mailbox-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetMailboxSchemaInput = z.object({\n mailbox_id: z.string().describe(\"The unique identifier (numeric ID) of the mailbox to retrieve the schema for. Obtain this ID from the List Mailboxes action.\"),\n}).describe(\"Request parameters for retrieving mailbox schema.\");\nexport const ParseurGetMailboxSchemaOutput = z.object({\n type: z.string().describe(\"The schema type (typically 'object' for JSON Schema).\").nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Dictionary of field names to their JSON Schema definitions, describing each parsed field in the mailbox.\"),\n}).passthrough().describe(\"JSON schema describing the parsed fields for the mailbox.\");\n\nexport const parseurGetMailboxSchema = action(\"PARSEUR_GET_MAILBOX_SCHEMA\", {\n slug: \"parseur-get-mailbox-schema\",\n name: \"Get Mailbox Schema\",\n description: \"Tool to retrieve the JSON schema for a mailbox's parsed fields. Use when you need to understand the structure and types of data fields extracted by a specific parser.\",\n input: ParseurGetMailboxSchemaInput,\n output: ParseurGetMailboxSchemaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-mailbox-schema.cjs","names":["z","action"],"sources":["../../src/actions/get-mailbox-schema.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 ParseurGetMailboxSchemaInput = z.object({\n mailbox_id: z.string().describe(\"The unique identifier (numeric ID) of the mailbox to retrieve the schema for. Obtain this ID from the List Mailboxes action.\"),\n}).describe(\"Request parameters for retrieving mailbox schema.\");\nexport const ParseurGetMailboxSchemaOutput = z.object({\n type: z.string().describe(\"The schema type (typically 'object' for JSON Schema).\").nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Dictionary of field names to their JSON Schema definitions, describing each parsed field in the mailbox.\"),\n}).passthrough().describe(\"JSON schema describing the parsed fields for the mailbox.\");\n\nexport const parseurGetMailboxSchema: AppAction<\n typeof ParseurGetMailboxSchemaInput,\n typeof ParseurGetMailboxSchemaOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_GET_MAILBOX_SCHEMA\", {\n slug: \"parseur-get-mailbox-schema\",\n name: \"Get Mailbox Schema\",\n description: \"Tool to retrieve the JSON schema for a mailbox's parsed fields. Use when you need to understand the structure and types of data fields extracted by a specific parser.\",\n input: ParseurGetMailboxSchemaInput,\n output: ParseurGetMailboxSchemaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,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/get-mailbox-schema.d.ts
@@ -8,9 +10,7 @@ declare const ParseurGetMailboxSchemaOutput: z.ZodObject<{
8
10
  type: z.ZodNullable<z.ZodString>;
9
11
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
12
  }, z.core.$loose>;
11
- declare const parseurGetMailboxSchema: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- mailbox_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const parseurGetMailboxSchema: AppAction<typeof ParseurGetMailboxSchemaInput, typeof ParseurGetMailboxSchemaOutput, typeof parseur.credential>;
14
14
  //#endregion
15
15
  export { parseurGetMailboxSchema };
16
16
  //# sourceMappingURL=get-mailbox-schema.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailbox-schema.d.cts","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-mailbox-schema.d.cts","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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/get-mailbox-schema.d.ts
@@ -8,9 +10,7 @@ declare const ParseurGetMailboxSchemaOutput: z.ZodObject<{
8
10
  type: z.ZodNullable<z.ZodString>;
9
11
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
12
  }, z.core.$loose>;
11
- declare const parseurGetMailboxSchema: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- mailbox_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const parseurGetMailboxSchema: AppAction<typeof ParseurGetMailboxSchemaInput, typeof ParseurGetMailboxSchemaOutput, typeof parseur.credential>;
14
14
  //#endregion
15
15
  export { parseurGetMailboxSchema };
16
16
  //# sourceMappingURL=get-mailbox-schema.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailbox-schema.d.mts","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-mailbox-schema.d.mts","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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 parseurGetMailboxSchema = action("PARSEUR_GET_MAILBOX_SCHEMA", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailbox-schema.mjs","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetMailboxSchemaInput = z.object({\n mailbox_id: z.string().describe(\"The unique identifier (numeric ID) of the mailbox to retrieve the schema for. Obtain this ID from the List Mailboxes action.\"),\n}).describe(\"Request parameters for retrieving mailbox schema.\");\nexport const ParseurGetMailboxSchemaOutput = z.object({\n type: z.string().describe(\"The schema type (typically 'object' for JSON Schema).\").nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Dictionary of field names to their JSON Schema definitions, describing each parsed field in the mailbox.\"),\n}).passthrough().describe(\"JSON schema describing the parsed fields for the mailbox.\");\n\nexport const parseurGetMailboxSchema = action(\"PARSEUR_GET_MAILBOX_SCHEMA\", {\n slug: \"parseur-get-mailbox-schema\",\n name: \"Get Mailbox Schema\",\n description: \"Tool to retrieve the JSON schema for a mailbox's parsed fields. Use when you need to understand the structure and types of data fields extracted by a specific parser.\",\n input: ParseurGetMailboxSchemaInput,\n output: ParseurGetMailboxSchemaOutput,\n});\n"],"mappings":";;AAYA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ0C,EAAE,OAAO,EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC,CAAC,CAAC,SAAS,mDAUH;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G;CACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-mailbox-schema.mjs","names":[],"sources":["../../src/actions/get-mailbox-schema.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 ParseurGetMailboxSchemaInput = z.object({\n mailbox_id: z.string().describe(\"The unique identifier (numeric ID) of the mailbox to retrieve the schema for. Obtain this ID from the List Mailboxes action.\"),\n}).describe(\"Request parameters for retrieving mailbox schema.\");\nexport const ParseurGetMailboxSchemaOutput = z.object({\n type: z.string().describe(\"The schema type (typically 'object' for JSON Schema).\").nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Dictionary of field names to their JSON Schema definitions, describing each parsed field in the mailbox.\"),\n}).passthrough().describe(\"JSON schema describing the parsed fields for the mailbox.\");\n\nexport const parseurGetMailboxSchema: AppAction<\n typeof ParseurGetMailboxSchemaInput,\n typeof ParseurGetMailboxSchemaOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_GET_MAILBOX_SCHEMA\", {\n slug: \"parseur-get-mailbox-schema\",\n name: \"Get Mailbox Schema\",\n description: \"Tool to retrieve the JSON schema for a mailbox's parsed fields. Use when you need to understand the structure and types of data fields extracted by a specific parser.\",\n input: ParseurGetMailboxSchemaInput,\n output: ParseurGetMailboxSchemaOutput,\n});\n"],"mappings":";;;AAcA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,EAAE,OAAO,EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC,CAAC,CAAC,SAAS,mDAcH;CACP,QAd2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G;CACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-mailbox.ts