@keystrokehq/parseur 0.1.2 → 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 (157) 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 +4 -4
  112. package/dist/actions/list-templates.d.mts +4 -4
  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/package.json +1 -1
@@ -26,30 +26,30 @@ const ParseurGetBootstrapConfig_ChoicesSchema = zod.z.object({
26
26
  "parser.identification_status": zod.z.array(zod.z.array(zod.z.string())).describe("Available parser identification status choices as [value, display_name] pairs.").nullable().optional(),
27
27
  "parser.pdf_conversion_format": zod.z.array(zod.z.array(zod.z.string())).describe("Available PDF conversion format choices as [value, display_name] pairs.").nullable().optional(),
28
28
  "account.auto_subscription_feature": zod.z.array(zod.z.array(zod.z.string())).describe("Available auto subscription feature choices as [value, display_name] pairs.").nullable().optional()
29
- }).describe("System-wide enumeration choices for various entities.");
29
+ }).passthrough().describe("System-wide enumeration choices for various entities.");
30
30
  const ParseurGetBootstrapConfig_FieldFormatMappingSchema = zod.z.object({
31
- OCR: zod.z.object({}).describe("Format options for OCR field type.").nullable().optional(),
32
- TXT: zod.z.object({}).describe("Format options for TXT field type.").nullable().optional(),
31
+ OCR: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Format options for OCR field type.").nullable().optional(),
32
+ TXT: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Format options for TXT field type.").nullable().optional(),
33
33
  LIST: zod.z.array(zod.z.string()).describe("Allowed formats for LIST field type.").nullable().optional(),
34
34
  TEXT: zod.z.array(zod.z.string()).describe("Allowed formats for TEXT field type.").nullable().optional(),
35
35
  TABLE: zod.z.array(zod.z.string()).describe("Allowed formats for TABLE field type.").nullable().optional(),
36
36
  ONELINE: zod.z.array(zod.z.string()).describe("Allowed formats for ONELINE field type.").nullable().optional()
37
- }).describe("Mapping of field format types to their allowed values.");
38
- const ParseurGetBootstrapConfig_MappingsSchema = zod.z.object({ "field.format": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable() }).describe("Configuration mappings for field formats.");
37
+ }).passthrough().describe("Mapping of field format types to their allowed values.");
38
+ const ParseurGetBootstrapConfig_MappingsSchema = zod.z.object({ "field.format": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable() }).passthrough().describe("Configuration mappings for field formats.");
39
39
  const ParseurGetBootstrapConfig_ExtraFieldSchema = zod.z.object({
40
40
  info: zod.z.string().describe("Descriptive information about the field.").nullable(),
41
41
  name: zod.z.string().describe("Field identifier name.").nullable(),
42
42
  label: zod.z.string().describe("Display label for the field.").nullable()
43
- }).describe("Additional field metadata available in the system.");
43
+ }).passthrough().describe("Additional field metadata available in the system.");
44
44
  const ParseurGetBootstrapConfig_MasterParserSetSchema = zod.z.object({
45
45
  name: zod.z.string().describe("Display name of the parser.").nullable(),
46
46
  slug: zod.z.string().describe("Unique slug identifier for the parser.").nullable(),
47
47
  description: zod.z.string().describe("Description of the parser functionality.").nullable()
48
- }).describe("Master parser template definition.");
48
+ }).passthrough().describe("Master parser template definition.");
49
49
  const ParseurGetBootstrapConfig_MaxFieldLengthsSchema = zod.z.object({
50
50
  name: zod.z.number().int().describe("Maximum length for name fields.").nullable(),
51
51
  email: zod.z.number().int().describe("Maximum length for email fields.").nullable()
52
- }).describe("Maximum field lengths for various entity attributes.");
52
+ }).passthrough().describe("Maximum field lengths for various entity attributes.");
53
53
  const ParseurGetBootstrapConfigOutput = zod.z.object({
54
54
  choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),
55
55
  mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),
