@keystrokehq/parseur 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/copy-document.cjs +2 -2
  4. package/dist/actions/copy-document.cjs.map +1 -1
  5. package/dist/actions/copy-document.d.cts +13 -3
  6. package/dist/actions/copy-document.d.cts.map +1 -1
  7. package/dist/actions/copy-document.d.mts +13 -3
  8. package/dist/actions/copy-document.d.mts.map +1 -1
  9. package/dist/actions/copy-document.mjs +2 -2
  10. package/dist/actions/copy-document.mjs.map +1 -1
  11. package/dist/actions/copy-mailbox.cjs +2 -2
  12. package/dist/actions/copy-mailbox.cjs.map +1 -1
  13. package/dist/actions/copy-mailbox.d.cts +11 -3
  14. package/dist/actions/copy-mailbox.d.cts.map +1 -1
  15. package/dist/actions/copy-mailbox.d.mts +11 -3
  16. package/dist/actions/copy-mailbox.d.mts.map +1 -1
  17. package/dist/actions/copy-mailbox.mjs +2 -2
  18. package/dist/actions/copy-mailbox.mjs.map +1 -1
  19. package/dist/actions/create-custom-download.cjs +4 -4
  20. package/dist/actions/create-custom-download.cjs.map +1 -1
  21. package/dist/actions/create-custom-download.d.cts +38 -3
  22. package/dist/actions/create-custom-download.d.cts.map +1 -1
  23. package/dist/actions/create-custom-download.d.mts +38 -3
  24. package/dist/actions/create-custom-download.d.mts.map +1 -1
  25. package/dist/actions/create-custom-download.mjs +4 -4
  26. package/dist/actions/create-custom-download.mjs.map +1 -1
  27. package/dist/actions/create-mailbox.cjs +35 -35
  28. package/dist/actions/create-mailbox.cjs.map +1 -1
  29. package/dist/actions/create-mailbox.d.cts +187 -3
  30. package/dist/actions/create-mailbox.d.cts.map +1 -1
  31. package/dist/actions/create-mailbox.d.mts +187 -3
  32. package/dist/actions/create-mailbox.d.mts.map +1 -1
  33. package/dist/actions/create-mailbox.mjs +35 -35
  34. package/dist/actions/create-mailbox.mjs.map +1 -1
  35. package/dist/actions/delete-custom-download.cjs +1 -1
  36. package/dist/actions/delete-custom-download.cjs.map +1 -1
  37. package/dist/actions/delete-custom-download.d.cts +11 -3
  38. package/dist/actions/delete-custom-download.d.cts.map +1 -1
  39. package/dist/actions/delete-custom-download.d.mts +11 -3
  40. package/dist/actions/delete-custom-download.d.mts.map +1 -1
  41. package/dist/actions/delete-custom-download.mjs +1 -1
  42. package/dist/actions/delete-custom-download.mjs.map +1 -1
  43. package/dist/actions/delete-document.cjs +1 -1
  44. package/dist/actions/delete-document.cjs.map +1 -1
  45. package/dist/actions/delete-document.d.cts +9 -3
  46. package/dist/actions/delete-document.d.cts.map +1 -1
  47. package/dist/actions/delete-document.d.mts +9 -3
  48. package/dist/actions/delete-document.d.mts.map +1 -1
  49. package/dist/actions/delete-document.mjs +1 -1
  50. package/dist/actions/delete-document.mjs.map +1 -1
  51. package/dist/actions/delete-mailbox.cjs +2 -2
  52. package/dist/actions/delete-mailbox.cjs.map +1 -1
  53. package/dist/actions/delete-mailbox.d.cts +11 -3
  54. package/dist/actions/delete-mailbox.d.cts.map +1 -1
  55. package/dist/actions/delete-mailbox.d.mts +11 -3
  56. package/dist/actions/delete-mailbox.d.mts.map +1 -1
  57. package/dist/actions/delete-mailbox.mjs +2 -2
  58. package/dist/actions/delete-mailbox.mjs.map +1 -1
  59. package/dist/actions/delete-webhook.cjs +1 -1
  60. package/dist/actions/delete-webhook.cjs.map +1 -1
  61. package/dist/actions/delete-webhook.d.cts +9 -3
  62. package/dist/actions/delete-webhook.d.cts.map +1 -1
  63. package/dist/actions/delete-webhook.d.mts +9 -3
  64. package/dist/actions/delete-webhook.d.mts.map +1 -1
  65. package/dist/actions/delete-webhook.mjs +1 -1
  66. package/dist/actions/delete-webhook.mjs.map +1 -1
  67. package/dist/actions/disable-webhook.cjs +8 -8
  68. package/dist/actions/disable-webhook.cjs.map +1 -1
  69. package/dist/actions/disable-webhook.d.cts +47 -3
  70. package/dist/actions/disable-webhook.d.cts.map +1 -1
  71. package/dist/actions/disable-webhook.d.mts +47 -3
  72. package/dist/actions/disable-webhook.d.mts.map +1 -1
  73. package/dist/actions/disable-webhook.mjs +8 -8
  74. package/dist/actions/disable-webhook.mjs.map +1 -1
  75. package/dist/actions/enable-webhook.cjs +6 -6
  76. package/dist/actions/enable-webhook.cjs.map +1 -1
  77. package/dist/actions/enable-webhook.d.cts +26 -3
  78. package/dist/actions/enable-webhook.d.cts.map +1 -1
  79. package/dist/actions/enable-webhook.d.mts +26 -3
  80. package/dist/actions/enable-webhook.d.mts.map +1 -1
  81. package/dist/actions/enable-webhook.mjs +6 -6
  82. package/dist/actions/enable-webhook.mjs.map +1 -1
  83. package/dist/actions/get-bootstrap-config.cjs +18 -18
  84. package/dist/actions/get-bootstrap-config.cjs.map +1 -1
  85. package/dist/actions/get-bootstrap-config.d.cts +54 -3
  86. package/dist/actions/get-bootstrap-config.d.cts.map +1 -1
  87. package/dist/actions/get-bootstrap-config.d.mts +54 -3
  88. package/dist/actions/get-bootstrap-config.d.mts.map +1 -1
  89. package/dist/actions/get-bootstrap-config.mjs +18 -18
  90. package/dist/actions/get-bootstrap-config.mjs.map +1 -1
  91. package/dist/actions/get-document-logs.cjs +15 -15
  92. package/dist/actions/get-document-logs.cjs.map +1 -1
  93. package/dist/actions/get-document-logs.d.cts +34 -3
  94. package/dist/actions/get-document-logs.d.cts.map +1 -1
  95. package/dist/actions/get-document-logs.d.mts +34 -3
  96. package/dist/actions/get-document-logs.d.mts.map +1 -1
  97. package/dist/actions/get-document-logs.mjs +15 -15
  98. package/dist/actions/get-document-logs.mjs.map +1 -1
  99. package/dist/actions/get-document.cjs +29 -29
  100. package/dist/actions/get-document.cjs.map +1 -1
  101. package/dist/actions/get-document.d.cts +65 -3
  102. package/dist/actions/get-document.d.cts.map +1 -1
  103. package/dist/actions/get-document.d.mts +65 -3
  104. package/dist/actions/get-document.d.mts.map +1 -1
  105. package/dist/actions/get-document.mjs +29 -29
  106. package/dist/actions/get-document.mjs.map +1 -1
  107. package/dist/actions/get-mailbox-schema.cjs +2 -2
  108. package/dist/actions/get-mailbox-schema.cjs.map +1 -1
  109. package/dist/actions/get-mailbox-schema.d.cts +10 -3
  110. package/dist/actions/get-mailbox-schema.d.cts.map +1 -1
  111. package/dist/actions/get-mailbox-schema.d.mts +10 -3
  112. package/dist/actions/get-mailbox-schema.d.mts.map +1 -1
  113. package/dist/actions/get-mailbox-schema.mjs +2 -2
  114. package/dist/actions/get-mailbox-schema.mjs.map +1 -1
  115. package/dist/actions/get-mailbox.cjs +43 -43
  116. package/dist/actions/get-mailbox.cjs.map +1 -1
  117. package/dist/actions/get-mailbox.d.cts +147 -3
  118. package/dist/actions/get-mailbox.d.cts.map +1 -1
  119. package/dist/actions/get-mailbox.d.mts +147 -3
  120. package/dist/actions/get-mailbox.d.mts.map +1 -1
  121. package/dist/actions/get-mailbox.mjs +43 -43
  122. package/dist/actions/get-mailbox.mjs.map +1 -1
  123. package/dist/actions/list-custom-downloads.cjs +9 -9
  124. package/dist/actions/list-custom-downloads.cjs.map +1 -1
  125. package/dist/actions/list-custom-downloads.d.cts +21 -3
  126. package/dist/actions/list-custom-downloads.d.cts.map +1 -1
  127. package/dist/actions/list-custom-downloads.d.mts +21 -3
  128. package/dist/actions/list-custom-downloads.d.mts.map +1 -1
  129. package/dist/actions/list-custom-downloads.mjs +9 -9
  130. package/dist/actions/list-custom-downloads.mjs.map +1 -1
  131. package/dist/actions/list-documents-in-mailbox.cjs +10 -10
  132. package/dist/actions/list-documents-in-mailbox.cjs.map +1 -1
  133. package/dist/actions/list-documents-in-mailbox.d.cts +49 -3
  134. package/dist/actions/list-documents-in-mailbox.d.cts.map +1 -1
  135. package/dist/actions/list-documents-in-mailbox.d.mts +49 -3
  136. package/dist/actions/list-documents-in-mailbox.d.mts.map +1 -1
  137. package/dist/actions/list-documents-in-mailbox.mjs +10 -10
  138. package/dist/actions/list-documents-in-mailbox.mjs.map +1 -1
  139. package/dist/actions/list-mailboxes2.cjs +13 -13
  140. package/dist/actions/list-mailboxes2.cjs.map +1 -1
  141. package/dist/actions/list-mailboxes2.d.cts +120 -3
  142. package/dist/actions/list-mailboxes2.d.cts.map +1 -1
  143. package/dist/actions/list-mailboxes2.d.mts +120 -3
  144. package/dist/actions/list-mailboxes2.d.mts.map +1 -1
  145. package/dist/actions/list-mailboxes2.mjs +13 -13
  146. package/dist/actions/list-mailboxes2.mjs.map +1 -1
  147. package/dist/actions/list-templates.cjs +12 -12
  148. package/dist/actions/list-templates.cjs.map +1 -1
  149. package/dist/actions/list-templates.d.cts +41 -3
  150. package/dist/actions/list-templates.d.cts.map +1 -1
  151. package/dist/actions/list-templates.d.mts +41 -3
  152. package/dist/actions/list-templates.d.mts.map +1 -1
  153. package/dist/actions/list-templates.mjs +12 -12
  154. package/dist/actions/list-templates.mjs.map +1 -1
  155. package/dist/actions/reprocess-document.cjs +2 -2
  156. package/dist/actions/reprocess-document.cjs.map +1 -1
  157. package/dist/actions/reprocess-document.d.cts +11 -3
  158. package/dist/actions/reprocess-document.d.cts.map +1 -1
  159. package/dist/actions/reprocess-document.d.mts +11 -3
  160. package/dist/actions/reprocess-document.d.mts.map +1 -1
  161. package/dist/actions/reprocess-document.mjs +2 -2
  162. package/dist/actions/reprocess-document.mjs.map +1 -1
  163. package/dist/actions/retrieve-webhook.cjs +6 -6
  164. package/dist/actions/retrieve-webhook.cjs.map +1 -1
  165. package/dist/actions/retrieve-webhook.d.cts +23 -3
  166. package/dist/actions/retrieve-webhook.d.cts.map +1 -1
  167. package/dist/actions/retrieve-webhook.d.mts +23 -3
  168. package/dist/actions/retrieve-webhook.d.mts.map +1 -1
  169. package/dist/actions/retrieve-webhook.mjs +6 -6
  170. package/dist/actions/retrieve-webhook.mjs.map +1 -1
  171. package/dist/actions/skip-document.cjs +30 -30
  172. package/dist/actions/skip-document.cjs.map +1 -1
  173. package/dist/actions/skip-document.d.cts +45 -3
  174. package/dist/actions/skip-document.d.cts.map +1 -1
  175. package/dist/actions/skip-document.d.mts +45 -3
  176. package/dist/actions/skip-document.d.mts.map +1 -1
  177. package/dist/actions/skip-document.mjs +30 -30
  178. package/dist/actions/skip-document.mjs.map +1 -1
  179. package/dist/actions/update-custom-download.cjs +5 -5
  180. package/dist/actions/update-custom-download.cjs.map +1 -1
  181. package/dist/actions/update-custom-download.d.cts +34 -3
  182. package/dist/actions/update-custom-download.d.cts.map +1 -1
  183. package/dist/actions/update-custom-download.d.mts +34 -3
  184. package/dist/actions/update-custom-download.d.mts.map +1 -1
  185. package/dist/actions/update-custom-download.mjs +5 -5
  186. package/dist/actions/update-custom-download.mjs.map +1 -1
  187. package/dist/actions/update-mailbox.cjs +37 -37
  188. package/dist/actions/update-mailbox.cjs.map +1 -1
  189. package/dist/actions/update-mailbox.d.cts +197 -3
  190. package/dist/actions/update-mailbox.d.cts.map +1 -1
  191. package/dist/actions/update-mailbox.d.mts +197 -3
  192. package/dist/actions/update-mailbox.d.mts.map +1 -1
  193. package/dist/actions/update-mailbox.mjs +37 -37
  194. package/dist/actions/update-mailbox.mjs.map +1 -1
  195. package/dist/actions/update-webhook.cjs +7 -7
  196. package/dist/actions/update-webhook.cjs.map +1 -1
  197. package/dist/actions/update-webhook.d.cts +37 -3
  198. package/dist/actions/update-webhook.d.cts.map +1 -1
  199. package/dist/actions/update-webhook.d.mts +37 -3
  200. package/dist/actions/update-webhook.d.mts.map +1 -1
  201. package/dist/actions/update-webhook.mjs +7 -7
  202. package/dist/actions/update-webhook.mjs.map +1 -1
  203. package/dist/actions/upload-email-document.cjs +1 -1
  204. package/dist/actions/upload-email-document.cjs.map +1 -1
  205. package/dist/actions/upload-email-document.d.cts +25 -3
  206. package/dist/actions/upload-email-document.d.cts.map +1 -1
  207. package/dist/actions/upload-email-document.d.mts +25 -3
  208. package/dist/actions/upload-email-document.d.mts.map +1 -1
  209. package/dist/actions/upload-email-document.mjs +1 -1
  210. package/dist/actions/upload-email-document.mjs.map +1 -1
  211. package/dist/catalog.cjs +7 -1
  212. package/dist/catalog.cjs.map +1 -1
  213. package/dist/catalog.d.cts +8 -0
  214. package/dist/catalog.d.mts +8 -0
  215. package/dist/catalog.mjs +7 -1
  216. package/dist/catalog.mjs.map +1 -1
  217. package/package.json +2 -2
