@keystrokehq/parseur 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) 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 +2 -2
  4. package/dist/actions/copy-document.cjs.map +1 -1
  5. package/dist/actions/copy-document.d.cts +13 -3
  6. package/dist/actions/copy-document.d.cts.map +1 -1
  7. package/dist/actions/copy-document.d.mts +13 -3
  8. package/dist/actions/copy-document.d.mts.map +1 -1
  9. package/dist/actions/copy-document.mjs +2 -2
  10. package/dist/actions/copy-document.mjs.map +1 -1
  11. package/dist/actions/copy-mailbox.cjs +2 -2
  12. package/dist/actions/copy-mailbox.cjs.map +1 -1
  13. package/dist/actions/copy-mailbox.d.cts +11 -3
  14. package/dist/actions/copy-mailbox.d.cts.map +1 -1
  15. package/dist/actions/copy-mailbox.d.mts +11 -3
  16. package/dist/actions/copy-mailbox.d.mts.map +1 -1
  17. package/dist/actions/copy-mailbox.mjs +2 -2
  18. package/dist/actions/copy-mailbox.mjs.map +1 -1
  19. package/dist/actions/create-custom-download.cjs +4 -4
  20. package/dist/actions/create-custom-download.cjs.map +1 -1
  21. package/dist/actions/create-custom-download.d.cts +38 -3
  22. package/dist/actions/create-custom-download.d.cts.map +1 -1
  23. package/dist/actions/create-custom-download.d.mts +38 -3
  24. package/dist/actions/create-custom-download.d.mts.map +1 -1
  25. package/dist/actions/create-custom-download.mjs +4 -4
  26. package/dist/actions/create-custom-download.mjs.map +1 -1
  27. package/dist/actions/create-mailbox.cjs +35 -35
  28. package/dist/actions/create-mailbox.cjs.map +1 -1
  29. package/dist/actions/create-mailbox.d.cts +187 -3
  30. package/dist/actions/create-mailbox.d.cts.map +1 -1
  31. package/dist/actions/create-mailbox.d.mts +187 -3
  32. package/dist/actions/create-mailbox.d.mts.map +1 -1
  33. package/dist/actions/create-mailbox.mjs +35 -35
  34. package/dist/actions/create-mailbox.mjs.map +1 -1
  35. package/dist/actions/delete-custom-download.cjs +1 -1
  36. package/dist/actions/delete-custom-download.cjs.map +1 -1
  37. package/dist/actions/delete-custom-download.d.cts +11 -3
  38. package/dist/actions/delete-custom-download.d.cts.map +1 -1
  39. package/dist/actions/delete-custom-download.d.mts +11 -3
  40. package/dist/actions/delete-custom-download.d.mts.map +1 -1
  41. package/dist/actions/delete-custom-download.mjs +1 -1
  42. package/dist/actions/delete-custom-download.mjs.map +1 -1
  43. package/dist/actions/delete-document.cjs +1 -1
  44. package/dist/actions/delete-document.cjs.map +1 -1
  45. package/dist/actions/delete-document.d.cts +9 -3
  46. package/dist/actions/delete-document.d.cts.map +1 -1
  47. package/dist/actions/delete-document.d.mts +9 -3
  48. package/dist/actions/delete-document.d.mts.map +1 -1
  49. package/dist/actions/delete-document.mjs +1 -1
  50. package/dist/actions/delete-document.mjs.map +1 -1
  51. package/dist/actions/delete-mailbox.cjs +2 -2
  52. package/dist/actions/delete-mailbox.cjs.map +1 -1
  53. package/dist/actions/delete-mailbox.d.cts +11 -3
  54. package/dist/actions/delete-mailbox.d.cts.map +1 -1
  55. package/dist/actions/delete-mailbox.d.mts +11 -3
  56. package/dist/actions/delete-mailbox.d.mts.map +1 -1
  57. package/dist/actions/delete-mailbox.mjs +2 -2
  58. package/dist/actions/delete-mailbox.mjs.map +1 -1
  59. package/dist/actions/delete-webhook.cjs +1 -1
  60. package/dist/actions/delete-webhook.cjs.map +1 -1
  61. package/dist/actions/delete-webhook.d.cts +9 -3
  62. package/dist/actions/delete-webhook.d.cts.map +1 -1
  63. package/dist/actions/delete-webhook.d.mts +9 -3
  64. package/dist/actions/delete-webhook.d.mts.map +1 -1
  65. package/dist/actions/delete-webhook.mjs +1 -1
  66. package/dist/actions/delete-webhook.mjs.map +1 -1
  67. package/dist/actions/disable-webhook.cjs +8 -8
  68. package/dist/actions/disable-webhook.cjs.map +1 -1
  69. package/dist/actions/disable-webhook.d.cts +47 -3
  70. package/dist/actions/disable-webhook.d.cts.map +1 -1
  71. package/dist/actions/disable-webhook.d.mts +47 -3
  72. package/dist/actions/disable-webhook.d.mts.map +1 -1
  73. package/dist/actions/disable-webhook.mjs +8 -8
  74. package/dist/actions/disable-webhook.mjs.map +1 -1
  75. package/dist/actions/enable-webhook.cjs +6 -6
  76. package/dist/actions/enable-webhook.cjs.map +1 -1
  77. package/dist/actions/enable-webhook.d.cts +26 -3
  78. package/dist/actions/enable-webhook.d.cts.map +1 -1
  79. package/dist/actions/enable-webhook.d.mts +26 -3
  80. package/dist/actions/enable-webhook.d.mts.map +1 -1
  81. package/dist/actions/enable-webhook.mjs +6 -6
  82. package/dist/actions/enable-webhook.mjs.map +1 -1
  83. package/dist/actions/get-bootstrap-config.cjs +18 -18
  84. package/dist/actions/get-bootstrap-config.cjs.map +1 -1
  85. package/dist/actions/get-bootstrap-config.d.cts +54 -3
  86. package/dist/actions/get-bootstrap-config.d.cts.map +1 -1
  87. package/dist/actions/get-bootstrap-config.d.mts +54 -3
  88. package/dist/actions/get-bootstrap-config.d.mts.map +1 -1
  89. package/dist/actions/get-bootstrap-config.mjs +18 -18
  90. package/dist/actions/get-bootstrap-config.mjs.map +1 -1
  91. package/dist/actions/get-document-logs.cjs +15 -15
  92. package/dist/actions/get-document-logs.cjs.map +1 -1
  93. package/dist/actions/get-document-logs.d.cts +34 -3
  94. package/dist/actions/get-document-logs.d.cts.map +1 -1
  95. package/dist/actions/get-document-logs.d.mts +34 -3
  96. package/dist/actions/get-document-logs.d.mts.map +1 -1
  97. package/dist/actions/get-document-logs.mjs +15 -15
  98. package/dist/actions/get-document-logs.mjs.map +1 -1
  99. package/dist/actions/get-document.cjs +29 -29
  100. package/dist/actions/get-document.cjs.map +1 -1
  101. package/dist/actions/get-document.d.cts +65 -3
  102. package/dist/actions/get-document.d.cts.map +1 -1
  103. package/dist/actions/get-document.d.mts +65 -3
  104. package/dist/actions/get-document.d.mts.map +1 -1
  105. package/dist/actions/get-document.mjs +29 -29
  106. package/dist/actions/get-document.mjs.map +1 -1
  107. package/dist/actions/get-mailbox-schema.cjs +2 -2
  108. package/dist/actions/get-mailbox-schema.cjs.map +1 -1
  109. package/dist/actions/get-mailbox-schema.d.cts +10 -3
  110. package/dist/actions/get-mailbox-schema.d.cts.map +1 -1
  111. package/dist/actions/get-mailbox-schema.d.mts +10 -3
  112. package/dist/actions/get-mailbox-schema.d.mts.map +1 -1
  113. package/dist/actions/get-mailbox-schema.mjs +2 -2
  114. package/dist/actions/get-mailbox-schema.mjs.map +1 -1
  115. package/dist/actions/get-mailbox.cjs +43 -43
  116. package/dist/actions/get-mailbox.cjs.map +1 -1
  117. package/dist/actions/get-mailbox.d.cts +147 -3
  118. package/dist/actions/get-mailbox.d.cts.map +1 -1
  119. package/dist/actions/get-mailbox.d.mts +147 -3
  120. package/dist/actions/get-mailbox.d.mts.map +1 -1
  121. package/dist/actions/get-mailbox.mjs +43 -43
  122. package/dist/actions/get-mailbox.mjs.map +1 -1
  123. package/dist/actions/list-custom-downloads.cjs +9 -9
  124. package/dist/actions/list-custom-downloads.cjs.map +1 -1
  125. package/dist/actions/list-custom-downloads.d.cts +21 -3
  126. package/dist/actions/list-custom-downloads.d.cts.map +1 -1
  127. package/dist/actions/list-custom-downloads.d.mts +21 -3
  128. package/dist/actions/list-custom-downloads.d.mts.map +1 -1
  129. package/dist/actions/list-custom-downloads.mjs +9 -9
  130. package/dist/actions/list-custom-downloads.mjs.map +1 -1
  131. package/dist/actions/list-documents-in-mailbox.cjs +10 -10
  132. package/dist/actions/list-documents-in-mailbox.cjs.map +1 -1
  133. package/dist/actions/list-documents-in-mailbox.d.cts +49 -3
  134. package/dist/actions/list-documents-in-mailbox.d.cts.map +1 -1
  135. package/dist/actions/list-documents-in-mailbox.d.mts +49 -3
  136. package/dist/actions/list-documents-in-mailbox.d.mts.map +1 -1
  137. package/dist/actions/list-documents-in-mailbox.mjs +10 -10
  138. package/dist/actions/list-documents-in-mailbox.mjs.map +1 -1
  139. package/dist/actions/list-mailboxes2.cjs +13 -13
  140. package/dist/actions/list-mailboxes2.cjs.map +1 -1
  141. package/dist/actions/list-mailboxes2.d.cts +120 -3
  142. package/dist/actions/list-mailboxes2.d.cts.map +1 -1
  143. package/dist/actions/list-mailboxes2.d.mts +120 -3
  144. package/dist/actions/list-mailboxes2.d.mts.map +1 -1
  145. package/dist/actions/list-mailboxes2.mjs +13 -13
  146. package/dist/actions/list-mailboxes2.mjs.map +1 -1
  147. package/dist/actions/list-templates.cjs +12 -12
  148. package/dist/actions/list-templates.cjs.map +1 -1
  149. package/dist/actions/list-templates.d.cts +41 -3
  150. package/dist/actions/list-templates.d.cts.map +1 -1
  151. package/dist/actions/list-templates.d.mts +41 -3
  152. package/dist/actions/list-templates.d.mts.map +1 -1
  153. package/dist/actions/list-templates.mjs +12 -12
  154. package/dist/actions/list-templates.mjs.map +1 -1
  155. package/dist/actions/reprocess-document.cjs +2 -2
  156. package/dist/actions/reprocess-document.cjs.map +1 -1
  157. package/dist/actions/reprocess-document.d.cts +11 -3
  158. package/dist/actions/reprocess-document.d.cts.map +1 -1
  159. package/dist/actions/reprocess-document.d.mts +11 -3
  160. package/dist/actions/reprocess-document.d.mts.map +1 -1
  161. package/dist/actions/reprocess-document.mjs +2 -2
  162. package/dist/actions/reprocess-document.mjs.map +1 -1
  163. package/dist/actions/retrieve-webhook.cjs +6 -6
  164. package/dist/actions/retrieve-webhook.cjs.map +1 -1
  165. package/dist/actions/retrieve-webhook.d.cts +23 -3
  166. package/dist/actions/retrieve-webhook.d.cts.map +1 -1
  167. package/dist/actions/retrieve-webhook.d.mts +23 -3
  168. package/dist/actions/retrieve-webhook.d.mts.map +1 -1
  169. package/dist/actions/retrieve-webhook.mjs +6 -6
  170. package/dist/actions/retrieve-webhook.mjs.map +1 -1
  171. package/dist/actions/skip-document.cjs +30 -30
  172. package/dist/actions/skip-document.cjs.map +1 -1
  173. package/dist/actions/skip-document.d.cts +45 -3
  174. package/dist/actions/skip-document.d.cts.map +1 -1
  175. package/dist/actions/skip-document.d.mts +45 -3
  176. package/dist/actions/skip-document.d.mts.map +1 -1
  177. package/dist/actions/skip-document.mjs +30 -30
  178. package/dist/actions/skip-document.mjs.map +1 -1
  179. package/dist/actions/update-custom-download.cjs +5 -5
  180. package/dist/actions/update-custom-download.cjs.map +1 -1
  181. package/dist/actions/update-custom-download.d.cts +34 -3
  182. package/dist/actions/update-custom-download.d.cts.map +1 -1
  183. package/dist/actions/update-custom-download.d.mts +34 -3
  184. package/dist/actions/update-custom-download.d.mts.map +1 -1
  185. package/dist/actions/update-custom-download.mjs +5 -5
  186. package/dist/actions/update-custom-download.mjs.map +1 -1
  187. package/dist/actions/update-mailbox.cjs +37 -37
  188. package/dist/actions/update-mailbox.cjs.map +1 -1
  189. package/dist/actions/update-mailbox.d.cts +197 -3
  190. package/dist/actions/update-mailbox.d.cts.map +1 -1
  191. package/dist/actions/update-mailbox.d.mts +197 -3
  192. package/dist/actions/update-mailbox.d.mts.map +1 -1
  193. package/dist/actions/update-mailbox.mjs +37 -37
  194. package/dist/actions/update-mailbox.mjs.map +1 -1
  195. package/dist/actions/update-webhook.cjs +7 -7
  196. package/dist/actions/update-webhook.cjs.map +1 -1
  197. package/dist/actions/update-webhook.d.cts +37 -3
  198. package/dist/actions/update-webhook.d.cts.map +1 -1
  199. package/dist/actions/update-webhook.d.mts +37 -3
  200. package/dist/actions/update-webhook.d.mts.map +1 -1
  201. package/dist/actions/update-webhook.mjs +7 -7
  202. package/dist/actions/update-webhook.mjs.map +1 -1
  203. package/dist/actions/upload-email-document.cjs +1 -1
  204. package/dist/actions/upload-email-document.cjs.map +1 -1
  205. package/dist/actions/upload-email-document.d.cts +25 -3
  206. package/dist/actions/upload-email-document.d.cts.map +1 -1
  207. package/dist/actions/upload-email-document.d.mts +25 -3
  208. package/dist/actions/upload-email-document.d.mts.map +1 -1
  209. package/dist/actions/upload-email-document.mjs +1 -1
  210. package/dist/actions/upload-email-document.mjs.map +1 -1
  211. package/dist/catalog.cjs +7 -1
  212. package/dist/catalog.cjs.map +1 -1
  213. package/dist/catalog.d.cts +8 -0
  214. package/dist/catalog.d.mts +8 -0
  215. package/dist/catalog.mjs +7 -1
  216. package/dist/catalog.mjs.map +1 -1
  217. package/package.json +2 -2