@@ -57,7 +57,7 @@ const ParseurGetBootstrapConfigOutput = zod.z.object({
57
57
  extra_fields: zod.z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe("Additional custom fields available in the system.").nullable().optional(),
58
58
  master_parser_set: zod.z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe("Available master parser templates with their metadata.").nullable().optional(),
59
59
  max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable()
60
- }).describe("Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.");
60
+ }).passthrough().describe("Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.");
61
61
  const parseurGetBootstrapConfig = require_action.action("PARSEUR_GET_BOOTSTRAP_CONFIG", {
62
62
  slug: "parseur-get-bootstrap-config",
63
63
  name: "Get Bootstrap Config",
@@ -1 +1 @@
1
- {"version":3,"file":"get-bootstrap-config.cjs","names":["z","action"],"sources":["../../src/actions/get-bootstrap-config.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.object({}).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.object({}).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI;AACxM,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,iBAAiBA,IAAAA,EAAE,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AAS,CAAC,CAAC,SAAS;CACpJ,mBAAmBA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,mBAAmB,gDAAgD,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAE7G,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-bootstrap-config.cjs","names":["z","action"],"sources":["../../src/actions/get-bootstrap-config.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).passthrough().describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.record(z.string(), z.unknown()).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.record(z.string(), z.unknown()).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).passthrough().describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).passthrough().describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).passthrough().describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).passthrough().describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).passthrough().describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).passthrough().describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI;AACxM,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,O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C,SAAS,CAAC,CAAC,SAAS;CACpJ,mBAAmBA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,mBAAmB,gDAAgD,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iGAAiG;AAE3H,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -27,33 +27,33 @@ declare const ParseurGetBootstrapConfigOutput: z.ZodObject<{
27
27
  "parser.identification_status": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
28
28
  "parser.pdf_conversion_format": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
29
29
  "account.auto_subscription_feature": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
30
- }, z.core.$strip>>;
30
+ }, z.core.$loose>>;
31
31
  mappings: z.ZodNullable<z.ZodObject<{
32
32
  "field.format": z.ZodNullable<z.ZodObject<{
33
- OCR: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
34
- TXT: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
33
+ OCR: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
34
+ TXT: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
35
  LIST: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
36
36
  TEXT: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
37
37
  TABLE: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
38
38
  ONELINE: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
39
- }, z.core.$strip>>;
40
- }, z.core.$strip>>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>>;
41
41
  email_domain: z.ZodNullable<z.ZodString>;
42
42
  extra_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
43
43
  info: z.ZodNullable<z.ZodString>;
44
44
  name: z.ZodNullable<z.ZodString>;
45
45
  label: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>>>>;
46
+ }, z.core.$loose>>>>;
47
47
  master_parser_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
48
48
  name: z.ZodNullable<z.ZodString>;
49
49
  slug: z.ZodNullable<z.ZodString>;
50
50
  description: z.ZodNullable<z.ZodString>;
51
- }, z.core.$strip>>>>;
51
+ }, z.core.$loose>>>>;
52
52
  max_field_lengths: z.ZodNullable<z.ZodObject<{
53
53
  name: z.ZodNullable<z.ZodNumber>;
54
54
  email: z.ZodNullable<z.ZodNumber>;
55
- }, z.core.$strip>>;
56
- }, z.core.$strip>;
55
+ }, z.core.$loose>>;
56
+ }, z.core.$loose>;
57
57
  declare const parseurGetBootstrapConfig: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
58
  //#endregion
59
59
  export { parseurGetBootstrapConfig };
@@ -27,33 +27,33 @@ declare const ParseurGetBootstrapConfigOutput: z.ZodObject<{
27
27
  "parser.identification_status": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
28
28
  "parser.pdf_conversion_format": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
29
29
  "account.auto_subscription_feature": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
30
- }, z.core.$strip>>;
30
+ }, z.core.$loose>>;
31
31
  mappings: z.ZodNullable<z.ZodObject<{
32
32
  "field.format": z.ZodNullable<z.ZodObject<{
33
- OCR: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
34
- TXT: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
33
+ OCR: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
34
+ TXT: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
35
  LIST: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
36
36
  TEXT: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
37
37
  TABLE: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
38
38
  ONELINE: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
39
- }, z.core.$strip>>;
40
- }, z.core.$strip>>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>>;
41
41
  email_domain: z.ZodNullable<z.ZodString>;
