@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
@@ -1,9 +1,203 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-mailbox.d.ts
4
- declare const ParseurUpdateMailboxInput: z.ZodTypeAny;
5
- declare const ParseurUpdateMailboxOutput: z.ZodTypeAny;
6
- declare const parseurUpdateMailbox: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurUpdateMailboxInput: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ ai_engine: z.ZodOptional<z.ZodEnum<{
8
+ DISABLED: "DISABLED";
9
+ GCP_AI_1: "GCP_AI_1";
10
+ GCP_AI_2: "GCP_AI_2";
11
+ GCP_AI_2_5: "GCP_AI_2_5";
12
+ }>>;
13
+ force_ocr: z.ZodOptional<z.ZodBoolean>;
14
+ odd_pages: z.ZodOptional<z.ZodBoolean>;
15
+ even_pages: z.ZodOptional<z.ZodBoolean>;
16
+ split_page: z.ZodOptional<z.ZodNumber>;
17
+ disable_deskew: z.ZodOptional<z.ZodBoolean>;
18
+ page_range_set: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ end_index: z.ZodOptional<z.ZodNumber>;
20
+ start_index: z.ZodNumber;
21
+ }, z.core.$loose>>>;
22
+ split_keywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ keyword: z.ZodString;
24
+ is_before: z.ZodBoolean;
25
+ }, z.core.$loose>>>;
26
+ ai_instructions: z.ZodOptional<z.ZodString>;
27
+ default_timezone: z.ZodOptional<z.ZodString>;
28
+ retention_policy: z.ZodOptional<z.ZodNumber>;
29
+ decimal_separator: z.ZodOptional<z.ZodString>;
30
+ input_date_format: z.ZodOptional<z.ZodString>;
31
+ allowed_extensions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
32
+ bmp: "bmp";
33
+ csv: "csv";
34
+ doc: "doc";
35
+ docx: "docx";
36
+ eml: "eml";
37
+ gif: "gif";
38
+ html: "html";
39
+ ics: "ics";
40
+ jpg: "jpg";
41
+ mbox: "mbox";
42
+ msg: "msg";
43
+ ods: "ods";
44
+ odt: "odt";
45
+ pdf: "pdf";
46
+ png: "png";
47
+ rtf: "rtf";
48
+ tif: "tif";
49
+ txt: "txt";
50
+ xhtml: "xhtml";
51
+ xls: "xls";
52
+ xlsm: "xlsm";
53
+ xlsx: "xlsx";
54
+ xml: "xml";
55
+ zip: "zip";
56
+ }>>>;
57
+ master_parser_slug: z.ZodOptional<z.ZodEnum<{
58
+ invoices: "invoices";
59
+ statements: "statements";
60
+ "job-application": "job-application";
61
+ leads: "leads";
62
+ "resume-cv": "resume-cv";
63
+ "food-delivery": "food-delivery";
64
+ "search-alerts": "search-alerts";
65
+ "real-estate": "real-estate";
66
+ "work-order": "work-order";
67
+ "financial-statement": "financial-statement";
68
+ utility: "utility";
69
+ "contact-list": "contact-list";
70
+ "delivery-notes": "delivery-notes";
71
+ "property-bookings": "property-bookings";
72
+ "job-search": "job-search";
73
+ travel: "travel";
74
+ automotive: "automotive";
75
+ payslip: "payslip";
76
+ "event-ticketing": "event-ticketing";
77
+ }>>;
78
+ process_attachments: z.ZodOptional<z.ZodBoolean>;
79
+ split_page_range_set: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
+ end_index: z.ZodOptional<z.ZodNumber>;
81
+ start_index: z.ZodNumber;
82
+ }, z.core.$loose>>>;
83
+ identification_status: z.ZodOptional<z.ZodEnum<{
84
+ REQUESTED: "REQUESTED";
85
+ PROGRESS: "PROGRESS";
86
+ COMPLETED: "COMPLETED";
87
+ MANUAL: "MANUAL";
88
+ }>>;
89
+ attachments_only_override: z.ZodOptional<z.ZodBoolean>;
90
+ }, z.core.$strip>;
91
+ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
92
+ id: z.ZodNullable<z.ZodNumber>;
93
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ secret: z.ZodNullable<z.ZodString>;
95
+ ai_engine: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
96
+ DISABLED: "DISABLED";
97
+ GCP_AI_1: "GCP_AI_1";
98
+ GCP_AI_2: "GCP_AI_2";
99
+ GCP_AI_2_5: "GCP_AI_2_5";
100
+ }>>>;
101
+ force_ocr: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
102
+ is_master: z.ZodNullable<z.ZodBoolean>;
103
+ odd_pages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
104
+ table_set: z.ZodArray<z.ZodObject<{
105
+ id: z.ZodNullable<z.ZodString>;
106
+ name: z.ZodNullable<z.ZodString>;
107
+ }, z.core.$loose>>;
108
+ even_pages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
109
+ split_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
110
+ webhook_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
111
+ id: z.ZodNullable<z.ZodNumber>;
112
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ event: z.ZodNullable<z.ZodString>;
114
+ target: z.ZodNullable<z.ZodString>;
115
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
116
+ category: z.ZodNullable<z.ZodString>;
117
+ parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
118
+ }, z.core.$loose>>>>;
119
+ account_uuid: z.ZodNullable<z.ZodString>;
120
+ csv_download: z.ZodNullable<z.ZodString>;
121
+ email_prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ xls_download: z.ZodNullable<z.ZodString>;
123
+ can_transform: z.ZodNullable<z.ZodBoolean>;
124
+ json_download: z.ZodNullable<z.ZodString>;
125
+ last_activity: z.ZodNullable<z.ZodString>;
126
+ webhook_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
127
+ disable_deskew: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
128
+ document_count: z.ZodNullable<z.ZodNumber>;
129
+ template_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
130
+ ai_instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ attachments_only: z.ZodNullable<z.ZodBoolean>;
132
+ default_timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ retention_policy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
134
+ decimal_separator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ allowed_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
136
+ master_parser_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ master_parser_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ parser_object_count: z.ZodNullable<z.ZodNumber>;
139
+ process_attachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
140
+ available_webhook_set: z.ZodArray<z.ZodObject<{
141
+ id: z.ZodNullable<z.ZodNumber>;
142
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ event: z.ZodNullable<z.ZodString>;
144
+ target: z.ZodNullable<z.ZodString>;
145
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
146
+ category: z.ZodNullable<z.ZodString>;
147
+ parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
148
+ }, z.core.$loose>>;
149
+ identification_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ document_per_status_count: z.ZodNullable<z.ZodObject<{
151
+ SPLIT: z.ZodNullable<z.ZodNumber>;
152
+ INVALID: z.ZodNullable<z.ZodNumber>;
153
+ SKIPPED: z.ZodNullable<z.ZodNumber>;
154
+ TRANSKO: z.ZodNullable<z.ZodNumber>;
155
+ EXPORTKO: z.ZodNullable<z.ZodNumber>;
156
+ INCOMING: z.ZodNullable<z.ZodNumber>;
157
+ PARSEDKO: z.ZodNullable<z.ZodNumber>;
158
+ PARSEDOK: z.ZodNullable<z.ZodNumber>;
159
+ PROGRESS: z.ZodNullable<z.ZodNumber>;
160
+ QUOTAEXC: z.ZodNullable<z.ZodNumber>;
161
+ ANALYZING: z.ZodNullable<z.ZodNumber>;
162
+ }, z.core.$loose>>;
163
+ template_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ parser_object_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ }, z.core.$loose>;
166
+ declare const parseurUpdateMailbox: import("@keystrokehq/action").WorkflowActionDefinition<{
167
+ id: number;
168
+ name?: string | undefined;
169
+ ai_engine?: "DISABLED" | "GCP_AI_1" | "GCP_AI_2" | "GCP_AI_2_5" | undefined;
170
+ force_ocr?: boolean | undefined;
171
+ odd_pages?: boolean | undefined;
172
+ even_pages?: boolean | undefined;
173
+ split_page?: number | undefined;
174
+ disable_deskew?: boolean | undefined;
175
+ page_range_set?: {
176
+ [x: string]: unknown;
177
+ start_index: number;
178
+ end_index?: number | undefined;
179
+ }[] | undefined;
180
+ split_keywords?: {
181
+ [x: string]: unknown;
182
+ keyword: string;
183
+ is_before: boolean;
184
+ }[] | undefined;
185
+ ai_instructions?: string | undefined;
186
+ default_timezone?: string | undefined;
187
+ retention_policy?: number | undefined;
188
+ decimal_separator?: string | undefined;
189
+ input_date_format?: string | undefined;
190
+ allowed_extensions?: ("bmp" | "csv" | "doc" | "docx" | "eml" | "gif" | "html" | "ics" | "jpg" | "mbox" | "msg" | "ods" | "odt" | "pdf" | "png" | "rtf" | "tif" | "txt" | "xhtml" | "xls" | "xlsm" | "xlsx" | "xml" | "zip")[] | undefined;
191
+ master_parser_slug?: "invoices" | "statements" | "job-application" | "leads" | "resume-cv" | "food-delivery" | "search-alerts" | "real-estate" | "work-order" | "financial-statement" | "utility" | "contact-list" | "delivery-notes" | "property-bookings" | "job-search" | "travel" | "automotive" | "payslip" | "event-ticketing" | undefined;
192
+ process_attachments?: boolean | undefined;
193
+ split_page_range_set?: {
194
+ [x: string]: unknown;
195
+ start_index: number;
196
+ end_index?: number | undefined;
197
+ }[] | undefined;
198
+ identification_status?: "REQUESTED" | "PROGRESS" | "COMPLETED" | "MANUAL" | undefined;
199
+ attachments_only_override?: boolean | undefined;
200
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
201
  //#endregion
8
202
  export { parseurUpdateMailbox };
9
203
  //# sourceMappingURL=update-mailbox.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-mailbox.d.mts","names":[],"sources":["../../src/actions/update-mailbox.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UA+B+E;AAAA,cA4B5G,0BAAA,EAA4B,CAAA,CAAE,UAsC0D;AAAA,cAExF,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-mailbox.d.mts","names":[],"sources":["../../src/actions/update-mailbox.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2DzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwC1B,oBAAA,gCAAoB,wBAAA"}
@@ -18,11 +18,11 @@ const ParseurUpdateMailboxInput = z.object({
18
18
  page_range_set: z.array(z.object({
19
19
  end_index: z.number().int().describe("Ending page index (inclusive); null for open-ended range").optional(),
20
20
  start_index: z.number().int().describe("Starting page index (inclusive)")
21
- }).describe("Page range specification for processing or splitting.")).describe("The range of pages set to be processed in the parser").optional(),
21
+ }).passthrough().describe("Page range specification for processing or splitting.")).describe("The range of pages set to be processed in the parser").optional(),
22
22
  split_keywords: z.array(z.object({
23
23
  keyword: z.string().describe("Keyword to look for when splitting documents"),
24
24
  is_before: z.boolean().describe("If true, split before the keyword; if false, split after the keyword")
25
- }).describe("Keywords for document splitting.")).describe("Keywords the parser will look for when splitting documents by page").optional(),
25
+ }).passthrough().describe("Keywords for document splitting.")).describe("Keywords the parser will look for when splitting documents by page").optional(),
26
26
  ai_instructions: z.string().describe("General AI instructions for this parser. Provide guidance for the AI engine on how to parse documents.").optional(),
