@keystrokehq/parseur 0.1.2 → 0.1.4

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 (163) hide show
  1. package/dist/actions/copy-document.cjs +2 -2
  2. package/dist/actions/copy-document.cjs.map +1 -1
  3. package/dist/actions/copy-document.d.cts +2 -2
  4. package/dist/actions/copy-document.d.mts +2 -2
  5. package/dist/actions/copy-document.mjs +2 -2
  6. package/dist/actions/copy-document.mjs.map +1 -1
  7. package/dist/actions/copy-mailbox.cjs +2 -2
  8. package/dist/actions/copy-mailbox.cjs.map +1 -1
  9. package/dist/actions/copy-mailbox.d.cts +2 -2
  10. package/dist/actions/copy-mailbox.d.mts +2 -2
  11. package/dist/actions/copy-mailbox.mjs +2 -2
  12. package/dist/actions/copy-mailbox.mjs.map +1 -1
  13. package/dist/actions/create-custom-download.cjs +1 -1
  14. package/dist/actions/create-custom-download.cjs.map +1 -1
  15. package/dist/actions/create-custom-download.d.cts +1 -1
  16. package/dist/actions/create-custom-download.d.mts +1 -1
  17. package/dist/actions/create-custom-download.mjs +1 -1
  18. package/dist/actions/create-custom-download.mjs.map +1 -1
  19. package/dist/actions/create-mailbox.cjs +6 -6
  20. package/dist/actions/create-mailbox.cjs.map +1 -1
  21. package/dist/actions/create-mailbox.d.cts +6 -6
  22. package/dist/actions/create-mailbox.d.mts +6 -6
  23. package/dist/actions/create-mailbox.mjs +6 -6
  24. package/dist/actions/create-mailbox.mjs.map +1 -1
  25. package/dist/actions/delete-custom-download.cjs +1 -1
  26. package/dist/actions/delete-custom-download.cjs.map +1 -1
  27. package/dist/actions/delete-custom-download.d.cts +1 -1
  28. package/dist/actions/delete-custom-download.d.mts +1 -1
  29. package/dist/actions/delete-custom-download.mjs +1 -1
  30. package/dist/actions/delete-custom-download.mjs.map +1 -1
  31. package/dist/actions/delete-document.cjs +1 -1
  32. package/dist/actions/delete-document.cjs.map +1 -1
  33. package/dist/actions/delete-document.d.cts +1 -1
  34. package/dist/actions/delete-document.d.mts +1 -1
  35. package/dist/actions/delete-document.mjs +1 -1
  36. package/dist/actions/delete-document.mjs.map +1 -1
  37. package/dist/actions/delete-mailbox.cjs +2 -2
  38. package/dist/actions/delete-mailbox.cjs.map +1 -1
  39. package/dist/actions/delete-mailbox.d.cts +2 -2
  40. package/dist/actions/delete-mailbox.d.mts +2 -2
  41. package/dist/actions/delete-mailbox.mjs +2 -2
  42. package/dist/actions/delete-mailbox.mjs.map +1 -1
  43. package/dist/actions/delete-webhook.cjs +1 -1
  44. package/dist/actions/delete-webhook.cjs.map +1 -1
  45. package/dist/actions/delete-webhook.d.cts +1 -1
  46. package/dist/actions/delete-webhook.d.mts +1 -1
  47. package/dist/actions/delete-webhook.mjs +1 -1
  48. package/dist/actions/delete-webhook.mjs.map +1 -1
  49. package/dist/actions/disable-webhook.cjs +4 -4
  50. package/dist/actions/disable-webhook.cjs.map +1 -1
  51. package/dist/actions/disable-webhook.d.cts +6 -6
  52. package/dist/actions/disable-webhook.d.mts +6 -6
  53. package/dist/actions/disable-webhook.mjs +4 -4
  54. package/dist/actions/disable-webhook.mjs.map +1 -1
  55. package/dist/actions/enable-webhook.cjs +2 -2
  56. package/dist/actions/enable-webhook.cjs.map +1 -1
  57. package/dist/actions/enable-webhook.d.cts +2 -2
  58. package/dist/actions/enable-webhook.d.mts +2 -2
  59. package/dist/actions/enable-webhook.mjs +2 -2
  60. package/dist/actions/enable-webhook.mjs.map +1 -1
  61. package/dist/actions/get-bootstrap-config.cjs +9 -9
  62. package/dist/actions/get-bootstrap-config.cjs.map +1 -1
  63. package/dist/actions/get-bootstrap-config.d.cts +9 -9
  64. package/dist/actions/get-bootstrap-config.d.mts +9 -9
  65. package/dist/actions/get-bootstrap-config.mjs +9 -9
  66. package/dist/actions/get-bootstrap-config.mjs.map +1 -1
  67. package/dist/actions/get-document-logs.cjs +2 -2
  68. package/dist/actions/get-document-logs.cjs.map +1 -1
  69. package/dist/actions/get-document-logs.d.cts +2 -2
  70. package/dist/actions/get-document-logs.d.mts +2 -2
  71. package/dist/actions/get-document-logs.mjs +2 -2
  72. package/dist/actions/get-document-logs.mjs.map +1 -1
  73. package/dist/actions/get-document.cjs +4 -4
  74. package/dist/actions/get-document.cjs.map +1 -1
  75. package/dist/actions/get-document.d.cts +4 -4
  76. package/dist/actions/get-document.d.mts +4 -4
  77. package/dist/actions/get-document.mjs +4 -4
  78. package/dist/actions/get-document.mjs.map +1 -1
  79. package/dist/actions/get-mailbox-schema.cjs +1 -1
  80. package/dist/actions/get-mailbox-schema.cjs.map +1 -1
  81. package/dist/actions/get-mailbox-schema.d.cts +1 -1
  82. package/dist/actions/get-mailbox-schema.d.mts +1 -1
  83. package/dist/actions/get-mailbox-schema.mjs +1 -1
  84. package/dist/actions/get-mailbox-schema.mjs.map +1 -1
  85. package/dist/actions/get-mailbox.cjs +8 -8
  86. package/dist/actions/get-mailbox.cjs.map +1 -1
  87. package/dist/actions/get-mailbox.d.cts +11 -11
  88. package/dist/actions/get-mailbox.d.mts +11 -11
  89. package/dist/actions/get-mailbox.mjs +8 -8
  90. package/dist/actions/get-mailbox.mjs.map +1 -1
  91. package/dist/actions/list-custom-downloads.cjs +2 -2
  92. package/dist/actions/list-custom-downloads.cjs.map +1 -1
  93. package/dist/actions/list-custom-downloads.d.cts +2 -2
  94. package/dist/actions/list-custom-downloads.d.mts +2 -2
  95. package/dist/actions/list-custom-downloads.mjs +2 -2
  96. package/dist/actions/list-custom-downloads.mjs.map +1 -1
  97. package/dist/actions/list-documents-in-mailbox.cjs +3 -3
  98. package/dist/actions/list-documents-in-mailbox.cjs.map +1 -1
  99. package/dist/actions/list-documents-in-mailbox.d.cts +3 -3
  100. package/dist/actions/list-documents-in-mailbox.d.mts +3 -3
  101. package/dist/actions/list-documents-in-mailbox.mjs +3 -3
  102. package/dist/actions/list-documents-in-mailbox.mjs.map +1 -1
  103. package/dist/actions/list-mailboxes2.cjs +7 -7
  104. package/dist/actions/list-mailboxes2.cjs.map +1 -1
  105. package/dist/actions/list-mailboxes2.d.cts +8 -8
  106. package/dist/actions/list-mailboxes2.d.mts +8 -8
  107. package/dist/actions/list-mailboxes2.mjs +7 -7
  108. package/dist/actions/list-mailboxes2.mjs.map +1 -1
  109. package/dist/actions/list-templates.cjs +2 -2
  110. package/dist/actions/list-templates.cjs.map +1 -1
  111. package/dist/actions/list-templates.d.cts +2 -2
  112. package/dist/actions/list-templates.d.mts +2 -2
  113. package/dist/actions/list-templates.mjs +2 -2
  114. package/dist/actions/list-templates.mjs.map +1 -1
  115. package/dist/actions/reprocess-document.cjs +2 -2
  116. package/dist/actions/reprocess-document.cjs.map +1 -1
  117. package/dist/actions/reprocess-document.d.cts +2 -2
  118. package/dist/actions/reprocess-document.d.mts +2 -2
  119. package/dist/actions/reprocess-document.mjs +2 -2
  120. package/dist/actions/reprocess-document.mjs.map +1 -1
  121. package/dist/actions/retrieve-webhook.cjs +2 -2
  122. package/dist/actions/retrieve-webhook.cjs.map +1 -1
  123. package/dist/actions/retrieve-webhook.d.cts +2 -2
  124. package/dist/actions/retrieve-webhook.d.mts +2 -2
  125. package/dist/actions/retrieve-webhook.mjs +2 -2
  126. package/dist/actions/retrieve-webhook.mjs.map +1 -1
  127. package/dist/actions/skip-document.cjs +4 -4
  128. package/dist/actions/skip-document.cjs.map +1 -1
  129. package/dist/actions/skip-document.d.cts +4 -4
  130. package/dist/actions/skip-document.d.mts +4 -4
  131. package/dist/actions/skip-document.mjs +4 -4
  132. package/dist/actions/skip-document.mjs.map +1 -1
  133. package/dist/actions/update-custom-download.cjs +1 -1
  134. package/dist/actions/update-custom-download.cjs.map +1 -1
  135. package/dist/actions/update-custom-download.d.cts +1 -1
  136. package/dist/actions/update-custom-download.d.mts +1 -1
  137. package/dist/actions/update-custom-download.mjs +1 -1
  138. package/dist/actions/update-custom-download.mjs.map +1 -1
  139. package/dist/actions/update-mailbox.cjs +8 -8
  140. package/dist/actions/update-mailbox.cjs.map +1 -1
  141. package/dist/actions/update-mailbox.d.cts +13 -10
  142. package/dist/actions/update-mailbox.d.mts +13 -10
  143. package/dist/actions/update-mailbox.mjs +8 -8
  144. package/dist/actions/update-mailbox.mjs.map +1 -1
  145. package/dist/actions/update-webhook.cjs +3 -3
  146. package/dist/actions/update-webhook.cjs.map +1 -1
  147. package/dist/actions/update-webhook.d.cts +4 -4
  148. package/dist/actions/update-webhook.d.mts +4 -4
  149. package/dist/actions/update-webhook.mjs +3 -3
  150. package/dist/actions/update-webhook.mjs.map +1 -1
  151. package/dist/actions/upload-email-document.cjs +1 -1
  152. package/dist/actions/upload-email-document.cjs.map +1 -1
  153. package/dist/actions/upload-email-document.d.cts +1 -1
  154. package/dist/actions/upload-email-document.d.mts +1 -1
  155. package/dist/actions/upload-email-document.mjs +1 -1
  156. package/dist/actions/upload-email-document.mjs.map +1 -1
  157. package/dist/catalog.cjs +1 -1
  158. package/dist/catalog.cjs.map +1 -1
  159. package/dist/catalog.d.cts +1 -1
  160. package/dist/catalog.d.mts +1 -1
  161. package/dist/catalog.mjs +1 -1
  162. package/dist/catalog.mjs.map +1 -1
  163. package/package.json +1 -1