42
42
  extra_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
43
43
  info: z.ZodNullable<z.ZodString>;
44
44
  name: z.ZodNullable<z.ZodString>;
45
45
  label: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>>>>;
46
+ }, z.core.$loose>>>>;
47
47
  master_parser_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
48
48
  name: z.ZodNullable<z.ZodString>;
49
49
  slug: z.ZodNullable<z.ZodString>;
50
50
  description: z.ZodNullable<z.ZodString>;
51
- }, z.core.$strip>>>>;
51
+ }, z.core.$loose>>>>;
52
52
  max_field_lengths: z.ZodNullable<z.ZodObject<{
53
53
  name: z.ZodNullable<z.ZodNumber>;
54
54
  email: z.ZodNullable<z.ZodNumber>;
55
- }, z.core.$strip>>;
56
- }, z.core.$strip>;
55
+ }, z.core.$loose>>;
56
+ }, z.core.$loose>;
57
57
  declare const parseurGetBootstrapConfig: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
58
  //#endregion
59
59
  export { parseurGetBootstrapConfig };
@@ -26,30 +26,30 @@ const ParseurGetBootstrapConfig_ChoicesSchema = z.object({
26
26
  "parser.identification_status": z.array(z.array(z.string())).describe("Available parser identification status choices as [value, display_name] pairs.").nullable().optional(),
27
27
  "parser.pdf_conversion_format": z.array(z.array(z.string())).describe("Available PDF conversion format choices as [value, display_name] pairs.").nullable().optional(),
28
28
  "account.auto_subscription_feature": z.array(z.array(z.string())).describe("Available auto subscription feature choices as [value, display_name] pairs.").nullable().optional()
29
- }).describe("System-wide enumeration choices for various entities.");
29
+ }).passthrough().describe("System-wide enumeration choices for various entities.");
30
30
  const ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({
31
- OCR: z.object({}).describe("Format options for OCR field type.").nullable().optional(),
32
- TXT: z.object({}).describe("Format options for TXT field type.").nullable().optional(),
31
+ OCR: z.record(z.string(), z.unknown()).describe("Format options for OCR field type.").nullable().optional(),
32
+ TXT: z.record(z.string(), z.unknown()).describe("Format options for TXT field type.").nullable().optional(),
33
33
  LIST: z.array(z.string()).describe("Allowed formats for LIST field type.").nullable().optional(),
34
34
  TEXT: z.array(z.string()).describe("Allowed formats for TEXT field type.").nullable().optional(),
35
35
  TABLE: z.array(z.string()).describe("Allowed formats for TABLE field type.").nullable().optional(),
36
36
  ONELINE: z.array(z.string()).describe("Allowed formats for ONELINE field type.").nullable().optional()
37
- }).describe("Mapping of field format types to their allowed values.");
38
- const ParseurGetBootstrapConfig_MappingsSchema = z.object({ "field.format": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable() }).describe("Configuration mappings for field formats.");
37
+ }).passthrough().describe("Mapping of field format types to their allowed values.");
38
+ const ParseurGetBootstrapConfig_MappingsSchema = z.object({ "field.format": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable() }).passthrough().describe("Configuration mappings for field formats.");
39
39
  const ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({
40
40
  info: z.string().describe("Descriptive information about the field.").nullable(),
41
41
  name: z.string().describe("Field identifier name.").nullable(),
42
42
  label: z.string().describe("Display label for the field.").nullable()
43
- }).describe("Additional field metadata available in the system.");
43
+ }).passthrough().describe("Additional field metadata available in the system.");
44
44
  const ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({
45
45
  name: z.string().describe("Display name of the parser.").nullable(),
46
46
  slug: z.string().describe("Unique slug identifier for the parser.").nullable(),
47
47
  description: z.string().describe("Description of the parser functionality.").nullable()
48
- }).describe("Master parser template definition.");
48
+ }).passthrough().describe("Master parser template definition.");
49
49
  const ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({
50
50
  name: z.number().int().describe("Maximum length for name fields.").nullable(),
51
51
  email: z.number().int().describe("Maximum length for email fields.").nullable()
52
- }).describe("Maximum field lengths for various entity attributes.");
52
+ }).passthrough().describe("Maximum field lengths for various entity attributes.");
53
53
  const parseurGetBootstrapConfig = action("PARSEUR_GET_BOOTSTRAP_CONFIG", {
54
54
  slug: "parseur-get-bootstrap-config",
55
55
  name: "Get Bootstrap Config",
@@ -62,7 +62,7 @@ const parseurGetBootstrapConfig = action("PARSEUR_GET_BOOTSTRAP_CONFIG", {
62
62
  extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe("Additional custom fields available in the system.").nullable().optional(),
63
63
  master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe("Available master parser templates with their metadata.").nullable().optional(),
64
64
  max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable()
65
- }).describe("Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.")
65
+ }).passthrough().describe("Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.")
66
66
  });