@@ -1,9 +1,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.$loose>>>>>;
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.ZodRecord<z.ZodString, z.ZodUnknown>;
43
+ position: z.ZodNullable<z.ZodNumber>;
44
+ included_in_range: z.ZodNullable<z.ZodBoolean>;
45
+ }, z.core.$loose>>>>;
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.$loose>;
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.$loose>>>>>;
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.ZodRecord<z.ZodString, z.ZodUnknown>;
43
+ position: z.ZodNullable<z.ZodNumber>;
44
+ included_in_range: z.ZodNullable<z.ZodBoolean>;
45
+ }, z.core.$loose>>>>;
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.$loose>;
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,15 +16,15 @@ 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")
22
- });
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
+ }).passthrough();
23
23
  const ParseurGetDocument_OcrPageSchema = z.object({
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")
27
- });
24
+ image: z.record(z.string(), z.unknown()).describe("Image object containing page data"),
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
+ }).passthrough();
28
28
  const ParseurGetDocument_DocumentStatusSourceSchema = z.enum([
29
29
  "AI",
30
30
  "AUTO",
@@ -40,36 +40,36 @@ 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")
72
- })
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
+ }).passthrough()
73
73
  });
74
74
  //#endregion
75
75
  export { parseurGetDocument };
@@ -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":"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"}
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}).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":"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"}
@@ -3,9 +3,9 @@ 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
- }).describe("JSON schema describing the parsed fields for the mailbox.");
8
+ }).passthrough().describe("JSON schema describing the parsed fields for the mailbox.");
9
9
  const parseurGetMailboxSchema = require_action.action("PARSEUR_GET_MAILBOX_SCHEMA", {
10
10
  slug: "parseur-get-mailbox-schema",
11
11
  name: "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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-mailbox-schema.d.ts
4
- declare const ParseurGetMailboxSchemaInput: z.ZodTypeAny;
5
- declare const ParseurGetMailboxSchemaOutput: z.ZodTypeAny;
6
- declare const parseurGetMailboxSchema: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurGetMailboxSchemaInput: z.ZodObject<{
5
+ mailbox_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParseurGetMailboxSchemaOutput: z.ZodObject<{
8
+ type: z.ZodNullable<z.ZodString>;
9
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
+ }, z.core.$loose>;
11
+ declare const parseurGetMailboxSchema: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ mailbox_id: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { parseurGetMailboxSchema };
9
16
  //# sourceMappingURL=get-mailbox-schema.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailbox-schema.d.cts","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEmB;AAAA,cACnD,6BAAA,EAA+B,CAAA,CAAE,UAG0B;AAAA,cAE3D,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-mailbox-schema.d.cts","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-mailbox-schema.d.ts
4
- declare const ParseurGetMailboxSchemaInput: z.ZodTypeAny;
5
- declare const ParseurGetMailboxSchemaOutput: z.ZodTypeAny;
6
- declare const parseurGetMailboxSchema: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseurGetMailboxSchemaInput: z.ZodObject<{
5
+ mailbox_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParseurGetMailboxSchemaOutput: z.ZodObject<{
8
+ type: z.ZodNullable<z.ZodString>;
9
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
+ }, z.core.$loose>;
11
+ declare const parseurGetMailboxSchema: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ mailbox_id: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { parseurGetMailboxSchema };
9
16
  //# sourceMappingURL=get-mailbox-schema.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailbox-schema.d.mts","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEmB;AAAA,cACnD,6BAAA,EAA+B,CAAA,CAAE,UAG0B;AAAA,cAE3D,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-mailbox-schema.d.mts","names":[],"sources":["../../src/actions/get-mailbox-schema.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
@@ -6,9 +6,9 @@ const parseurGetMailboxSchema = action("PARSEUR_GET_MAILBOX_SCHEMA", {
6
6
  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.",
7
7
  input: z.object({ 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.") }).describe("Request parameters for retrieving mailbox schema."),
8
8
  output: z.object({
9
- type: z.string().describe("The schema type (typically 'object' for JSON Schema)."),
9
+ type: z.string().describe("The schema type (typically 'object' for JSON Schema).").nullable(),
10
10
  properties: z.record(z.string(), z.unknown()).describe("Dictionary of field names to their JSON Schema definitions, describing each parsed field in the mailbox.")
11
- }).describe("JSON schema describing the parsed fields for the mailbox.")
11
+ }).passthrough().describe("JSON schema describing the parsed fields for the mailbox.")
12
12
  });
13
13
  //#endregion
14
14
  export { parseurGetMailboxSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailbox-schema.mjs","names":[],"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":";;AAYA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwD,EAAE,OAAO,EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC,CAAC,CAAC,SAAS,mDAUH;CACP,QAVyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACjF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G;CACnK,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-mailbox-schema.mjs","names":[],"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}).passthrough().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":";;AAYA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ0C,EAAE,OAAO,EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,EAChK,CAAC,CAAC,CAAC,SAAS,mDAUH;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G;CACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
@@ -3,32 +3,32 @@ let zod = require("zod");
3
3
  //#region src/actions/get-mailbox.ts
4
4
  const ParseurGetMailboxInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier (numeric ID) of the mailbox to retrieve. Obtain this from the List Mailboxes action.") }).describe("Request parameters for getting a mailbox by ID.");
5
5
  const ParseurGetMailbox_TableItemSchema = zod.z.object({
6
- id: zod.z.string().describe("Unique identifier for the table."),
7
- name: zod.z.string().describe("Display name of the table.")
8
- }).describe("A table configuration.");
6
+ id: zod.z.string().describe("Unique identifier for the table.").nullable(),
7
+ name: zod.z.string().describe("Display name of the table.").nullable()
8
+ }).passthrough().describe("A table configuration.");
9
9
  const ParseurGetMailbox_WebhookSchema = zod.z.object({
10
- id: zod.z.number().int().describe("Unique identifier for the webhook."),
10
+ id: zod.z.number().int().describe("Unique identifier for the webhook.").nullable(),
11
11
  name: zod.z.string().describe("Custom name for the webhook.").nullable().optional(),
12
- event: zod.z.string().describe("Event type that triggers this webhook."),
13
- target: zod.z.string().describe("URL where webhook payloads are sent."),
14
- headers: zod.z.object({}).describe("Custom HTTP headers for webhook requests.").nullable().optional(),
15
- category: zod.z.string().describe("Category of the webhook."),
12
+ event: zod.z.string().describe("Event type that triggers this webhook.").nullable(),
13
+ target: zod.z.string().describe("URL where webhook payloads are sent.").nullable(),
14
+ headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom HTTP headers for webhook requests.").nullable().optional(),
15
+ category: zod.z.string().describe("Category of the webhook.").nullable(),
16
16
  parser_field_set: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Parser fields associated with this webhook.").nullable().optional()
17
- }).describe("A webhook configuration.");
17
+ }).passthrough().describe("A webhook configuration.");
18
18
  const ParseurGetMailbox_PageRangeSchema = zod.z.object({
19
19
  end_index: zod.z.number().int().describe("End page index (inclusive), or null for open-ended range.").nullable().optional(),
20
- start_index: zod.z.number().int().describe("Start page index (inclusive).")
21
- }).describe("Page range specification.");
20
+ start_index: zod.z.number().int().describe("Start page index (inclusive).").nullable()
21
+ }).passthrough().describe("Page range specification.");
22
22
  const ParseurGetMailbox_SplitKeywordsSchema = zod.z.object({
23
- keyword: zod.z.string().describe("The keyword to look for when splitting."),
24
- is_before: zod.z.boolean().describe("Whether to split before or after the keyword.")
25
- }).describe("Split keywords configuration.");
23
+ keyword: zod.z.string().describe("The keyword to look for when splitting.").nullable(),
24
+ is_before: zod.z.boolean().describe("Whether to split before or after the keyword.").nullable()
25
+ }).passthrough().describe("Split keywords configuration.");
26
26
  const ParseurGetMailbox_ParserObjectSchema = zod.z.object({
27
- id: zod.z.string().describe("Unique identifier for this field."),
28
- name: zod.z.string().describe("Display name of the field."),
27
+ id: zod.z.string().describe("Unique identifier for this field.").nullable(),
28
+ name: zod.z.string().describe("Display name of the field.").nullable(),
29
29
  type: zod.z.string().describe("Type of the parser object.").nullable().optional(),
30
30
  query: zod.z.string().describe("Query used to extract this field.").nullable().optional(),
31
- format: zod.z.string().describe("Format type of the field."),
31
+ format: zod.z.string().describe("Format type of the field.").nullable(),
32
32
  choice_set: zod.z.array(zod.z.string()).describe("List of valid choices for this field.").nullable().optional(),
33
33
  used_by_ai: zod.z.boolean().describe("Whether this field is used by AI.").nullable().optional(),
34
34
  is_required: zod.z.boolean().describe("Whether this field is required.").nullable().optional(),
@@ -36,51 +36,51 @@ const ParseurGetMailbox_ParserObjectSchema = zod.z.object({
36
36
  xls_download: zod.z.string().describe("URL to download XLS data for this field.").nullable().optional(),
37
37
  json_download: zod.z.string().describe("URL to download JSON data for this field.").nullable().optional(),
38
38
  parser_object_set: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Nested parser objects for complex structures.").nullable().optional()
39
- }).describe("A parser field or metadata output.");
39
+ }).passthrough().describe("A parser field or metadata output.");
40
40
  const ParseurGetMailbox_DocumentPerStatusCountSchema = zod.z.object({
41
- SPLIT: zod.z.number().int().describe("Files split into multiple documents."),
42
- INVALID: zod.z.number().int().describe("Files not processed because they are not supported."),
43
- SKIPPED: zod.z.number().int().describe("Files skipped because of a template."),
44
- TRANSKO: zod.z.number().int().describe("Files where Python post-processing failed."),
45
- EXPORTKO: zod.z.number().int().describe("Files where exporting data failed."),
46
- INCOMING: zod.z.number().int().describe("Files received but awaiting processing."),
47
- PARSEDKO: zod.z.number().int().describe("Files where processing failed."),
48
- PARSEDOK: zod.z.number().int().describe("Files successfully processed with data available for export."),
49
- PROGRESS: zod.z.number().int().describe("Files currently being processed by AI engine."),
50
- QUOTAEXC: zod.z.number().int().describe("Files stopped due to insufficient credits."),
51
- ANALYZING: zod.z.number().int().describe("Files being analyzed against system parameters.")
52
- }).describe("Breakdown of documents by processing status.");
41
+ SPLIT: zod.z.number().int().describe("Files split into multiple documents.").nullable(),
42
+ INVALID: zod.z.number().int().describe("Files not processed because they are not supported.").nullable(),
43
+ SKIPPED: zod.z.number().int().describe("Files skipped because of a template.").nullable(),
44
+ TRANSKO: zod.z.number().int().describe("Files where Python post-processing failed.").nullable(),
45
+ EXPORTKO: zod.z.number().int().describe("Files where exporting data failed.").nullable(),
46
+ INCOMING: zod.z.number().int().describe("Files received but awaiting processing.").nullable(),
47
+ PARSEDKO: zod.z.number().int().describe("Files where processing failed.").nullable(),
48
+ PARSEDOK: zod.z.number().int().describe("Files successfully processed with data available for export.").nullable(),
49
+ PROGRESS: zod.z.number().int().describe("Files currently being processed by AI engine.").nullable(),
50
+ QUOTAEXC: zod.z.number().int().describe("Files stopped due to insufficient credits.").nullable(),
51
+ ANALYZING: zod.z.number().int().describe("Files being analyzed against system parameters.").nullable()
52
+ }).passthrough().describe("Breakdown of documents by processing status.");
53
53
  const ParseurGetMailboxOutput = zod.z.object({
54
- id: zod.z.number().int().describe("Internal ID number for the parser."),
54
+ id: zod.z.number().int().describe("Internal ID number for the parser.").nullable(),
55
55
  name: zod.z.string().describe("Name of the parser.").nullable().optional(),
56
- secret: zod.z.string().describe("Secret key for the parser."),
56
+ secret: zod.z.string().describe("Secret key for the parser.").nullable(),
57
57
  cc_field: zod.z.boolean().describe("Whether CC metadata field is enabled.").nullable().optional(),
58
58
  to_field: zod.z.boolean().describe("Whether To metadata field is enabled.").nullable().optional(),
59
59
  ai_engine: zod.z.string().describe("AI engine used by this parser.").nullable().optional(),
60
60
  bcc_field: zod.z.boolean().describe("Whether BCC metadata field is enabled.").nullable().optional(),
61
61
  force_ocr: zod.z.boolean().describe("Whether Parseur runs OCR on every document.").nullable().optional(),
62
- is_master: zod.z.boolean().describe("Whether this is a master parser that passes instructions on."),
62
+ is_master: zod.z.boolean().describe("Whether this is a master parser that passes instructions on.").nullable(),
63
63
  odd_pages: zod.z.boolean().describe("Whether to process only odd page numbers.").nullable().optional(),
64
64
  table_set: zod.z.array(ParseurGetMailbox_TableItemSchema).describe("List of tables configured in the parser."),
65
65
  transform: zod.z.string().describe("Python transformation code.").nullable().optional(),
66
66
  even_pages: zod.z.boolean().describe("Whether to process only even page numbers.").nullable().optional(),
67
67
  split_page: zod.z.number().int().describe("Number of pages to use for splitting documents.").nullable().optional(),
68
68
  webhook_set: zod.z.array(ParseurGetMailbox_WebhookSchema).describe("List of webhooks configured for the parser.").nullable().optional(),
69
- account_uuid: zod.z.string().describe("Universally Unique Identifier for the account."),
70
- csv_download: zod.z.string().describe("URL to download CSV data."),
69
+ account_uuid: zod.z.string().describe("Universally Unique Identifier for the account.").nullable(),
70
+ csv_download: zod.z.string().describe("URL to download CSV data.").nullable(),
71
71
  email_prefix: zod.z.string().describe("Email prefix for the parser.").nullable().optional(),
72
72
  sender_field: zod.z.boolean().describe("Whether Sender metadata field is enabled.").nullable().optional(),
73
- xls_download: zod.z.string().describe("URL to download XLS data."),
74
- can_transform: zod.z.boolean().describe("Whether Python Post-Processing is enabled."),
73
+ xls_download: zod.z.string().describe("URL to download XLS data.").nullable(),
74
+ can_transform: zod.z.boolean().describe("Whether Python Post-Processing is enabled.").nullable(),
75
75
  content_field: zod.z.boolean().describe("Whether Content metadata field is enabled.").nullable().optional(),
76
76
  expand_result: zod.z.boolean().describe("Whether to expand result output.").nullable().optional(),
77
77
  headers_field: zod.z.boolean().describe("Whether Headers metadata field is enabled.").nullable().optional(),
78
- json_download: zod.z.string().describe("URL to download JSON data."),
79
- last_activity: zod.z.string().describe("ISO 8601 timestamp of last activity."),
78
+ json_download: zod.z.string().describe("URL to download JSON data.").nullable(),
79
+ last_activity: zod.z.string().describe("ISO 8601 timestamp of last activity.").nullable(),
80
80
  subject_field: zod.z.boolean().describe("Whether Subject metadata field is enabled.").nullable().optional(),
81
81
  webhook_count: zod.z.number().int().describe("Number of webhooks the parser has.").nullable().optional(),
82
82
  disable_deskew: zod.z.boolean().describe("Whether deskew is disabled.").nullable().optional(),
83
- document_count: zod.z.number().int().describe("Total number of documents in the parser."),
83
+ document_count: zod.z.number().int().describe("Total number of documents in the parser.").nullable(),
84
84
  page_range_set: zod.z.array(ParseurGetMailbox_PageRangeSchema).describe("Range of pages set to be processed.").nullable().optional(),
85
85
  received_field: zod.z.boolean().describe("Whether Received metadata field is enabled.").nullable().optional(),
86
86
  reply_to_field: zod.z.boolean().describe("Whether ReplyTo metadata field is enabled.").nullable().optional(),
@@ -91,7 +91,7 @@ const ParseurGetMailboxOutput = zod.z.object({
91
91
  parent_id_field: zod.z.boolean().describe("Whether ParentID metadata field is enabled.").nullable().optional(),
92
92
  processed_field: zod.z.boolean().describe("Whether Processed metadata field is enabled.").nullable().optional(),
93
93
  recipient_field: zod.z.boolean().describe("Whether Recipient metadata field is enabled.").nullable().optional(),
94
- attachments_only: zod.z.boolean().describe("Whether the parser skips email processing."),
94
+ attachments_only: zod.z.boolean().describe("Whether the parser skips email processing.").nullable(),
95
95
  default_timezone: zod.z.string().describe("Default timezone for the parser.").nullable().optional(),
96
96
  last_reply_field: zod.z.boolean().describe("Whether LastReply metadata field is enabled.").nullable().optional(),
97
97
  mailbox_id_field: zod.z.boolean().describe("Whether MailboxID metadata field is enabled.").nullable().optional(),
@@ -110,7 +110,7 @@ const ParseurGetMailboxOutput = zod.z.object({
110
110
  master_parser_name: zod.z.string().describe("Name of this parser's master parser.").nullable().optional(),
111
111
  master_parser_slug: zod.z.string().describe("Slug identifier of the master parser.").nullable().optional(),
112
112
  html_document_field: zod.z.boolean().describe("Whether HTMLDocument metadata field is enabled.").nullable().optional(),
113
- parser_object_count: zod.z.number().int().describe("Total number of field and metadata outputs in the parser."),
113
+ parser_object_count: zod.z.number().int().describe("Total number of field and metadata outputs in the parser.").nullable(),
114
114
  process_attachments: zod.z.boolean().describe("Whether email attachment processing is enabled.").nullable().optional(),
115
115
  received_date_field: zod.z.boolean().describe("Whether ReceivedDate metadata field is enabled.").nullable().optional(),
116
116
  received_time_field: zod.z.boolean().describe("Whether ReceivedTime metadata field is enabled.").nullable().optional(),
@@ -137,7 +137,7 @@ const ParseurGetMailboxOutput = zod.z.object({
137
137
  template_set_last_modified: zod.z.string().describe("ISO 8601 timestamp when template set was last modified.").nullable().optional(),
138
138
  parser_object_set_last_modified: zod.z.string().describe("ISO 8601 timestamp when parser object set was last modified.").nullable().optional(),
139
139
  use_whitelist_instead_of_blacklist: zod.z.boolean().describe("Whether to use whitelist instead of blacklist.").nullable().optional()
140
- }).describe("Complete mailbox configuration and details.");
140
+ }).passthrough().describe("Complete mailbox configuration and details.");
141
141
  const parseurGetMailbox = require_action.action("PARSEUR_GET_MAILBOX", {
142
142
  slug: "parseur-get-mailbox",
143
143
  name: "Get Mailbox by ID",