@keystrokehq/parseur 0.1.0 → 0.1.2

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 (209) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/copy-document.cjs.map +1 -1
  4. package/dist/actions/copy-document.d.cts +13 -3
  5. package/dist/actions/copy-document.d.cts.map +1 -1
  6. package/dist/actions/copy-document.d.mts +13 -3
  7. package/dist/actions/copy-document.d.mts.map +1 -1
  8. package/dist/actions/copy-document.mjs.map +1 -1
  9. package/dist/actions/copy-mailbox.cjs.map +1 -1
  10. package/dist/actions/copy-mailbox.d.cts +11 -3
  11. package/dist/actions/copy-mailbox.d.cts.map +1 -1
  12. package/dist/actions/copy-mailbox.d.mts +11 -3
  13. package/dist/actions/copy-mailbox.d.mts.map +1 -1
  14. package/dist/actions/copy-mailbox.mjs.map +1 -1
  15. package/dist/actions/create-custom-download.cjs +3 -3
  16. package/dist/actions/create-custom-download.cjs.map +1 -1
  17. package/dist/actions/create-custom-download.d.cts +38 -3
  18. package/dist/actions/create-custom-download.d.cts.map +1 -1
  19. package/dist/actions/create-custom-download.d.mts +38 -3
  20. package/dist/actions/create-custom-download.d.mts.map +1 -1
  21. package/dist/actions/create-custom-download.mjs +3 -3
  22. package/dist/actions/create-custom-download.mjs.map +1 -1
  23. package/dist/actions/create-mailbox.cjs +29 -29
  24. package/dist/actions/create-mailbox.cjs.map +1 -1
  25. package/dist/actions/create-mailbox.d.cts +187 -3
  26. package/dist/actions/create-mailbox.d.cts.map +1 -1
  27. package/dist/actions/create-mailbox.d.mts +187 -3
  28. package/dist/actions/create-mailbox.d.mts.map +1 -1
  29. package/dist/actions/create-mailbox.mjs +29 -29
  30. package/dist/actions/create-mailbox.mjs.map +1 -1
  31. package/dist/actions/delete-custom-download.cjs +1 -1
  32. package/dist/actions/delete-custom-download.cjs.map +1 -1
  33. package/dist/actions/delete-custom-download.d.cts +11 -3
  34. package/dist/actions/delete-custom-download.d.cts.map +1 -1
  35. package/dist/actions/delete-custom-download.d.mts +11 -3
  36. package/dist/actions/delete-custom-download.d.mts.map +1 -1
  37. package/dist/actions/delete-custom-download.mjs +1 -1
  38. package/dist/actions/delete-custom-download.mjs.map +1 -1
  39. package/dist/actions/delete-document.cjs +1 -1
  40. package/dist/actions/delete-document.cjs.map +1 -1
  41. package/dist/actions/delete-document.d.cts +9 -3
  42. package/dist/actions/delete-document.d.cts.map +1 -1
  43. package/dist/actions/delete-document.d.mts +9 -3
  44. package/dist/actions/delete-document.d.mts.map +1 -1
  45. package/dist/actions/delete-document.mjs +1 -1
  46. package/dist/actions/delete-document.mjs.map +1 -1
  47. package/dist/actions/delete-mailbox.cjs.map +1 -1
  48. package/dist/actions/delete-mailbox.d.cts +11 -3
  49. package/dist/actions/delete-mailbox.d.cts.map +1 -1
  50. package/dist/actions/delete-mailbox.d.mts +11 -3
  51. package/dist/actions/delete-mailbox.d.mts.map +1 -1
  52. package/dist/actions/delete-mailbox.mjs.map +1 -1
  53. package/dist/actions/delete-webhook.cjs +1 -1
  54. package/dist/actions/delete-webhook.cjs.map +1 -1
  55. package/dist/actions/delete-webhook.d.cts +9 -3
  56. package/dist/actions/delete-webhook.d.cts.map +1 -1
  57. package/dist/actions/delete-webhook.d.mts +9 -3
  58. package/dist/actions/delete-webhook.d.mts.map +1 -1
  59. package/dist/actions/delete-webhook.mjs +1 -1
  60. package/dist/actions/delete-webhook.mjs.map +1 -1
  61. package/dist/actions/disable-webhook.cjs +4 -4
  62. package/dist/actions/disable-webhook.cjs.map +1 -1
  63. package/dist/actions/disable-webhook.d.cts +47 -3
  64. package/dist/actions/disable-webhook.d.cts.map +1 -1
  65. package/dist/actions/disable-webhook.d.mts +47 -3
  66. package/dist/actions/disable-webhook.d.mts.map +1 -1
  67. package/dist/actions/disable-webhook.mjs +4 -4
  68. package/dist/actions/disable-webhook.mjs.map +1 -1
  69. package/dist/actions/enable-webhook.cjs +4 -4
  70. package/dist/actions/enable-webhook.cjs.map +1 -1
  71. package/dist/actions/enable-webhook.d.cts +26 -3
  72. package/dist/actions/enable-webhook.d.cts.map +1 -1
  73. package/dist/actions/enable-webhook.d.mts +26 -3
  74. package/dist/actions/enable-webhook.d.mts.map +1 -1
  75. package/dist/actions/enable-webhook.mjs +4 -4
  76. package/dist/actions/enable-webhook.mjs.map +1 -1
  77. package/dist/actions/get-bootstrap-config.cjs +9 -9
  78. package/dist/actions/get-bootstrap-config.cjs.map +1 -1
  79. package/dist/actions/get-bootstrap-config.d.cts +54 -3
  80. package/dist/actions/get-bootstrap-config.d.cts.map +1 -1
  81. package/dist/actions/get-bootstrap-config.d.mts +54 -3
  82. package/dist/actions/get-bootstrap-config.d.mts.map +1 -1
  83. package/dist/actions/get-bootstrap-config.mjs +9 -9
  84. package/dist/actions/get-bootstrap-config.mjs.map +1 -1
  85. package/dist/actions/get-document-logs.cjs +13 -13
  86. package/dist/actions/get-document-logs.cjs.map +1 -1
  87. package/dist/actions/get-document-logs.d.cts +34 -3
  88. package/dist/actions/get-document-logs.d.cts.map +1 -1
  89. package/dist/actions/get-document-logs.d.mts +34 -3
  90. package/dist/actions/get-document-logs.d.mts.map +1 -1
  91. package/dist/actions/get-document-logs.mjs +13 -13
  92. package/dist/actions/get-document-logs.mjs.map +1 -1
  93. package/dist/actions/get-document.cjs +25 -25
  94. package/dist/actions/get-document.cjs.map +1 -1
  95. package/dist/actions/get-document.d.cts +65 -3
  96. package/dist/actions/get-document.d.cts.map +1 -1
  97. package/dist/actions/get-document.d.mts +65 -3
  98. package/dist/actions/get-document.d.mts.map +1 -1
  99. package/dist/actions/get-document.mjs +25 -25
  100. package/dist/actions/get-document.mjs.map +1 -1
  101. package/dist/actions/get-mailbox-schema.cjs +1 -1
  102. package/dist/actions/get-mailbox-schema.cjs.map +1 -1
  103. package/dist/actions/get-mailbox-schema.d.cts +10 -3
  104. package/dist/actions/get-mailbox-schema.d.cts.map +1 -1
  105. package/dist/actions/get-mailbox-schema.d.mts +10 -3
  106. package/dist/actions/get-mailbox-schema.d.mts.map +1 -1
  107. package/dist/actions/get-mailbox-schema.mjs +1 -1
  108. package/dist/actions/get-mailbox-schema.mjs.map +1 -1
  109. package/dist/actions/get-mailbox.cjs +35 -35
  110. package/dist/actions/get-mailbox.cjs.map +1 -1
  111. package/dist/actions/get-mailbox.d.cts +147 -3
  112. package/dist/actions/get-mailbox.d.cts.map +1 -1
  113. package/dist/actions/get-mailbox.d.mts +147 -3
  114. package/dist/actions/get-mailbox.d.mts.map +1 -1
  115. package/dist/actions/get-mailbox.mjs +35 -35
  116. package/dist/actions/get-mailbox.mjs.map +1 -1
  117. package/dist/actions/list-custom-downloads.cjs +7 -7
  118. package/dist/actions/list-custom-downloads.cjs.map +1 -1
  119. package/dist/actions/list-custom-downloads.d.cts +21 -3
  120. package/dist/actions/list-custom-downloads.d.cts.map +1 -1
  121. package/dist/actions/list-custom-downloads.d.mts +21 -3
  122. package/dist/actions/list-custom-downloads.d.mts.map +1 -1
  123. package/dist/actions/list-custom-downloads.mjs +7 -7
  124. package/dist/actions/list-custom-downloads.mjs.map +1 -1
  125. package/dist/actions/list-documents-in-mailbox.cjs +7 -7
  126. package/dist/actions/list-documents-in-mailbox.cjs.map +1 -1
  127. package/dist/actions/list-documents-in-mailbox.d.cts +49 -3
  128. package/dist/actions/list-documents-in-mailbox.d.cts.map +1 -1
  129. package/dist/actions/list-documents-in-mailbox.d.mts +49 -3
  130. package/dist/actions/list-documents-in-mailbox.d.mts.map +1 -1
  131. package/dist/actions/list-documents-in-mailbox.mjs +7 -7
  132. package/dist/actions/list-documents-in-mailbox.mjs.map +1 -1
  133. package/dist/actions/list-mailboxes2.cjs +6 -6
  134. package/dist/actions/list-mailboxes2.cjs.map +1 -1
  135. package/dist/actions/list-mailboxes2.d.cts +120 -3
  136. package/dist/actions/list-mailboxes2.d.cts.map +1 -1
  137. package/dist/actions/list-mailboxes2.d.mts +120 -3
  138. package/dist/actions/list-mailboxes2.d.mts.map +1 -1
  139. package/dist/actions/list-mailboxes2.mjs +6 -6
  140. package/dist/actions/list-mailboxes2.mjs.map +1 -1
  141. package/dist/actions/list-templates.cjs +10 -10
  142. package/dist/actions/list-templates.cjs.map +1 -1
  143. package/dist/actions/list-templates.d.cts +41 -3
  144. package/dist/actions/list-templates.d.cts.map +1 -1
  145. package/dist/actions/list-templates.d.mts +41 -3
  146. package/dist/actions/list-templates.d.mts.map +1 -1
  147. package/dist/actions/list-templates.mjs +10 -10
  148. package/dist/actions/list-templates.mjs.map +1 -1
  149. package/dist/actions/reprocess-document.cjs.map +1 -1
  150. package/dist/actions/reprocess-document.d.cts +11 -3
  151. package/dist/actions/reprocess-document.d.cts.map +1 -1
  152. package/dist/actions/reprocess-document.d.mts +11 -3
  153. package/dist/actions/reprocess-document.d.mts.map +1 -1
  154. package/dist/actions/reprocess-document.mjs.map +1 -1
  155. package/dist/actions/retrieve-webhook.cjs +4 -4
  156. package/dist/actions/retrieve-webhook.cjs.map +1 -1
  157. package/dist/actions/retrieve-webhook.d.cts +23 -3
  158. package/dist/actions/retrieve-webhook.d.cts.map +1 -1
  159. package/dist/actions/retrieve-webhook.d.mts +23 -3
  160. package/dist/actions/retrieve-webhook.d.mts.map +1 -1
  161. package/dist/actions/retrieve-webhook.mjs +4 -4
  162. package/dist/actions/retrieve-webhook.mjs.map +1 -1
  163. package/dist/actions/skip-document.cjs +26 -26
  164. package/dist/actions/skip-document.cjs.map +1 -1
  165. package/dist/actions/skip-document.d.cts +45 -3
  166. package/dist/actions/skip-document.d.cts.map +1 -1
  167. package/dist/actions/skip-document.d.mts +45 -3
  168. package/dist/actions/skip-document.d.mts.map +1 -1
  169. package/dist/actions/skip-document.mjs +26 -26
  170. package/dist/actions/skip-document.mjs.map +1 -1
  171. package/dist/actions/update-custom-download.cjs +4 -4
  172. package/dist/actions/update-custom-download.cjs.map +1 -1
  173. package/dist/actions/update-custom-download.d.cts +34 -3
  174. package/dist/actions/update-custom-download.d.cts.map +1 -1
  175. package/dist/actions/update-custom-download.d.mts +34 -3
  176. package/dist/actions/update-custom-download.d.mts.map +1 -1
  177. package/dist/actions/update-custom-download.mjs +4 -4
  178. package/dist/actions/update-custom-download.mjs.map +1 -1
  179. package/dist/actions/update-mailbox.cjs +29 -29
  180. package/dist/actions/update-mailbox.cjs.map +1 -1
  181. package/dist/actions/update-mailbox.d.cts +194 -3
  182. package/dist/actions/update-mailbox.d.cts.map +1 -1
  183. package/dist/actions/update-mailbox.d.mts +194 -3
  184. package/dist/actions/update-mailbox.d.mts.map +1 -1
  185. package/dist/actions/update-mailbox.mjs +29 -29
  186. package/dist/actions/update-mailbox.mjs.map +1 -1
  187. package/dist/actions/update-webhook.cjs +4 -4
  188. package/dist/actions/update-webhook.cjs.map +1 -1
  189. package/dist/actions/update-webhook.d.cts +37 -3
  190. package/dist/actions/update-webhook.d.cts.map +1 -1
  191. package/dist/actions/update-webhook.d.mts +37 -3
  192. package/dist/actions/update-webhook.d.mts.map +1 -1
  193. package/dist/actions/update-webhook.mjs +4 -4
  194. package/dist/actions/update-webhook.mjs.map +1 -1
  195. package/dist/actions/upload-email-document.cjs +1 -1
  196. package/dist/actions/upload-email-document.cjs.map +1 -1
  197. package/dist/actions/upload-email-document.d.cts +25 -3
  198. package/dist/actions/upload-email-document.d.cts.map +1 -1
  199. package/dist/actions/upload-email-document.d.mts +25 -3
  200. package/dist/actions/upload-email-document.d.mts.map +1 -1
  201. package/dist/actions/upload-email-document.mjs +1 -1
  202. package/dist/actions/upload-email-document.mjs.map +1 -1
  203. package/dist/catalog.cjs +7 -1
  204. package/dist/catalog.cjs.map +1 -1
  205. package/dist/catalog.d.cts +8 -0
  206. package/dist/catalog.d.mts +8 -0
  207. package/dist/catalog.mjs +7 -1
  208. package/dist/catalog.mjs.map +1 -1
  209. package/package.json +2 -2
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document-logs.d.ts
4
- declare const ParseurGetDocumentLogsInput: z.ZodTypeAny;
5
- declare const ParseurGetDocumentLogsOutput: z.ZodTypeAny;
6
- declare const parseurGetDocumentLogs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurGetDocumentLogsInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ search: z.ZodOptional<z.ZodString>;
8
+ ordering: z.ZodOptional<z.ZodString>;
9
+ page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
10
+ }, z.core.$strip>;
11
+ declare const ParseurGetDocumentLogsOutput: z.ZodObject<{
12
+ count: z.ZodNullable<z.ZodNumber>;
13
+ total: z.ZodNullable<z.ZodNumber>;
14
+ current: z.ZodNullable<z.ZodNumber>;
15
+ results: z.ZodArray<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodNumber>;
17
+ code: z.ZodNullable<z.ZodString>;
18
+ parser: z.ZodNullable<z.ZodNumber>;
19
+ source: z.ZodNullable<z.ZodString>;
20
+ status: z.ZodNullable<z.ZodString>;
21
+ created: z.ZodNullable<z.ZodString>;
22
+ message: z.ZodNullable<z.ZodString>;
23
+ payload: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ document: z.ZodNullable<z.ZodNumber>;
25
+ template: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ parser_name: z.ZodNullable<z.ZodString>;
27
+ document_name: z.ZodNullable<z.ZodString>;
28
+ template_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strip>;
31
+ declare const parseurGetDocumentLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ id: string;
33
+ page?: number | undefined;
34
+ search?: string | undefined;
35
+ ordering?: string | undefined;
36
+ page_size?: number | undefined;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { parseurGetDocumentLogs };
9
40
  //# sourceMappingURL=get-document-logs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-logs.d.cts","names":[],"sources":["../../src/actions/get-document-logs.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAMmB;AAAA,cAgBlD,4BAAA,EAA8B,CAAA,CAAE,UAKqB;AAAA,cAErD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document-logs.d.cts","names":[],"sources":["../../src/actions/get-document-logs.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAsB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document-logs.d.ts
4
- declare const ParseurGetDocumentLogsInput: z.ZodTypeAny;
5
- declare const ParseurGetDocumentLogsOutput: z.ZodTypeAny;
6
- declare const parseurGetDocumentLogs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurGetDocumentLogsInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ search: z.ZodOptional<z.ZodString>;
8
+ ordering: z.ZodOptional<z.ZodString>;
9
+ page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
10
+ }, z.core.$strip>;
11
+ declare const ParseurGetDocumentLogsOutput: z.ZodObject<{
12
+ count: z.ZodNullable<z.ZodNumber>;
13
+ total: z.ZodNullable<z.ZodNumber>;
14
+ current: z.ZodNullable<z.ZodNumber>;
15
+ results: z.ZodArray<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodNumber>;
17
+ code: z.ZodNullable<z.ZodString>;
18
+ parser: z.ZodNullable<z.ZodNumber>;
19
+ source: z.ZodNullable<z.ZodString>;
20
+ status: z.ZodNullable<z.ZodString>;
21
+ created: z.ZodNullable<z.ZodString>;
22
+ message: z.ZodNullable<z.ZodString>;
23
+ payload: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ document: z.ZodNullable<z.ZodNumber>;
25
+ template: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ parser_name: z.ZodNullable<z.ZodString>;
27
+ document_name: z.ZodNullable<z.ZodString>;
28
+ template_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strip>;
31
+ declare const parseurGetDocumentLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ id: string;
33
+ page?: number | undefined;
34
+ search?: string | undefined;
35
+ ordering?: string | undefined;
36
+ page_size?: number | undefined;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { parseurGetDocumentLogs };
9
40
  //# sourceMappingURL=get-document-logs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-logs.d.mts","names":[],"sources":["../../src/actions/get-document-logs.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAMmB;AAAA,cAgBlD,4BAAA,EAA8B,CAAA,CAAE,UAKqB;AAAA,cAErD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document-logs.d.mts","names":[],"sources":["../../src/actions/get-document-logs.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAsB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
@@ -9,18 +9,18 @@ const ParseurGetDocumentLogsInput = z.object({
9
9
  page_size: z.number().int().default(25).describe("Number of log entries per page. Defaults to 25.").optional()
10
10
  }).describe("Request parameters for retrieving document logs.");
11
11
  const ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({
12
- id: z.number().int().describe("Unique identifier of the log entry."),
13
- code: z.string().describe("Log code identifying the type of log entry."),
14
- parser: z.number().int().describe("ID of the parser (mailbox) that processed the document."),
15
- source: z.string().describe("Source of the log entry."),
16
- status: z.string().describe("Status of the log entry."),
17
- created: z.string().describe("ISO 8601 timestamp when the log entry was created."),
18
- message: z.string().describe("Human-readable message describing the log entry."),
12
+ id: z.number().int().describe("Unique identifier of the log entry.").nullable(),
13
+ code: z.string().describe("Log code identifying the type of log entry.").nullable(),
14
+ parser: z.number().int().describe("ID of the parser (mailbox) that processed the document.").nullable(),
15
+ source: z.string().describe("Source of the log entry.").nullable(),
16
+ status: z.string().describe("Status of the log entry.").nullable(),
17
+ created: z.string().describe("ISO 8601 timestamp when the log entry was created.").nullable(),
18
+ message: z.string().describe("Human-readable message describing the log entry.").nullable(),
19
19
  payload: z.string().describe("Additional payload data, or null if not present.").nullable().optional(),
20
- document: z.number().int().describe("ID of the document this log entry belongs to."),
20
+ document: z.number().int().describe("ID of the document this log entry belongs to.").nullable(),
21
21
  template: z.number().int().describe("ID of the template used, or null if not applicable.").nullable().optional(),
22
- parser_name: z.string().describe("Name of the parser (mailbox)."),
23
- document_name: z.string().describe("Name of the document."),
22
+ parser_name: z.string().describe("Name of the parser (mailbox).").nullable(),
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
25
  }).describe("A single log entry for a document.");
26
26
  const parseurGetDocumentLogs = action("PARSEUR_GET_DOCUMENT_LOGS", {
@@ -29,9 +29,9 @@ const parseurGetDocumentLogs = action("PARSEUR_GET_DOCUMENT_LOGS", {
29
29
  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.",
30
30
  input: ParseurGetDocumentLogsInput,
31
31
  output: z.object({
32
- count: z.number().int().describe("Total number of log entries for this document."),
33
- total: z.number().int().describe("Total number of pages available."),
34
- current: z.number().int().describe("Current page number (1-indexed)."),
32
+ count: z.number().int().describe("Total number of log entries for this document.").nullable(),
33
+ total: z.number().int().describe("Total number of pages available.").nullable(),
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
36
  }).describe("Paginated response containing document log entries.")
37
37
  });
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\"),\n code: z.string().describe(\"Log code identifying the type of log entry.\"),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\"),\n source: z.string().describe(\"Source of the log entry.\"),\n status: z.string().describe(\"Status of the log entry.\"),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\"),\n message: z.string().describe(\"Human-readable message describing the log entry.\"),\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.\"),\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).\"),\n document_name: z.string().describe(\"Name of the document.\"),\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.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\"),\n total: z.number().int().describe(\"Total number of pages available.\"),\n current: z.number().int().describe(\"Current page number (1-indexed).\"),\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,8BAA4C,EAAE,OAAO;CAChE,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,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AAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EACrE,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}).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,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,QA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,0CAA0C;CACpH,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
@@ -16,14 +16,14 @@ const ParseurGetDocument_DocumentStatusSchema = zod.z.enum([
16
16
  "INVALID"
17
17
  ]);
18
18
  const ParseurGetDocument_SampleSetSchema = zod.z.object({
19
- name: zod.z.string().describe("Name of the sample set"),
20
- template_id: zod.z.number().int().describe("ID of the template associated with this sample set"),
21
- sample_count: zod.z.number().int().describe("Number of samples in this set")
19
+ name: zod.z.string().describe("Name of the sample set").nullable(),
20
+ template_id: zod.z.number().int().describe("ID of the template associated with this sample set").nullable(),
21
+ sample_count: zod.z.number().int().describe("Number of samples in this set").nullable()
22
22
  });
23
23
  const ParseurGetDocument_OcrPageSchema = zod.z.object({
24
24
  image: zod.z.object({}).describe("Image object containing page data"),
25
- position: zod.z.number().int().describe("Position of the page in the document"),
26
- included_in_range: zod.z.boolean().describe("Whether this page is included in the processing range")
25
+ position: zod.z.number().int().describe("Position of the page in the document").nullable(),
26
+ included_in_range: zod.z.boolean().describe("Whether this page is included in the processing range").nullable()
27
27
  });
28
28
  const ParseurGetDocument_DocumentStatusSourceSchema = zod.z.enum([
29
29
  "AI",
@@ -35,35 +35,35 @@ const ParseurGetDocument_DocumentStatusSourceSchema = zod.z.enum([
35
35
  "TRANSFORM"
36
36
  ]);
37
37
  const ParseurGetDocumentOutput = zod.z.object({
38
- id: zod.z.number().int().describe("Unique identifier of the document"),
39
- name: zod.z.string().describe("Name of the document"),
40
- parser: zod.z.number().int().describe("ID of the mailbox (parser) that received this document"),
38
+ id: zod.z.number().int().describe("Unique identifier of the document").nullable(),
39
+ name: zod.z.string().describe("Name of the document").nullable(),
40
+ parser: zod.z.number().int().describe("ID of the mailbox (parser) that received this document").nullable(),
41
41
  result: zod.z.string().describe("Parsed result string, or null if not yet parsed").nullable().optional(),
42
42
  status: ParseurGetDocument_DocumentStatusSchema.nullable(),
43
- content: zod.z.string().describe("Raw content of the document"),
43
+ content: zod.z.string().describe("Raw content of the document").nullable(),
44
44
  next_id: zod.z.number().int().describe("ID of the next document in the mailbox, or null if this is the last").nullable().optional(),
45
45
  prev_id: zod.z.number().int().describe("ID of the previous document in the mailbox, or null if this is the first").nullable().optional(),
46
- is_split: zod.z.boolean().describe("Whether the document has been split"),
47
- received: zod.z.string().describe("ISO 8601 timestamp when the document was received"),
46
+ is_split: zod.z.boolean().describe("Whether the document has been split").nullable(),
47
+ received: zod.z.string().describe("ISO 8601 timestamp when the document was received").nullable(),
48
48
  template: zod.z.number().int().describe("ID of the template used to parse the document, or null if none").nullable().optional(),
49
- processed: zod.z.string().describe("ISO 8601 timestamp when the document was processed"),
50
- sample_set: zod.z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe("List of sample sets associated with this document").optional(),
49
+ processed: zod.z.string().describe("ISO 8601 timestamp when the document was processed").nullable(),
50
+ sample_set: zod.z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe("List of sample sets associated with this document").nullable().optional(),
51
51
  attached_to: zod.z.number().int().describe("ID of the document this is attached to, or null if standalone").nullable().optional(),
52
- is_ai_ready: zod.z.boolean().describe("Whether the document is ready for AI processing"),
53
- credits_used: zod.z.number().int().describe("Total number of credits consumed processing this document"),
54
- is_ocr_ready: zod.z.boolean().describe("Whether the document is ready for OCR processing"),
52
+ is_ai_ready: zod.z.boolean().describe("Whether the document is ready for AI processing").nullable(),
53
+ credits_used: zod.z.number().int().describe("Total number of credits consumed processing this document").nullable(),
54
+ is_ocr_ready: zod.z.boolean().describe("Whether the document is ready for OCR processing").nullable(),
55
55
  ocr_page_set: zod.z.array(ParseurGetDocument_OcrPageSchema).describe("List of OCR pages extracted from the document").nullable().optional(),
56
- is_splittable: zod.z.boolean().describe("Whether the document can be split into multiple documents"),
56
+ is_splittable: zod.z.boolean().describe("Whether the document can be split into multiple documents").nullable(),
57
57
  ocr_ready_url: zod.z.string().describe("URL to the OCR-ready version of the document, or null if not available").nullable().optional(),
58
58
  status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),
59
- is_processable: zod.z.boolean().describe("Whether the document can be processed"),
60
- ai_credits_used: zod.z.number().int().describe("Number of AI credits used"),
61
- csv_download_url: zod.z.string().describe("URL to download the parsed data in CSV format"),
62
- xls_download_url: zod.z.string().describe("URL to download the parsed data in XLS format"),
63
- json_download_url: zod.z.string().describe("URL to download the parsed data in JSON format"),
64
- match_master_template: zod.z.boolean().describe("Whether the document matches a master template"),
65
- original_document_url: zod.z.string().describe("URL to download the original document"),
66
- conventional_credits_used: zod.z.number().int().describe("Number of conventional (non-AI) credits used")
59
+ is_processable: zod.z.boolean().describe("Whether the document can be processed").nullable(),
60
+ ai_credits_used: zod.z.number().int().describe("Number of AI credits used").nullable(),
61
+ csv_download_url: zod.z.string().describe("URL to download the parsed data in CSV format").nullable(),
62
+ xls_download_url: zod.z.string().describe("URL to download the parsed data in XLS format").nullable(),
63
+ json_download_url: zod.z.string().describe("URL to download the parsed data in JSON format").nullable(),
64
+ match_master_template: zod.z.boolean().describe("Whether the document matches a master template").nullable(),
65
+ original_document_url: zod.z.string().describe("URL to download the original document").nullable(),
66
+ conventional_credits_used: zod.z.number().int().describe("Number of conventional (non-AI) credits used").nullable()
67
67
  });
68
68
  const parseurGetDocument = require_action.action("PARSEUR_GET_DOCUMENT", {
69
69
  slug: "parseur-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.ZodTypeAny = 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.ZodTypeAny = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the sample set\"),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\"),\n sample_count: z.number().int().describe(\"Number of samples in this set\"),\n});\nconst ParseurGetDocument_OcrPageSchema: z.ZodTypeAny = 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\"),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\"),\n});\nconst ParseurGetDocument_DocumentStatusSourceSchema: z.ZodTypeAny = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\"),\n name: z.string().describe(\"Name of the document\"),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\"),\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\"),\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\"),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\"),\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\"),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").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\"),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\"),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\"),\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\"),\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\"),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\"),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\"),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\"),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\"),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\"),\n original_document_url: z.string().describe(\"URL to download the original document\"),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\"),\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,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACjJ,CAAC;AACD,MAAM,0CAAwDA,IAAAA,EAAE,KAAK;CAAC;CAAY;CAAa;CAAY;CAAY;CAAY;CAAY;CAAW;CAAS;CAAY;CAAW;AAAS,CAAC;AACpM,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;AACzE,CA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C,CAAC,SAAS,uCAAuC;CAClF,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACrG,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});\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,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACtG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACpF,CAAC;AACD,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC5G,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,KAAK;CAAC;CAAM;CAAQ;CAAO;CAAY;CAAU;CAAY;AAAW,CAAC;AACjI,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,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AChH,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,71 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document.d.ts
4
- declare const ParseurGetDocumentInput: z.ZodTypeAny;
5
- declare const ParseurGetDocumentOutput: z.ZodTypeAny;
6
- declare const parseurGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurGetDocumentInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParseurGetDocumentOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ parser: z.ZodNullable<z.ZodNumber>;
11
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ status: z.ZodNullable<z.ZodEnum<{
13
+ PROGRESS: "PROGRESS";
14
+ SPLIT: "SPLIT";
15
+ INVALID: "INVALID";
16
+ SKIPPED: "SKIPPED";
17
+ TRANSKO: "TRANSKO";
18
+ EXPORTKO: "EXPORTKO";
19
+ INCOMING: "INCOMING";
20
+ PARSEDKO: "PARSEDKO";
21
+ PARSEDOK: "PARSEDOK";
22
+ QUOTAEXC: "QUOTAEXC";
23
+ ANALYZING: "ANALYZING";
24
+ }>>;
25
+ content: z.ZodNullable<z.ZodString>;
26
+ next_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ prev_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ is_split: z.ZodNullable<z.ZodBoolean>;
29
+ received: z.ZodNullable<z.ZodString>;
30
+ template: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ processed: z.ZodNullable<z.ZodString>;
32
+ sample_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNullable<z.ZodObject<{
33
+ name: z.ZodNullable<z.ZodString>;
34
+ template_id: z.ZodNullable<z.ZodNumber>;
35
+ sample_count: z.ZodNullable<z.ZodNumber>;
36
+ }, z.core.$strip>>>>>;
37
+ attached_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
+ is_ai_ready: z.ZodNullable<z.ZodBoolean>;
39
+ credits_used: z.ZodNullable<z.ZodNumber>;
40
+ is_ocr_ready: z.ZodNullable<z.ZodBoolean>;
41
+ ocr_page_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
42
+ image: z.ZodObject<{}, z.core.$strip>;
43
+ position: z.ZodNullable<z.ZodNumber>;
44
+ included_in_range: z.ZodNullable<z.ZodBoolean>;
45
+ }, z.core.$strip>>>>;
46
+ is_splittable: z.ZodNullable<z.ZodBoolean>;
47
+ ocr_ready_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ status_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
49
+ MANUAL: "MANUAL";
50
+ AI: "AI";
51
+ AUTO: "AUTO";
52
+ CSV: "CSV";
53
+ METADATA: "METADATA";
54
+ TEMPLATE: "TEMPLATE";
55
+ TRANSFORM: "TRANSFORM";
56
+ }>>>;
57
+ is_processable: z.ZodNullable<z.ZodBoolean>;
58
+ ai_credits_used: z.ZodNullable<z.ZodNumber>;
59
+ csv_download_url: z.ZodNullable<z.ZodString>;
60
+ xls_download_url: z.ZodNullable<z.ZodString>;
61
+ json_download_url: z.ZodNullable<z.ZodString>;
62
+ match_master_template: z.ZodNullable<z.ZodBoolean>;
63
+ original_document_url: z.ZodNullable<z.ZodString>;
64
+ conventional_credits_used: z.ZodNullable<z.ZodNumber>;
65
+ }, z.core.$strip>;
66
+ declare const parseurGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
67
+ id: string;
68
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
69
  //#endregion
8
70
  export { parseurGetDocument };
9
71
  //# sourceMappingURL=get-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAaW,wBAAA,EAA0B,CAAA,CAAE,UA8BvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,71 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document.d.ts
4
- declare const ParseurGetDocumentInput: z.ZodTypeAny;
5
- declare const ParseurGetDocumentOutput: z.ZodTypeAny;
6
- declare const parseurGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurGetDocumentInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParseurGetDocumentOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ parser: z.ZodNullable<z.ZodNumber>;
11
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ status: z.ZodNullable<z.ZodEnum<{
13
+ PROGRESS: "PROGRESS";
14
+ SPLIT: "SPLIT";
15
+ INVALID: "INVALID";
16
+ SKIPPED: "SKIPPED";
17
+ TRANSKO: "TRANSKO";
18
+ EXPORTKO: "EXPORTKO";
19
+ INCOMING: "INCOMING";
20
+ PARSEDKO: "PARSEDKO";
21
+ PARSEDOK: "PARSEDOK";
22
+ QUOTAEXC: "QUOTAEXC";
23
+ ANALYZING: "ANALYZING";
24
+ }>>;
25
+ content: z.ZodNullable<z.ZodString>;
26
+ next_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ prev_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ is_split: z.ZodNullable<z.ZodBoolean>;
29
+ received: z.ZodNullable<z.ZodString>;
30
+ template: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ processed: z.ZodNullable<z.ZodString>;
32
+ sample_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNullable<z.ZodObject<{
33
+ name: z.ZodNullable<z.ZodString>;
34
+ template_id: z.ZodNullable<z.ZodNumber>;
35
+ sample_count: z.ZodNullable<z.ZodNumber>;
36
+ }, z.core.$strip>>>>>;
37
+ attached_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
+ is_ai_ready: z.ZodNullable<z.ZodBoolean>;
39
+ credits_used: z.ZodNullable<z.ZodNumber>;
40
+ is_ocr_ready: z.ZodNullable<z.ZodBoolean>;
41
+ ocr_page_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
42
+ image: z.ZodObject<{}, z.core.$strip>;
43
+ position: z.ZodNullable<z.ZodNumber>;
44
+ included_in_range: z.ZodNullable<z.ZodBoolean>;
45
+ }, z.core.$strip>>>>;
46
+ is_splittable: z.ZodNullable<z.ZodBoolean>;
47
+ ocr_ready_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ status_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
49
+ MANUAL: "MANUAL";
50
+ AI: "AI";
51
+ AUTO: "AUTO";
52
+ CSV: "CSV";
53
+ METADATA: "METADATA";
54
+ TEMPLATE: "TEMPLATE";
55
+ TRANSFORM: "TRANSFORM";
56
+ }>>>;
57
+ is_processable: z.ZodNullable<z.ZodBoolean>;
58
+ ai_credits_used: z.ZodNullable<z.ZodNumber>;
59
+ csv_download_url: z.ZodNullable<z.ZodString>;
60
+ xls_download_url: z.ZodNullable<z.ZodString>;
61
+ json_download_url: z.ZodNullable<z.ZodString>;
62
+ match_master_template: z.ZodNullable<z.ZodBoolean>;
63
+ original_document_url: z.ZodNullable<z.ZodString>;
64
+ conventional_credits_used: z.ZodNullable<z.ZodNumber>;
65
+ }, z.core.$strip>;
66
+ declare const parseurGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
67
+ id: string;
68
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
69
  //#endregion