@@ -21,16 +21,16 @@ declare const ParseurSkipDocumentOutput: z.ZodObject<{
21
21
  name: z.ZodNullable<z.ZodString>;
22
22
  template_id: z.ZodNullable<z.ZodNumber>;
23
23
  sample_count: z.ZodNullable<z.ZodNumber>;
24
- }, z.core.$strip>>>>>;
24
+ }, z.core.$loose>>>>>;
25
25
  attached_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
26
  is_ai_ready: z.ZodNullable<z.ZodBoolean>;
27
27
  credits_used: z.ZodNullable<z.ZodNumber>;
28
28
  is_ocr_ready: z.ZodNullable<z.ZodBoolean>;
29
29
  ocr_page_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
30
- image: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
30
+ image: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
31
  position: z.ZodNullable<z.ZodNumber>;
32
32
  included_in_range: z.ZodNullable<z.ZodBoolean>;
33
- }, z.core.$strip>>>>;
33
+ }, z.core.$loose>>>>;
34
34
  is_splittable: z.ZodNullable<z.ZodBoolean>;
35
35
  ocr_ready_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  status_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -42,7 +42,7 @@ declare const ParseurSkipDocumentOutput: z.ZodObject<{
42
42
  match_master_template: z.ZodNullable<z.ZodBoolean>;
43
43
  original_document_url: z.ZodNullable<z.ZodString>;
44
44
  conventional_credits_used: z.ZodNullable<z.ZodNumber>;
45
- }, z.core.$strip>;
45
+ }, z.core.$loose>;
46
46
  declare const parseurSkipDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