@@ -6,22 +6,22 @@ const parseurRetrieveWebhook = action("PARSEUR_RETRIEVE_WEBHOOK", {
6
6
  description: "Tool to retrieve details of a specific webhook. Use after creating or listing webhooks.",
7
7
  input: z.object({ webhook_id: z.string().describe("Unique identifier of the webhook to retrieve. Obtain from list webhooks or create webhook responses.") }),
8
8
  output: z.object({
9
- id: z.number().int().describe("Unique webhook identifier"),
9
+ id: z.number().int().describe("Unique webhook identifier").nullable(),
10
10
  name: z.string().describe("Custom name for the webhook, or null if not set (defaults to target URL)").nullable().optional(),
11
11
  event: z.enum([
12
12
  "document.processed",
13
13
  "document.processed.flattened",
14
14
  "document.template_needed",
15
15
  "table.processed"
16
- ]).describe("Event type that triggers this webhook"),
16
+ ]).describe("Event type that triggers this webhook").nullable(),
17
17
  parser: z.number().int().describe("ID of the mailbox (parser) this webhook belongs to, if returned by API").nullable().optional(),
18
- target: z.string().describe("The URL to which webhook payloads are sent"),
18
+ target: z.string().describe("The URL to which webhook payloads are sent").nullable(),
19
19
  api_key: z.string().describe("API key associated with the webhook, or null if not set").nullable().optional(),
20
- headers: z.object({}).describe("Custom HTTP headers included in webhook requests, or null if none").nullable().optional(),
21
- category: z.string().describe("Webhook category (always 'CUSTOM' for user-created webhooks)"),
20
+ headers: z.record(z.string(), z.unknown()).describe("Custom HTTP headers included in webhook requests, or null if none").nullable().optional(),
21
+ category: z.string().describe("Webhook category (always 'CUSTOM' for user-created webhooks)").nullable(),
22
22
  parser_field_set: z.array(z.record(z.string(), z.unknown())).describe("List of parser fields or table-fields assigned to this webhook").nullable().optional(),
23
23
  default_driver_fee_percentage: z.number().describe("Default driver fee percentage if applicable, or null").nullable().optional()
24
- })
24
+ }).passthrough()
25
25
  });