27
27
  default_timezone: z.string().describe("Default timezone for date parsing").optional(),
28
28
  retention_policy: z.number().int().describe("How many days documents and data are stored on servers before deletion (90 days is the default)").optional(),
@@ -79,7 +79,7 @@ const ParseurUpdateMailboxInput = z.object({
79
79
  split_page_range_set: z.array(z.object({
80
80
  end_index: z.number().int().describe("Ending page index (inclusive); null for open-ended range").optional(),
81
81
  start_index: z.number().int().describe("Starting page index (inclusive)")
82
- }).describe("Page range specification for processing or splitting.")).describe("Specific page ranges to capture when splitting. Can have multiple values, e.g., 1,3-5,(1)").optional(),
82
+ }).passthrough().describe("Page range specification for processing or splitting.")).describe("Specific page ranges to capture when splitting. Can have multiple values, e.g., 1,3-5,(1)").optional(),
83
83
  identification_status: z.enum([
84
84
  "REQUESTED",
85
85
  "PROGRESS",
@@ -95,75 +95,75 @@ const ParseurUpdateMailbox_AiEngineSchema = z.enum([
95
95
  "GCP_AI_2_5"
96
96
  ]).describe("AI engine options for the mailbox.");
97
97
  const ParseurUpdateMailbox_TableInfoSchema = z.object({
98
- id: z.string().describe("Unique identifier of the table"),
99
- name: z.string().describe("Name of the table")
100
- }).describe("Table configuration information.");
98
+ id: z.string().describe("Unique identifier of the table").nullable(),
99
+ name: z.string().describe("Name of the table").nullable()
100
+ }).passthrough().describe("Table configuration information.");
101
101
  const ParseurUpdateMailbox_WebhookInfoSchema = z.object({
102
- id: z.number().int().describe("Unique identifier of the webhook"),
102
+ id: z.number().int().describe("Unique identifier of the webhook").nullable(),
103
103
  name: z.string().describe("Custom name of the webhook").nullable().optional(),
104
- event: z.string().describe("Event type the webhook listens to"),
105
- target: z.string().describe("Target URL for the webhook"),
106
- headers: z.object({}).describe("Custom HTTP headers sent with the webhook payload").nullable().optional(),
107
- category: z.string().describe("Category of the webhook"),
104
+ event: z.string().describe("Event type the webhook listens to").nullable(),
105
+ target: z.string().describe("Target URL for the webhook").nullable(),
106
+ headers: z.record(z.string(), z.unknown()).describe("Custom HTTP headers sent with the webhook payload").nullable().optional(),
107
+ category: z.string().describe("Category of the webhook").nullable(),
108
108
  parser_field_set: z.array(z.record(z.string(), z.unknown())).describe("List of parser fields assigned to the webhook").nullable().optional()
109
- }).describe("Webhook configuration information.");
109
+ }).passthrough().describe("Webhook configuration information.");
110
110
  const ParseurUpdateMailbox_DocumentStatusCountSchema = z.object({
111
- SPLIT: z.number().int().describe("Files that were split into multiple documents"),
112
- INVALID: z.number().int().describe("Files that were not processed because they are not supported"),
113
- SKIPPED: z.number().int().describe("Files that were skipped because of a template"),
114
- TRANSKO: z.number().int().describe("Files where Python post-processing failed to process"),
115
- EXPORTKO: z.number().int().describe("Files where exporting the parsed data failed"),
116
- INCOMING: z.number().int().describe("Files that have been received by the system but are awaiting processing"),
117
- PARSEDKO: z.number().int().describe("Files where processing failed"),
118
- PARSEDOK: z.number().int().describe("Files that have been processed and data is available for export"),
119
- PROGRESS: z.number().int().describe("Files currently being processed by active AI engine"),
120
- QUOTAEXC: z.number().int().describe("Files where processing was stopped because user does not have enough credits"),
121
- ANALYZING: z.number().int().describe("Files being analyzed against system import parameters and mailbox settings")
122
- }).describe("Breakdown of documents by processing status.");
111
+ SPLIT: z.number().int().describe("Files that were split into multiple documents").nullable(),
112
+ INVALID: z.number().int().describe("Files that were not processed because they are not supported").nullable(),
113
+ SKIPPED: z.number().int().describe("Files that were skipped because of a template").nullable(),
114
+ TRANSKO: z.number().int().describe("Files where Python post-processing failed to process").nullable(),
115
+ EXPORTKO: z.number().int().describe("Files where exporting the parsed data failed").nullable(),
116
+ INCOMING: z.number().int().describe("Files that have been received by the system but are awaiting processing").nullable(),
117
+ PARSEDKO: z.number().int().describe("Files where processing failed").nullable(),
118
+ PARSEDOK: z.number().int().describe("Files that have been processed and data is available for export").nullable(),
119
+ PROGRESS: z.number().int().describe("Files currently being processed by active AI engine").nullable(),
120
+ QUOTAEXC: z.number().int().describe("Files where processing was stopped because user does not have enough credits").nullable(),
121
+ ANALYZING: z.number().int().describe("Files being analyzed against system import parameters and mailbox settings").nullable()
122
+ }).passthrough().describe("Breakdown of documents by processing status.");
123
123
  const parseurUpdateMailbox = action("PARSEUR_UPDATE_MAILBOX", {
124
124
  slug: "parseur-update-mailbox",
125
125
  name: "Update Mailbox",
126
126
  description: "Tool to update a mailbox (parser) configuration. Use when you need to modify mailbox settings such as name, AI engine, processing options, or document handling rules.",
127
127
  input: ParseurUpdateMailboxInput,
128
128
  output: z.object({
129
- id: z.number().int().describe("The internal ID number for the parser"),
129
+ id: z.number().int().describe("The internal ID number for the parser").nullable(),
130
130
  name: z.string().describe("The name of the parser").nullable().optional(),
131
- secret: z.string().describe("Secret key for the parser"),
131
+ secret: z.string().describe("Secret key for the parser").nullable(),
132
132
  ai_engine: ParseurUpdateMailbox_AiEngineSchema.nullable().optional(),
133
133
  force_ocr: z.boolean().describe("Whether Parseur runs its own OCR on every document").nullable().optional(),
134
- is_master: z.boolean().describe("Whether this is a master parser that passes instructions on"),
134
+ is_master: z.boolean().describe("Whether this is a master parser that passes instructions on").nullable(),
135
135
  odd_pages: z.boolean().describe("Whether only odd page numbers are processed").nullable().optional(),
136
136
  table_set: z.array(ParseurUpdateMailbox_TableInfoSchema).describe("List of configured tables"),
137
137
  even_pages: z.boolean().describe("Whether only even page numbers are processed").nullable().optional(),
138
138
  split_page: z.number().int().describe("Number of pages to use for splitting documents").nullable().optional(),
139
139
  webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe("List of configured webhooks").nullable().optional(),
140
- account_uuid: z.string().describe("The Universally Unique Identifier for the account"),
141
- csv_download: z.string().describe("URL to download data as CSV"),
140
+ account_uuid: z.string().describe("The Universally Unique Identifier for the account").nullable(),
141
+ csv_download: z.string().describe("URL to download data as CSV").nullable(),
142
142
  email_prefix: z.string().describe("The email prefix for the parser").nullable().optional(),
143
- xls_download: z.string().describe("URL to download data as XLS"),
144
- can_transform: z.boolean().describe("Whether Python Post-Processing is enabled for this parser"),
145
- json_download: z.string().describe("URL to download data as JSON"),
146
- last_activity: z.string().describe("Timestamp of last activity"),
143
+ xls_download: z.string().describe("URL to download data as XLS").nullable(),
144
+ can_transform: z.boolean().describe("Whether Python Post-Processing is enabled for this parser").nullable(),
145
+ json_download: z.string().describe("URL to download data as JSON").nullable(),
146
+ last_activity: z.string().describe("Timestamp of last activity").nullable(),
147
147
  webhook_count: z.number().int().describe("The number of webhooks the parser has").nullable().optional(),
148
148
  disable_deskew: z.boolean().describe("Whether deskew is disabled for this parser").nullable().optional(),
149
- document_count: z.number().int().describe("The number of documents in the parser"),
149
+ document_count: z.number().int().describe("The number of documents in the parser").nullable(),
150
150
  template_count: z.number().int().describe("The number of templates the parser has").nullable().optional(),
151
151
  ai_instructions: z.string().describe("General AI instruction for this parser").nullable().optional(),
152
- attachments_only: z.boolean().describe("Whether the parser skips email processing or not (read-only)"),
152
+ attachments_only: z.boolean().describe("Whether the parser skips email processing or not (read-only)").nullable(),
153
153
  default_timezone: z.string().describe("Default timezone for date parsing").nullable().optional(),
154
154
  retention_policy: z.number().int().describe("How many days documents and data are stored before deletion").nullable().optional(),
155
155
  decimal_separator: z.string().describe("Decimal separator for number parsing").nullable().optional(),
156
156
  allowed_extensions: z.array(z.string()).describe("List of file extensions to process. If not present, all extensions are enabled").nullable().optional(),
157
157
  master_parser_name: z.string().describe("The name of this parser's master parser").nullable().optional(),
158
158
  master_parser_slug: z.string().describe("Master parser template slug").nullable().optional(),
159
- parser_object_count: z.number().int().describe("The total number of field and metadata outputs currently configured"),
159
+ parser_object_count: z.number().int().describe("The total number of field and metadata outputs currently configured").nullable(),
160
160
  process_attachments: z.boolean().describe("Whether email attachment processing is enabled").nullable().optional(),
161
161
  available_webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe("List of available webhooks"),
162
162
  identification_status: z.string().describe("Identification status of the parser").nullable().optional(),
163
163
  document_per_status_count: ParseurUpdateMailbox_DocumentStatusCountSchema.nullable(),
164
164
  template_set_last_modified: z.string().describe("Timestamp when templates were last modified").nullable().optional(),
165
165
  parser_object_set_last_modified: z.string().describe("Timestamp when parser objects were last modified").nullable().optional()
166
- }).describe("Response model for update mailbox action containing the updated mailbox configuration.")
166
+ }).passthrough().describe("Response model for update mailbox action containing the updated mailbox configuration.")
167
167
  });
