@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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/copy-document.cjs +2 -2
- package/dist/actions/copy-document.cjs.map +1 -1
- package/dist/actions/copy-document.d.cts +13 -3
- package/dist/actions/copy-document.d.cts.map +1 -1
- package/dist/actions/copy-document.d.mts +13 -3
- package/dist/actions/copy-document.d.mts.map +1 -1
- package/dist/actions/copy-document.mjs +2 -2
- package/dist/actions/copy-document.mjs.map +1 -1
- package/dist/actions/copy-mailbox.cjs +2 -2
- package/dist/actions/copy-mailbox.cjs.map +1 -1
- package/dist/actions/copy-mailbox.d.cts +11 -3
- package/dist/actions/copy-mailbox.d.cts.map +1 -1
- package/dist/actions/copy-mailbox.d.mts +11 -3
- package/dist/actions/copy-mailbox.d.mts.map +1 -1
- package/dist/actions/copy-mailbox.mjs +2 -2
- package/dist/actions/copy-mailbox.mjs.map +1 -1
- package/dist/actions/create-custom-download.cjs +4 -4
- package/dist/actions/create-custom-download.cjs.map +1 -1
- package/dist/actions/create-custom-download.d.cts +38 -3
- package/dist/actions/create-custom-download.d.cts.map +1 -1
- package/dist/actions/create-custom-download.d.mts +38 -3
- package/dist/actions/create-custom-download.d.mts.map +1 -1
- package/dist/actions/create-custom-download.mjs +4 -4
- package/dist/actions/create-custom-download.mjs.map +1 -1
- package/dist/actions/create-mailbox.cjs +35 -35
- package/dist/actions/create-mailbox.cjs.map +1 -1
- package/dist/actions/create-mailbox.d.cts +187 -3
- package/dist/actions/create-mailbox.d.cts.map +1 -1
- package/dist/actions/create-mailbox.d.mts +187 -3
- package/dist/actions/create-mailbox.d.mts.map +1 -1
- package/dist/actions/create-mailbox.mjs +35 -35
- package/dist/actions/create-mailbox.mjs.map +1 -1
- package/dist/actions/delete-custom-download.cjs +1 -1
- package/dist/actions/delete-custom-download.cjs.map +1 -1
- package/dist/actions/delete-custom-download.d.cts +11 -3
- package/dist/actions/delete-custom-download.d.cts.map +1 -1
- package/dist/actions/delete-custom-download.d.mts +11 -3
- package/dist/actions/delete-custom-download.d.mts.map +1 -1
- package/dist/actions/delete-custom-download.mjs +1 -1
- package/dist/actions/delete-custom-download.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +9 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +9 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-mailbox.cjs +2 -2
- package/dist/actions/delete-mailbox.cjs.map +1 -1
- package/dist/actions/delete-mailbox.d.cts +11 -3
- package/dist/actions/delete-mailbox.d.cts.map +1 -1
- package/dist/actions/delete-mailbox.d.mts +11 -3
- package/dist/actions/delete-mailbox.d.mts.map +1 -1
- package/dist/actions/delete-mailbox.mjs +2 -2
- package/dist/actions/delete-mailbox.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -1
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +9 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +9 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +1 -1
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/disable-webhook.cjs +8 -8
- package/dist/actions/disable-webhook.cjs.map +1 -1
- package/dist/actions/disable-webhook.d.cts +47 -3
- package/dist/actions/disable-webhook.d.cts.map +1 -1
- package/dist/actions/disable-webhook.d.mts +47 -3
- package/dist/actions/disable-webhook.d.mts.map +1 -1
- package/dist/actions/disable-webhook.mjs +8 -8
- package/dist/actions/disable-webhook.mjs.map +1 -1
- package/dist/actions/enable-webhook.cjs +6 -6
- package/dist/actions/enable-webhook.cjs.map +1 -1
- package/dist/actions/enable-webhook.d.cts +26 -3
- package/dist/actions/enable-webhook.d.cts.map +1 -1
- package/dist/actions/enable-webhook.d.mts +26 -3
- package/dist/actions/enable-webhook.d.mts.map +1 -1
- package/dist/actions/enable-webhook.mjs +6 -6
- package/dist/actions/enable-webhook.mjs.map +1 -1
- package/dist/actions/get-bootstrap-config.cjs +18 -18
- package/dist/actions/get-bootstrap-config.cjs.map +1 -1
- package/dist/actions/get-bootstrap-config.d.cts +54 -3
- package/dist/actions/get-bootstrap-config.d.cts.map +1 -1
- package/dist/actions/get-bootstrap-config.d.mts +54 -3
- package/dist/actions/get-bootstrap-config.d.mts.map +1 -1
- package/dist/actions/get-bootstrap-config.mjs +18 -18
- package/dist/actions/get-bootstrap-config.mjs.map +1 -1
- package/dist/actions/get-document-logs.cjs +15 -15
- package/dist/actions/get-document-logs.cjs.map +1 -1
- package/dist/actions/get-document-logs.d.cts +34 -3
- package/dist/actions/get-document-logs.d.cts.map +1 -1
- package/dist/actions/get-document-logs.d.mts +34 -3
- package/dist/actions/get-document-logs.d.mts.map +1 -1
- package/dist/actions/get-document-logs.mjs +15 -15
- package/dist/actions/get-document-logs.mjs.map +1 -1
- package/dist/actions/get-document.cjs +29 -29
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +65 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +65 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +29 -29
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-mailbox-schema.cjs +2 -2
- package/dist/actions/get-mailbox-schema.cjs.map +1 -1
- package/dist/actions/get-mailbox-schema.d.cts +10 -3
- package/dist/actions/get-mailbox-schema.d.cts.map +1 -1
- package/dist/actions/get-mailbox-schema.d.mts +10 -3
- package/dist/actions/get-mailbox-schema.d.mts.map +1 -1
- package/dist/actions/get-mailbox-schema.mjs +2 -2
- package/dist/actions/get-mailbox-schema.mjs.map +1 -1
- package/dist/actions/get-mailbox.cjs +43 -43
- package/dist/actions/get-mailbox.cjs.map +1 -1
- package/dist/actions/get-mailbox.d.cts +147 -3
- package/dist/actions/get-mailbox.d.cts.map +1 -1
- package/dist/actions/get-mailbox.d.mts +147 -3
- package/dist/actions/get-mailbox.d.mts.map +1 -1
- package/dist/actions/get-mailbox.mjs +43 -43
- package/dist/actions/get-mailbox.mjs.map +1 -1
- package/dist/actions/list-custom-downloads.cjs +9 -9
- package/dist/actions/list-custom-downloads.cjs.map +1 -1
- package/dist/actions/list-custom-downloads.d.cts +21 -3
- package/dist/actions/list-custom-downloads.d.cts.map +1 -1
- package/dist/actions/list-custom-downloads.d.mts +21 -3
- package/dist/actions/list-custom-downloads.d.mts.map +1 -1
- package/dist/actions/list-custom-downloads.mjs +9 -9
- package/dist/actions/list-custom-downloads.mjs.map +1 -1
- package/dist/actions/list-documents-in-mailbox.cjs +10 -10
- package/dist/actions/list-documents-in-mailbox.cjs.map +1 -1
- package/dist/actions/list-documents-in-mailbox.d.cts +49 -3
- package/dist/actions/list-documents-in-mailbox.d.cts.map +1 -1
- package/dist/actions/list-documents-in-mailbox.d.mts +49 -3
- package/dist/actions/list-documents-in-mailbox.d.mts.map +1 -1
- package/dist/actions/list-documents-in-mailbox.mjs +10 -10
- package/dist/actions/list-documents-in-mailbox.mjs.map +1 -1
- package/dist/actions/list-mailboxes2.cjs +13 -13
- package/dist/actions/list-mailboxes2.cjs.map +1 -1
- package/dist/actions/list-mailboxes2.d.cts +120 -3
- package/dist/actions/list-mailboxes2.d.cts.map +1 -1
- package/dist/actions/list-mailboxes2.d.mts +120 -3
- package/dist/actions/list-mailboxes2.d.mts.map +1 -1
- package/dist/actions/list-mailboxes2.mjs +13 -13
- package/dist/actions/list-mailboxes2.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +12 -12
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +41 -3
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +41 -3
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs +12 -12
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/reprocess-document.cjs +2 -2
- package/dist/actions/reprocess-document.cjs.map +1 -1
- package/dist/actions/reprocess-document.d.cts +11 -3
- package/dist/actions/reprocess-document.d.cts.map +1 -1
- package/dist/actions/reprocess-document.d.mts +11 -3
- package/dist/actions/reprocess-document.d.mts.map +1 -1
- package/dist/actions/reprocess-document.mjs +2 -2
- package/dist/actions/reprocess-document.mjs.map +1 -1
- package/dist/actions/retrieve-webhook.cjs +6 -6
- package/dist/actions/retrieve-webhook.cjs.map +1 -1
- package/dist/actions/retrieve-webhook.d.cts +23 -3
- package/dist/actions/retrieve-webhook.d.cts.map +1 -1
- package/dist/actions/retrieve-webhook.d.mts +23 -3
- package/dist/actions/retrieve-webhook.d.mts.map +1 -1
- package/dist/actions/retrieve-webhook.mjs +6 -6
- package/dist/actions/retrieve-webhook.mjs.map +1 -1
- package/dist/actions/skip-document.cjs +30 -30
- package/dist/actions/skip-document.cjs.map +1 -1
- package/dist/actions/skip-document.d.cts +45 -3
- package/dist/actions/skip-document.d.cts.map +1 -1
- package/dist/actions/skip-document.d.mts +45 -3
- package/dist/actions/skip-document.d.mts.map +1 -1
- package/dist/actions/skip-document.mjs +30 -30
- package/dist/actions/skip-document.mjs.map +1 -1
- package/dist/actions/update-custom-download.cjs +5 -5
- package/dist/actions/update-custom-download.cjs.map +1 -1
- package/dist/actions/update-custom-download.d.cts +34 -3
- package/dist/actions/update-custom-download.d.cts.map +1 -1
- package/dist/actions/update-custom-download.d.mts +34 -3
- package/dist/actions/update-custom-download.d.mts.map +1 -1
- package/dist/actions/update-custom-download.mjs +5 -5
- package/dist/actions/update-custom-download.mjs.map +1 -1
- package/dist/actions/update-mailbox.cjs +37 -37
- package/dist/actions/update-mailbox.cjs.map +1 -1
- package/dist/actions/update-mailbox.d.cts +197 -3
- package/dist/actions/update-mailbox.d.cts.map +1 -1
- package/dist/actions/update-mailbox.d.mts +197 -3
- package/dist/actions/update-mailbox.d.mts.map +1 -1
- package/dist/actions/update-mailbox.mjs +37 -37
- package/dist/actions/update-mailbox.mjs.map +1 -1
- package/dist/actions/update-webhook.cjs +7 -7
- package/dist/actions/update-webhook.cjs.map +1 -1
- package/dist/actions/update-webhook.d.cts +37 -3
- package/dist/actions/update-webhook.d.cts.map +1 -1
- package/dist/actions/update-webhook.d.mts +37 -3
- package/dist/actions/update-webhook.d.mts.map +1 -1
- package/dist/actions/update-webhook.mjs +7 -7
- package/dist/actions/update-webhook.mjs.map +1 -1
- package/dist/actions/upload-email-document.cjs +1 -1
- package/dist/actions/upload-email-document.cjs.map +1 -1
- package/dist/actions/upload-email-document.d.cts +25 -3
- package/dist/actions/upload-email-document.d.cts.map +1 -1
- package/dist/actions/upload-email-document.d.mts +25 -3
- package/dist/actions/upload-email-document.d.mts.map +1 -1
- package/dist/actions/upload-email-document.mjs +1 -1
- package/dist/actions/upload-email-document.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-bootstrap-config.d.ts
|
|
4
|
-
declare const ParseurGetBootstrapConfigInput: z.
|
|
5
|
-
declare const ParseurGetBootstrapConfigOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ParseurGetBootstrapConfigInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ParseurGetBootstrapConfigOutput: z.ZodObject<{
|
|
6
|
+
choices: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
"log.source": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
8
|
+
"log.status": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
9
|
+
"user.roles": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
10
|
+
"parser.master": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
11
|
+
"webhook.event": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
12
|
+
"webhook.status": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
13
|
+
"document.status": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
14
|
+
"parser.ordering": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
15
|
+
"template.action": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
16
|
+
"template.status": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
17
|
+
"parser.ai_engine": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
18
|
+
"user.permissions": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
19
|
+
"parser_field.format": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
20
|
+
"template_field.format": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
21
|
+
"document.status_source": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
22
|
+
"account.default_timezone": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
23
|
+
"account.decimal_separator": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
24
|
+
"account.input_date_format": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
25
|
+
"template.merge_row_behavior": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
26
|
+
"template_object.errors.code": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
27
|
+
"parser.identification_status": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
28
|
+
"parser.pdf_conversion_format": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
29
|
+
"account.auto_subscription_feature": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodString>>>>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
mappings: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
"field.format": z.ZodNullable<z.ZodObject<{
|
|
33
|
+
OCR: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
34
|
+
TXT: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
|
+
LIST: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
36
|
+
TEXT: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
37
|
+
TABLE: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
38
|
+
ONELINE: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
email_domain: z.ZodNullable<z.ZodString>;
|
|
42
|
+
extra_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
43
|
+
info: z.ZodNullable<z.ZodString>;
|
|
44
|
+
name: z.ZodNullable<z.ZodString>;
|
|
45
|
+
label: z.ZodNullable<z.ZodString>;
|
|
46
|
+
}, z.core.$loose>>>>;
|
|
47
|
+
master_parser_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
|
+
name: z.ZodNullable<z.ZodString>;
|
|
49
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
50
|
+
description: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$loose>>>>;
|
|
52
|
+
max_field_lengths: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
name: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
email: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
|
+
}, z.core.$loose>;
|
|
57
|
+
declare const parseurGetBootstrapConfig: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
58
|
//#endregion
|
|
8
59
|
export { parseurGetBootstrapConfig };
|
|
9
60
|
//# sourceMappingURL=get-bootstrap-config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bootstrap-config.d.mts","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-bootstrap-config.d.mts","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmD9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -26,30 +26,30 @@ const ParseurGetBootstrapConfig_ChoicesSchema = z.object({
|
|
|
26
26
|
"parser.identification_status": z.array(z.array(z.string())).describe("Available parser identification status choices as [value, display_name] pairs.").nullable().optional(),
|
|
27
27
|
"parser.pdf_conversion_format": z.array(z.array(z.string())).describe("Available PDF conversion format choices as [value, display_name] pairs.").nullable().optional(),
|
|
28
28
|
"account.auto_subscription_feature": z.array(z.array(z.string())).describe("Available auto subscription feature choices as [value, display_name] pairs.").nullable().optional()
|
|
29
|
-
}).describe("System-wide enumeration choices for various entities.");
|
|
29
|
+
}).passthrough().describe("System-wide enumeration choices for various entities.");
|
|
30
30
|
const ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({
|
|
31
|
-
OCR: z.
|
|
32
|
-
TXT: z.
|
|
31
|
+
OCR: z.record(z.string(), z.unknown()).describe("Format options for OCR field type.").nullable().optional(),
|
|
32
|
+
TXT: z.record(z.string(), z.unknown()).describe("Format options for TXT field type.").nullable().optional(),
|
|
33
33
|
LIST: z.array(z.string()).describe("Allowed formats for LIST field type.").nullable().optional(),
|
|
34
34
|
TEXT: z.array(z.string()).describe("Allowed formats for TEXT field type.").nullable().optional(),
|
|
35
35
|
TABLE: z.array(z.string()).describe("Allowed formats for TABLE field type.").nullable().optional(),
|
|
36
36
|
ONELINE: z.array(z.string()).describe("Allowed formats for ONELINE field type.").nullable().optional()
|
|
37
|
-
}).describe("Mapping of field format types to their allowed values.");
|
|
38
|
-
const ParseurGetBootstrapConfig_MappingsSchema = z.object({ "field.format": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable() }).describe("Configuration mappings for field formats.");
|
|
37
|
+
}).passthrough().describe("Mapping of field format types to their allowed values.");
|
|
38
|
+
const ParseurGetBootstrapConfig_MappingsSchema = z.object({ "field.format": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable() }).passthrough().describe("Configuration mappings for field formats.");
|
|
39
39
|
const ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({
|
|
40
|
-
info: z.string().describe("Descriptive information about the field."),
|
|
41
|
-
name: z.string().describe("Field identifier name."),
|
|
42
|
-
label: z.string().describe("Display label for the field.")
|
|
43
|
-
}).describe("Additional field metadata available in the system.");
|
|
40
|
+
info: z.string().describe("Descriptive information about the field.").nullable(),
|
|
41
|
+
name: z.string().describe("Field identifier name.").nullable(),
|
|
42
|
+
label: z.string().describe("Display label for the field.").nullable()
|
|
43
|
+
}).passthrough().describe("Additional field metadata available in the system.");
|
|
44
44
|
const ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({
|
|
45
|
-
name: z.string().describe("Display name of the parser."),
|
|
46
|
-
slug: z.string().describe("Unique slug identifier for the parser."),
|
|
47
|
-
description: z.string().describe("Description of the parser functionality.")
|
|
48
|
-
}).describe("Master parser template definition.");
|
|
45
|
+
name: z.string().describe("Display name of the parser.").nullable(),
|
|
46
|
+
slug: z.string().describe("Unique slug identifier for the parser.").nullable(),
|
|
47
|
+
description: z.string().describe("Description of the parser functionality.").nullable()
|
|
48
|
+
}).passthrough().describe("Master parser template definition.");
|
|
49
49
|
const ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({
|
|
50
|
-
name: z.number().int().describe("Maximum length for name fields."),
|
|
51
|
-
email: z.number().int().describe("Maximum length for email fields.")
|
|
52
|
-
}).describe("Maximum field lengths for various entity attributes.");
|
|
50
|
+
name: z.number().int().describe("Maximum length for name fields.").nullable(),
|
|
51
|
+
email: z.number().int().describe("Maximum length for email fields.").nullable()
|
|
52
|
+
}).passthrough().describe("Maximum field lengths for various entity attributes.");
|
|
53
53
|
const parseurGetBootstrapConfig = action("PARSEUR_GET_BOOTSTRAP_CONFIG", {
|
|
54
54
|
slug: "parseur-get-bootstrap-config",
|
|
55
55
|
name: "Get Bootstrap Config",
|
|
@@ -58,11 +58,11 @@ const parseurGetBootstrapConfig = action("PARSEUR_GET_BOOTSTRAP_CONFIG", {
|
|
|
58
58
|
output: z.object({
|
|
59
59
|
choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),
|
|
60
60
|
mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),
|
|
61
|
-
email_domain: z.string().describe("Email domain used by the Parseur system."),
|
|
61
|
+
email_domain: z.string().describe("Email domain used by the Parseur system.").nullable(),
|
|
62
62
|
extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe("Additional custom fields available in the system.").nullable().optional(),
|
|
63
63
|
master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe("Available master parser templates with their metadata.").nullable().optional(),
|
|
64
64
|
max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable()
|
|
65
|
-
}).describe("Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.")
|
|
65
|
+
}).passthrough().describe("Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.")
|
|
66
66
|
});
|
|
67
67
|
//#endregion
|
|
68
68
|
export { parseurGetBootstrapConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bootstrap-config.mjs","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetBootstrapConfigInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema: z.ZodTypeAny = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema: z.ZodTypeAny = z.object({\n OCR: z.object({}).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.object({}).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema: z.ZodTypeAny = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema: z.ZodTypeAny = z.object({\n info: z.string().describe(\"Descriptive information about the field.\"),\n name: z.string().describe(\"Field identifier name.\"),\n label: z.string().describe(\"Display label for the field.\"),\n}).describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name of the parser.\"),\n slug: z.string().describe(\"Unique slug identifier for the parser.\"),\n description: z.string().describe(\"Description of the parser functionality.\"),\n}).describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema: z.ZodTypeAny = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\"),\n email: z.number().int().describe(\"Maximum length for email fields.\"),\n}).describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput: z.ZodTypeAny = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\"),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI;AACtN,MAAM,0CAAwD,EAAE,OAAO;CACrE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,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S,iCAAiC;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;AACrE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAUlE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd2D,EAAE,OAAO;EACpE,SAAS,wCAAwC,SAAS;EAC1D,UAAU,yCAAyC,SAAS;EAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC5E,cAAc,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,mBAAmB,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,mBAAmB,gDAAgD,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,iGAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-bootstrap-config.mjs","names":[],"sources":["../../src/actions/get-bootstrap-config.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetBootstrapConfigInput = z.object({}).describe(\"Request parameters for getting bootstrap configuration.\\nNo parameters required - this endpoint returns system-wide configuration.\");\nconst ParseurGetBootstrapConfig_ChoicesSchema = z.object({\n \"log.source\": z.array(z.array(z.string())).describe(\"Available log source choices as [value, display_name] pairs.\").nullable().optional(),\n \"log.status\": z.array(z.array(z.string())).describe(\"Available log status choices as [value, display_name] pairs.\").nullable().optional(),\n \"user.roles\": z.array(z.array(z.string())).describe(\"Available user role choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.master\": z.array(z.array(z.string())).describe(\"Available parser master choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.event\": z.array(z.array(z.string())).describe(\"Available webhook event choices as [value, display_name] pairs.\").nullable().optional(),\n \"webhook.status\": z.array(z.array(z.string())).describe(\"Available webhook status choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status\": z.array(z.array(z.string())).describe(\"Available document status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ordering\": z.array(z.array(z.string())).describe(\"Available ordering choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"template.action\": z.array(z.array(z.string())).describe(\"Available template action choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.status\": z.array(z.array(z.string())).describe(\"Available template status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.ai_engine\": z.array(z.array(z.string())).describe(\"Available AI engine choices for parsers as [value, display_name] pairs.\").nullable().optional(),\n \"user.permissions\": z.array(z.array(z.string())).describe(\"Available user permission choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser_field.format\": z.array(z.array(z.string())).describe(\"Available parser field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_field.format\": z.array(z.array(z.string())).describe(\"Available template field format choices as [value, display_name] pairs.\").nullable().optional(),\n \"document.status_source\": z.array(z.array(z.string())).describe(\"Available document status source choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.default_timezone\": z.array(z.array(z.string())).describe(\"Available timezone choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.decimal_separator\": z.array(z.array(z.string())).describe(\"Available decimal separator choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.input_date_format\": z.array(z.array(z.string())).describe(\"Available input date format choices as [value, display_name] pairs.\").nullable().optional(),\n \"template.merge_row_behavior\": z.array(z.array(z.string())).describe(\"Available merge row behavior choices as [value, display_name] pairs.\").nullable().optional(),\n \"template_object.errors.code\": z.array(z.array(z.string())).describe(\"Available error code choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.identification_status\": z.array(z.array(z.string())).describe(\"Available parser identification status choices as [value, display_name] pairs.\").nullable().optional(),\n \"parser.pdf_conversion_format\": z.array(z.array(z.string())).describe(\"Available PDF conversion format choices as [value, display_name] pairs.\").nullable().optional(),\n \"account.auto_subscription_feature\": z.array(z.array(z.string())).describe(\"Available auto subscription feature choices as [value, display_name] pairs.\").nullable().optional(),\n}).passthrough().describe(\"System-wide enumeration choices for various entities.\");\nconst ParseurGetBootstrapConfig_FieldFormatMappingSchema = z.object({\n OCR: z.record(z.string(), z.unknown()).describe(\"Format options for OCR field type.\").nullable().optional(),\n TXT: z.record(z.string(), z.unknown()).describe(\"Format options for TXT field type.\").nullable().optional(),\n LIST: z.array(z.string()).describe(\"Allowed formats for LIST field type.\").nullable().optional(),\n TEXT: z.array(z.string()).describe(\"Allowed formats for TEXT field type.\").nullable().optional(),\n TABLE: z.array(z.string()).describe(\"Allowed formats for TABLE field type.\").nullable().optional(),\n ONELINE: z.array(z.string()).describe(\"Allowed formats for ONELINE field type.\").nullable().optional(),\n}).passthrough().describe(\"Mapping of field format types to their allowed values.\");\nconst ParseurGetBootstrapConfig_MappingsSchema = z.object({\n \"field.format\": ParseurGetBootstrapConfig_FieldFormatMappingSchema.nullable(),\n}).passthrough().describe(\"Configuration mappings for field formats.\");\nconst ParseurGetBootstrapConfig_ExtraFieldSchema = z.object({\n info: z.string().describe(\"Descriptive information about the field.\").nullable(),\n name: z.string().describe(\"Field identifier name.\").nullable(),\n label: z.string().describe(\"Display label for the field.\").nullable(),\n}).passthrough().describe(\"Additional field metadata available in the system.\");\nconst ParseurGetBootstrapConfig_MasterParserSetSchema = z.object({\n name: z.string().describe(\"Display name of the parser.\").nullable(),\n slug: z.string().describe(\"Unique slug identifier for the parser.\").nullable(),\n description: z.string().describe(\"Description of the parser functionality.\").nullable(),\n}).passthrough().describe(\"Master parser template definition.\");\nconst ParseurGetBootstrapConfig_MaxFieldLengthsSchema = z.object({\n name: z.number().int().describe(\"Maximum length for name fields.\").nullable(),\n email: z.number().int().describe(\"Maximum length for email fields.\").nullable(),\n}).passthrough().describe(\"Maximum field lengths for various entity attributes.\");\nexport const ParseurGetBootstrapConfigOutput = z.object({\n choices: ParseurGetBootstrapConfig_ChoicesSchema.nullable(),\n mappings: ParseurGetBootstrapConfig_MappingsSchema.nullable(),\n email_domain: z.string().describe(\"Email domain used by the Parseur system.\").nullable(),\n extra_fields: z.array(ParseurGetBootstrapConfig_ExtraFieldSchema).describe(\"Additional custom fields available in the system.\").nullable().optional(),\n master_parser_set: z.array(ParseurGetBootstrapConfig_MasterParserSetSchema).describe(\"Available master parser templates with their metadata.\").nullable().optional(),\n max_field_lengths: ParseurGetBootstrapConfig_MaxFieldLengthsSchema.nullable(),\n}).passthrough().describe(\"Bootstrap configuration containing system choices, mappings, field limits, and parser metadata.\");\n\nexport const parseurGetBootstrapConfig = action(\"PARSEUR_GET_BOOTSTRAP_CONFIG\", {\n slug: \"parseur-get-bootstrap-config\",\n name: \"Get Bootstrap Config\",\n description: \"Tool to retrieve bootstrap configuration data. Use when you need system-wide configuration choices, field format mappings, maximum field lengths, or master parser definitions.\",\n input: ParseurGetBootstrapConfigInput,\n output: ParseurGetBootstrapConfigOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI;AACxM,MAAM,0CAA0C,EAAE,OAAO;CACvD,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,OA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M,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAUhF,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6C,EAAE,OAAO;EACtD,SAAS,wCAAwC,SAAS;EAC1D,UAAU,yCAAyC,SAAS;EAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,mBAAmB,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,mBAAmB,gDAAgD,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iGAOhB;AACV,CAAC"}
|
|
@@ -9,26 +9,26 @@ const ParseurGetDocumentLogsInput = zod.z.object({
|
|
|
9
9
|
page_size: zod.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 = zod.z.object({
|
|
12
|
-
id: zod.z.number().int().describe("Unique identifier of the log entry."),
|
|
13
|
-
code: zod.z.string().describe("Log code identifying the type of log entry."),
|
|
14
|
-
parser: zod.z.number().int().describe("ID of the parser (mailbox) that processed the document."),
|
|
15
|
-
source: zod.z.string().describe("Source of the log entry."),
|
|
16
|
-
status: zod.z.string().describe("Status of the log entry."),
|
|
17
|
-
created: zod.z.string().describe("ISO 8601 timestamp when the log entry was created."),
|
|
18
|
-
message: zod.z.string().describe("Human-readable message describing the log entry."),
|
|
12
|
+
id: zod.z.number().int().describe("Unique identifier of the log entry.").nullable(),
|
|
13
|
+
code: zod.z.string().describe("Log code identifying the type of log entry.").nullable(),
|
|
14
|
+
parser: zod.z.number().int().describe("ID of the parser (mailbox) that processed the document.").nullable(),
|
|
15
|
+
source: zod.z.string().describe("Source of the log entry.").nullable(),
|
|
16
|
+
status: zod.z.string().describe("Status of the log entry.").nullable(),
|
|
17
|
+
created: zod.z.string().describe("ISO 8601 timestamp when the log entry was created.").nullable(),
|
|
18
|
+
message: zod.z.string().describe("Human-readable message describing the log entry.").nullable(),
|
|
19
19
|
payload: zod.z.string().describe("Additional payload data, or null if not present.").nullable().optional(),
|
|
20
|
-
document: zod.z.number().int().describe("ID of the document this log entry belongs to."),
|
|
20
|
+
document: zod.z.number().int().describe("ID of the document this log entry belongs to.").nullable(),
|
|
21
21
|
template: zod.z.number().int().describe("ID of the template used, or null if not applicable.").nullable().optional(),
|
|
22
|
-
parser_name: zod.z.string().describe("Name of the parser (mailbox)."),
|
|
23
|
-
document_name: zod.z.string().describe("Name of the document."),
|
|
22
|
+
parser_name: zod.z.string().describe("Name of the parser (mailbox).").nullable(),
|
|
23
|
+
document_name: zod.z.string().describe("Name of the document.").nullable(),
|
|
24
24
|
template_name: zod.z.string().describe("Name of the template used, or null if not applicable.").nullable().optional()
|
|
25
|
-
}).describe("A single log entry for a document.");
|
|
25
|
+
}).passthrough().describe("A single log entry for a document.");
|
|
26
26
|
const ParseurGetDocumentLogsOutput = zod.z.object({
|
|
27
|
-
count: zod.z.number().int().describe("Total number of log entries for this document."),
|
|
28
|
-
total: zod.z.number().int().describe("Total number of pages available."),
|
|
29
|
-
current: zod.z.number().int().describe("Current page number (1-indexed)."),
|
|
27
|
+
count: zod.z.number().int().describe("Total number of log entries for this document.").nullable(),
|
|
28
|
+
total: zod.z.number().int().describe("Total number of pages available.").nullable(),
|
|
29
|
+
current: zod.z.number().int().describe("Current page number (1-indexed).").nullable(),
|
|
30
30
|
results: zod.z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe("List of log entries on the current page.")
|
|
31
|
-
}).describe("Paginated response containing document log entries.");
|
|
31
|
+
}).passthrough().describe("Paginated response containing document log entries.");
|
|
32
32
|
const parseurGetDocumentLogs = require_action.action("PARSEUR_GET_DOCUMENT_LOGS", {
|
|
33
33
|
slug: "parseur-get-document-logs",
|
|
34
34
|
name: "Get Document Logs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput
|
|
1
|
+
{"version":3,"file":"get-document-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).passthrough().describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).passthrough().describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SA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AAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACrE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0CAA0C;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -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.
|
|
5
|
-
|
|
6
|
-
|
|
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.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
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,
|
|
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.
|
|
5
|
-
|
|
6
|
-
|
|
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.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
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,
|
|
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,31 +9,31 @@ 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
|
-
}).describe("A single log entry for a document.");
|
|
25
|
+
}).passthrough().describe("A single log entry for a document.");
|
|
26
26
|
const parseurGetDocumentLogs = action("PARSEUR_GET_DOCUMENT_LOGS", {
|
|
27
27
|
slug: "parseur-get-document-logs",
|
|
28
28
|
name: "Get Document Logs",
|
|
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
|
-
}).describe("Paginated response containing document log entries.")
|
|
36
|
+
}).passthrough().describe("Paginated response containing document log entries.")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
export { parseurGetDocumentLogs };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-logs.mjs","names":[],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput
|
|
1
|
+
{"version":3,"file":"get-document-logs.mjs","names":[],"sources":["../../src/actions/get-document-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentLogsInput = z.object({\n id: z.string().describe(\"The unique identifier (numeric ID) of the document to retrieve logs for. Obtain this ID from the List Documents action.\"),\n page: z.number().int().default(1).describe(\"Page number to retrieve (pagination). Defaults to 1.\").optional(),\n search: z.string().describe(\"Case-insensitive partial match search across log entries.\").optional(),\n ordering: z.string().describe(\"Field name to order by. Prepend a minus (-) for descending order, e.g., '-created'.\").optional(),\n page_size: z.number().int().default(25).describe(\"Number of log entries per page. Defaults to 25.\").optional(),\n}).describe(\"Request parameters for retrieving document logs.\");\nconst ParseurGetDocumentLogs_DocumentLogItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the log entry.\").nullable(),\n code: z.string().describe(\"Log code identifying the type of log entry.\").nullable(),\n parser: z.number().int().describe(\"ID of the parser (mailbox) that processed the document.\").nullable(),\n source: z.string().describe(\"Source of the log entry.\").nullable(),\n status: z.string().describe(\"Status of the log entry.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the log entry was created.\").nullable(),\n message: z.string().describe(\"Human-readable message describing the log entry.\").nullable(),\n payload: z.string().describe(\"Additional payload data, or null if not present.\").nullable().optional(),\n document: z.number().int().describe(\"ID of the document this log entry belongs to.\").nullable(),\n template: z.number().int().describe(\"ID of the template used, or null if not applicable.\").nullable().optional(),\n parser_name: z.string().describe(\"Name of the parser (mailbox).\").nullable(),\n document_name: z.string().describe(\"Name of the document.\").nullable(),\n template_name: z.string().describe(\"Name of the template used, or null if not applicable.\").nullable().optional(),\n}).passthrough().describe(\"A single log entry for a document.\");\nexport const ParseurGetDocumentLogsOutput = z.object({\n count: z.number().int().describe(\"Total number of log entries for this document.\").nullable(),\n total: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current: z.number().int().describe(\"Current page number (1-indexed).\").nullable(),\n results: z.array(ParseurGetDocumentLogs_DocumentLogItemSchema).describe(\"List of log entries on the current page.\"),\n}).passthrough().describe(\"Paginated response containing document log entries.\");\n\nexport const parseurGetDocumentLogs = action(\"PARSEUR_GET_DOCUMENT_LOGS\", {\n slug: \"parseur-get-document-logs\",\n name: \"Get Document Logs\",\n description: \"Tool to get document logs for a specific document. Returns paginated list of logs with status, source, and message details. Use when you need to troubleshoot or audit document processing history.\",\n input: ParseurGetDocumentLogsInput,\n output: ParseurGetDocumentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;CACjJ,MAAM,EAAE,OAAO,CAA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,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACrE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAQ9D,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0CAA0C;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -16,15 +16,15 @@ 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")
|
|
22
|
-
});
|
|
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
|
+
}).passthrough();
|
|
23
23
|
const ParseurGetDocument_OcrPageSchema = zod.z.object({
|
|
24
|
-
image: zod.z.
|
|
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")
|
|
27
|
-
});
|
|
24
|
+
image: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Image object containing page data"),
|
|
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
|
+
}).passthrough();
|
|
28
28
|
const ParseurGetDocument_DocumentStatusSourceSchema = zod.z.enum([
|
|
29
29
|
"AI",
|
|
30
30
|
"AUTO",
|
|
@@ -35,36 +35,36 @@ 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")
|
|
67
|
-
});
|
|
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
|
+
}).passthrough();
|
|
68
68
|
const parseurGetDocument = require_action.action("PARSEUR_GET_DOCUMENT", {
|
|
69
69
|
slug: "parseur-get-document",
|
|
70
70
|
name: "Get Document",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentInput
|
|
1
|
+
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to retrieve. Obtain this ID from the List Documents action or webhook payloads.\"),\n});\nconst ParseurGetDocument_DocumentStatusSchema = z.enum([\"INCOMING\", \"ANALYZING\", \"PROGRESS\", \"PARSEDOK\", \"PARSEDKO\", \"QUOTAEXC\", \"SKIPPED\", \"SPLIT\", \"EXPORTKO\", \"TRANSKO\", \"INVALID\"]);\nconst ParseurGetDocument_SampleSetSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template associated with this sample set\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in this set\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image object containing page data\"),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nconst ParseurGetDocument_DocumentStatusSourceSchema = z.enum([\"AI\", \"AUTO\", \"CSV\", \"METADATA\", \"MANUAL\", \"TEMPLATE\", \"TRANSFORM\"]);\nexport const ParseurGetDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the mailbox (parser) that received this document\").nullable(),\n result: z.string().describe(\"Parsed result string, or null if not yet parsed\").nullable().optional(),\n status: ParseurGetDocument_DocumentStatusSchema.nullable(),\n content: z.string().describe(\"Raw content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in the mailbox, or null if this is the last\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in the mailbox, or null if this is the first\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used to parse the document, or null if none\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurGetDocument_SampleSetSchema.nullable()).describe(\"List of sample sets associated with this document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, or null if standalone\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total number of credits consumed processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurGetDocument_OcrPageSchema).describe(\"List of OCR pages extracted from the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split into multiple documents\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document, or null if not available\").nullable().optional(),\n status_source: ParseurGetDocument_DocumentStatusSourceSchema.nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"Number of AI credits used\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the parsed data in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the parsed data in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the parsed data in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches a master template\").nullable(),\n original_document_url: z.string().describe(\"URL to download the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Number of conventional (non-AI) credits used\").nullable(),\n}).passthrough();\n\nexport const parseurGetDocument = action(\"PARSEUR_GET_DOCUMENT\", {\n slug: \"parseur-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve full details of a specific document by ID. Returns document status, processing info, parsed results, and download URLs for JSON, CSV, and XLS formats.\",\n input: ParseurGetDocumentInput,\n output: ParseurGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EAC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