26
26
  //#endregion
27
27
  export { parseurRetrieveWebhook };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-webhook.mjs","names":[],"sources":["../../src/actions/retrieve-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurRetrieveWebhookInput: z.ZodTypeAny = z.object({\n webhook_id: z.string().describe(\"Unique identifier of the webhook to retrieve. Obtain from list webhooks or create webhook responses.\"),\n});\nexport const ParseurRetrieveWebhookOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique webhook identifier\"),\n name: z.string().describe(\"Custom name for the webhook, or null if not set (defaults to target URL)\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type that triggers this webhook\"),\n parser: z.number().int().describe(\"ID of the mailbox (parser) this webhook belongs to, if returned by API\").nullable().optional(),\n target: z.string().describe(\"The URL to which webhook payloads are sent\"),\n api_key: z.string().describe(\"API key associated with the webhook, or null if not set\").nullable().optional(),\n headers: z.object({}).describe(\"Custom HTTP headers included in webhook requests, or null if none\").nullable().optional(),\n category: z.string().describe(\"Webhook category (always 'CUSTOM' for user-created webhooks)\"),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields or table-fields assigned to this webhook\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage if applicable, or null\").nullable().optional(),\n});\n\nexport const parseurRetrieveWebhook = action(\"PARSEUR_RETRIEVE_WEBHOOK\", {\n slug: \"parseur-retrieve-webhook\",\n name: \"Retrieve a webhook\",\n description: \"Tool to retrieve details of a specific webhook. Use after creating or listing webhooks.\",\n input: ParseurRetrieveWebhookInput,\n output: ParseurRetrieveWebhookOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBuD,EAAE,OAAO,EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,EACxI,CAkBS;CACP,QAlBwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,OAAO,EAAE,KAAK;GAAC;GAAsB;GAAgC;GAA4B;EAAiB,CAAC,CAAC,CAAC,SAAS,uCAAuC;EACrK,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EAC5F,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5J,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-webhook.mjs","names":[],"sources":["../../src/actions/retrieve-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurRetrieveWebhookInput = z.object({\n webhook_id: z.string().describe(\"Unique identifier of the webhook to retrieve. Obtain from list webhooks or create webhook responses.\"),\n});\nexport const ParseurRetrieveWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique webhook identifier\").nullable(),\n name: z.string().describe(\"Custom name for the webhook, or null if not set (defaults to target URL)\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type that triggers this webhook\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) this webhook belongs to, if returned by API\").nullable().optional(),\n target: z.string().describe(\"The URL to which webhook payloads are sent\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook, or null if not set\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers included in webhook requests, or null if none\").nullable().optional(),\n category: z.string().describe(\"Webhook category (always 'CUSTOM' for user-created webhooks)\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields or table-fields assigned to this webhook\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage if applicable, or null\").nullable().optional(),\n}).passthrough();\n\nexport const parseurRetrieveWebhook = action(\"PARSEUR_RETRIEVE_WEBHOOK\", {\n slug: \"parseur-retrieve-webhook\",\n name: \"Retrieve a webhook\",\n description: \"Tool to retrieve details of a specific webhook. Use after creating or listing webhooks.\",\n input: ParseurRetrieveWebhookInput,\n output: ParseurRetrieveWebhookOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByC,EAAE,OAAO,EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,EACxI,CAkBS;CACP,QAlB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,OAAO,EAAE,KAAK;GAAC;GAAsB;GAAgC;GAA4B;EAAiB,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAChL,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5J,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,46 +3,46 @@ let zod = require("zod");
3
3
  //#region src/actions/skip-document.ts
4
4
  const ParseurSkipDocumentInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.") });
5
5
  const ParseurSkipDocument_SampleSetItemSchema = zod.z.object({
6
- name: zod.z.string().describe("Name of the sample set"),
7
- template_id: zod.z.number().int().describe("ID of the template"),
8
- sample_count: zod.z.number().int().describe("Number of samples in the set")
9
- });
6
+ name: zod.z.string().describe("Name of the sample set").nullable(),
7
+ template_id: zod.z.number().int().describe("ID of the template").nullable(),
8
+ sample_count: zod.z.number().int().describe("Number of samples in the set").nullable()
9
+ }).passthrough();
10
10
  const ParseurSkipDocument_OcrPageSchema = zod.z.object({
11
- image: zod.z.object({}).describe("Image data for the OCR page").nullable().optional(),
12
- position: zod.z.number().int().describe("Position of the page in the document"),
13
- included_in_range: zod.z.boolean().describe("Whether this page is included in the processing range")
14
- });
11
+ image: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Image data for the OCR page").nullable().optional(),
12
+ position: zod.z.number().int().describe("Position of the page in the document").nullable(),
13
+ included_in_range: zod.z.boolean().describe("Whether this page is included in the processing range").nullable()
14
+ }).passthrough();
15
15
  const ParseurSkipDocumentOutput = zod.z.object({
16
- id: zod.z.number().int().describe("Unique identifier of the document"),
17
- name: zod.z.string().describe("Name of the document"),
18
- parser: zod.z.number().int().describe("ID of the parser/mailbox this document belongs to"),
16
+ id: zod.z.number().int().describe("Unique identifier of the document").nullable(),
17
+ name: zod.z.string().describe("Name of the document").nullable(),
18
+ parser: zod.z.number().int().describe("ID of the parser/mailbox this document belongs to").nullable(),
19
19
  result: zod.z.string().describe("Parsed result string, if available").nullable().optional(),
20
- status: zod.z.string().describe("Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)"),
21
- content: zod.z.string().describe("Content of the document"),
20
+ status: zod.z.string().describe("Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)").nullable(),
21
+ content: zod.z.string().describe("Content of the document").nullable(),
22
22
  next_id: zod.z.number().int().describe("ID of the next document in sequence").nullable().optional(),
23
23
  prev_id: zod.z.number().int().describe("ID of the previous document in sequence").nullable().optional(),
24
- is_split: zod.z.boolean().describe("Whether the document has been split"),
25
- received: zod.z.string().describe("ISO 8601 timestamp when the document was received"),
24
+ is_split: zod.z.boolean().describe("Whether the document has been split").nullable(),
25
+ received: zod.z.string().describe("ISO 8601 timestamp when the document was received").nullable(),
26
26
  template: zod.z.number().int().describe("ID of the template used, if any").nullable().optional(),
27
- processed: zod.z.string().describe("ISO 8601 timestamp when the document was processed"),
28
- sample_set: zod.z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe("List of sample sets associated with the document").optional(),
27
+ processed: zod.z.string().describe("ISO 8601 timestamp when the document was processed").nullable(),
28
+ sample_set: zod.z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe("List of sample sets associated with the document").nullable().optional(),
29
29
  attached_to: zod.z.number().int().describe("ID of the document this is attached to, if any").nullable().optional(),
30
- is_ai_ready: zod.z.boolean().describe("Whether the document is ready for AI processing"),
31
- credits_used: zod.z.number().int().describe("Total credits used for processing this document"),
32
- is_ocr_ready: zod.z.boolean().describe("Whether the document is ready for OCR processing"),
30
+ is_ai_ready: zod.z.boolean().describe("Whether the document is ready for AI processing").nullable(),
31
+ credits_used: zod.z.number().int().describe("Total credits used for processing this document").nullable(),
32
+ is_ocr_ready: zod.z.boolean().describe("Whether the document is ready for OCR processing").nullable(),
33
33
  ocr_page_set: zod.z.array(ParseurSkipDocument_OcrPageSchema).describe("List of OCR pages in the document").nullable().optional(),
34
- is_splittable: zod.z.boolean().describe("Whether the document can be split"),
34
+ is_splittable: zod.z.boolean().describe("Whether the document can be split").nullable(),
35
35
  ocr_ready_url: zod.z.string().describe("URL to the OCR-ready version of the document").nullable().optional(),
36
36
  status_source: zod.z.string().describe("Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)").nullable().optional(),
37
- is_processable: zod.z.boolean().describe("Whether the document can be processed"),
38
- ai_credits_used: zod.z.number().int().describe("AI credits used for processing"),
39
- csv_download_url: zod.z.string().describe("URL to download the document in CSV format"),
40
- xls_download_url: zod.z.string().describe("URL to download the document in XLS format"),
41
- json_download_url: zod.z.string().describe("URL to download the document in JSON format"),
42
- match_master_template: zod.z.boolean().describe("Whether the document matches the master template"),
43
- original_document_url: zod.z.string().describe("URL to the original document"),
44
- conventional_credits_used: zod.z.number().int().describe("Conventional credits used for processing")
45
- });
37
+ is_processable: zod.z.boolean().describe("Whether the document can be processed").nullable(),
38
+ ai_credits_used: zod.z.number().int().describe("AI credits used for processing").nullable(),
39
+ csv_download_url: zod.z.string().describe("URL to download the document in CSV format").nullable(),
40
+ xls_download_url: zod.z.string().describe("URL to download the document in XLS format").nullable(),
41
+ json_download_url: zod.z.string().describe("URL to download the document in JSON format").nullable(),
42
+ match_master_template: zod.z.boolean().describe("Whether the document matches the master template").nullable(),
43
+ original_document_url: zod.z.string().describe("URL to the original document").nullable(),
44
+ conventional_credits_used: zod.z.number().int().describe("Conventional credits used for processing").nullable()
45
+ }).passthrough();
46
46
  const parseurSkipDocument = require_action.action("PARSEUR_SKIP_DOCUMENT", {
47
47
  slug: "parseur-skip-document",
48
48
  name: "Skip a document",
@@ -1 +1 @@
1
- {"version":3,"file":"skip-document.cjs","names":["z","action"],"sources":["../../src/actions/skip-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurSkipDocumentInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.\"),\n});\nconst ParseurSkipDocument_SampleSetItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the sample set\"),\n template_id: z.number().int().describe(\"ID of the template\"),\n sample_count: z.number().int().describe(\"Number of samples in the set\"),\n});\nconst ParseurSkipDocument_OcrPageSchema: z.ZodTypeAny = z.object({\n image: z.object({}).describe(\"Image data for the OCR page\").nullable().optional(),\n position: z.number().int().describe(\"Position of the page in the document\"),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\"),\n});\nexport const ParseurSkipDocumentOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\"),\n name: z.string().describe(\"Name of the document\"),\n parser: z.number().int().describe(\"ID of the parser/mailbox this document belongs to\"),\n result: z.string().describe(\"Parsed result string, if available\").nullable().optional(),\n status: z.string().describe(\"Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)\"),\n content: z.string().describe(\"Content of the document\"),\n next_id: z.number().int().describe(\"ID of the next document in sequence\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in sequence\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\"),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\"),\n template: z.number().int().describe(\"ID of the template used, if any\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\"),\n sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe(\"List of sample sets associated with the document\").optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, if any\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\"),\n credits_used: z.number().int().describe(\"Total credits used for processing this document\"),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\"),\n ocr_page_set: z.array(ParseurSkipDocument_OcrPageSchema).describe(\"List of OCR pages in the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split\"),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document\").nullable().optional(),\n status_source: z.string().describe(\"Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)\").nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\"),\n ai_credits_used: z.number().int().describe(\"AI credits used for processing\"),\n csv_download_url: z.string().describe(\"URL to download the document in CSV format\"),\n xls_download_url: z.string().describe(\"URL to download the document in XLS format\"),\n json_download_url: z.string().describe(\"URL to download the document in JSON format\"),\n match_master_template: z.boolean().describe(\"Whether the document matches the master template\"),\n original_document_url: z.string().describe(\"URL to the original document\"),\n conventional_credits_used: z.number().int().describe(\"Conventional credits used for processing\"),\n});\n\nexport const parseurSkipDocument = action(\"PARSEUR_SKIP_DOCUMENT\", {\n slug: \"parseur-skip-document\",\n name: \"Skip a document\",\n description: \"Tool to skip a document. Marks the document as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,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAC3E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAClF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAClF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACpF,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD;CAC9F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACzE,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;AACjG,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"skip-document.cjs","names":["z","action"],"sources":["../../src/actions/skip-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurSkipDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.\"),\n});\nconst ParseurSkipDocument_SampleSetItemSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in the set\").nullable(),\n}).passthrough();\nconst ParseurSkipDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image data for the OCR page\").nullable().optional(),\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();\nexport const ParseurSkipDocumentOutput = 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 parser/mailbox this document belongs to\").nullable(),\n result: z.string().describe(\"Parsed result string, if available\").nullable().optional(),\n status: z.string().describe(\"Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)\").nullable(),\n content: z.string().describe(\"Content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in sequence\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in sequence\").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, if any\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe(\"List of sample sets associated with the document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, if any\").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 credits used for 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(ParseurSkipDocument_OcrPageSchema).describe(\"List of OCR pages in the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document\").nullable().optional(),\n status_source: z.string().describe(\"Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)\").nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"AI credits used for processing\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the document in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the document in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the document in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches the master template\").nullable(),\n original_document_url: z.string().describe(\"URL to the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Conventional credits used for processing\").nullable(),\n}).passthrough();\n\nexport const parseurSkipDocument = action(\"PARSEUR_SKIP_DOCUMENT\", {\n slug: \"parseur-skip-document\",\n name: \"Skip a document\",\n description: \"Tool to skip a document. Marks the document as skipped and returns the updated document with status 'SKIPPED'.\",\n input: ParseurSkipDocumentInput,\n output: ParseurSkipDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAC/I,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,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C,CAAC,SAAS;CAC/F,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpF,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/skip-document.d.ts
4
- declare const ParseurSkipDocumentInput: z.ZodTypeAny;
5
- declare const ParseurSkipDocumentOutput: z.ZodTypeAny;
6
- declare const parseurSkipDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurSkipDocumentInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParseurSkipDocumentOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ parser: z.ZodNullable<z.ZodNumber>;
11
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ content: z.ZodNullable<z.ZodString>;
14
+ next_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ prev_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ is_split: z.ZodNullable<z.ZodBoolean>;
17
+ received: z.ZodNullable<z.ZodString>;
18
+ template: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ processed: z.ZodNullable<z.ZodString>;
20
+ sample_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNullable<z.ZodObject<{
21
+ name: z.ZodNullable<z.ZodString>;
22
+ template_id: z.ZodNullable<z.ZodNumber>;
23
+ sample_count: z.ZodNullable<z.ZodNumber>;
24
+ }, z.core.$loose>>>>>;
25
+ attached_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ is_ai_ready: z.ZodNullable<z.ZodBoolean>;
27
+ credits_used: z.ZodNullable<z.ZodNumber>;
28
+ is_ocr_ready: z.ZodNullable<z.ZodBoolean>;
29
+ ocr_page_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
30
+ image: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
+ position: z.ZodNullable<z.ZodNumber>;
32
+ included_in_range: z.ZodNullable<z.ZodBoolean>;
33
+ }, z.core.$loose>>>>;
34
+ is_splittable: z.ZodNullable<z.ZodBoolean>;
35
+ ocr_ready_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ status_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ is_processable: z.ZodNullable<z.ZodBoolean>;
38
+ ai_credits_used: z.ZodNullable<z.ZodNumber>;
39
+ csv_download_url: z.ZodNullable<z.ZodString>;
40
+ xls_download_url: z.ZodNullable<z.ZodString>;
41
+ json_download_url: z.ZodNullable<z.ZodString>;
42
+ match_master_template: z.ZodNullable<z.ZodBoolean>;
43
+ original_document_url: z.ZodNullable<z.ZodString>;
44
+ conventional_credits_used: z.ZodNullable<z.ZodNumber>;
45
+ }, z.core.$loose>;
46
+ declare const parseurSkipDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ id: string;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { parseurSkipDocument };
9
51
  //# sourceMappingURL=skip-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skip-document.d.cts","names":[],"sources":["../../src/actions/skip-document.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEvC;AAAA,cAWW,yBAAA,EAA2B,CAAA,CAAE,UA8BxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"skip-document.d.cts","names":[],"sources":["../../src/actions/skip-document.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/skip-document.d.ts
4
- declare const ParseurSkipDocumentInput: z.ZodTypeAny;
5
- declare const ParseurSkipDocumentOutput: z.ZodTypeAny;
6
- declare const parseurSkipDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurSkipDocumentInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParseurSkipDocumentOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ parser: z.ZodNullable<z.ZodNumber>;
11
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ content: z.ZodNullable<z.ZodString>;
14
+ next_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ prev_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ is_split: z.ZodNullable<z.ZodBoolean>;
17
+ received: z.ZodNullable<z.ZodString>;
18
+ template: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ processed: z.ZodNullable<z.ZodString>;
20
+ sample_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNullable<z.ZodObject<{
21
+ name: z.ZodNullable<z.ZodString>;
22
+ template_id: z.ZodNullable<z.ZodNumber>;
23
+ sample_count: z.ZodNullable<z.ZodNumber>;
24
+ }, z.core.$loose>>>>>;
25
+ attached_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ is_ai_ready: z.ZodNullable<z.ZodBoolean>;
27
+ credits_used: z.ZodNullable<z.ZodNumber>;
28
+ is_ocr_ready: z.ZodNullable<z.ZodBoolean>;
29
+ ocr_page_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
30
+ image: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
+ position: z.ZodNullable<z.ZodNumber>;
32
+ included_in_range: z.ZodNullable<z.ZodBoolean>;
33
+ }, z.core.$loose>>>>;
34
+ is_splittable: z.ZodNullable<z.ZodBoolean>;
35
+ ocr_ready_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ status_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ is_processable: z.ZodNullable<z.ZodBoolean>;
38
+ ai_credits_used: z.ZodNullable<z.ZodNumber>;
39
+ csv_download_url: z.ZodNullable<z.ZodString>;
40
+ xls_download_url: z.ZodNullable<z.ZodString>;
41
+ json_download_url: z.ZodNullable<z.ZodString>;
42
+ match_master_template: z.ZodNullable<z.ZodBoolean>;
43
+ original_document_url: z.ZodNullable<z.ZodString>;
44
+ conventional_credits_used: z.ZodNullable<z.ZodNumber>;
45
+ }, z.core.$loose>;
46
+ declare const parseurSkipDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ id: string;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { parseurSkipDocument };
9
51
  //# sourceMappingURL=skip-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skip-document.d.mts","names":[],"sources":["../../src/actions/skip-document.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEvC;AAAA,cAWW,yBAAA,EAA2B,CAAA,CAAE,UA8BxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"skip-document.d.mts","names":[],"sources":["../../src/actions/skip-document.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCzB,mBAAA,gCAAmB,wBAAA"}