67
67
  //#endregion
68
68
  export { parseurGetBootstrapConfig };
@@ -1 +1 @@
1
- {"version":3,"file":"get-bootstrap-config.mjs","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.object({}).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.object({}).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI;AACxM,MAAM,0CAA0C,EAAE,OAAO;CACvD,cAAc,EAAE,MAAM,EAAE,MAAM,EA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AgD,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,iGAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-bootstrap-config.mjs","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).passthrough().describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.record(z.string(), z.unknown()).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.record(z.string(), z.unknown()).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).passthrough().describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).passthrough().describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).passthrough().describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).passthrough().describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).passthrough().describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).passthrough().describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: Par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,OAAO;EACtD,SAAS,wCAAwC,SAAS;EAC1D,UAAU,yCAAyC,SAAS;EAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,mBAAmB,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,mBAAmB,gDAAgD,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iGAOhB;AACV,CAAC"}
@@ -22,13 +22,13 @@ const ParseurGetDocumentLogs_DocumentLogItemSchema = zod.z.object({
22
22
  parser_name: zod.z.string().describe("Name of the parser (mailbox).").nullable(),
23
23
  document_name: zod.z.string().describe("Name of the document.").nullable(),
24
24
  template_name: zod.z.string().describe("Name of the template used, or null if not applicable.").nullable().optional()
25
- }).describe("A single log entry for a document.");
25
+ }).passthrough().describe("A single log entry for a document.");
26
26
  const ParseurGetDocumentLogsOutput = zod.z.object({
27
27
  count: zod.z.number().int().describe("Total number of log entries for this document.").nullable(),
28
28
  total: zod.z.number().int().describe("Total number of pages available.").nullable(),
29
29
  current: zod.z.number().int().describe("Current page number (1-indexed).").nullable(),
30
30
  results: zod.z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe("List of log entries on the current page.")
31
- }).describe("Paginated response containing document log entries.");
31
+ }).passthrough().describe("Paginated response containing document log entries.");
32
32
  const parseurGetDocumentLogs = require_action.action("PARSEUR_GET_DOCUMENT_LOGS", {
33
33
  slug: "parseur-get-document-logs",
34
34
  name: "Get Document Logs",
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,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+ {"version":3,"file":"get-document-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).passthrough().describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).passthrough().describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,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C,SAAS,0CAA0C;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -26,8 +26,8 @@ declare const ParseurGetDocumentLogsOutput: z.ZodObject<{
26
26
  parser_name: z.ZodNullable<z.ZodString>;
27
27
  document_name: z.ZodNullable<z.ZodString>;
28
28
  template_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>;
30
- }, z.core.$strip>;
29
+ }, z.core.$loose>>;
30
+ }, z.core.$loose>;
31
31
  declare const parseurGetDocumentLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