168
168
  //#endregion
169
169
  export { parseurUpdateMailbox };
@@ -1 +1 @@
1
- {"version":3,"file":"update-mailbox.mjs","names":[],"sources":["../../src/actions/update-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateMailboxInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The ID of the parser/mailbox to update\"),\n name: z.string().describe(\"The name of the parser\").optional(),\n ai_engine: z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\").optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document uploaded to this parser\").optional(),\n odd_pages: z.boolean().describe(\"Whether the parser is configured to process only odd page numbers in a document\").optional(),\n even_pages: z.boolean().describe(\"Whether the parser is configured to process only even page numbers in a document\").optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents. If set to 3, a 30-page document will be split into 10 files of 3 pages each\").optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser (enabled by default)\").optional(),\n page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).describe(\"Page range specification for processing or splitting.\")).describe(\"The range of pages set to be processed in the parser\").optional(),\n split_keywords: z.array(z.object({\n keyword: z.string().describe(\"Keyword to look for when splitting documents\"),\n is_before: z.boolean().describe(\"If true, split before the keyword; if false, split after the keyword\"),\n}).describe(\"Keywords for document splitting.\")).describe(\"Keywords the parser will look for when splitting documents by page\").optional(),\n ai_instructions: z.string().describe(\"General AI instructions for this parser. Provide guidance for the AI engine on how to parse documents.\").optional(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored on servers before deletion (90 days is the default)\").optional(),\n decimal_separator: z.string().describe(\"Decimal separator to use for number parsing\").optional(),\n input_date_format: z.string().describe(\"Input date format for parsing dates\").optional(),\n allowed_extensions: z.array(z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\")).describe(\"List of file extensions to process. If not present, all extensions will be enabled.\").optional(),\n master_parser_slug: z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template slugs.\").optional(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled on this parser\").optional(),\n split_page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).describe(\"Page range specification for processing or splitting.\")).describe(\"Specific page ranges to capture when splitting. Can have multiple values, e.g., 1,3-5,(1)\").optional(),\n identification_status: z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status of the parser.\").optional(),\n attachments_only_override: z.boolean().describe(\"Use this to update whether the parser skips email processing and only processes attachments\").optional(),\n}).describe(\"Request parameters for updating a mailbox (parser) configuration.\\nOnly include fields you wish to change.\");\nconst ParseurUpdateMailbox_AiEngineSchema: z.ZodTypeAny = z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\");\nconst ParseurUpdateMailbox_TableInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the table\"),\n name: z.string().describe(\"Name of the table\"),\n}).describe(\"Table configuration information.\");\nconst ParseurUpdateMailbox_WebhookInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\"),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type the webhook listens to\"),\n target: z.string().describe(\"Target URL for the webhook\"),\n headers: z.object({}).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook\"),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields assigned to the webhook\").nullable().optional(),\n}).describe(\"Webhook configuration information.\");\nconst ParseurUpdateMailbox_DocumentStatusCountSchema: z.ZodTypeAny = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\"),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported\"),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\"),\n TRANSKO: z.number().int().describe(\"Files where Python post-processing failed to process\"),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\"),\n INCOMING: z.number().int().describe(\"Files that have been received by the system but are awaiting processing\"),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\"),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\"),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine\"),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because user does not have enough credits\"),\n ANALYZING: z.number().int().describe(\"Files being analyzed against system import parameters and mailbox settings\"),\n}).describe(\"Breakdown of documents by processing status.\");\nexport const ParseurUpdateMailboxOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\"),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n secret: z.string().describe(\"Secret key for the parser\"),\n ai_engine: ParseurUpdateMailbox_AiEngineSchema.nullable().optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes instructions on\"),\n odd_pages: z.boolean().describe(\"Whether only odd page numbers are processed\").nullable().optional(),\n table_set: z.array(ParseurUpdateMailbox_TableInfoSchema).describe(\"List of configured tables\"),\n even_pages: z.boolean().describe(\"Whether only even page numbers are processed\").nullable().optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents\").nullable().optional(),\n webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of configured webhooks\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for the account\"),\n csv_download: z.string().describe(\"URL to download data as CSV\"),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n xls_download: z.string().describe(\"URL to download data as XLS\"),\n can_transform: z.boolean().describe(\"Whether Python Post-Processing is enabled for this parser\"),\n json_download: z.string().describe(\"URL to download data as JSON\"),\n last_activity: z.string().describe(\"Timestamp of last activity\"),\n webhook_count: z.number().int().describe(\"The number of webhooks the parser has\").nullable().optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser\").nullable().optional(),\n document_count: z.number().int().describe(\"The number of documents in the parser\"),\n template_count: z.number().int().describe(\"The number of templates the parser has\").nullable().optional(),\n ai_instructions: z.string().describe(\"General AI instruction for this parser\").nullable().optional(),\n attachments_only: z.boolean().describe(\"Whether the parser skips email processing or not (read-only)\"),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").nullable().optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored before deletion\").nullable().optional(),\n decimal_separator: z.string().describe(\"Decimal separator for number parsing\").nullable().optional(),\n allowed_extensions: z.array(z.string()).describe(\"List of file extensions to process. If not present, all extensions are enabled\").nullable().optional(),\n master_parser_name: z.string().describe(\"The name of this parser's master parser\").nullable().optional(),\n master_parser_slug: z.string().describe(\"Master parser template slug\").nullable().optional(),\n parser_object_count: z.number().int().describe(\"The total number of field and metadata outputs currently configured\"),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled\").nullable().optional(),\n available_webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of available webhooks\"),\n identification_status: z.string().describe(\"Identification status of the parser\").nullable().optional(),\n document_per_status_count: ParseurUpdateMailbox_DocumentStatusCountSchema.nullable(),\n template_set_last_modified: z.string().describe(\"Timestamp when templates were last modified\").nullable().optional(),\n parser_object_set_last_modified: z.string().describe(\"Timestamp when parser objects were last modified\").nullable().optional(),\n}).describe(\"Response model for update mailbox action containing the updated mailbox configuration.\");\n\nexport const parseurUpdateMailbox = action(\"PARSEUR_UPDATE_MAILBOX\", {\n slug: \"parseur-update-mailbox\",\n name: \"Update Mailbox\",\n description: \"Tool to update a mailbox (parser) configuration. Use when you need to modify mailbox settings such as name, AI engine, processing options, or document handling rules.\",\n input: ParseurUpdateMailboxInput,\n output: ParseurUpdateMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAM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AC/F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE;EACpH,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,uBAAuB,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4BAA4B;EAC5G,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,2BAA2B,+CAA+C,SAAS;EACnF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,iCAAiC,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,SAAS,wFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-mailbox.mjs","names":[],"sources":["../../src/actions/update-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateMailboxInput = z.object({\n id: z.number().int().describe(\"The ID of the parser/mailbox to update\"),\n name: z.string().describe(\"The name of the parser\").optional(),\n ai_engine: z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\").optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document uploaded to this parser\").optional(),\n odd_pages: z.boolean().describe(\"Whether the parser is configured to process only odd page numbers in a document\").optional(),\n even_pages: z.boolean().describe(\"Whether the parser is configured to process only even page numbers in a document\").optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents. If set to 3, a 30-page document will be split into 10 files of 3 pages each\").optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser (enabled by default)\").optional(),\n page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"The range of pages set to be processed in the parser\").optional(),\n split_keywords: z.array(z.object({\n keyword: z.string().describe(\"Keyword to look for when splitting documents\"),\n is_before: z.boolean().describe(\"If true, split before the keyword; if false, split after the keyword\"),\n}).passthrough().describe(\"Keywords for document splitting.\")).describe(\"Keywords the parser will look for when splitting documents by page\").optional(),\n ai_instructions: z.string().describe(\"General AI instructions for this parser. Provide guidance for the AI engine on how to parse documents.\").optional(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored on servers before deletion (90 days is the default)\").optional(),\n decimal_separator: z.string().describe(\"Decimal separator to use for number parsing\").optional(),\n input_date_format: z.string().describe(\"Input date format for parsing dates\").optional(),\n allowed_extensions: z.array(z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\")).describe(\"List of file extensions to process. If not present, all extensions will be enabled.\").optional(),\n master_parser_slug: z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template slugs.\").optional(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled on this parser\").optional(),\n split_page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"Specific page ranges to capture when splitting. Can have multiple values, e.g., 1,3-5,(1)\").optional(),\n identification_status: z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status of the parser.\").optional(),\n attachments_only_override: z.boolean().describe(\"Use this to update whether the parser skips email processing and only processes attachments\").optional(),\n}).describe(\"Request parameters for updating a mailbox (parser) configuration.\\nOnly include fields you wish to change.\");\nconst ParseurUpdateMailbox_AiEngineSchema = z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\");\nconst ParseurUpdateMailbox_TableInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n}).passthrough().describe(\"Table configuration information.\");\nconst ParseurUpdateMailbox_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields assigned to the webhook\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration information.\");\nconst ParseurUpdateMailbox_DocumentStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported\").nullable(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable(),\n TRANSKO: z.number().int().describe(\"Files where Python post-processing failed to process\").nullable(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable(),\n INCOMING: z.number().int().describe(\"Files that have been received by the system but are awaiting processing\").nullable(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine\").nullable(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because user does not have enough credits\").nullable(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against system import parameters and mailbox settings\").nullable(),\n}).passthrough().describe(\"Breakdown of documents by processing status.\");\nexport const ParseurUpdateMailboxOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n secret: z.string().describe(\"Secret key for the parser\").nullable(),\n ai_engine: ParseurUpdateMailbox_AiEngineSchema.nullable().optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes instructions on\").nullable(),\n odd_pages: z.boolean().describe(\"Whether only odd page numbers are processed\").nullable().optional(),\n table_set: z.array(ParseurUpdateMailbox_TableInfoSchema).describe(\"List of configured tables\"),\n even_pages: z.boolean().describe(\"Whether only even page numbers are processed\").nullable().optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents\").nullable().optional(),\n webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of configured webhooks\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for the account\").nullable(),\n csv_download: z.string().describe(\"URL to download data as CSV\").nullable(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n xls_download: z.string().describe(\"URL to download data as XLS\").nullable(),\n can_transform: z.boolean().describe(\"Whether Python Post-Processing is enabled for this parser\").nullable(),\n json_download: z.string().describe(\"URL to download data as JSON\").nullable(),\n last_activity: z.string().describe(\"Timestamp of last activity\").nullable(),\n webhook_count: z.number().int().describe(\"The number of webhooks the parser has\").nullable().optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser\").nullable().optional(),\n document_count: z.number().int().describe(\"The number of documents in the parser\").nullable(),\n template_count: z.number().int().describe(\"The number of templates the parser has\").nullable().optional(),\n ai_instructions: z.string().describe(\"General AI instruction for this parser\").nullable().optional(),\n attachments_only: z.boolean().describe(\"Whether the parser skips email processing or not (read-only)\").nullable(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").nullable().optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored before deletion\").nullable().optional(),\n decimal_separator: z.string().describe(\"Decimal separator for number parsing\").nullable().optional(),\n allowed_extensions: z.array(z.string()).describe(\"List of file extensions to process. If not present, all extensions are enabled\").nullable().optional(),\n master_parser_name: z.string().describe(\"The name of this parser's master parser\").nullable().optional(),\n master_parser_slug: z.string().describe(\"Master parser template slug\").nullable().optional(),\n parser_object_count: z.number().int().describe(\"The total number of field and metadata outputs currently configured\").nullable(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled\").nullable().optional(),\n available_webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of available webhooks\"),\n identification_status: z.string().describe(\"Identification status of the parser\").nullable().optional(),\n document_per_status_count: ParseurUpdateMailbox_DocumentStatusCountSchema.nullable(),\n template_set_last_modified: z.string().describe(\"Timestamp when templates were last modified\").nullable().optional(),\n parser_object_set_last_modified: z.string().describe(\"Timestamp when parser objects were last modified\").nullable().optional(),\n}).passthrough().describe(\"Response model for update mailbox action containing the updated mailbox configuration.\");\n\nexport const parseurUpdateMailbox = action(\"PARSEUR_UPDATE_MAILBOX\", {\n slug: \"parseur-update-mailbox\",\n name: \"Update Mailbox\",\n description: \"Tool to update a mailbox (parser) configuration. Use when you need to modify mailbox settings such as name, AI engine, processing options, or document handling rules.\",\n input: ParseurUpdateMailboxInput,\n output: ParseurUpdateMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,KAAK;EAAC;EAAY;EAAY;EAAY;CAAY,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC5H,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC9H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CAC9K,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACjH,gBAAgB,EAAE,MAAM,EAAE,OAAO;EACjC,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC1G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC1E,CAA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AC,CAAC,SAAS;EAC/H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/H,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,uBAAuB,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4BAA4B;EAC5G,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,2BAA2B,+CAA+C,SAAS;EACnF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,iCAAiC,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wFAOhB;AACV,CAAC"}
@@ -10,26 +10,26 @@ const ParseurUpdateWebhookInput = zod.z.object({
10
10
  "table.processed"
11
11
  ]).describe("Trigger event for the webhook").optional(),