@@ -3,51 +3,51 @@ import { z } from "zod";
3
3
  //#region src/actions/skip-document.ts
4
4
  const ParseurSkipDocumentInput = z.object({ id: z.string().describe("The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.") });
5
5
  const ParseurSkipDocument_SampleSetItemSchema = z.object({
6
- name: z.string().describe("Name of the sample set"),
7
- template_id: z.number().int().describe("ID of the template"),
8
- sample_count: z.number().int().describe("Number of samples in the set")
9
- });
6
+ name: z.string().describe("Name of the sample set").nullable(),
7
+ template_id: z.number().int().describe("ID of the template").nullable(),
8
+ sample_count: z.number().int().describe("Number of samples in the set").nullable()
9
+ }).passthrough();
10
10
  const ParseurSkipDocument_OcrPageSchema = z.object({
11
- image: z.object({}).describe("Image data for the OCR page").nullable().optional(),
12
- position: z.number().int().describe("Position of the page in the document"),
13
- included_in_range: z.boolean().describe("Whether this page is included in the processing range")
14
- });
11
+ image: z.record(z.string(), z.unknown()).describe("Image data for the OCR page").nullable().optional(),
12
+ position: z.number().int().describe("Position of the page in the document").nullable(),
13
+ included_in_range: z.boolean().describe("Whether this page is included in the processing range").nullable()
14
+ }).passthrough();
15
15
  const parseurSkipDocument = action("PARSEUR_SKIP_DOCUMENT", {
16
16
  slug: "parseur-skip-document",
17
17
  name: "Skip a document",
18
18
  description: "Tool to skip a document. Marks the document as skipped and returns the updated document with status 'SKIPPED'.",
19
19
  input: ParseurSkipDocumentInput,
20
20
  output: z.object({
21
- id: z.number().int().describe("Unique identifier of the document"),
22
- name: z.string().describe("Name of the document"),
23
- parser: z.number().int().describe("ID of the parser/mailbox this document belongs to"),
21
+ id: z.number().int().describe("Unique identifier of the document").nullable(),
22
+ name: z.string().describe("Name of the document").nullable(),
23
+ parser: z.number().int().describe("ID of the parser/mailbox this document belongs to").nullable(),
24
24
  result: z.string().describe("Parsed result string, if available").nullable().optional(),
25
- status: z.string().describe("Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)"),
26
- content: z.string().describe("Content of the document"),
25
+ status: z.string().describe("Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)").nullable(),
26
+ content: z.string().describe("Content of the document").nullable(),
27
27
  next_id: z.number().int().describe("ID of the next document in sequence").nullable().optional(),
28
28
  prev_id: z.number().int().describe("ID of the previous document in sequence").nullable().optional(),
29
- is_split: z.boolean().describe("Whether the document has been split"),
30
- received: z.string().describe("ISO 8601 timestamp when the document was received"),
29
+ is_split: z.boolean().describe("Whether the document has been split").nullable(),
30
+ received: z.string().describe("ISO 8601 timestamp when the document was received").nullable(),
31
31
  template: z.number().int().describe("ID of the template used, if any").nullable().optional(),
32
- processed: z.string().describe("ISO 8601 timestamp when the document was processed"),
33
- sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe("List of sample sets associated with the document").optional(),
32
+ processed: z.string().describe("ISO 8601 timestamp when the document was processed").nullable(),
33
+ sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe("List of sample sets associated with the document").nullable().optional(),
34
34
  attached_to: z.number().int().describe("ID of the document this is attached to, if any").nullable().optional(),
35
- is_ai_ready: z.boolean().describe("Whether the document is ready for AI processing"),
36
- credits_used: z.number().int().describe("Total credits used for processing this document"),
37
- is_ocr_ready: z.boolean().describe("Whether the document is ready for OCR processing"),
35
+ is_ai_ready: z.boolean().describe("Whether the document is ready for AI processing").nullable(),
36
+ credits_used: z.number().int().describe("Total credits used for processing this document").nullable(),
37
+ is_ocr_ready: z.boolean().describe("Whether the document is ready for OCR processing").nullable(),
38
38
  ocr_page_set: z.array(ParseurSkipDocument_OcrPageSchema).describe("List of OCR pages in the document").nullable().optional(),
39
- is_splittable: z.boolean().describe("Whether the document can be split"),
39
+ is_splittable: z.boolean().describe("Whether the document can be split").nullable(),
40
40
  ocr_ready_url: z.string().describe("URL to the OCR-ready version of the document").nullable().optional(),
41
41
  status_source: z.string().describe("Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)").nullable().optional(),
42
- is_processable: z.boolean().describe("Whether the document can be processed"),
43
- ai_credits_used: z.number().int().describe("AI credits used for processing"),
44
- csv_download_url: z.string().describe("URL to download the document in CSV format"),
45
- xls_download_url: z.string().describe("URL to download the document in XLS format"),
46
- json_download_url: z.string().describe("URL to download the document in JSON format"),
47
- match_master_template: z.boolean().describe("Whether the document matches the master template"),
48
- original_document_url: z.string().describe("URL to the original document"),
49
- conventional_credits_used: z.number().int().describe("Conventional credits used for processing")
50
- })
42
+ is_processable: z.boolean().describe("Whether the document can be processed").nullable(),
43
+ ai_credits_used: z.number().int().describe("AI credits used for processing").nullable(),
44
+ csv_download_url: z.string().describe("URL to download the document in CSV format").nullable(),
45
+ xls_download_url: z.string().describe("URL to download the document in XLS format").nullable(),
46
+ json_download_url: z.string().describe("URL to download the document in JSON format").nullable(),
47
+ match_master_template: z.boolean().describe("Whether the document matches the master template").nullable(),
48
+ original_document_url: z.string().describe("URL to the original document").nullable(),
49
+ conventional_credits_used: z.number().int().describe("Conventional credits used for processing").nullable()
50
+ }).passthrough()
51
51
  });
