@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
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["parseur","executeParseurTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parseur } from \"./app\";\nimport { executeParseurTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["parseur","executeParseurTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parseur } from \"./app\";\nimport { executeParseurTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return parseur.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeParseurTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parseur } from \"./app\";\nimport { executeParseurTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parseur } from \"./app\";\nimport { executeParseurTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return parseur.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeParseurTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -5,8 +5,8 @@ const ParseurCopyDocumentInput = zod.z.object({
|
|
|
5
5
|
id: zod.z.string().describe("The unique identifier of the document to copy."),
|
|
6
6
|
target_mailbox_id: zod.z.string().describe("The unique identifier of the target mailbox (parser) where the document will be copied.")
|
|
7
7
|
}).describe("Request model for copying a document to another mailbox.");
|
|
8
|
-
const ParseurCopyDocument_NotificationSetSchema = zod.z.object({ info: zod.z.array(zod.z.string()).describe("List of informational messages about the copy operation.") }).describe("Notification set containing informational messages about the copy operation.");
|
|
9
|
-
const ParseurCopyDocumentOutput = zod.z.object({ notification_set: ParseurCopyDocument_NotificationSetSchema.nullable() }).describe("Response model for copying a document.");
|
|
8
|
+
const ParseurCopyDocument_NotificationSetSchema = zod.z.object({ info: zod.z.array(zod.z.string()).describe("List of informational messages about the copy operation.") }).passthrough().describe("Notification set containing informational messages about the copy operation.");
|
|
9
|
+
const ParseurCopyDocumentOutput = zod.z.object({ notification_set: ParseurCopyDocument_NotificationSetSchema.nullable() }).passthrough().describe("Response model for copying a document.");
|
|
10
10
|
const parseurCopyDocument = require_action.action("PARSEUR_COPY_DOCUMENT", {
|
|
11
11
|
slug: "parseur-copy-document",
|
|
12
12
|
name: "Copy Document",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-document.cjs","names":["z","action"],"sources":["../../src/actions/copy-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCopyDocumentInput
|
|
1
|
+
{"version":3,"file":"copy-document.cjs","names":["z","action"],"sources":["../../src/actions/copy-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCopyDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to copy.\"),\n target_mailbox_id: z.string().describe(\"The unique identifier of the target mailbox (parser) where the document will be copied.\"),\n}).describe(\"Request model for copying a document to another mailbox.\");\nconst ParseurCopyDocument_NotificationSetSchema = z.object({\n info: z.array(z.string()).describe(\"List of informational messages about the copy operation.\"),\n}).passthrough().describe(\"Notification set containing informational messages about the copy operation.\");\nexport const ParseurCopyDocumentOutput = z.object({\n notification_set: ParseurCopyDocument_NotificationSetSchema.nullable(),\n}).passthrough().describe(\"Response model for copying a document.\");\n\nexport const parseurCopyDocument = action(\"PARSEUR_COPY_DOCUMENT\", {\n slug: \"parseur-copy-document\",\n name: \"Copy Document\",\n description: \"Tool to copy a document to another mailbox. Use when you need to duplicate a document from one mailbox to another mailbox within Parseur.\",\n input: ParseurCopyDocumentInput,\n output: ParseurCopyDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;AAClI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AACxG,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,kBAAkB,0CAA0C,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/copy-document.d.ts
|
|
4
|
-
declare const ParseurCopyDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParseurCopyDocumentInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
target_mailbox_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ParseurCopyDocumentOutput: z.ZodObject<{
|
|
9
|
+
notification_set: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
info: z.ZodArray<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const parseurCopyDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
id: string;
|
|
15
|
+
target_mailbox_id: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { parseurCopyDocument };
|
|
9
19
|
//# sourceMappingURL=copy-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-document.d.cts","names":[],"sources":["../../src/actions/copy-document.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"copy-document.d.cts","names":[],"sources":["../../src/actions/copy-document.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAOxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/copy-document.d.ts
|
|
4
|
-
declare const ParseurCopyDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParseurCopyDocumentInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
target_mailbox_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ParseurCopyDocumentOutput: z.ZodObject<{
|
|
9
|
+
notification_set: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
info: z.ZodArray<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const parseurCopyDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
id: string;
|
|
15
|
+
target_mailbox_id: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { parseurCopyDocument };
|
|
9
19
|
//# sourceMappingURL=copy-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-document.d.mts","names":[],"sources":["../../src/actions/copy-document.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"copy-document.d.mts","names":[],"sources":["../../src/actions/copy-document.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAOxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -5,13 +5,13 @@ const ParseurCopyDocumentInput = z.object({
|
|
|
5
5
|
id: z.string().describe("The unique identifier of the document to copy."),
|
|
6
6
|
target_mailbox_id: z.string().describe("The unique identifier of the target mailbox (parser) where the document will be copied.")
|
|
7
7
|
}).describe("Request model for copying a document to another mailbox.");
|
|
8
|
-
const ParseurCopyDocument_NotificationSetSchema = z.object({ info: z.array(z.string()).describe("List of informational messages about the copy operation.") }).describe("Notification set containing informational messages about the copy operation.");
|
|
8
|
+
const ParseurCopyDocument_NotificationSetSchema = z.object({ info: z.array(z.string()).describe("List of informational messages about the copy operation.") }).passthrough().describe("Notification set containing informational messages about the copy operation.");
|
|
9
9
|
const parseurCopyDocument = action("PARSEUR_COPY_DOCUMENT", {
|
|
10
10
|
slug: "parseur-copy-document",
|
|
11
11
|
name: "Copy Document",
|
|
12
12
|
description: "Tool to copy a document to another mailbox. Use when you need to duplicate a document from one mailbox to another mailbox within Parseur.",
|
|
13
13
|
input: ParseurCopyDocumentInput,
|
|
14
|
-
output: z.object({ notification_set: ParseurCopyDocument_NotificationSetSchema.nullable() }).describe("Response model for copying a document.")
|
|
14
|
+
output: z.object({ notification_set: ParseurCopyDocument_NotificationSetSchema.nullable() }).passthrough().describe("Response model for copying a document.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { parseurCopyDocument };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-document.mjs","names":[],"sources":["../../src/actions/copy-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCopyDocumentInput
|
|
1
|
+
{"version":3,"file":"copy-document.mjs","names":[],"sources":["../../src/actions/copy-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCopyDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to copy.\"),\n target_mailbox_id: z.string().describe(\"The unique identifier of the target mailbox (parser) where the document will be copied.\"),\n}).describe(\"Request model for copying a document to another mailbox.\");\nconst ParseurCopyDocument_NotificationSetSchema = z.object({\n info: z.array(z.string()).describe(\"List of informational messages about the copy operation.\"),\n}).passthrough().describe(\"Notification set containing informational messages about the copy operation.\");\nexport const ParseurCopyDocumentOutput = z.object({\n notification_set: ParseurCopyDocument_NotificationSetSchema.nullable(),\n}).passthrough().describe(\"Response model for copying a document.\");\n\nexport const parseurCopyDocument = action(\"PARSEUR_COPY_DOCUMENT\", {\n slug: \"parseur-copy-document\",\n name: \"Copy Document\",\n description: \"Tool to copy a document to another mailbox. Use when you need to duplicate a document from one mailbox to another mailbox within Parseur.\",\n input: ParseurCopyDocumentInput,\n output: ParseurCopyDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;AAClI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAKxG,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,kBAAkB,0CAA0C,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -2,8 +2,8 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/copy-mailbox.ts
|
|
4
4
|
const ParseurCopyMailboxInput = zod.z.object({ id: zod.z.number().int().describe("Unique identifier of the mailbox (parser) to copy.") }).describe("Request parameters for copying a mailbox (parser).");
|
|
5
|
-
const ParseurCopyMailbox_NotificationSetSchema = zod.z.object({ info: zod.z.array(zod.z.string()).describe("List of informational messages about the copy operation.") }).describe("Notification information returned after copying a mailbox.");
|
|
6
|
-
const ParseurCopyMailboxOutput = zod.z.object({ notification_set: ParseurCopyMailbox_NotificationSetSchema.nullable() }).describe("Response model for the copy mailbox action.");
|
|
5
|
+
const ParseurCopyMailbox_NotificationSetSchema = zod.z.object({ info: zod.z.array(zod.z.string()).describe("List of informational messages about the copy operation.") }).passthrough().describe("Notification information returned after copying a mailbox.");
|
|
6
|
+
const ParseurCopyMailboxOutput = zod.z.object({ notification_set: ParseurCopyMailbox_NotificationSetSchema.nullable() }).passthrough().describe("Response model for the copy mailbox action.");
|
|
7
7
|
const parseurCopyMailbox = require_action.action("PARSEUR_COPY_MAILBOX", {
|
|
8
8
|
slug: "parseur-copy-mailbox",
|
|
9
9
|
name: "Copy Mailbox",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-mailbox.cjs","names":["z","action"],"sources":["../../src/actions/copy-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCopyMailboxInput
|
|
1
|
+
{"version":3,"file":"copy-mailbox.cjs","names":["z","action"],"sources":["../../src/actions/copy-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCopyMailboxInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the mailbox (parser) to copy.\"),\n}).describe(\"Request parameters for copying a mailbox (parser).\");\nconst ParseurCopyMailbox_NotificationSetSchema = z.object({\n info: z.array(z.string()).describe(\"List of informational messages about the copy operation.\"),\n}).passthrough().describe(\"Notification information returned after copying a mailbox.\");\nexport const ParseurCopyMailboxOutput = z.object({\n notification_set: ParseurCopyMailbox_NotificationSetSchema.nullable(),\n}).passthrough().describe(\"Response model for the copy mailbox action.\");\n\nexport const parseurCopyMailbox = action(\"PARSEUR_COPY_MAILBOX\", {\n slug: \"parseur-copy-mailbox\",\n name: \"Copy Mailbox\",\n description: \"Tool to copy a mailbox (parser) in Parseur. Creates a duplicate of the mailbox with all its configuration. Use when you need to duplicate an existing parser setup.\",\n input: ParseurCopyMailboxInput,\n output: ParseurCopyMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,EACpF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,kBAAkB,yCAAyC,SAAS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/copy-mailbox.d.ts
|
|
4
|
-
declare const ParseurCopyMailboxInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParseurCopyMailboxInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ParseurCopyMailboxOutput: z.ZodObject<{
|
|
8
|
+
notification_set: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
info: z.ZodArray<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const parseurCopyMailbox: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
id: number;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { parseurCopyMailbox };
|
|
9
17
|
//# sourceMappingURL=copy-mailbox.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-mailbox.d.cts","names":[],"sources":["../../src/actions/copy-mailbox.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"copy-mailbox.d.cts","names":[],"sources":["../../src/actions/copy-mailbox.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAMvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/copy-mailbox.d.ts
|
|
4
|
-
declare const ParseurCopyMailboxInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParseurCopyMailboxInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ParseurCopyMailboxOutput: z.ZodObject<{
|
|
8
|
+
notification_set: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
info: z.ZodArray<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const parseurCopyMailbox: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
id: number;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { parseurCopyMailbox };
|
|
9
17
|
//# sourceMappingURL=copy-mailbox.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-mailbox.d.mts","names":[],"sources":["../../src/actions/copy-mailbox.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"copy-mailbox.d.mts","names":[],"sources":["../../src/actions/copy-mailbox.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAMvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -2,13 +2,13 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/copy-mailbox.ts
|
|
4
4
|
const ParseurCopyMailboxInput = z.object({ id: z.number().int().describe("Unique identifier of the mailbox (parser) to copy.") }).describe("Request parameters for copying a mailbox (parser).");
|
|
5
|
-
const ParseurCopyMailbox_NotificationSetSchema = z.object({ info: z.array(z.string()).describe("List of informational messages about the copy operation.") }).describe("Notification information returned after copying a mailbox.");
|
|
5
|
+
const ParseurCopyMailbox_NotificationSetSchema = z.object({ info: z.array(z.string()).describe("List of informational messages about the copy operation.") }).passthrough().describe("Notification information returned after copying a mailbox.");
|
|
6
6
|
const parseurCopyMailbox = action("PARSEUR_COPY_MAILBOX", {
|
|
7
7
|
slug: "parseur-copy-mailbox",
|
|
8
8
|
name: "Copy Mailbox",
|
|
9
9
|
description: "Tool to copy a mailbox (parser) in Parseur. Creates a duplicate of the mailbox with all its configuration. Use when you need to duplicate an existing parser setup.",
|
|
10
10
|
input: ParseurCopyMailboxInput,
|
|
11
|
-
output: z.object({ notification_set: ParseurCopyMailbox_NotificationSetSchema.nullable() }).describe("Response model for the copy mailbox action.")
|
|
11
|
+
output: z.object({ notification_set: ParseurCopyMailbox_NotificationSetSchema.nullable() }).passthrough().describe("Response model for the copy mailbox action.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { parseurCopyMailbox };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-mailbox.mjs","names":[],"sources":["../../src/actions/copy-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCopyMailboxInput
|
|
1
|
+
{"version":3,"file":"copy-mailbox.mjs","names":[],"sources":["../../src/actions/copy-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCopyMailboxInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the mailbox (parser) to copy.\"),\n}).describe(\"Request parameters for copying a mailbox (parser).\");\nconst ParseurCopyMailbox_NotificationSetSchema = z.object({\n info: z.array(z.string()).describe(\"List of informational messages about the copy operation.\"),\n}).passthrough().describe(\"Notification information returned after copying a mailbox.\");\nexport const ParseurCopyMailboxOutput = z.object({\n notification_set: ParseurCopyMailbox_NotificationSetSchema.nullable(),\n}).passthrough().describe(\"Response model for the copy mailbox action.\");\n\nexport const parseurCopyMailbox = action(\"PARSEUR_COPY_MAILBOX\", {\n slug: \"parseur-copy-mailbox\",\n name: \"Copy Mailbox\",\n description: \"Tool to copy a mailbox (parser) in Parseur. Creates a duplicate of the mailbox with all its configuration. Use when you need to duplicate an existing parser setup.\",\n input: ParseurCopyMailboxInput,\n output: ParseurCopyMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,EACpF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,2CAA2C,EAAE,OAAO,EACxD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAKtF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,kBAAkB,yCAAyC,SAAS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -14,15 +14,15 @@ const ParseurCreateCustomDownloadInput = zod.z.object({
|
|
|
14
14
|
}).describe("Request model for creating a custom download (export configuration) for a mailbox.");
|
|
15
15
|
const ParseurCreateCustomDownload_ExportConfigTypeSchema = zod.z.enum(["PARSER", "PARSER_FIELD"]).describe("Type of export configuration.");
|
|
16
16
|
const ParseurCreateCustomDownloadOutput = zod.z.object({
|
|
17
|
-
id: zod.z.number().int().describe("Numeric ID of the export configuration"),
|
|
17
|
+
id: zod.z.number().int().describe("Numeric ID of the export configuration").nullable(),
|
|
18
18
|
name: zod.z.string().describe("Name of the custom download; null if not set").nullable().optional(),
|
|
19
19
|
type: ParseurCreateCustomDownload_ExportConfigTypeSchema.nullable(),
|
|
20
20
|
items: zod.z.array(zod.z.string()).describe("List of field names included in the export").nullable().optional(),
|
|
21
|
-
csv_download: zod.z.string().describe("Identifier for the CSV download"),
|
|
22
|
-
xls_download: zod.z.string().describe("Identifier for the XLS download"),
|
|
21
|
+
csv_download: zod.z.string().describe("Identifier for the CSV download").nullable(),
|
|
22
|
+
xls_download: zod.z.string().describe("Identifier for the XLS download").nullable(),
|
|
23
23
|
parser_field_id: zod.z.string().describe("Parser field ID starting with PF; null if not set").nullable().optional(),
|
|
24
24
|
parser_field_name: zod.z.string().describe("Name of the parser field; null if not set").nullable().optional()
|
|
25
|
-
}).describe("Response model for the create custom download action.");
|
|
25
|
+
}).passthrough().describe("Response model for the create custom download action.");
|
|
26
26
|
const parseurCreateCustomDownload = require_action.action("PARSEUR_CREATE_CUSTOM_DOWNLOAD", {
|
|
27
27
|
slug: "parseur-create-custom-download",
|
|
28
28
|
name: "Create custom download",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-download.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCreateCustomDownloadInput
|
|
1
|
+
{"version":3,"file":"create-custom-download.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCreateCustomDownloadInput = z.object({\n id: z.number().int().describe(\"Numeric ID for the export configuration\"),\n name: z.string().describe(\"Name for the custom download\"),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).default(\"PARSER\").describe(\"Type of export configuration: PARSER for full parser exports, or PARSER_FIELD for field-specific exports\").optional(),\n items: z.array(z.string()).describe(\"List of field names to include in the export. Common system fields include: DocumentID, Sender, SenderName, Template, Recipient, ParsedAt, etc.\"),\n parser_id: z.string().describe(\"ID of the mailbox (parser) for which to create the custom download\"),\n csv_download: z.string().describe(\"Identifier or filename for the CSV download\"),\n xls_download: z.string().describe(\"Identifier or filename for the XLS download\"),\n parser_field_id: z.string().describe(\"Parser field ID starting with PF (required when type is PARSER_FIELD)\").optional(),\n parser_field_name: z.string().describe(\"Name of the parser field (required when type is PARSER_FIELD)\").optional(),\n}).describe(\"Request model for creating a custom download (export configuration) for a mailbox.\");\nconst ParseurCreateCustomDownload_ExportConfigTypeSchema = z.enum([\"PARSER\", \"PARSER_FIELD\"]).describe(\"Type of export configuration.\");\nexport const ParseurCreateCustomDownloadOutput = z.object({\n id: z.number().int().describe(\"Numeric ID of the export configuration\").nullable(),\n name: z.string().describe(\"Name of the custom download; null if not set\").nullable().optional(),\n type: ParseurCreateCustomDownload_ExportConfigTypeSchema.nullable(),\n items: z.array(z.string()).describe(\"List of field names included in the export\").nullable().optional(),\n csv_download: z.string().describe(\"Identifier for the CSV download\").nullable(),\n xls_download: z.string().describe(\"Identifier for the XLS download\").nullable(),\n parser_field_id: z.string().describe(\"Parser field ID starting with PF; null if not set\").nullable().optional(),\n parser_field_name: z.string().describe(\"Name of the parser field; null if not set\").nullable().optional(),\n}).passthrough().describe(\"Response model for the create custom download action.\");\n\nexport const parseurCreateCustomDownload = action(\"PARSEUR_CREATE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-create-custom-download\",\n name: \"Create custom download\",\n description: \"Tool to create a custom download (export configuration) for a mailbox. Use when you need to define which fields should be exported to CSV or XLS format.\",\n input: ParseurCreateCustomDownloadInput,\n output: ParseurCreateCustomDownloadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACzL,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iJAAiJ;CACrL,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC/E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACvH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,qDAAqDA,IAAAA,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,SAAS,+BAA+B;AACtI,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,MAAM,mDAAmD,SAAS;CAClE,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-custom-download.d.ts
|
|
4
|
-
declare const ParseurCreateCustomDownloadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParseurCreateCustomDownloadInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
PARSER: "PARSER";
|
|
9
|
+
PARSER_FIELD: "PARSER_FIELD";
|
|
10
|
+
}>>>;
|
|
11
|
+
items: z.ZodArray<z.ZodString>;
|
|
12
|
+
parser_id: z.ZodString;
|
|
13
|
+
csv_download: z.ZodString;
|
|
14
|
+
xls_download: z.ZodString;
|
|
15
|
+
parser_field_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
parser_field_name: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const ParseurCreateCustomDownloadOutput: z.ZodObject<{
|
|
19
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
22
|
+
PARSER: "PARSER";
|
|
23
|
+
PARSER_FIELD: "PARSER_FIELD";
|
|
24
|
+
}>>;
|
|
25
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
csv_download: z.ZodNullable<z.ZodString>;
|
|
27
|
+
xls_download: z.ZodNullable<z.ZodString>;
|
|
28
|
+
parser_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
parser_field_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const parseurCreateCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
id: number;
|
|
33
|
+
name: string;
|
|
34
|
+
items: string[];
|
|
35
|
+
parser_id: string;
|
|
36
|
+
csv_download: string;
|
|
37
|
+
xls_download: string;
|
|
38
|
+
type?: "PARSER" | "PARSER_FIELD" | undefined;
|
|
39
|
+
parser_field_id?: string | undefined;
|
|
40
|
+
parser_field_name?: string | undefined;
|
|
41
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
42
|
//#endregion
|
|
8
43
|
export { parseurCreateCustomDownload };
|
|
9
44
|
//# sourceMappingURL=create-custom-download.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-download.d.cts","names":[],"sources":["../../src/actions/create-custom-download.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"create-custom-download.d.cts","names":[],"sources":["../../src/actions/create-custom-download.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAYhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAWjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-custom-download.d.ts
|
|
4
|
-
declare const ParseurCreateCustomDownloadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParseurCreateCustomDownloadInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
PARSER: "PARSER";
|
|
9
|
+
PARSER_FIELD: "PARSER_FIELD";
|
|
10
|
+
}>>>;
|
|
11
|
+
items: z.ZodArray<z.ZodString>;
|
|
12
|
+
parser_id: z.ZodString;
|
|
13
|
+
csv_download: z.ZodString;
|
|
14
|
+
xls_download: z.ZodString;
|
|
15
|
+
parser_field_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
parser_field_name: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const ParseurCreateCustomDownloadOutput: z.ZodObject<{
|
|
19
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
22
|
+
PARSER: "PARSER";
|
|
23
|
+
PARSER_FIELD: "PARSER_FIELD";
|
|
24
|
+
}>>;
|
|
25
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
csv_download: z.ZodNullable<z.ZodString>;
|
|
27
|
+
xls_download: z.ZodNullable<z.ZodString>;
|
|
28
|
+
parser_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
parser_field_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const parseurCreateCustomDownload: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
id: number;
|
|
33
|
+
name: string;
|
|
34
|
+
items: string[];
|
|
35
|
+
parser_id: string;
|
|
36
|
+
csv_download: string;
|
|
37
|
+
xls_download: string;
|
|
38
|
+
type?: "PARSER" | "PARSER_FIELD" | undefined;
|
|
39
|
+
parser_field_id?: string | undefined;
|
|
40
|
+
parser_field_name?: string | undefined;
|
|
41
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
42
|
//#endregion
|
|
8
43
|
export { parseurCreateCustomDownload };
|
|
9
44
|
//# sourceMappingURL=create-custom-download.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-download.d.mts","names":[],"sources":["../../src/actions/create-custom-download.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"create-custom-download.d.mts","names":[],"sources":["../../src/actions/create-custom-download.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAYhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAWjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -19,15 +19,15 @@ const parseurCreateCustomDownload = action("PARSEUR_CREATE_CUSTOM_DOWNLOAD", {
|
|
|
19
19
|
description: "Tool to create a custom download (export configuration) for a mailbox. Use when you need to define which fields should be exported to CSV or XLS format.",
|
|
20
20
|
input: ParseurCreateCustomDownloadInput,
|
|
21
21
|
output: z.object({
|
|
22
|
-
id: z.number().int().describe("Numeric ID of the export configuration"),
|
|
22
|
+
id: z.number().int().describe("Numeric ID of the export configuration").nullable(),
|
|
23
23
|
name: z.string().describe("Name of the custom download; null if not set").nullable().optional(),
|
|
24
24
|
type: ParseurCreateCustomDownload_ExportConfigTypeSchema.nullable(),
|
|
25
25
|
items: z.array(z.string()).describe("List of field names included in the export").nullable().optional(),
|
|
26
|
-
csv_download: z.string().describe("Identifier for the CSV download"),
|
|
27
|
-
xls_download: z.string().describe("Identifier for the XLS download"),
|
|
26
|
+
csv_download: z.string().describe("Identifier for the CSV download").nullable(),
|
|
27
|
+
xls_download: z.string().describe("Identifier for the XLS download").nullable(),
|
|
28
28
|
parser_field_id: z.string().describe("Parser field ID starting with PF; null if not set").nullable().optional(),
|
|
29
29
|
parser_field_name: z.string().describe("Name of the parser field; null if not set").nullable().optional()
|
|
30
|
-
}).describe("Response model for the create custom download action.")
|
|
30
|
+
}).passthrough().describe("Response model for the create custom download action.")
|
|
31
31
|
});
|
|
32
32
|
//#endregion
|
|
33
33
|
export { parseurCreateCustomDownload };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-download.mjs","names":[],"sources":["../../src/actions/create-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCreateCustomDownloadInput
|
|
1
|
+
{"version":3,"file":"create-custom-download.mjs","names":[],"sources":["../../src/actions/create-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurCreateCustomDownloadInput = z.object({\n id: z.number().int().describe(\"Numeric ID for the export configuration\"),\n name: z.string().describe(\"Name for the custom download\"),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).default(\"PARSER\").describe(\"Type of export configuration: PARSER for full parser exports, or PARSER_FIELD for field-specific exports\").optional(),\n items: z.array(z.string()).describe(\"List of field names to include in the export. Common system fields include: DocumentID, Sender, SenderName, Template, Recipient, ParsedAt, etc.\"),\n parser_id: z.string().describe(\"ID of the mailbox (parser) for which to create the custom download\"),\n csv_download: z.string().describe(\"Identifier or filename for the CSV download\"),\n xls_download: z.string().describe(\"Identifier or filename for the XLS download\"),\n parser_field_id: z.string().describe(\"Parser field ID starting with PF (required when type is PARSER_FIELD)\").optional(),\n parser_field_name: z.string().describe(\"Name of the parser field (required when type is PARSER_FIELD)\").optional(),\n}).describe(\"Request model for creating a custom download (export configuration) for a mailbox.\");\nconst ParseurCreateCustomDownload_ExportConfigTypeSchema = z.enum([\"PARSER\", \"PARSER_FIELD\"]).describe(\"Type of export configuration.\");\nexport const ParseurCreateCustomDownloadOutput = z.object({\n id: z.number().int().describe(\"Numeric ID of the export configuration\").nullable(),\n name: z.string().describe(\"Name of the custom download; null if not set\").nullable().optional(),\n type: ParseurCreateCustomDownload_ExportConfigTypeSchema.nullable(),\n items: z.array(z.string()).describe(\"List of field names included in the export\").nullable().optional(),\n csv_download: z.string().describe(\"Identifier for the CSV download\").nullable(),\n xls_download: z.string().describe(\"Identifier for the XLS download\").nullable(),\n parser_field_id: z.string().describe(\"Parser field ID starting with PF; null if not set\").nullable().optional(),\n parser_field_name: z.string().describe(\"Name of the parser field; null if not set\").nullable().optional(),\n}).passthrough().describe(\"Response model for the create custom download action.\");\n\nexport const parseurCreateCustomDownload = action(\"PARSEUR_CREATE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-create-custom-download\",\n name: \"Create custom download\",\n description: \"Tool to create a custom download (export configuration) for a mailbox. Use when you need to define which fields should be exported to CSV or XLS format.\",\n input: ParseurCreateCustomDownloadInput,\n output: ParseurCreateCustomDownloadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,MAAM,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACzL,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iJAAiJ;CACrL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC/E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACvH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,qDAAqD,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAYtI,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,MAAM,mDAAmD,SAAS;EAClE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
@@ -74,9 +74,9 @@ const ParseurCreateMailbox_AIEngineSchema = zod.z.enum([
|
|
|
74
74
|
"GCP_AI_2_5"
|
|
75
75
|
]).describe("AI engine options for document parsing.");
|
|
76
76
|
const ParseurCreateMailbox_TableItemSchema = zod.z.object({
|
|
77
|
-
id: zod.z.string().describe("Table ID."),
|
|
78
|
-
name: zod.z.string().describe("Table name.")
|
|
79
|
-
}).describe("Table configuration item.");
|
|
77
|
+
id: zod.z.string().describe("Table ID.").nullable(),
|
|
78
|
+
name: zod.z.string().describe("Table name.").nullable()
|
|
79
|
+
}).passthrough().describe("Table configuration item.");
|
|
80
80
|
const ParseurCreateMailbox_FileExtensionSchema = zod.z.enum([
|
|
81
81
|
"bmp",
|
|
82
82
|
"csv",
|
|
@@ -125,14 +125,14 @@ const ParseurCreateMailbox_MasterParserSlugSchema = zod.z.enum([
|
|
|
125
125
|
"event-ticketing"
|
|
126
126
|
]).describe("Master parser template options.");
|
|
127
127
|
const ParseurCreateMailbox_WebhookItemSchema = zod.z.object({
|
|
128
|
-
id: zod.z.number().int().describe("Webhook ID."),
|
|
128
|
+
id: zod.z.number().int().describe("Webhook ID.").nullable(),
|
|
129
129
|
name: zod.z.string().describe("Webhook name.").nullable().optional(),
|
|
130
|
-
event: zod.z.string().describe("Event type for the webhook."),
|
|
131
|
-
target: zod.z.string().describe("Target URL for the webhook."),
|
|
132
|
-
headers: zod.z.
|
|
133
|
-
category: zod.z.string().describe("Webhook category."),
|
|
134
|
-
parser_field_set: zod.z.array(zod.z.
|
|
135
|
-
}).describe("Webhook configuration item.");
|
|
130
|
+
event: zod.z.string().describe("Event type for the webhook.").nullable(),
|
|
131
|
+
target: zod.z.string().describe("Target URL for the webhook.").nullable(),
|
|
132
|
+
headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom headers for the webhook.").nullable().optional(),
|
|
133
|
+
category: zod.z.string().describe("Webhook category.").nullable(),
|
|
134
|
+
parser_field_set: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Parser fields associated with the webhook.").nullable().optional()
|
|
135
|
+
}).passthrough().describe("Webhook configuration item.");
|
|
136
136
|
const ParseurCreateMailbox_IdentificationStatusSchema = zod.z.enum([
|
|
137
137
|
"REQUESTED",
|
|
138
138
|
"PROGRESS",
|
|
@@ -140,50 +140,50 @@ const ParseurCreateMailbox_IdentificationStatusSchema = zod.z.enum([
|
|
|
140
140
|
"MANUAL"
|
|
141
141
|
]).describe("Identification status options for the parser.");
|
|
142
142
|
const ParseurCreateMailbox_DocumentStatusCountSchema = zod.z.object({
|
|
143
|
-
SPLIT: zod.z.number().int().describe("Files split into multiple documents."),
|
|
144
|
-
INVALID: zod.z.number().int().describe("Files not supported by the system and not processed."),
|
|
145
|
-
SKIPPED: zod.z.number().int().describe("Files skipped because of a template."),
|
|
146
|
-
TRANSKO: zod.z.number().int().describe("Files where Python post-processing failed."),
|
|
147
|
-
EXPORTKO: zod.z.number().int().describe("Files where exporting parsed data failed."),
|
|
148
|
-
INCOMING: zod.z.number().int().describe("Files received by the system awaiting processing."),
|
|
149
|
-
PARSEDKO: zod.z.number().int().describe("Files where processing failed."),
|
|
150
|
-
PARSEDOK: zod.z.number().int().describe("Files successfully processed with data available for export."),
|
|
151
|
-
PROGRESS: zod.z.number().int().describe("Files currently being processed by active AI engine."),
|
|
152
|
-
QUOTAEXC: zod.z.number().int().describe("Files where processing stopped due to insufficient credits."),
|
|
153
|
-
ANALYZING: zod.z.number().int().describe("Files being analyzed against system parameters.")
|
|
154
|
-
}).describe("Breakdown of documents by processing status.");
|
|
143
|
+
SPLIT: zod.z.number().int().describe("Files split into multiple documents.").nullable(),
|
|
144
|
+
INVALID: zod.z.number().int().describe("Files not supported by the system and not processed.").nullable(),
|
|
145
|
+
SKIPPED: zod.z.number().int().describe("Files skipped because of a template.").nullable(),
|
|
146
|
+
TRANSKO: zod.z.number().int().describe("Files where Python post-processing failed.").nullable(),
|
|
147
|
+
EXPORTKO: zod.z.number().int().describe("Files where exporting parsed data failed.").nullable(),
|
|
148
|
+
INCOMING: zod.z.number().int().describe("Files received by the system awaiting processing.").nullable(),
|
|
149
|
+
PARSEDKO: zod.z.number().int().describe("Files where processing failed.").nullable(),
|
|
150
|
+
PARSEDOK: zod.z.number().int().describe("Files successfully processed with data available for export.").nullable(),
|
|
151
|
+
PROGRESS: zod.z.number().int().describe("Files currently being processed by active AI engine.").nullable(),
|
|
152
|
+
QUOTAEXC: zod.z.number().int().describe("Files where processing stopped due to insufficient credits.").nullable(),
|
|
153
|
+
ANALYZING: zod.z.number().int().describe("Files being analyzed against system parameters.").nullable()
|
|
154
|
+
}).passthrough().describe("Breakdown of documents by processing status.");
|
|
155
155
|
const ParseurCreateMailboxOutput = zod.z.object({
|
|
156
|
-
id: zod.z.number().int().describe("The internal ID number for the parser."),
|
|
156
|
+
id: zod.z.number().int().describe("The internal ID number for the parser.").nullable(),
|
|
157
157
|
name: zod.z.string().describe("The name of the parser.").nullable().optional(),
|
|
158
|
-
secret: zod.z.string().describe("Secret key for the parser."),
|
|
158
|
+
secret: zod.z.string().describe("Secret key for the parser.").nullable(),
|
|
159
159
|
ai_engine: ParseurCreateMailbox_AIEngineSchema.nullable(),
|
|
160
160
|
force_ocr: zod.z.boolean().describe("Whether Parseur runs its own OCR on every document.").nullable().optional(),
|
|
161
|
-
is_master: zod.z.boolean().describe("Whether this is a master parser that passes its instructions to others."),
|
|
161
|
+
is_master: zod.z.boolean().describe("Whether this is a master parser that passes its instructions to others.").nullable(),
|
|
162
162
|
table_set: zod.z.array(ParseurCreateMailbox_TableItemSchema).describe("List of tables configured in the parser."),
|
|
163
|
-
account_uuid: zod.z.string().describe("The Universally Unique Identifier for your account."),
|
|
164
|
-
csv_download: zod.z.string().describe("URL to download data as CSV."),
|
|
163
|
+
account_uuid: zod.z.string().describe("The Universally Unique Identifier for your account.").nullable(),
|
|
164
|
+
csv_download: zod.z.string().describe("URL to download data as CSV.").nullable(),
|
|
165
165
|
email_prefix: zod.z.string().describe("The email prefix for the parser.").nullable().optional(),
|
|
166
|
-
xls_download: zod.z.string().describe("URL to download data as XLS."),
|
|
167
|
-
can_transform: zod.z.boolean().describe("Whether Python Post-Processing is enabled for this parser."),
|
|
168
|
-
json_download: zod.z.string().describe("URL to download data as JSON."),
|
|
169
|
-
last_activity: zod.z.string().describe("Timestamp of last activity (ISO 8601 format)."),
|
|
166
|
+
xls_download: zod.z.string().describe("URL to download data as XLS.").nullable(),
|
|
167
|
+
can_transform: zod.z.boolean().describe("Whether Python Post-Processing is enabled for this parser.").nullable(),
|
|
168
|
+
json_download: zod.z.string().describe("URL to download data as JSON.").nullable(),
|
|
169
|
+
last_activity: zod.z.string().describe("Timestamp of last activity (ISO 8601 format).").nullable(),
|
|
170
170
|
webhook_count: zod.z.number().int().describe("The number of webhooks the parser has.").nullable().optional(),
|
|
171
|
-
document_count: zod.z.number().int().describe("The number of documents in the parser."),
|
|
171
|
+
document_count: zod.z.number().int().describe("The number of documents in the parser.").nullable(),
|
|
172
172
|
template_count: zod.z.number().int().describe("The number of templates the parser has.").nullable().optional(),
|
|
173
173
|
ai_instructions: zod.z.string().describe("General AI instruction for this parser.").nullable().optional(),
|
|
174
|
-
attachments_only: zod.z.boolean().describe("Whether the parser skips email processing."),
|
|
174
|
+
attachments_only: zod.z.boolean().describe("Whether the parser skips email processing.").nullable(),
|
|
175
175
|
retention_policy: zod.z.number().int().describe("How many days documents and data are stored before deletion.").nullable().optional(),
|
|
176
176
|
allowed_extensions: zod.z.array(ParseurCreateMailbox_FileExtensionSchema).describe("List of file extensions to process. If not present, all extensions are enabled.").nullable().optional(),
|
|
177
177
|
master_parser_name: zod.z.string().describe("The name of this parser's master parser.").nullable().optional(),
|
|
178
178
|
master_parser_slug: ParseurCreateMailbox_MasterParserSlugSchema.nullable().optional(),
|
|
179
|
-
parser_object_count: zod.z.number().int().describe("The total number of field and metadata outputs currently configured in the parser."),
|
|
179
|
+
parser_object_count: zod.z.number().int().describe("The total number of field and metadata outputs currently configured in the parser.").nullable(),
|
|
180
180
|
process_attachments: zod.z.boolean().describe("Whether email attachment processing is enabled.").nullable().optional(),
|
|
181
181
|
available_webhook_set: zod.z.array(ParseurCreateMailbox_WebhookItemSchema).describe("List of available webhooks for the parser."),
|
|
182
182
|
identification_status: ParseurCreateMailbox_IdentificationStatusSchema.nullable().optional(),
|
|
183
183
|
document_per_status_count: ParseurCreateMailbox_DocumentStatusCountSchema.nullable(),
|
|
184
184
|
template_set_last_modified: zod.z.string().describe("Timestamp when templates were last modified.").nullable().optional(),
|
|
185
185
|
parser_object_set_last_modified: zod.z.string().describe("Timestamp when parser objects were last modified.").nullable().optional()
|
|
186
|
-
}).describe("Response containing the created mailbox details.");
|
|
186
|
+
}).passthrough().describe("Response containing the created mailbox details.");
|
|
187
187
|
const parseurCreateMailbox = require_action.action("PARSEUR_CREATE_MAILBOX", {
|
|
188
188
|
slug: "parseur-create-mailbox",
|
|
189
189
|
name: "Create mailbox",
|