32
32
  id: string;
33
33
  page?: number | undefined;
@@ -26,8 +26,8 @@ declare const ParseurGetDocumentLogsOutput: z.ZodObject<{
26
26
  parser_name: z.ZodNullable<z.ZodString>;
27
27
  document_name: z.ZodNullable<z.ZodString>;
28
28
  template_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>;
30
- }, z.core.$strip>;
29
+ }, z.core.$loose>>;
30
+ }, z.core.$loose>;
31
31
  declare const parseurGetDocumentLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
32
32
  id: string;
33
33
  page?: number | undefined;
@@ -22,7 +22,7 @@ const ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({
22
22
  parser_name: z.string().describe("Name of the parser (mailbox).").nullable(),
23
23
  document_name: z.string().describe("Name of the document.").nullable(),
24
24
  template_name: z.string().describe("Name of the template used, or null if not applicable.").nullable().optional()
25
- }).describe("A single log entry for a document.");
25
+ }).passthrough().describe("A single log entry for a document.");
26
26
  const parseurGetDocumentLogs = action("PARSEUR_GET_DOCUMENT_LOGS", {
27
27
  slug: "parseur-get-document-logs",
28
28
  name: "Get Document Logs",
@@ -33,7 +33,7 @@ const parseurGetDocumentLogs = action("PARSEUR_GET_DOCUMENT_LOGS", {
33
33
  total: z.number().int().describe("Total number of pages available.").nullable(),
34
34
  current: z.number().int().describe("Current page number (1-indexed).").nullable(),
35
35
  results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe("List of log entries on the current page.")
36
- }).describe("Paginated response containing document log entries.")
36
+ }).passthrough().describe("Paginated response containing document log entries.")
37
37
  });
38
38
  //#endregion