8
70
  export { parseurGetDocument };
9
71
  //# sourceMappingURL=get-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAaW,wBAAA,EAA0B,CAAA,CAAE,UA8BvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCxB,kBAAA,gCAAkB,wBAAA"}
@@ -16,14 +16,14 @@ const ParseurGetDocument_DocumentStatusSchema = z.enum([
16
16
  "INVALID"
17
17
  ]);
18
18
  const ParseurGetDocument_SampleSetSchema = z.object({
19
- name: z.string().describe("Name of the sample set"),
20
- template_id: z.number().int().describe("ID of the template associated with this sample set"),
21
- sample_count: z.number().int().describe("Number of samples in this set")
19
+ name: z.string().describe("Name of the sample set").nullable(),
20
+ template_id: z.number().int().describe("ID of the template associated with this sample set").nullable(),
21
+ sample_count: z.number().int().describe("Number of samples in this set").nullable()
22
22
  });
23
23
  const ParseurGetDocument_OcrPageSchema = z.object({
24
24
  image: z.object({}).describe("Image object containing page data"),
25
- position: z.number().int().describe("Position of the page in the document"),
26
- included_in_range: z.boolean().describe("Whether this page is included in the processing range")
25
+ position: z.number().int().describe("Position of the page in the document").nullable(),
26
+ included_in_range: z.boolean().describe("Whether this page is included in the processing range").nullable()
27
27
  });