52
52
  //#endregion
53
53
  export { parseurSkipDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"skip-document.mjs","names":[],"sources":["../../src/actions/skip-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurSkipDocumentInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.\"),\n});\nconst ParseurSkipDocument_SampleSetItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the sample set\"),\n template_id: z.number().int().describe(\"ID of the template\"),\n sample_count: z.number().int().describe(\"Number of samples in the set\"),\n});\nconst ParseurSkipDocument_OcrPageSchema: z.ZodTypeAny = z.object({\n image: z.object({}).describe(\"Image data for the OCR page\").nullable().optional(),\n position: z.number().int().describe(\"Position of the page in the document\"),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\"),\n});\nexport const ParseurSkipDocumentOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\"),\n name: z.string().describe(\"Name of the document\"),\n parser: z.number().int().describe(\"ID of the parser/mailbox this document belongs to\"),\n result: z.string().describe(\"Parsed result string, if available\").nullable().optional(),\n status: z.string().describe(\"Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)\"),\n content: z.string().describe(\"Content of the document\"),\n next_id: z.number().int().describe(\"ID of the next document in sequence\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in sequence\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\"),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\"),\n template: z.number().int().describe(\"ID of the template used, if any\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\"),\n sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe(\"List of sample sets associated with the document\").optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, if any\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\"),\n credits_used: z.number().int().describe(\"Total credits used for processing this document\"),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\"),\n ocr_page_set: z.array(ParseurSkipDocument_OcrPageSchema).describe(\"List of OCR pages in the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split\"),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document\").nullable().optional(),\n status_source: z.string().describe(\"Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)\").nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\"),\n ai_credits_used: z.number().int().describe(\"AI credits used for processing\"),\n csv_download_url: z.string().describe(\"URL to download the document in CSV format\"),\n xls_download_url: z.string().describe(\"URL to download the document in XLS format\"),\n json_download_url: z.string().describe(\"URL to download the document in JSON format\"),\n match_master_template: z.boolean().describe(\"Whether the document matches the master template\"),\n original_document_url: z.string().describe(\"URL to the original document\"),\n conventional_credits_used: z.number().int().describe(\"Conventional credits used for processing\"),\n});\n\nexport const parseurSkipDocument = action(\"PARSEUR_SKIP_DOCUMENT\", {\n slug: \"parseur-skip-document\",\n name: \"Skip a document\",\n description: \"Tool to skip a document. Marks the document as skipped and returns the updated document with status 'SKIPPED'.\",\n input: ParseurSkipDocumentInput,\n output: ParseurSkipDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAC/I,CAAC;AACD,MAAM,0CAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB;CAC3D,cAA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V,CAAC"}
1
+ {"version":3,"file":"skip-document.mjs","names":[],"sources":["../../src/actions/skip-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurSkipDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.\"),\n});\nconst ParseurSkipDocument_SampleSetItemSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in the set\").nullable(),\n}).passthrough();\nconst ParseurSkipDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image data for the OCR page\").nullable().optional(),\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();\nexport const ParseurSkipDocumentOutput = 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 parser/mailbox this document belongs to\").nullable(),\n result: z.string().describe(\"Parsed result string, if available\").nullable().optional(),\n status: z.string().describe(\"Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)\").nullable(),\n content: z.string().describe(\"Content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in sequence\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in sequence\").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, if any\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe(\"List of sample sets associated with the document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, if any\").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 credits used for 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(ParseurSkipDocument_OcrPageSchema).describe(\"List of OCR pages in the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document\").nullable().optional(),\n status_source: z.string().describe(\"Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)\").nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"AI credits used for processing\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the document in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the document in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the document in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches the master template\").nullable(),\n original_document_url: z.string().describe(\"URL to the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Conventional credits used for processing\").nullable(),\n}).passthrough();\n\nexport const parseurSkipDocument = action(\"PARSEUR_SKIP_DOCUMENT\", {\n slug: \"parseur-skip-document\",\n name: \"Skip a document\",\n description: \"Tool to skip a document. Marks the document as skipped and returns the updated document with status 'SKIPPED'.\",\n input: ParseurSkipDocumentInput,\n output: ParseurSkipDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAC/I,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAA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AAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC7F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC7F,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC/F,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACzG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACpF,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -11,15 +11,15 @@ const ParseurUpdateCustomDownloadInput = zod.z.object({
11
11
  parser_field_name: zod.z.string().describe("Name of the parser field, used when type is 'PARSER_FIELD'").optional()
12
12
  }).describe("Request model for updating a custom download (export configuration) for a mailbox.");
13
13
  const ParseurUpdateCustomDownloadOutput = zod.z.object({
14
- id: zod.z.number().int().describe("Unique identifier of the export configuration"),
14
+ id: zod.z.number().int().describe("Unique identifier of the export configuration").nullable(),
15
15
  name: zod.z.string().describe("Display name of the export configuration").nullable().optional(),
16
- type: zod.z.enum(["PARSER", "PARSER_FIELD"]).describe("Type of export configuration"),
16
+ type: zod.z.enum(["PARSER", "PARSER_FIELD"]).describe("Type of export configuration").nullable(),
17
17
  items: zod.z.array(zod.z.string()).describe("List of field names included in the export"),
18
- csv_download: zod.z.string().describe("URL path for CSV download"),
19
- xls_download: zod.z.string().describe("URL path for Excel download"),
18
+ csv_download: zod.z.string().describe("URL path for CSV download").nullable(),
19
+ xls_download: zod.z.string().describe("URL path for Excel download").nullable(),
20
20
  parser_field_id: zod.z.string().describe("Parser field ID if type is 'PARSER_FIELD'").nullable().optional(),
21
21
  parser_field_name: zod.z.string().describe("Name of the parser field if applicable").nullable().optional()
22
- }).describe("Response model for update custom download action.");
22
+ }).passthrough().describe("Response model for update custom download action.");
23
23
  const parseurUpdateCustomDownload = require_action.action("PARSEUR_UPDATE_CUSTOM_DOWNLOAD", {
24
24
  slug: "parseur-update-custom-download",
25
25
  name: "Update custom download",
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-download.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateCustomDownloadInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration to update\"),\n name: z.string().describe(\"Display name for the export configuration\").optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).default(\"PARSER\").describe(\"Type of export configuration. Use 'PARSER' for full parser exports or 'PARSER_FIELD' for field-specific exports\").optional(),\n items: z.array(z.string()).describe(\"List of field names to include in the export\").optional(),\n mailbox_id: z.string().describe(\"Unique identifier of the mailbox (parser) containing the export configuration\"),\n parser_field_id: z.string().describe(\"Parser field ID starting with 'PF', required when type is 'PARSER_FIELD'\").optional(),\n parser_field_name: z.string().describe(\"Name of the parser field, used when type is 'PARSER_FIELD'\").optional(),\n}).describe(\"Request model for updating a custom download (export configuration) for a mailbox.\");\nexport const ParseurUpdateCustomDownloadOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration\"),\n name: z.string().describe(\"Display name of the export configuration\").nullable().optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).describe(\"Type of export configuration\"),\n items: z.array(z.string()).describe(\"List of field names included in the export\"),\n csv_download: z.string().describe(\"URL path for CSV download\"),\n xls_download: z.string().describe(\"URL path for Excel download\"),\n parser_field_id: z.string().describe(\"Parser field ID if type is 'PARSER_FIELD'\").nullable().optional(),\n parser_field_name: z.string().describe(\"Name of the parser field if applicable\").nullable().optional(),\n}).describe(\"Response model for update custom download action.\");\n\nexport const parseurUpdateCustomDownload = action(\"PARSEUR_UPDATE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-update-custom-download\",\n name: \"Update custom download\",\n description: \"Tool to update a custom download (export configuration) for a mailbox. Use when you need to modify the field list, name, or export settings for an existing download configuration.\",\n input: ParseurUpdateCustomDownloadInput,\n output: ParseurUpdateCustomDownloadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAChM,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC1H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAChF,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CAChF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC7D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC/D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-custom-download.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateCustomDownloadInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration to update\"),\n name: z.string().describe(\"Display name for the export configuration\").optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).default(\"PARSER\").describe(\"Type of export configuration. Use 'PARSER' for full parser exports or 'PARSER_FIELD' for field-specific exports\").optional(),\n items: z.array(z.string()).describe(\"List of field names to include in the export\").optional(),\n mailbox_id: z.string().describe(\"Unique identifier of the mailbox (parser) containing the export configuration\"),\n parser_field_id: z.string().describe(\"Parser field ID starting with 'PF', required when type is 'PARSER_FIELD'\").optional(),\n parser_field_name: z.string().describe(\"Name of the parser field, used when type is 'PARSER_FIELD'\").optional(),\n}).describe(\"Request model for updating a custom download (export configuration) for a mailbox.\");\nexport const ParseurUpdateCustomDownloadOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration\").nullable(),\n name: z.string().describe(\"Display name of the export configuration\").nullable().optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).describe(\"Type of export configuration\").nullable(),\n items: z.array(z.string()).describe(\"List of field names included in the export\"),\n csv_download: z.string().describe(\"URL path for CSV download\").nullable(),\n xls_download: z.string().describe(\"URL path for Excel download\").nullable(),\n parser_field_id: z.string().describe(\"Parser field ID if type is 'PARSER_FIELD'\").nullable().optional(),\n parser_field_name: z.string().describe(\"Name of the parser field if applicable\").nullable().optional(),\n}).passthrough().describe(\"Response model for update custom download action.\");\n\nexport const parseurUpdateCustomDownload = action(\"PARSEUR_UPDATE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-update-custom-download\",\n name: \"Update custom download\",\n description: \"Tool to update a custom download (export configuration) for a mailbox. Use when you need to modify the field list, name, or export settings for an existing download configuration.\",\n input: ParseurUpdateCustomDownloadInput,\n output: ParseurUpdateCustomDownloadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAChM,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC1H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CAChF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-custom-download.d.ts
4
- declare const ParseurUpdateCustomDownloadInput: z.ZodTypeAny;
5
- declare const ParseurUpdateCustomDownloadOutput: z.ZodTypeAny;
6
- declare const parseurUpdateCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurUpdateCustomDownloadInput: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ PARSER: "PARSER";
9
+ PARSER_FIELD: "PARSER_FIELD";
10
+ }>>>;
11
+ items: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ mailbox_id: z.ZodString;
13
+ parser_field_id: z.ZodOptional<z.ZodString>;
14
+ parser_field_name: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const ParseurUpdateCustomDownloadOutput: z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodNumber>;
18
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ type: z.ZodNullable<z.ZodEnum<{
20
+ PARSER: "PARSER";
21
+ PARSER_FIELD: "PARSER_FIELD";
22
+ }>>;
23
+ items: z.ZodArray<z.ZodString>;
24
+ csv_download: z.ZodNullable<z.ZodString>;
25
+ xls_download: z.ZodNullable<z.ZodString>;
26
+ parser_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ parser_field_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$loose>;
29
+ declare const parseurUpdateCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ id: number;
31
+ mailbox_id: string;
32
+ name?: string | undefined;
33
+ type?: "PARSER" | "PARSER_FIELD" | undefined;
34
+ items?: string[] | undefined;
35
+ parser_field_id?: string | undefined;
36
+ parser_field_name?: string | undefined;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { parseurUpdateCustomDownload };
9
40
  //# sourceMappingURL=update-custom-download.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-download.d.cts","names":[],"sources":["../../src/actions/update-custom-download.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAQgD;AAAA,cACpF,iCAAA,EAAmC,CAAA,CAAE,UASc;AAAA,cAEnD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-custom-download.d.cts","names":[],"sources":["../../src/actions/update-custom-download.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAShC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAWjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-custom-download.d.ts
4
- declare const ParseurUpdateCustomDownloadInput: z.ZodTypeAny;
5
- declare const ParseurUpdateCustomDownloadOutput: z.ZodTypeAny;
6
- declare const parseurUpdateCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurUpdateCustomDownloadInput: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ PARSER: "PARSER";
9
+ PARSER_FIELD: "PARSER_FIELD";
10
+ }>>>;
11
+ items: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ mailbox_id: z.ZodString;
13
+ parser_field_id: z.ZodOptional<z.ZodString>;
14
+ parser_field_name: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const ParseurUpdateCustomDownloadOutput: z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodNumber>;
18
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ type: z.ZodNullable<z.ZodEnum<{
20
+ PARSER: "PARSER";
21
+ PARSER_FIELD: "PARSER_FIELD";
22
+ }>>;
23
+ items: z.ZodArray<z.ZodString>;
24
+ csv_download: z.ZodNullable<z.ZodString>;
25
+ xls_download: z.ZodNullable<z.ZodString>;
26
+ parser_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ parser_field_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$loose>;
29
+ declare const parseurUpdateCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ id: number;
31
+ mailbox_id: string;
32
+ name?: string | undefined;
33
+ type?: "PARSER" | "PARSER_FIELD" | undefined;
34
+ items?: string[] | undefined;
35
+ parser_field_id?: string | undefined;
36
+ parser_field_name?: string | undefined;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { parseurUpdateCustomDownload };
9
40
  //# sourceMappingURL=update-custom-download.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-download.d.mts","names":[],"sources":["../../src/actions/update-custom-download.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAQgD;AAAA,cACpF,iCAAA,EAAmC,CAAA,CAAE,UASc;AAAA,cAEnD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-custom-download.d.mts","names":[],"sources":["../../src/actions/update-custom-download.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAShC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAWjC,2BAAA,gCAA2B,wBAAA"}