39
39
  export { parseurGetDocumentLogs };
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-logs.mjs","names":[],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC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SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0CAA0C;CACpH,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-document-logs.mjs","names":[],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).passthrough().describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).passthrough().describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAA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,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0CAA0C;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -19,12 +19,12 @@ const ParseurGetDocument_SampleSetSchema = zod.z.object({
19
19
  name: zod.z.string().describe("Name of the sample set").nullable(),
20
20
  template_id: zod.z.number().int().describe("ID of the template associated with this sample set").nullable(),
21
21
  sample_count: zod.z.number().int().describe("Number of samples in this set").nullable()
22
- });
22
+ }).passthrough();
23
23
  const ParseurGetDocument_OcrPageSchema = zod.z.object({
24
- image: zod.z.object({}).describe("Image object containing page data"),
24
+ image: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Image object containing page data"),
25
25
  position: zod.z.number().int().describe("Position of the page in the document").nullable(),
26
26
  included_in_range: zod.z.boolean().describe("Whether this page is included in the processing range").nullable()
27
- });
27
+ }).passthrough();
28
28
  const ParseurGetDocument_DocumentStatusSourceSchema = zod.z.enum([
29
29
  "AI",
30
30
  "AUTO",
@@ -64,7 +64,7 @@ const ParseurGetDocumentOutput = zod.z.object({
64
64
  match_master_template: zod.z.boolean().describe("Whether the document matches a master template").nullable(),
65
65
  original_document_url: zod.z.string().describe("URL to download the original document").nullable(),
66
66
  conventional_credits_used: zod.z.number().int().describe("Number of conventional (non-AI) credits used").nullable()
67
- });
67
+ }).passthrough();
68
68
  const parseurGetDocument = require_action.action("PARSEUR_GET_DOCUMENT", {
69
69
  slug: "parseur-get-document",
70
70
  name: "Get Document",
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to retrieve. Obtain this ID from the List Documents action or webhook payloads.\"),\n});\nconst ParseurGetDocument_DocumentStatusSchema = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in this set\").nullable(),\n});\nconst ParseurGetDocument_OcrPageSchema = z.object({\n image: z.object({}).describe(\"Image object containing page data\"),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n});\nconst ParseurGetDocument_DocumentStatusSourceSchema = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\").nullable(),\n result: z.string().describe(\"Parsed result string, or null if not yet parsed\").nullable().optional(),\n status: ParseurGetDocument_DocumentStatusSchema.nullable(),\n content: z.string().describe(\"Raw content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in the mailbox, or null if this is the last\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in the mailbox, or null if this is the first\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used to parse the document, or null if none\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, or null if standalone\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurGetDocument_OcrPageSchema).describe(\"List of OCR pages extracted from the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split into multiple documents\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document, or null if not available\").nullable().optional(),\n status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\").nullable(),\n original_document_url: z.string().describe(\"URL to download the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\").nullable(),\n});\n\nexport const parseurGetDocument = action(\"PARSEUR_GET_DOCUMENT\", {\n slug: \"parseur-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve full details of a specific document by ID. Returns document status, processing info, parsed results, and download URLs for JSON, CSV, and XLS formats.\",\n input: ParseurGetDocumentInput,\n output: ParseurGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACjJ,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,KAAK;CAAC;CAAY;CAAa;CAAY;CAAY;CAAY;CAAY;CAAW;CAAS;CAAY;CAAW;AAAS,CAAC;AACtL,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,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C,SAAS,CAAC,CAAC,SAAS;CACjI,eAAe,8CAA8C,SAAS,CAAC,CAAC,SAAS;CACjF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAClG,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAChH,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to retrieve. Obtain this ID from the List Documents action or webhook payloads.\"),\n});\nconst ParseurGetDocument_DocumentStatusSchema = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in this set\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image object containing page data\"),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_DocumentStatusSourceSchema = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\").nullable(),\n result: z.string().describe(\"Parsed result string, or null if not yet parsed\").nullable().optional(),\n status: ParseurGetDocument_DocumentStatusSchema.nullable(),\n content: z.string().describe(\"Raw content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in the mailbox, or null if this is the last\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in the mailbox, or null if this is the first\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used to parse the document, or null if none\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, or null if standalone\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurGetDocument_OcrPageSchema).describe(\"List of OCR pages extracted from the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split into multiple documents\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document, or null if not available\").nullable().optional(),\n status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\").nullable(),\n original_document_url: z.string().describe(\"URL to download the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\").nullable(),\n}).passthrough();\n\nexport const parseurGetDocument = action(\"PARSEUR_GET_DOCUMENT\", {\n slug: \"parseur-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve full details of a specific document by ID. Returns document status, processing info, parsed results, and download URLs for JSON, CSV, and XLS formats.\",\n input: ParseurGetDocumentInput,\n output: ParseurGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACjJ,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,KAAK;CAAC;CAAY;CAAa;CAAY;CAAY;CAAY;CAAY;CAAW;CAAS;CAAY;CAAW;AAAS,CAAC;AACtL,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,aAAaA,IAAAA,EAA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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAe,8CAA8C,SAAS,CAAC,CAAC,SAAS;CACjF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAClG,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -33,16 +33,16 @@ declare const ParseurGetDocumentOutput: z.ZodObject<{
33
33
  name: z.ZodNullable<z.ZodString>;
34
34
  template_id: z.ZodNullable<z.ZodNumber>;
35
35
  sample_count: z.ZodNullable<z.ZodNumber>;
36
- }, z.core.$strip>>>>>;
36
+ }, z.core.$loose>>>>>;
37
37
  attached_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
38
  is_ai_ready: z.ZodNullable<z.ZodBoolean>;
39
39
  credits_used: z.ZodNullable<z.ZodNumber>;
40
40
  is_ocr_ready: z.ZodNullable<z.ZodBoolean>;
41
41
  ocr_page_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
42
- image: z.ZodObject<{}, z.core.$strip>;
42
+ image: z.ZodRecord<z.ZodString, z.ZodUnknown>;
43
43
  position: z.ZodNullable<z.ZodNumber>;