28
28
  const ParseurGetDocument_DocumentStatusSourceSchema = z.enum([
29
29
  "AI",
@@ -40,35 +40,35 @@ const parseurGetDocument = action("PARSEUR_GET_DOCUMENT", {
40
40
  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.",
41
41
  input: ParseurGetDocumentInput,
42
42
  output: z.object({
43
- id: z.number().int().describe("Unique identifier of the document"),
44
- name: z.string().describe("Name of the document"),
45
- parser: z.number().int().describe("ID of the mailbox (parser) that received this document"),
43
+ id: z.number().int().describe("Unique identifier of the document").nullable(),
44
+ name: z.string().describe("Name of the document").nullable(),
45
+ parser: z.number().int().describe("ID of the mailbox (parser) that received this document").nullable(),
46
46
  result: z.string().describe("Parsed result string, or null if not yet parsed").nullable().optional(),
47
47
  status: ParseurGetDocument_DocumentStatusSchema.nullable(),
48
- content: z.string().describe("Raw content of the document"),
48
+ content: z.string().describe("Raw content of the document").nullable(),
49
49
  next_id: z.number().int().describe("ID of the next document in the mailbox, or null if this is the last").nullable().optional(),
50
50
  prev_id: z.number().int().describe("ID of the previous document in the mailbox, or null if this is the first").nullable().optional(),
51
- is_split: z.boolean().describe("Whether the document has been split"),
52
- received: z.string().describe("ISO 8601 timestamp when the document was received"),
51
+ is_split: z.boolean().describe("Whether the document has been split").nullable(),
52
+ received: z.string().describe("ISO 8601 timestamp when the document was received").nullable(),
53
53
  template: z.number().int().describe("ID of the template used to parse the document, or null if none").nullable().optional(),
54
- processed: z.string().describe("ISO 8601 timestamp when the document was processed"),
55
- sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe("List of sample sets associated with this document").optional(),
54
+ processed: z.string().describe("ISO 8601 timestamp when the document was processed").nullable(),
55
+ sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe("List of sample sets associated with this document").nullable().optional(),
56
56
  attached_to: z.number().int().describe("ID of the document this is attached to, or null if standalone").nullable().optional(),
57
- is_ai_ready: z.boolean().describe("Whether the document is ready for AI processing"),
58
- credits_used: z.number().int().describe("Total number of credits consumed processing this document"),
59
- is_ocr_ready: z.boolean().describe("Whether the document is ready for OCR processing"),
57
+ is_ai_ready: z.boolean().describe("Whether the document is ready for AI processing").nullable(),
58
+ credits_used: z.number().int().describe("Total number of credits consumed processing this document").nullable(),
59
+ is_ocr_ready: z.boolean().describe("Whether the document is ready for OCR processing").nullable(),
60
60
  ocr_page_set: z.array(ParseurGetDocument_OcrPageSchema).describe("List of OCR pages extracted from the document").nullable().optional(),
61
- is_splittable: z.boolean().describe("Whether the document can be split into multiple documents"),
61
+ is_splittable: z.boolean().describe("Whether the document can be split into multiple documents").nullable(),
62
62
  ocr_ready_url: z.string().describe("URL to the OCR-ready version of the document, or null if not available").nullable().optional(),
63
63
  status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),
64
- is_processable: z.boolean().describe("Whether the document can be processed"),
65
- ai_credits_used: z.number().int().describe("Number of AI credits used"),
66
- csv_download_url: z.string().describe("URL to download the parsed data in CSV format"),
67
- xls_download_url: z.string().describe("URL to download the parsed data in XLS format"),
68
- json_download_url: z.string().describe("URL to download the parsed data in JSON format"),
69
- match_master_template: z.boolean().describe("Whether the document matches a master template"),
70
- original_document_url: z.string().describe("URL to download the original document"),
71
- conventional_credits_used: z.number().int().describe("Number of conventional (non-AI) credits used")
64
+ is_processable: z.boolean().describe("Whether the document can be processed").nullable(),
65
+ ai_credits_used: z.number().int().describe("Number of AI credits used").nullable(),
66
+ csv_download_url: z.string().describe("URL to download the parsed data in CSV format").nullable(),
67
+ xls_download_url: z.string().describe("URL to download the parsed data in XLS format").nullable(),
68
+ json_download_url: z.string().describe("URL to download the parsed data in JSON format").nullable(),
69
+ match_master_template: z.boolean().describe("Whether the document matches a master template").nullable(),
70
+ original_document_url: z.string().describe("URL to download the original document").nullable(),
71
+ conventional_credits_used: z.number().int().describe("Number of conventional (non-AI) credits used").nullable()
72
72
  })
73
73
  });
74
74
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentInput: z.ZodTypeAny = 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.ZodTypeAny = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the sample set\"),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\"),\n sample_count: z.number().int().describe(\"Number of samples in this set\"),\n});\nconst ParseurGetDocument_OcrPageSchema: z.ZodTypeAny = 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\"),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\"),\n});\nconst ParseurGetDocument_DocumentStatusSourceSchema: z.ZodTypeAny = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\"),\n name: z.string().describe(\"Name of the document\"),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\"),\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\"),\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\"),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\"),\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\"),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").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\"),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\"),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\"),\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\"),\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\"),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\"),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\"),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\"),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\"),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\"),\n original_document_url: z.string().describe(\"URL to download the original document\"),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\"),\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,0BAAwC,EAAE,OAAO,EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACjJ,CAAC;AACD,MAAM,0CAAwD,EAAE,KAAK;CAAC;CAAY;CAAa;CAAY;CAAY;CAAY;CAAY;CAAW;CAAS;CAAY;CAAW;AAAS,CAAC;AACpM,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;AACzE,CAAC;AACD,MAAM,mCAAiD,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CAC1E,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD;AACjG,CAAC;AACD,MAAM,gDAA8D,EAAE,KAAK;CAAC;CAAM;CAAQ;CAAO;CAAY;CAAU;CAAY;AAAW,CAAC;AAiC/I,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArCoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC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e,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D;EAC/F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,eAAe,8CAA8C,SAAS,CAAC,CAAC,SAAS;EACjF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;EAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;EACtE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACrF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACrF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EACvF,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;EAC5F,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAClF,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACrG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to retrieve. Obtain this ID from the List Documents action or webhook payloads.\"),\n});\nconst ParseurGetDocument_DocumentStatusSchema = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in this set\").nullable(),\n});\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,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACjJ,CAAC;AACD,MAAM,0CAA0C,EAAE,KAAK;CAAC;CAAY;CAAa;CAAY;CAAY;CAAY;CAAY;CAAW;CAAS;CAAY;CAAW;AAAS,CAAC;AACtL,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACtG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACpF,CAAC;AACD,MAAM,mCAAmC,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAChE,UAAU,EAAE,OAAO,CAAC,CA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,CAAC,SAAS;EACvG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7F,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAChH,CAOU;AACV,CAAC"}
@@ -3,7 +3,7 @@ let zod = require("zod");
3
3
  //#region src/actions/get-mailbox-schema.ts