12
12
  target: zod.z.string().describe("HTTPS URL to receive the webhook payload").optional(),
13
- headers: zod.z.object({}).describe("Additional HTTP headers to include; Content-Type is always application/json").optional(),
13
+ headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional HTTP headers to include; Content-Type is always application/json").optional(),
14
14
  webhook_id: zod.z.number().int().describe("Unique ID of the webhook to update"),
15
15
  parser_field: zod.z.string().describe("ID of a specific field trigger in 'PF12345' format").optional()
16
16
  }).describe("Request model for updating an existing webhook. Only include fields you wish to change.");
17
17
  const ParseurUpdateWebhookOutput = zod.z.object({
18
- id: zod.z.number().int().describe("Unique identifier of the webhook"),
18
+ id: zod.z.number().int().describe("Unique identifier of the webhook").nullable(),
19
19
  name: zod.z.string().describe("Custom name of the webhook; null if not set.").nullable().optional(),
20
20
  event: zod.z.enum([
21
21
  "document.processed",
22
22
  "document.processed.flattened",
23
23
  "document.template_needed",
24
24
  "table.processed"
25
- ]).describe("Event type the webhook listens to"),
26
- target: zod.z.string().describe("Target URL for the webhook"),
25
+ ]).describe("Event type the webhook listens to").nullable(),
26
+ target: zod.z.string().describe("Target URL for the webhook").nullable(),
27
27
  api_key: zod.z.string().describe("API key associated with the webhook; null if not set.").nullable().optional(),