44
44
  included_in_range: z.ZodNullable<z.ZodBoolean>;
45
- }, z.core.$strip>>>>;
45
+ }, z.core.$loose>>>>;
46
46
  is_splittable: z.ZodNullable<z.ZodBoolean>;
47
47
  ocr_ready_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  status_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -62,7 +62,7 @@ declare const ParseurGetDocumentOutput: z.ZodObject<{
62
62
  match_master_template: z.ZodNullable<z.ZodBoolean>;
63
63
  original_document_url: z.ZodNullable<z.ZodString>;
64
64
  conventional_credits_used: z.ZodNullable<z.ZodNumber>;
65
- }, z.core.$strip>;
65
+ }, z.core.$loose>;
66
66
  declare const parseurGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
67
67
  id: string;
68
68
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -33,16 +33,16 @@ declare const ParseurGetDocumentOutput: z.ZodObject<{
33
33
  name: z.ZodNullable<z.ZodString>;
34
34
  template_id: z.ZodNullable<z.ZodNumber>;
35
35
  sample_count: z.ZodNullable<z.ZodNumber>;
36
- }, z.core.$strip>>>>>;
36
+ }, z.core.$loose>>>>>;
37
37
  attached_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
38
  is_ai_ready: z.ZodNullable<z.ZodBoolean>;
39
39
  credits_used: z.ZodNullable<z.ZodNumber>;
40
40
  is_ocr_ready: z.ZodNullable<z.ZodBoolean>;
41
41
  ocr_page_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
42
- image: z.ZodObject<{}, z.core.$strip>;
42
+ image: z.ZodRecord<z.ZodString, z.ZodUnknown>;
43
43
  position: z.ZodNullable<z.ZodNumber>;
44
44
  included_in_range: z.ZodNullable<z.ZodBoolean>;
45
- }, z.core.$strip>>>>;
45
+ }, z.core.$loose>>>>;
46
46
  is_splittable: z.ZodNullable<z.ZodBoolean>;
47
47
  ocr_ready_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  status_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -62,7 +62,7 @@ declare const ParseurGetDocumentOutput: z.ZodObject<{
62
62
  match_master_template: z.ZodNullable<z.ZodBoolean>;
63
63
  original_document_url: z.ZodNullable<z.ZodString>;
64
64
  conventional_credits_used: z.ZodNullable<z.ZodNumber>;
65
- }, z.core.$strip>;
65
+ }, z.core.$loose>;
66
66
  declare const parseurGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
67
67
  id: string;
68
68
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -19,12 +19,12 @@ const ParseurGetDocument_SampleSetSchema = z.object({
19
19
  name: z.string().describe("Name of the sample set").nullable(),
20
20
  template_id: z.number().int().describe("ID of the template associated with this sample set").nullable(),
21
21
  sample_count: z.number().int().describe("Number of samples in this set").nullable()
22
- });
22
+ }).passthrough();
23
23
  const ParseurGetDocument_OcrPageSchema = z.object({
24
- image: z.object({}).describe("Image object containing page data"),
24
+ image: z.record(z.string(), z.unknown()).describe("Image object containing page data"),
25
25
  position: z.number().int().describe("Position of the page in the document").nullable(),
26
26
  included_in_range: z.boolean().describe("Whether this page is included in the processing range").nullable()
27
- });
27
+ }).passthrough();
28
28
  const ParseurGetDocument_DocumentStatusSourceSchema = z.enum([
29
29
  "AI",
30
30
  "AUTO",
@@ -69,7 +69,7 @@ const parseurGetDocument = action("PARSEUR_GET_DOCUMENT", {
69
69
  match_master_template: z.boolean().describe("Whether the document matches a master template").nullable(),
70
70
  original_document_url: z.string().describe("URL to download the original document").nullable(),
71
71
  conventional_credits_used: z.number().int().describe("Number of conventional (non-AI) credits used").nullable()
72
- })
72
+ }).passthrough()
73
73
  });
74
74
  //#endregion
75
75
  export { parseurGetDocument };