47
47
  id: string;
48
48
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -6,12 +6,12 @@ const ParseurSkipDocument_SampleSetItemSchema = z.object({
6
6
  name: z.string().describe("Name of the sample set").nullable(),
7
7
  template_id: z.number().int().describe("ID of the template").nullable(),
8
8
  sample_count: z.number().int().describe("Number of samples in the set").nullable()
9
- });
9
+ }).passthrough();
10
10
  const ParseurSkipDocument_OcrPageSchema = z.object({
11
- image: z.object({}).describe("Image data for the OCR page").nullable().optional(),
11
+ image: z.record(z.string(), z.unknown()).describe("Image data for the OCR page").nullable().optional(),
12
12
  position: z.number().int().describe("Position of the page in the document").nullable(),
13
13
  included_in_range: z.boolean().describe("Whether this page is included in the processing range").nullable()
14
- });
14
+ }).passthrough();
15
15
  const parseurSkipDocument = action("PARSEUR_SKIP_DOCUMENT", {
16
16
  slug: "parseur-skip-document",
17
17
  name: "Skip a document",
@@ -47,7 +47,7 @@ const parseurSkipDocument = action("PARSEUR_SKIP_DOCUMENT", {
47
47
  match_master_template: z.boolean().describe("Whether the document matches the master template").nullable(),
48
48
  original_document_url: z.string().describe("URL to the original document").nullable(),
49
49
  conventional_credits_used: z.number().int().describe("Conventional credits used for processing").nullable()
50
- })
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.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});\nconst ParseurSkipDocument_OcrPageSchema = 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\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n});\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});\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,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CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,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,CAOU;AACV,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,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoC,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY;AAiCf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArCuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CA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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.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}).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,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,i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_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  parser_field_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>;
28
+ }, z.core.$loose>;
29
29
  declare const parseurUpdateCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<{
30
30
  id: number;
31
31
  mailbox_id: string;
@@ -25,7 +25,7 @@ declare const ParseurUpdateCustomDownloadOutput: z.ZodObject<{
25
25
  xls_download: z.ZodNullable<z.ZodString>;
26
26
  parser_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  parser_field_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>;
28
+ }, z.core.$loose>;
29
29
  declare const parseurUpdateCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<{
30
30
  id: number;
31
31
  mailbox_id: string;
@@ -22,7 +22,7 @@ const parseurUpdateCustomDownload = action("PARSEUR_UPDATE_CUSTOM_DOWNLOAD", {
22
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 };
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-download.mjs","names":[],"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}).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":";;AAwBA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;EACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EAChM,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC/G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAC1H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,oFAgBH;CACP,QAhB+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,MAAM,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;EAChF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-custom-download.mjs","names":[],"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":";;AAwBA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;E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S,mDAOhB;AACV,CAAC"}
@@ -18,11 +18,11 @@ const ParseurUpdateMailboxInput = zod.z.object({
18
18
  page_range_set: zod.z.array(zod.z.object({
19
19
  end_index: zod.z.number().int().describe("Ending page index (inclusive); null for open-ended range").optional(),
20
20
  start_index: zod.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: zod.z.array(zod.z.object({
23
23
  keyword: zod.z.string().describe("Keyword to look for when splitting documents"),
24
24
  is_before: zod.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: zod.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: zod.z.string().describe("Default timezone for date parsing").optional(),
28
28
  retention_policy: zod.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 = zod.z.object({
79
79
  split_page_range_set: zod.z.array(zod.z.object({
80
80
  end_index: zod.z.number().int().describe("Ending page index (inclusive); null for open-ended range").optional(),
81
81
  start_index: zod.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: zod.z.enum([
84
84
  "REQUESTED",
85
85
  "PROGRESS",
@@ -97,16 +97,16 @@ const ParseurUpdateMailbox_AiEngineSchema = zod.z.enum([
97
97
  const ParseurUpdateMailbox_TableInfoSchema = zod.z.object({
98
98
  id: zod.z.string().describe("Unique identifier of the table").nullable(),
99
99
  name: zod.z.string().describe("Name of the table").nullable()
100
- }).describe("Table configuration information.");
100
+ }).passthrough().describe("Table configuration information.");
101
101
  const ParseurUpdateMailbox_WebhookInfoSchema = zod.z.object({
102
102
  id: zod.z.number().int().describe("Unique identifier of the webhook").nullable(),
103
103
  name: zod.z.string().describe("Custom name of the webhook").nullable().optional(),
104
104
  event: zod.z.string().describe("Event type the webhook listens to").nullable(),
105
105
  target: zod.z.string().describe("Target URL for the webhook").nullable(),
106
- headers: zod.z.object({}).describe("Custom HTTP headers sent with the webhook payload").nullable().optional(),
106
+ headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom HTTP headers sent with the webhook payload").nullable().optional(),
107
107
  category: zod.z.string().describe("Category of the webhook").nullable(),
108
108
  parser_field_set: zod.z.array(zod.z.record(zod.z.string(), zod.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 = zod.z.object({
111
111
  SPLIT: zod.z.number().int().describe("Files that were split into multiple documents").nullable(),
112
112
  INVALID: zod.z.number().int().describe("Files that were not processed because they are not supported").nullable(),
@@ -119,7 +119,7 @@ const ParseurUpdateMailbox_DocumentStatusCountSchema = zod.z.object({
119
119
  PROGRESS: zod.z.number().int().describe("Files currently being processed by active AI engine").nullable(),
120
120
  QUOTAEXC: zod.z.number().int().describe("Files where processing was stopped because user does not have enough credits").nullable(),
121
121
  ANALYZING: zod.z.number().int().describe("Files being analyzed against system import parameters and mailbox settings").nullable()
122
- }).describe("Breakdown of documents by processing status.");
122
+ }).passthrough().describe("Breakdown of documents by processing status.");
123
123
  const ParseurUpdateMailboxOutput = zod.z.object({
124
124
  id: zod.z.number().int().describe("The internal ID number for the parser").nullable(),
125
125
  name: zod.z.string().describe("The name of the parser").nullable().optional(),
@@ -158,7 +158,7 @@ const ParseurUpdateMailboxOutput = zod.z.object({
158
158
  document_per_status_count: ParseurUpdateMailbox_DocumentStatusCountSchema.nullable(),
159
159
  template_set_last_modified: zod.z.string().describe("Timestamp when templates were last modified").nullable().optional(),
160
160
  parser_object_set_last_modified: zod.z.string().describe("Timestamp when parser objects were last modified").nullable().optional()
161
- }).describe("Response model for update mailbox action containing the updated mailbox configuration.");
161
+ }).passthrough().describe("Response model for update mailbox action containing the updated mailbox configuration.");
162
162
  const parseurUpdateMailbox = require_action.action("PARSEUR_UPDATE_MAILBOX", {
163
163
  slug: "parseur-update-mailbox",
164
164
  name: "Update Mailbox",
@@ -1 +1 @@
1
- {"version":3,"file":"update-mailbox.cjs","names":["z","action"],"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}).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.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}).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.object({}).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}).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}).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}).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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAY;EAAY;CAAY,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9H,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AgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/H,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,uBAAuBA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4BAA4B;CAC5G,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,2BAA2B,+CAA+C,SAAS;CACnF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,wFAAwF;AAEpG,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-mailbox.cjs","names":["z","action"],"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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAY;EAAY;CAAY,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC5H,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC9H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CAC9K,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACjH,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACjC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC1G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAA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AA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4BAA4B;CAC5G,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,2BAA2B,+CAA+C,SAAS;CACnF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wFAAwF;AAElH,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -18,11 +18,11 @@ declare const ParseurUpdateMailboxInput: z.ZodObject<{
18
18
  page_range_set: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
19
  end_index: z.ZodOptional<z.ZodNumber>;
20
20
  start_index: z.ZodNumber;
21
- }, z.core.$strip>>>;
21
+ }, z.core.$loose>>>;
22
22
  split_keywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
23
  keyword: z.ZodString;
24
24
  is_before: z.ZodBoolean;
25
- }, z.core.$strip>>>;
25
+ }, z.core.$loose>>>;
26
26
  ai_instructions: z.ZodOptional<z.ZodString>;
27
27
  default_timezone: z.ZodOptional<z.ZodString>;
28
28
  retention_policy: z.ZodOptional<z.ZodNumber>;
@@ -79,7 +79,7 @@ declare const ParseurUpdateMailboxInput: z.ZodObject<{
79
79
  split_page_range_set: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
80
  end_index: z.ZodOptional<z.ZodNumber>;
81
81
  start_index: z.ZodNumber;
82
- }, z.core.$strip>>>;
82
+ }, z.core.$loose>>>;
83
83
  identification_status: z.ZodOptional<z.ZodEnum<{
84
84
  REQUESTED: "REQUESTED";
85
85
  PROGRESS: "PROGRESS";
@@ -104,7 +104,7 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
104
104
  table_set: z.ZodArray<z.ZodObject<{
105
105
  id: z.ZodNullable<z.ZodString>;
106
106
  name: z.ZodNullable<z.ZodString>;
107
- }, z.core.$strip>>;
107
+ }, z.core.$loose>>;
108
108
  even_pages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
109
109
  split_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
110
110
  webhook_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -112,10 +112,10 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
112
112
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
113
  event: z.ZodNullable<z.ZodString>;
114
114
  target: z.ZodNullable<z.ZodString>;
115
- headers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
115
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
116
116
  category: z.ZodNullable<z.ZodString>;
117
117
  parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
118
- }, z.core.$strip>>>>;
118
+ }, z.core.$loose>>>>;
119
119
  account_uuid: z.ZodNullable<z.ZodString>;
120
120
  csv_download: z.ZodNullable<z.ZodString>;
121
121
  email_prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -142,10 +142,10 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
142
142
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
143
  event: z.ZodNullable<z.ZodString>;
144
144
  target: z.ZodNullable<z.ZodString>;
145
- headers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
145
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
146
146
  category: z.ZodNullable<z.ZodString>;
147
147
  parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
148
- }, z.core.$strip>>;
148
+ }, z.core.$loose>>;
149
149
  identification_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
150
  document_per_status_count: z.ZodNullable<z.ZodObject<{
151
151
  SPLIT: z.ZodNullable<z.ZodNumber>;
@@ -159,10 +159,10 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
159
159
  PROGRESS: z.ZodNullable<z.ZodNumber>;
160
160
  QUOTAEXC: z.ZodNullable<z.ZodNumber>;
161
161
  ANALYZING: z.ZodNullable<z.ZodNumber>;
162
- }, z.core.$strip>>;
162
+ }, z.core.$loose>>;
163
163
  template_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
164
  parser_object_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- }, z.core.$strip>;
165
+ }, z.core.$loose>;
166
166
  declare const parseurUpdateMailbox: import("@keystrokehq/action").WorkflowActionDefinition<{
167
167
  id: number;
168
168
  name?: string | undefined;
@@ -173,10 +173,12 @@ declare const parseurUpdateMailbox: import("@keystrokehq/action").WorkflowAction
173
173
  split_page?: number | undefined;
174
174
  disable_deskew?: boolean | undefined;
175
175
  page_range_set?: {
176
+ [x: string]: unknown;
176
177
  start_index: number;
177
178
  end_index?: number | undefined;
178
179
  }[] | undefined;
179
180
  split_keywords?: {
181
+ [x: string]: unknown;
180
182
  keyword: string;
181
183
  is_before: boolean;
182
184
  }[] | undefined;
@@ -189,6 +191,7 @@ declare const parseurUpdateMailbox: import("@keystrokehq/action").WorkflowAction
189
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;
190
192
  process_attachments?: boolean | undefined;
191
193
  split_page_range_set?: {
194
+ [x: string]: unknown;
192
195
  start_index: number;
193
196
  end_index?: number | undefined;
194
197
  }[] | undefined;
@@ -18,11 +18,11 @@ declare const ParseurUpdateMailboxInput: z.ZodObject<{
18
18
  page_range_set: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
19
  end_index: z.ZodOptional<z.ZodNumber>;
20
20
  start_index: z.ZodNumber;
21
- }, z.core.$strip>>>;
21
+ }, z.core.$loose>>>;
22
22
  split_keywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
23
  keyword: z.ZodString;
24
24
  is_before: z.ZodBoolean;
25
- }, z.core.$strip>>>;
25
+ }, z.core.$loose>>>;
26
26
  ai_instructions: z.ZodOptional<z.ZodString>;
27
27
  default_timezone: z.ZodOptional<z.ZodString>;
28
28
  retention_policy: z.ZodOptional<z.ZodNumber>;
@@ -79,7 +79,7 @@ declare const ParseurUpdateMailboxInput: z.ZodObject<{
79
79
  split_page_range_set: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
80
  end_index: z.ZodOptional<z.ZodNumber>;
81
81
  start_index: z.ZodNumber;
82
- }, z.core.$strip>>>;
82
+ }, z.core.$loose>>>;
83
83
  identification_status: z.ZodOptional<z.ZodEnum<{
84
84
  REQUESTED: "REQUESTED";
85
85
  PROGRESS: "PROGRESS";
@@ -104,7 +104,7 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
104
104
  table_set: z.ZodArray<z.ZodObject<{
105
105
  id: z.ZodNullable<z.ZodString>;
106
106
  name: z.ZodNullable<z.ZodString>;
107
- }, z.core.$strip>>;
107
+ }, z.core.$loose>>;
108
108
  even_pages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
109
109
  split_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
110
110
  webhook_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -112,10 +112,10 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
112
112
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
113
  event: z.ZodNullable<z.ZodString>;
114
114
  target: z.ZodNullable<z.ZodString>;
115
- headers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
115
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
116
116
  category: z.ZodNullable<z.ZodString>;
117
117
  parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
118
- }, z.core.$strip>>>>;
118
+ }, z.core.$loose>>>>;
119
119
  account_uuid: z.ZodNullable<z.ZodString>;
120
120
  csv_download: z.ZodNullable<z.ZodString>;
121
121
  email_prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -142,10 +142,10 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
142
142
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
143
  event: z.ZodNullable<z.ZodString>;
144
144
  target: z.ZodNullable<z.ZodString>;
145
- headers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
145
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
146
146
  category: z.ZodNullable<z.ZodString>;
147
147
  parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
148
- }, z.core.$strip>>;
148
+ }, z.core.$loose>>;
149
149
  identification_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
150
  document_per_status_count: z.ZodNullable<z.ZodObject<{
151
151
  SPLIT: z.ZodNullable<z.ZodNumber>;
@@ -159,10 +159,10 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
159
159
  PROGRESS: z.ZodNullable<z.ZodNumber>;
160
160
  QUOTAEXC: z.ZodNullable<z.ZodNumber>;
161
161
  ANALYZING: z.ZodNullable<z.ZodNumber>;
162
- }, z.core.$strip>>;
162
+ }, z.core.$loose>>;
163
163
  template_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
164
  parser_object_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- }, z.core.$strip>;
165
+ }, z.core.$loose>;
166
166
  declare const parseurUpdateMailbox: import("@keystrokehq/action").WorkflowActionDefinition<{
167
167
  id: number;
168
168
  name?: string | undefined;
@@ -173,10 +173,12 @@ declare const parseurUpdateMailbox: import("@keystrokehq/action").WorkflowAction
173
173
  split_page?: number | undefined;
174
174
  disable_deskew?: boolean | undefined;
175
175
  page_range_set?: {
176
+ [x: string]: unknown;
176
177
  start_index: number;
177
178
  end_index?: number | undefined;
178
179
  }[] | undefined;
179
180
  split_keywords?: {
181
+ [x: string]: unknown;
180
182
  keyword: string;
181
183
  is_before: boolean;
182
184
  }[] | undefined;
@@ -189,6 +191,7 @@ declare const parseurUpdateMailbox: import("@keystrokehq/action").WorkflowAction
189
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;
190
192
  process_attachments?: boolean | undefined;
191
193
  split_page_range_set?: {
194
+ [x: string]: unknown;
192
195
  start_index: number;
193
196
  end_index?: number | undefined;
194
197
  }[] | undefined;
@@ -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",
@@ -97,16 +97,16 @@ const ParseurUpdateMailbox_AiEngineSchema = z.enum([
97
97
  const ParseurUpdateMailbox_TableInfoSchema = z.object({
98
98
  id: z.string().describe("Unique identifier of the table").nullable(),
99
99
  name: z.string().describe("Name of the table").nullable()
100
- }).describe("Table configuration information.");
100
+ }).passthrough().describe("Table configuration information.");
101
101
  const ParseurUpdateMailbox_WebhookInfoSchema = z.object({
102
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
104
  event: z.string().describe("Event type the webhook listens to").nullable(),
105
105
  target: z.string().describe("Target URL for the webhook").nullable(),
106
- headers: z.object({}).describe("Custom HTTP headers sent with the webhook payload").nullable().optional(),
106
+ headers: z.record(z.string(), z.unknown()).describe("Custom HTTP headers sent with the webhook payload").nullable().optional(),
107
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
111
  SPLIT: z.number().int().describe("Files that were split into multiple documents").nullable(),
112
112
  INVALID: z.number().int().describe("Files that were not processed because they are not supported").nullable(),
@@ -119,7 +119,7 @@ const ParseurUpdateMailbox_DocumentStatusCountSchema = z.object({
119
119
  PROGRESS: z.number().int().describe("Files currently being processed by active AI engine").nullable(),
120
120
  QUOTAEXC: z.number().int().describe("Files where processing was stopped because user does not have enough credits").nullable(),
121
121
  ANALYZING: z.number().int().describe("Files being analyzed against system import parameters and mailbox settings").nullable()
122
- }).describe("Breakdown of documents by processing status.");
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",
@@ -163,7 +163,7 @@ const parseurUpdateMailbox = action("PARSEUR_UPDATE_MAILBOX", {
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 };