@@ -14,15 +14,15 @@ const parseurUpdateCustomDownload = action("PARSEUR_UPDATE_CUSTOM_DOWNLOAD", {
14
14
  parser_field_name: z.string().describe("Name of the parser field, used when type is 'PARSER_FIELD'").optional()
15
15
  }).describe("Request model for updating a custom download (export configuration) for a mailbox."),
16
16
  output: z.object({
17
- id: z.number().int().describe("Unique identifier of the export configuration"),
17
+ id: z.number().int().describe("Unique identifier of the export configuration").nullable(),
18
18
  name: z.string().describe("Display name of the export configuration").nullable().optional(),
19
- type: z.enum(["PARSER", "PARSER_FIELD"]).describe("Type of export configuration"),
19
+ type: z.enum(["PARSER", "PARSER_FIELD"]).describe("Type of export configuration").nullable(),
20
20
  items: z.array(z.string()).describe("List of field names included in the export"),
21
- csv_download: z.string().describe("URL path for CSV download"),
22
- xls_download: z.string().describe("URL path for Excel download"),
21
+ csv_download: z.string().describe("URL path for CSV download").nullable(),
22
+ xls_download: z.string().describe("URL path for Excel download").nullable(),
23
23
  parser_field_id: z.string().describe("Parser field ID if type is 'PARSER_FIELD'").nullable().optional(),
24
24
  parser_field_name: z.string().describe("Name of the parser field if applicable").nullable().optional()
25
- }).describe("Response model for update custom download action.")
25
+ }).passthrough().describe("Response model for update custom download action.")
26
26
  });
27
27
  //#endregion
28
28
  export { parseurUpdateCustomDownload };