4
4
  const ParseurGetMailboxSchemaInput = zod.z.object({ mailbox_id: zod.z.string().describe("The unique identifier (numeric ID) of the mailbox to retrieve the schema for. Obtain this ID from the List Mailboxes action.") }).describe("Request parameters for retrieving mailbox schema.");
5
5
  const ParseurGetMailboxSchemaOutput = zod.z.object({
6
- type: zod.z.string().describe("The schema type (typically 'object' for JSON Schema)."),
6
+ type: zod.z.string().describe("The schema type (typically 'object' for JSON Schema).").nullable(),
7
7
  properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dictionary of field names to their JSON Schema definitions, describing each parsed field in the mailbox.")
8
8
  }).describe("JSON schema describing the parsed fields for the mailbox.");
9
9
  const parseurGetMailboxSchema = require_action.action("PARSEUR_GET_MAILBOX_SCHEMA", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailbox-schema.cjs","names":["z","action"],"sources":["../../src/actions/get-mailbox-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetMailboxSchemaInput: z.ZodTypeAny = z.object({\n mailbox_id: z.string().describe(\"The unique identifier (numeric ID) of the mailbox to retrieve the schema for. Obtain this ID from the List Mailboxes action.\"),\n}).describe(\"Request parameters for retrieving mailbox schema.\");\nexport const ParseurGetMailboxSchemaOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The schema type (typically 'object' for JSON Schema).\"),\n properties: z.record(z.string(), z.unknown()).describe(\"Dictionary of field names to their JSON Schema definitions, describing each parsed field in the mailbox.\"),\n}).describe(\"JSON schema describing the parsed fields for the mailbox.\");\n\nexport const parseurGetMailboxSchema = action(\"PARSEUR_GET_MAILBOX_SCHEMA\", {\n slug: \"parseur-get-mailbox-schema\",\n name: \"Get Mailbox Schema\",\n description: \"Tool to retrieve the JSON schema for a mailbox's parsed fields. Use when you need to understand the structure and types of data fields extracted by a specific parser.\",\n input: ParseurGetMailboxSchemaInput,\n output: ParseurGetMailboxSchemaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACnK,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-mailbox-schema.cjs","names":["z","action"],"sources":["../../src/actions/get-mailbox-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetMailboxSchemaInput = z.object({\n mailbox_id: z.string().describe(\"The unique identifier (numeric ID) of the mailbox to retrieve the schema for. Obtain this ID from the List Mailboxes action.\"),\n}).describe(\"Request parameters for retrieving mailbox schema.\");\nexport const ParseurGetMailboxSchemaOutput = z.object({\n type: z.string().describe(\"The schema type (typically 'object' for JSON Schema).\").nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Dictionary of field names to their JSON Schema definitions, describing each parsed field in the mailbox.\"),\n}).describe(\"JSON schema describing the parsed fields for the mailbox.\");\n\nexport const parseurGetMailboxSchema = action(\"PARSEUR_GET_MAILBOX_SCHEMA\", {\n slug: \"parseur-get-mailbox-schema\",\n name: \"Get Mailbox Schema\",\n description: \"Tool to retrieve the JSON schema for a mailbox's parsed fields. Use when you need to understand the structure and types of data fields extracted by a specific parser.\",\n input: ParseurGetMailboxSchemaInput,\n output: ParseurGetMailboxSchemaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACnK,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}