@keystrokehq/parseur 0.1.4 → 0.1.6
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 +1 -0
- package/dist/actions/copy-document.cjs.map +1 -1
- package/dist/actions/copy-document.d.cts +3 -4
- package/dist/actions/copy-document.d.cts.map +1 -1
- package/dist/actions/copy-document.d.mts +3 -4
- package/dist/actions/copy-document.d.mts.map +1 -1
- package/dist/actions/copy-document.mjs +1 -0
- package/dist/actions/copy-document.mjs.map +1 -1
- package/dist/actions/copy-mailbox.cjs +1 -0
- package/dist/actions/copy-mailbox.cjs.map +1 -1
- package/dist/actions/copy-mailbox.d.cts +3 -3
- package/dist/actions/copy-mailbox.d.cts.map +1 -1
- package/dist/actions/copy-mailbox.d.mts +3 -3
- package/dist/actions/copy-mailbox.d.mts.map +1 -1
- package/dist/actions/copy-mailbox.mjs +1 -0
- package/dist/actions/copy-mailbox.mjs.map +1 -1
- package/dist/actions/create-custom-download.cjs +1 -0
- package/dist/actions/create-custom-download.cjs.map +1 -1
- package/dist/actions/create-custom-download.d.cts +3 -11
- package/dist/actions/create-custom-download.d.cts.map +1 -1
- package/dist/actions/create-custom-download.d.mts +3 -11
- package/dist/actions/create-custom-download.d.mts.map +1 -1
- package/dist/actions/create-custom-download.mjs +1 -0
- package/dist/actions/create-custom-download.mjs.map +1 -1
- package/dist/actions/create-mailbox.cjs +1 -0
- package/dist/actions/create-mailbox.cjs.map +1 -1
- package/dist/actions/create-mailbox.d.cts +3 -11
- package/dist/actions/create-mailbox.d.cts.map +1 -1
- package/dist/actions/create-mailbox.d.mts +3 -11
- package/dist/actions/create-mailbox.d.mts.map +1 -1
- package/dist/actions/create-mailbox.mjs +1 -0
- package/dist/actions/create-mailbox.mjs.map +1 -1
- package/dist/actions/delete-custom-download.cjs +1 -0
- package/dist/actions/delete-custom-download.cjs.map +1 -1
- package/dist/actions/delete-custom-download.d.cts +3 -4
- package/dist/actions/delete-custom-download.d.cts.map +1 -1
- package/dist/actions/delete-custom-download.d.mts +3 -4
- package/dist/actions/delete-custom-download.d.mts.map +1 -1
- package/dist/actions/delete-custom-download.mjs +1 -0
- package/dist/actions/delete-custom-download.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -0
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +3 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +3 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -0
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-mailbox.cjs +1 -0
- package/dist/actions/delete-mailbox.cjs.map +1 -1
- package/dist/actions/delete-mailbox.d.cts +3 -3
- package/dist/actions/delete-mailbox.d.cts.map +1 -1
- package/dist/actions/delete-mailbox.d.mts +3 -3
- package/dist/actions/delete-mailbox.d.mts.map +1 -1
- package/dist/actions/delete-mailbox.mjs +1 -0
- package/dist/actions/delete-mailbox.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -0
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +3 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +3 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +1 -0
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/disable-webhook.cjs +1 -0
- package/dist/actions/disable-webhook.cjs.map +1 -1
- package/dist/actions/disable-webhook.d.cts +3 -4
- package/dist/actions/disable-webhook.d.cts.map +1 -1
- package/dist/actions/disable-webhook.d.mts +3 -4
- package/dist/actions/disable-webhook.d.mts.map +1 -1
- package/dist/actions/disable-webhook.mjs +1 -0
- package/dist/actions/disable-webhook.mjs.map +1 -1
- package/dist/actions/enable-webhook.cjs +1 -0
- package/dist/actions/enable-webhook.cjs.map +1 -1
- package/dist/actions/enable-webhook.d.cts +3 -4
- package/dist/actions/enable-webhook.d.cts.map +1 -1
- package/dist/actions/enable-webhook.d.mts +3 -4
- package/dist/actions/enable-webhook.d.mts.map +1 -1
- package/dist/actions/enable-webhook.mjs +1 -0
- package/dist/actions/enable-webhook.mjs.map +1 -1
- package/dist/actions/get-bootstrap-config.cjs +1 -0
- package/dist/actions/get-bootstrap-config.cjs.map +1 -1
- package/dist/actions/get-bootstrap-config.d.cts +3 -1
- package/dist/actions/get-bootstrap-config.d.cts.map +1 -1
- package/dist/actions/get-bootstrap-config.d.mts +3 -1
- package/dist/actions/get-bootstrap-config.d.mts.map +1 -1
- package/dist/actions/get-bootstrap-config.mjs +1 -0
- package/dist/actions/get-bootstrap-config.mjs.map +1 -1
- package/dist/actions/get-document-logs.cjs +1 -0
- package/dist/actions/get-document-logs.cjs.map +1 -1
- package/dist/actions/get-document-logs.d.cts +3 -7
- package/dist/actions/get-document-logs.d.cts.map +1 -1
- package/dist/actions/get-document-logs.d.mts +3 -7
- package/dist/actions/get-document-logs.d.mts.map +1 -1
- package/dist/actions/get-document-logs.mjs +1 -0
- package/dist/actions/get-document-logs.mjs.map +1 -1
- package/dist/actions/get-document.cjs +1 -0
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +3 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +3 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +1 -0
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-mailbox-schema.cjs +1 -0
- package/dist/actions/get-mailbox-schema.cjs.map +1 -1
- package/dist/actions/get-mailbox-schema.d.cts +3 -3
- package/dist/actions/get-mailbox-schema.d.cts.map +1 -1
- package/dist/actions/get-mailbox-schema.d.mts +3 -3
- package/dist/actions/get-mailbox-schema.d.mts.map +1 -1
- package/dist/actions/get-mailbox-schema.mjs +1 -0
- package/dist/actions/get-mailbox-schema.mjs.map +1 -1
- package/dist/actions/get-mailbox.cjs +1 -0
- package/dist/actions/get-mailbox.cjs.map +1 -1
- package/dist/actions/get-mailbox.d.cts +3 -3
- package/dist/actions/get-mailbox.d.cts.map +1 -1
- package/dist/actions/get-mailbox.d.mts +3 -3
- package/dist/actions/get-mailbox.d.mts.map +1 -1
- package/dist/actions/get-mailbox.mjs +1 -0
- package/dist/actions/get-mailbox.mjs.map +1 -1
- package/dist/actions/list-custom-downloads.cjs +1 -0
- package/dist/actions/list-custom-downloads.cjs.map +1 -1
- package/dist/actions/list-custom-downloads.d.cts +3 -3
- package/dist/actions/list-custom-downloads.d.cts.map +1 -1
- package/dist/actions/list-custom-downloads.d.mts +3 -3
- package/dist/actions/list-custom-downloads.d.mts.map +1 -1
- package/dist/actions/list-custom-downloads.mjs +1 -0
- package/dist/actions/list-custom-downloads.mjs.map +1 -1
- package/dist/actions/list-documents-in-mailbox.cjs +1 -0
- package/dist/actions/list-documents-in-mailbox.cjs.map +1 -1
- package/dist/actions/list-documents-in-mailbox.d.cts +3 -11
- package/dist/actions/list-documents-in-mailbox.d.cts.map +1 -1
- package/dist/actions/list-documents-in-mailbox.d.mts +3 -11
- package/dist/actions/list-documents-in-mailbox.d.mts.map +1 -1
- package/dist/actions/list-documents-in-mailbox.mjs +1 -0
- package/dist/actions/list-documents-in-mailbox.mjs.map +1 -1
- package/dist/actions/list-mailboxes2.cjs +1 -0
- package/dist/actions/list-mailboxes2.cjs.map +1 -1
- package/dist/actions/list-mailboxes2.d.cts +3 -6
- package/dist/actions/list-mailboxes2.d.cts.map +1 -1
- package/dist/actions/list-mailboxes2.d.mts +3 -6
- package/dist/actions/list-mailboxes2.d.mts.map +1 -1
- package/dist/actions/list-mailboxes2.mjs +1 -0
- package/dist/actions/list-mailboxes2.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +1 -0
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +3 -7
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +3 -7
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs +1 -0
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/reprocess-document.cjs +1 -0
- package/dist/actions/reprocess-document.cjs.map +1 -1
- package/dist/actions/reprocess-document.d.cts +3 -3
- package/dist/actions/reprocess-document.d.cts.map +1 -1
- package/dist/actions/reprocess-document.d.mts +3 -3
- package/dist/actions/reprocess-document.d.mts.map +1 -1
- package/dist/actions/reprocess-document.mjs +1 -0
- package/dist/actions/reprocess-document.mjs.map +1 -1
- package/dist/actions/retrieve-webhook.cjs +1 -0
- package/dist/actions/retrieve-webhook.cjs.map +1 -1
- package/dist/actions/retrieve-webhook.d.cts +3 -3
- package/dist/actions/retrieve-webhook.d.cts.map +1 -1
- package/dist/actions/retrieve-webhook.d.mts +3 -3
- package/dist/actions/retrieve-webhook.d.mts.map +1 -1
- package/dist/actions/retrieve-webhook.mjs +1 -0
- package/dist/actions/retrieve-webhook.mjs.map +1 -1
- package/dist/actions/skip-document.cjs +1 -0
- package/dist/actions/skip-document.cjs.map +1 -1
- package/dist/actions/skip-document.d.cts +3 -3
- package/dist/actions/skip-document.d.cts.map +1 -1
- package/dist/actions/skip-document.d.mts +3 -3
- package/dist/actions/skip-document.d.mts.map +1 -1
- package/dist/actions/skip-document.mjs +1 -0
- package/dist/actions/skip-document.mjs.map +1 -1
- package/dist/actions/update-custom-download.cjs +1 -0
- package/dist/actions/update-custom-download.cjs.map +1 -1
- package/dist/actions/update-custom-download.d.cts +3 -9
- package/dist/actions/update-custom-download.d.cts.map +1 -1
- package/dist/actions/update-custom-download.d.mts +3 -9
- package/dist/actions/update-custom-download.d.mts.map +1 -1
- package/dist/actions/update-custom-download.mjs +1 -0
- package/dist/actions/update-custom-download.mjs.map +1 -1
- package/dist/actions/update-mailbox.cjs +1 -0
- package/dist/actions/update-mailbox.cjs.map +1 -1
- package/dist/actions/update-mailbox.d.cts +3 -35
- package/dist/actions/update-mailbox.d.cts.map +1 -1
- package/dist/actions/update-mailbox.d.mts +3 -35
- package/dist/actions/update-mailbox.d.mts.map +1 -1
- package/dist/actions/update-mailbox.mjs +1 -0
- package/dist/actions/update-mailbox.mjs.map +1 -1
- package/dist/actions/update-webhook.cjs +1 -0
- package/dist/actions/update-webhook.cjs.map +1 -1
- package/dist/actions/update-webhook.d.cts +3 -8
- package/dist/actions/update-webhook.d.cts.map +1 -1
- package/dist/actions/update-webhook.d.mts +3 -8
- package/dist/actions/update-webhook.d.mts.map +1 -1
- package/dist/actions/update-webhook.mjs +1 -0
- package/dist/actions/update-webhook.mjs.map +1 -1
- package/dist/actions/upload-email-document.cjs +1 -0
- package/dist/actions/upload-email-document.cjs.map +1 -1
- package/dist/actions/upload-email-document.d.cts +3 -11
- package/dist/actions/upload-email-document.d.cts.map +1 -1
- package/dist/actions/upload-email-document.d.mts +3 -11
- package/dist/actions/upload-email-document.d.mts.map +1 -1
- package/dist/actions/upload-email-document.mjs +1 -0
- package/dist/actions/upload-email-document.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-webhook.cjs","names":["z","action"],"sources":["../../src/actions/update-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateWebhookInput = z.object({\n name: z.string().describe(\"Custom name for the webhook; defaults to the target URL if omitted\").optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Trigger event for the webhook\").optional(),\n target: z.string().describe(\"HTTPS URL to receive the webhook payload\").optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Additional HTTP headers to include; Content-Type is always application/json\").optional(),\n webhook_id: z.number().int().describe(\"Unique ID of the webhook to update\"),\n parser_field: z.string().describe(\"ID of a specific field trigger in 'PF12345' format\").optional(),\n}).describe(\"Request model for updating an existing webhook. Only include fields you wish to change.\");\nexport const ParseurUpdateWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook; null if not set.\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook; null if not set.\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload; null if not set.\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook, always 'CUSTOM'\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields or table-fields assigned to the webhook.\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage if applicable; null if not set.\").nullable().optional(),\n}).passthrough().describe(\"Response model for update webhook action.\");\n\nexport const parseurUpdateWebhook = action(\"PARSEUR_UPDATE_WEBHOOK\", {\n slug: \"parseur-update-webhook\",\n name: \"Update webhook\",\n description: \"Tool to update an existing webhook’s settings. Use when you need to change the webhook’s target URL, event type, headers, or name after creation.\",\n input: ParseurUpdateWebhookInput,\n output: ParseurUpdateWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-webhook.cjs","names":["z","action"],"sources":["../../src/actions/update-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurUpdateWebhookInput = z.object({\n name: z.string().describe(\"Custom name for the webhook; defaults to the target URL if omitted\").optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Trigger event for the webhook\").optional(),\n target: z.string().describe(\"HTTPS URL to receive the webhook payload\").optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Additional HTTP headers to include; Content-Type is always application/json\").optional(),\n webhook_id: z.number().int().describe(\"Unique ID of the webhook to update\"),\n parser_field: z.string().describe(\"ID of a specific field trigger in 'PF12345' format\").optional(),\n}).describe(\"Request model for updating an existing webhook. Only include fields you wish to change.\");\nexport const ParseurUpdateWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook; null if not set.\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook; null if not set.\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload; null if not set.\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook, always 'CUSTOM'\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields or table-fields assigned to the webhook.\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage if applicable; null if not set.\").nullable().optional(),\n}).passthrough().describe(\"Response model for update webhook action.\");\n\nexport const parseurUpdateWebhook: AppAction<\n typeof ParseurUpdateWebhookInput,\n typeof ParseurUpdateWebhookOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_UPDATE_WEBHOOK\", {\n slug: \"parseur-update-webhook\",\n name: \"Update webhook\",\n description: \"Tool to update an existing webhook’s settings. Use when you need to change the webhook’s target URL, event type, headers, or name after creation.\",\n input: ParseurUpdateWebhookInput,\n output: ParseurUpdateWebhookOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACzG,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAsB;EAAgC;EAA4B;CAAiB,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC5I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAsB;EAAgC;EAA4B;CAAiB,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parseur } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-webhook.d.ts
|
|
@@ -30,14 +32,7 @@ declare const ParseurUpdateWebhookOutput: z.ZodObject<{
|
|
|
30
32
|
parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
31
33
|
default_driver_fee_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const parseurUpdateWebhook:
|
|
34
|
-
webhook_id: number;
|
|
35
|
-
name?: string | undefined;
|
|
36
|
-
event?: "document.processed" | "document.processed.flattened" | "document.template_needed" | "table.processed" | undefined;
|
|
37
|
-
target?: string | undefined;
|
|
38
|
-
headers?: Record<string, unknown> | undefined;
|
|
39
|
-
parser_field?: string | undefined;
|
|
40
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
35
|
+
declare const parseurUpdateWebhook: AppAction<typeof ParseurUpdateWebhookInput, typeof ParseurUpdateWebhookOutput, typeof parseur.credential>;
|
|
41
36
|
//#endregion
|
|
42
37
|
export { parseurUpdateWebhook };
|
|
43
38
|
//# sourceMappingURL=update-webhook.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-webhook.d.cts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-webhook.d.cts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAY1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parseur } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-webhook.d.ts
|
|
@@ -30,14 +32,7 @@ declare const ParseurUpdateWebhookOutput: z.ZodObject<{
|
|
|
30
32
|
parser_field_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
31
33
|
default_driver_fee_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const parseurUpdateWebhook:
|
|
34
|
-
webhook_id: number;
|
|
35
|
-
name?: string | undefined;
|
|
36
|
-
event?: "document.processed" | "document.processed.flattened" | "document.template_needed" | "table.processed" | undefined;
|
|
37
|
-
target?: string | undefined;
|
|
38
|
-
headers?: Record<string, unknown> | undefined;
|
|
39
|
-
parser_field?: string | undefined;
|
|
40
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
35
|
+
declare const parseurUpdateWebhook: AppAction<typeof ParseurUpdateWebhookInput, typeof ParseurUpdateWebhookOutput, typeof parseur.credential>;
|
|
41
36
|
//#endregion
|
|
42
37
|
export { parseurUpdateWebhook };
|
|
43
38
|
//# sourceMappingURL=update-webhook.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-webhook.d.mts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-webhook.d.mts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAY1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-webhook.mjs","names":[],"sources":["../../src/actions/update-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateWebhookInput = z.object({\n name: z.string().describe(\"Custom name for the webhook; defaults to the target URL if omitted\").optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Trigger event for the webhook\").optional(),\n target: z.string().describe(\"HTTPS URL to receive the webhook payload\").optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Additional HTTP headers to include; Content-Type is always application/json\").optional(),\n webhook_id: z.number().int().describe(\"Unique ID of the webhook to update\"),\n parser_field: z.string().describe(\"ID of a specific field trigger in 'PF12345' format\").optional(),\n}).describe(\"Request model for updating an existing webhook. Only include fields you wish to change.\");\nexport const ParseurUpdateWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook; null if not set.\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook; null if not set.\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload; null if not set.\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook, always 'CUSTOM'\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields or table-fields assigned to the webhook.\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage if applicable; null if not set.\").nullable().optional(),\n}).passthrough().describe(\"Response model for update webhook action.\");\n\nexport const parseurUpdateWebhook = action(\"PARSEUR_UPDATE_WEBHOOK\", {\n slug: \"parseur-update-webhook\",\n name: \"Update webhook\",\n description: \"Tool to update an existing webhook’s settings. Use when you need to change the webhook’s target URL, event type, headers, or name after creation.\",\n input: ParseurUpdateWebhookInput,\n output: ParseurUpdateWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-webhook.mjs","names":[],"sources":["../../src/actions/update-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurUpdateWebhookInput = z.object({\n name: z.string().describe(\"Custom name for the webhook; defaults to the target URL if omitted\").optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Trigger event for the webhook\").optional(),\n target: z.string().describe(\"HTTPS URL to receive the webhook payload\").optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Additional HTTP headers to include; Content-Type is always application/json\").optional(),\n webhook_id: z.number().int().describe(\"Unique ID of the webhook to update\"),\n parser_field: z.string().describe(\"ID of a specific field trigger in 'PF12345' format\").optional(),\n}).describe(\"Request model for updating an existing webhook. Only include fields you wish to change.\");\nexport const ParseurUpdateWebhookOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook; null if not set.\").nullable().optional(),\n event: z.enum([\"document.processed\", \"document.processed.flattened\", \"document.template_needed\", \"table.processed\"]).describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n api_key: z.string().describe(\"API key associated with the webhook; null if not set.\").nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload; null if not set.\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook, always 'CUSTOM'\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields or table-fields assigned to the webhook.\").nullable().optional(),\n default_driver_fee_percentage: z.number().describe(\"Default driver fee percentage if applicable; null if not set.\").nullable().optional(),\n}).passthrough().describe(\"Response model for update webhook action.\");\n\nexport const parseurUpdateWebhook: AppAction<\n typeof ParseurUpdateWebhookInput,\n typeof ParseurUpdateWebhookOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_UPDATE_WEBHOOK\", {\n slug: \"parseur-update-webhook\",\n name: \"Update webhook\",\n description: \"Tool to update an existing webhook’s settings. Use when you need to change the webhook’s target URL, event type, headers, or name after creation.\",\n input: ParseurUpdateWebhookInput,\n output: ParseurUpdateWebhookOutput,\n});\n"],"mappings":";;;AA0BA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACzG,OAAO,EAAE,KAAK;GAAC;GAAsB;GAAgC;GAA4B;EAAiB,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxK,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAC5I,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,yFAqBH;CACP,QArBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,KAAK;GAAC;GAAsB;GAAgC;GAA4B;EAAiB,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5K,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5J,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-email-document.cjs","names":["z","action"],"sources":["../../src/actions/upload-email-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUploadEmailDocumentInput = z.object({\n cc: z.string().describe(\"CC addresses (optional).\").optional(),\n to: z.string().describe(\"To addresses (optional).\").optional(),\n bcc: z.string().describe(\"BCC addresses (optional).\").optional(),\n from: z.string().describe(\"Sender name and email address.\"),\n subject: z.string().describe(\"The title of your document, or email subject.\"),\n body_html: z.string().describe(\"Document content as HTML (takes priority over plain text if both are provided).\").optional(),\n recipient: z.string().describe(\"Mailbox email address (e.g., test@in.parseur.com) where the document should be sent.\"),\n body_plain: z.string().describe(\"Document content as plain text.\").optional(),\n message_headers: z.array(z.array(z.string())).describe(\"Custom email headers as array of [key, value] pairs. Each pair must have exactly 2 elements.\").optional(),\n}).describe(\"Request model for uploading an email/text document to Parseur.\");\nexport const ParseurUploadEmailDocumentOutput = z.object({\n message: z.string().describe(\"Success message indicating the document was uploaded successfully.\").nullable(),\n}).passthrough().describe(\"Response model for the upload email document action.\");\n\nexport const parseurUploadEmailDocument = action(\"PARSEUR_UPLOAD_EMAIL_DOCUMENT\", {\n slug: \"parseur-upload-email-document\",\n name: \"Upload Email Document\",\n description: \"Tool to upload an email or text document to Parseur for parsing. Use when you need to programmatically send documents to a Parseur mailbox.\",\n input: ParseurUploadEmailDocumentInput,\n output: ParseurUploadEmailDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-email-document.cjs","names":["z","action"],"sources":["../../src/actions/upload-email-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurUploadEmailDocumentInput = z.object({\n cc: z.string().describe(\"CC addresses (optional).\").optional(),\n to: z.string().describe(\"To addresses (optional).\").optional(),\n bcc: z.string().describe(\"BCC addresses (optional).\").optional(),\n from: z.string().describe(\"Sender name and email address.\"),\n subject: z.string().describe(\"The title of your document, or email subject.\"),\n body_html: z.string().describe(\"Document content as HTML (takes priority over plain text if both are provided).\").optional(),\n recipient: z.string().describe(\"Mailbox email address (e.g., test@in.parseur.com) where the document should be sent.\"),\n body_plain: z.string().describe(\"Document content as plain text.\").optional(),\n message_headers: z.array(z.array(z.string())).describe(\"Custom email headers as array of [key, value] pairs. Each pair must have exactly 2 elements.\").optional(),\n}).describe(\"Request model for uploading an email/text document to Parseur.\");\nexport const ParseurUploadEmailDocumentOutput = z.object({\n message: z.string().describe(\"Success message indicating the document was uploaded successfully.\").nullable(),\n}).passthrough().describe(\"Response model for the upload email document action.\");\n\nexport const parseurUploadEmailDocument: AppAction<\n typeof ParseurUploadEmailDocumentInput,\n typeof ParseurUploadEmailDocumentOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_UPLOAD_EMAIL_DOCUMENT\", {\n slug: \"parseur-upload-email-document\",\n name: \"Upload Email Document\",\n description: \"Tool to upload an email or text document to Parseur for parsing. Use when you need to programmatically send documents to a Parseur mailbox.\",\n input: ParseurUploadEmailDocumentInput,\n output: ParseurUploadEmailDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parseur } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upload-email-document.d.ts
|
|
@@ -15,17 +17,7 @@ declare const ParseurUploadEmailDocumentInput: z.ZodObject<{
|
|
|
15
17
|
declare const ParseurUploadEmailDocumentOutput: z.ZodObject<{
|
|
16
18
|
message: z.ZodNullable<z.ZodString>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const parseurUploadEmailDocument:
|
|
19
|
-
from: string;
|
|
20
|
-
subject: string;
|
|
21
|
-
recipient: string;
|
|
22
|
-
cc?: string | undefined;
|
|
23
|
-
to?: string | undefined;
|
|
24
|
-
bcc?: string | undefined;
|
|
25
|
-
body_html?: string | undefined;
|
|
26
|
-
body_plain?: string | undefined;
|
|
27
|
-
message_headers?: string[][] | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const parseurUploadEmailDocument: AppAction<typeof ParseurUploadEmailDocumentInput, typeof ParseurUploadEmailDocumentOutput, typeof parseur.credential>;
|
|
29
21
|
//#endregion
|
|
30
22
|
export { parseurUploadEmailDocument };
|
|
31
23
|
//# sourceMappingURL=upload-email-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-email-document.d.cts","names":[],"sources":["../../src/actions/upload-email-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-email-document.d.cts","names":[],"sources":["../../src/actions/upload-email-document.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parseur } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upload-email-document.d.ts
|
|
@@ -15,17 +17,7 @@ declare const ParseurUploadEmailDocumentInput: z.ZodObject<{
|
|
|
15
17
|
declare const ParseurUploadEmailDocumentOutput: z.ZodObject<{
|
|
16
18
|
message: z.ZodNullable<z.ZodString>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const parseurUploadEmailDocument:
|
|
19
|
-
from: string;
|
|
20
|
-
subject: string;
|
|
21
|
-
recipient: string;
|
|
22
|
-
cc?: string | undefined;
|
|
23
|
-
to?: string | undefined;
|
|
24
|
-
bcc?: string | undefined;
|
|
25
|
-
body_html?: string | undefined;
|
|
26
|
-
body_plain?: string | undefined;
|
|
27
|
-
message_headers?: string[][] | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const parseurUploadEmailDocument: AppAction<typeof ParseurUploadEmailDocumentInput, typeof ParseurUploadEmailDocumentOutput, typeof parseur.credential>;
|
|
29
21
|
//#endregion
|
|
30
22
|
export { parseurUploadEmailDocument };
|
|
31
23
|
//# sourceMappingURL=upload-email-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-email-document.d.mts","names":[],"sources":["../../src/actions/upload-email-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-email-document.d.mts","names":[],"sources":["../../src/actions/upload-email-document.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-email-document.mjs","names":[],"sources":["../../src/actions/upload-email-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUploadEmailDocumentInput = z.object({\n cc: z.string().describe(\"CC addresses (optional).\").optional(),\n to: z.string().describe(\"To addresses (optional).\").optional(),\n bcc: z.string().describe(\"BCC addresses (optional).\").optional(),\n from: z.string().describe(\"Sender name and email address.\"),\n subject: z.string().describe(\"The title of your document, or email subject.\"),\n body_html: z.string().describe(\"Document content as HTML (takes priority over plain text if both are provided).\").optional(),\n recipient: z.string().describe(\"Mailbox email address (e.g., test@in.parseur.com) where the document should be sent.\"),\n body_plain: z.string().describe(\"Document content as plain text.\").optional(),\n message_headers: z.array(z.array(z.string())).describe(\"Custom email headers as array of [key, value] pairs. Each pair must have exactly 2 elements.\").optional(),\n}).describe(\"Request model for uploading an email/text document to Parseur.\");\nexport const ParseurUploadEmailDocumentOutput = z.object({\n message: z.string().describe(\"Success message indicating the document was uploaded successfully.\").nullable(),\n}).passthrough().describe(\"Response model for the upload email document action.\");\n\nexport const parseurUploadEmailDocument = action(\"PARSEUR_UPLOAD_EMAIL_DOCUMENT\", {\n slug: \"parseur-upload-email-document\",\n name: \"Upload Email Document\",\n description: \"Tool to upload an email or text document to Parseur for parsing. Use when you need to programmatically send documents to a Parseur mailbox.\",\n input: ParseurUploadEmailDocumentInput,\n output: ParseurUploadEmailDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-email-document.mjs","names":[],"sources":["../../src/actions/upload-email-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parseur } from \"../app\";\n\nexport const ParseurUploadEmailDocumentInput = z.object({\n cc: z.string().describe(\"CC addresses (optional).\").optional(),\n to: z.string().describe(\"To addresses (optional).\").optional(),\n bcc: z.string().describe(\"BCC addresses (optional).\").optional(),\n from: z.string().describe(\"Sender name and email address.\"),\n subject: z.string().describe(\"The title of your document, or email subject.\"),\n body_html: z.string().describe(\"Document content as HTML (takes priority over plain text if both are provided).\").optional(),\n recipient: z.string().describe(\"Mailbox email address (e.g., test@in.parseur.com) where the document should be sent.\"),\n body_plain: z.string().describe(\"Document content as plain text.\").optional(),\n message_headers: z.array(z.array(z.string())).describe(\"Custom email headers as array of [key, value] pairs. Each pair must have exactly 2 elements.\").optional(),\n}).describe(\"Request model for uploading an email/text document to Parseur.\");\nexport const ParseurUploadEmailDocumentOutput = z.object({\n message: z.string().describe(\"Success message indicating the document was uploaded successfully.\").nullable(),\n}).passthrough().describe(\"Response model for the upload email document action.\");\n\nexport const parseurUploadEmailDocument: AppAction<\n typeof ParseurUploadEmailDocumentInput,\n typeof ParseurUploadEmailDocumentOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_UPLOAD_EMAIL_DOCUMENT\", {\n slug: \"parseur-upload-email-document\",\n name: \"Upload Email Document\",\n description: \"Tool to upload an email or text document to Parseur for parsing. Use when you need to programmatically send documents to a Parseur mailbox.\",\n input: ParseurUploadEmailDocumentInput,\n output: ParseurUploadEmailDocumentOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC3H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAClK,CAAC,CAAC,CAAC,SAAS,gEAaH;CACP,QAb8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
|
+
const parseur = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "parseur",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.parseur = parseur;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const parseur = defineApp({\n slug: \"parseur\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const parseur: KeystrokeApp<\"parseur\", typeof credential> = defineApp({\n slug: \"parseur\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const parseur: KeystrokeApp<"parseur", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { parseur };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const parseur: KeystrokeApp<"parseur", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { parseur };
|
|
5
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const parseur = defineApp({
|
|
4
4
|
slug: "parseur",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: { generic_api_key: z.string() }
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { parseur };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const parseur = defineApp({\n slug: \"parseur\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const parseur: KeystrokeApp<\"parseur\", typeof credential> = defineApp({\n slug: \"parseur\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parseur } from "./app.cjs";
|
|
1
2
|
import { parseurCopyDocument } from "./actions/copy-document.cjs";
|
|
2
3
|
import { parseurCopyMailbox } from "./actions/copy-mailbox.cjs";
|
|
3
4
|
import { parseurCreateCustomDownload } from "./actions/create-custom-download.cjs";
|
|
@@ -24,6 +25,5 @@ import { parseurUpdateCustomDownload } from "./actions/update-custom-download.cj
|
|
|
24
25
|
import { parseurUpdateMailbox } from "./actions/update-mailbox.cjs";
|
|
25
26
|
import { parseurUpdateWebhook } from "./actions/update-webhook.cjs";
|
|
26
27
|
import { parseurUploadEmailDocument } from "./actions/upload-email-document.cjs";
|
|
27
|
-
import { parseur } from "./app.cjs";
|
|
28
28
|
import { parseurCatalog } from "./catalog.cjs";
|
|
29
29
|
export { parseur, parseurCatalog, parseurCopyDocument, parseurCopyMailbox, parseurCreateCustomDownload, parseurCreateMailbox, parseurDeleteCustomDownload, parseurDeleteDocument, parseurDeleteMailbox, parseurDeleteWebhook, parseurDisableWebhook, parseurEnableWebhook, parseurGetBootstrapConfig, parseurGetDocument, parseurGetDocumentLogs, parseurGetMailbox, parseurGetMailboxSchema, parseurListCustomDownloads, parseurListDocumentsInMailbox, parseurListMailboxes2, parseurListTemplates, parseurReprocessDocument, parseurRetrieveWebhook, parseurSkipDocument, parseurUpdateCustomDownload, parseurUpdateMailbox, parseurUpdateWebhook, parseurUploadEmailDocument };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parseur } from "./app.mjs";
|
|
1
2
|
import { parseurCopyDocument } from "./actions/copy-document.mjs";
|
|
2
3
|
import { parseurCopyMailbox } from "./actions/copy-mailbox.mjs";
|
|
3
4
|
import { parseurCreateCustomDownload } from "./actions/create-custom-download.mjs";
|
|
@@ -24,6 +25,5 @@ import { parseurUpdateCustomDownload } from "./actions/update-custom-download.mj
|
|
|
24
25
|
import { parseurUpdateMailbox } from "./actions/update-mailbox.mjs";
|
|
25
26
|
import { parseurUpdateWebhook } from "./actions/update-webhook.mjs";
|
|
26
27
|
import { parseurUploadEmailDocument } from "./actions/upload-email-document.mjs";
|
|
27
|
-
import { parseur } from "./app.mjs";
|
|
28
28
|
import { parseurCatalog } from "./catalog.mjs";
|
|
29
29
|
export { parseur, parseurCatalog, parseurCopyDocument, parseurCopyMailbox, parseurCreateCustomDownload, parseurCreateMailbox, parseurDeleteCustomDownload, parseurDeleteDocument, parseurDeleteMailbox, parseurDeleteWebhook, parseurDisableWebhook, parseurEnableWebhook, parseurGetBootstrapConfig, parseurGetDocument, parseurGetDocumentLogs, parseurGetMailbox, parseurGetMailboxSchema, parseurListCustomDownloads, parseurListDocumentsInMailbox, parseurListMailboxes2, parseurListTemplates, parseurReprocessDocument, parseurRetrieveWebhook, parseurSkipDocument, parseurUpdateCustomDownload, parseurUpdateMailbox, parseurUpdateWebhook, parseurUploadEmailDocument };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/parseur",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|