28
- headers: zod.z.object({}).describe("Custom HTTP headers sent with the webhook payload; null if not set.").nullable().optional(),
29
- category: zod.z.string().describe("Category of the webhook, always 'CUSTOM'"),
28
+ headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom HTTP headers sent with the webhook payload; null if not set.").nullable().optional(),
29
+ category: zod.z.string().describe("Category of the webhook, always 'CUSTOM'").nullable(),
30
30
  parser_field_set: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of parser fields or table-fields assigned to the webhook.").nullable().optional(),
31
31
  default_driver_fee_percentage: zod.z.number().describe("Default driver fee percentage if applicable; null if not set.").nullable().optional()
32
- }).describe("Response model for update webhook action.");
32
+ }).passthrough().describe("Response model for update webhook action.");
33
33
  const parseurUpdateWebhook = require_action.action("PARSEUR_UPDATE_WEBHOOK", {
34
34
  slug: "parseur-update-webhook",
35
35
  name: "Update webhook",
@@ -1 +1 @@
1
- {"version":3,"file":"update-webhook.cjs","names":["z","action"],"sources":["../../src/actions/update-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateWebhookInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Custom name for the webhook; defaults to the target URL if omitted\").optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Trigger event for the webhook\").optional(),\n target: z.string().describe(\"HTTPS URL to receive the webhook payload\").optional(),\n headers: z.object({}).describe(\"Additional HTTP headers to include; Content-Type is always application/json\").optional(),\n webhook_id: z.number().int().describe(\"Unique ID of the webhook to update\"),\n parser_field: z.string().describe(\"ID of a specific field trigger in 'PF12345' format\").optional(),\n}).describe(\"Request model for updating an existing webhook. Only include fields you wish to change.\");\nexport const ParseurUpdateWebhookOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\"),\n name: z.string().describe(\"Custom name of the webhook; null if not set.\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type the webhook listens to\"),\n target: z.string().describe(\"Target URL for the webhook\"),\n api_key: z.string().describe(\"API key associated with the webhook; null if not set.\").nullable().optional(),\n headers: z.object({}).describe(\"Custom HTTP headers sent with the webhook payload; null if not set.\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook, always 'CUSTOM'\"),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields or table-fields assigned to the webhook.\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage if applicable; null if not set.\").nullable().optional(),\n}).describe(\"Response model for update webhook action.\");\n\nexport const parseurUpdateWebhook = action(\"PARSEUR_UPDATE_WEBHOOK\", {\n slug: \"parseur-update-webhook\",\n name: \"Update webhook\",\n description: \"Tool to update an existing webhook’s settings. Use when you need to change the webhook’s target URL, event type, headers, or name after creation.\",\n input: ParseurUpdateWebhookInput,\n output: ParseurUpdateWebhookOutput,\n});\n"],"mappings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0C;CACxE,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-webhook.cjs","names":["z","action"],"sources":["../../src/actions/update-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateWebhookInput = z.object({\n name: z.string().describe(\"Custom name for the webhook; defaults to the target URL if omitted\").optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Trigger event for the webhook\").optional(),\n target: z.string().describe(\"HTTPS URL to receive the webhook payload\").optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Additional HTTP headers to include; Content-Type is always application/json\").optional(),\n webhook_id: z.number().int().describe(\"Unique ID of the webhook to update\"),\n parser_field: z.string().describe(\"ID of a specific field trigger in 'PF12345' format\").optional(),\n}).describe(\"Request model for updating an existing webhook. Only include fields you wish to change.\");\nexport const ParseurUpdateWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook; null if not set.\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook; null if not set.\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload; null if not set.\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook, always 'CUSTOM'\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields or table-fields assigned to the webhook.\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage if applicable; null if not set.\").nullable().optional(),\n}).passthrough().describe(\"Response model for update webhook action.\");\n\nexport const parseurUpdateWebhook = action(\"PARSEUR_UPDATE_WEBHOOK\", {\n slug: \"parseur-update-webhook\",\n name: \"Update webhook\",\n description: \"Tool to update an existing webhook’s settings. Use when you need to change the webhook’s target URL, event type, headers, or name after creation.\",\n input: ParseurUpdateWebhookInput,\n output: ParseurUpdateWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAsB;EAAgC;EAA4B;CAAiB,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC5I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,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const ParseurUpdateWebhookOutput: z.ZodTypeAny;
6
- declare const parseurUpdateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurUpdateWebhookInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ event: z.ZodOptional<z.ZodEnum<{
7
+ "document.processed": "document.processed";
8
+ "document.processed.flattened": "document.processed.flattened";
9
+ "document.template_needed": "document.template_needed";
10
+ "table.processed": "table.processed";
11
+ }>>;
12
+ target: z.ZodOptional<z.ZodString>;
13
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ webhook_id: z.ZodNumber;
15
+ parser_field: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const ParseurUpdateWebhookOutput: z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodNumber>;
19
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ event: z.ZodNullable<z.ZodEnum<{
21
+ "document.processed": "document.processed";
22
+ "document.processed.flattened": "document.processed.flattened";
23
+ "document.template_needed": "document.template_needed";
24
+ "table.processed": "table.processed";
25
+ }>>;
26
+ target: z.ZodNullable<z.ZodString>;
27
+ api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
29
+ category: z.ZodNullable<z.ZodString>;
30
+ parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
31
+ default_driver_fee_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ }, z.core.$loose>;
33
+ declare const parseurUpdateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ webhook_id: number;
35
+ name?: string | undefined;
36
+ event?: "document.processed" | "document.processed.flattened" | "document.template_needed" | "table.processed" | undefined;
37
+ target?: string | undefined;
38
+ headers?: Record<string, unknown> | undefined;
39
+ parser_field?: string | undefined;
40
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
41
  //#endregion
8
42
  export { parseurUpdateWebhook };
9
43
  //# sourceMappingURL=update-webhook.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-webhook.d.cts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAO4D;AAAA,cACzF,0BAAA,EAA4B,CAAA,CAAE,UAUa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-webhook.d.cts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAY1B,oBAAA,gCAAoB,wBAAA;;;;;YAM/B,MAAA"}
@@ -1,9 +1,43 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-webhook.d.ts
4
- declare const ParseurUpdateWebhookInput: z.ZodTypeAny;
5
- declare const ParseurUpdateWebhookOutput: z.ZodTypeAny;
6
- declare const parseurUpdateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurUpdateWebhookInput: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ event: z.ZodOptional<z.ZodEnum<{
7
+ "document.processed": "document.processed";
8
+ "document.processed.flattened": "document.processed.flattened";
9
+ "document.template_needed": "document.template_needed";
10
+ "table.processed": "table.processed";
11
+ }>>;
12
+ target: z.ZodOptional<z.ZodString>;
13
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ webhook_id: z.ZodNumber;
15
+ parser_field: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const ParseurUpdateWebhookOutput: z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodNumber>;
19
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ event: z.ZodNullable<z.ZodEnum<{
21
+ "document.processed": "document.processed";
22
+ "document.processed.flattened": "document.processed.flattened";
23
+ "document.template_needed": "document.template_needed";
24
+ "table.processed": "table.processed";
25
+ }>>;
26
+ target: z.ZodNullable<z.ZodString>;
27
+ api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
29
+ category: z.ZodNullable<z.ZodString>;
30
+ parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
31
+ default_driver_fee_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ }, z.core.$loose>;
33
+ declare const parseurUpdateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ webhook_id: number;
35
+ name?: string | undefined;
36
+ event?: "document.processed" | "document.processed.flattened" | "document.template_needed" | "table.processed" | undefined;
37
+ target?: string | undefined;
38
+ headers?: Record<string, unknown> | undefined;
39
+ parser_field?: string | undefined;
40
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
41
  //#endregion
8
42
  export { parseurUpdateWebhook };
9
43
  //# sourceMappingURL=update-webhook.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-webhook.d.mts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAO4D;AAAA,cACzF,0BAAA,EAA4B,CAAA,CAAE,UAUa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-webhook.d.mts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAY1B,oBAAA,gCAAoB,wBAAA;;;;;YAM/B,MAAA"}