@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":"skip-document.cjs","names":["z","action"],"sources":["../../src/actions/skip-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurSkipDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.\"),\n});\nconst ParseurSkipDocument_SampleSetItemSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in the set\").nullable(),\n}).passthrough();\nconst ParseurSkipDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image data for the OCR page\").nullable().optional(),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nexport const ParseurSkipDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the parser/mailbox this document belongs to\").nullable(),\n result: z.string().describe(\"Parsed result string, if available\").nullable().optional(),\n status: z.string().describe(\"Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)\").nullable(),\n content: z.string().describe(\"Content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in sequence\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in sequence\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used, if any\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe(\"List of sample sets associated with the document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, if any\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total credits used for processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurSkipDocument_OcrPageSchema).describe(\"List of OCR pages in the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document\").nullable().optional(),\n status_source: z.string().describe(\"Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)\").nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"AI credits used for processing\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the document in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the document in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the document in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches the master template\").nullable(),\n original_document_url: z.string().describe(\"URL to the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Conventional credits used for processing\").nullable(),\n}).passthrough();\n\nexport const parseurSkipDocument = action(\"PARSEUR_SKIP_DOCUMENT\", {\n slug: \"parseur-skip-document\",\n name: \"Skip a document\",\n description: \"Tool to skip a document. Marks the document as skipped and returns the updated document with status 'SKIPPED'.\",\n input: ParseurSkipDocumentInput,\n output: ParseurSkipDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"skip-document.cjs","names":["z","action"],"sources":["../../src/actions/skip-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 ParseurSkipDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.\"),\n});\nconst ParseurSkipDocument_SampleSetItemSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in the set\").nullable(),\n}).passthrough();\nconst ParseurSkipDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image data for the OCR page\").nullable().optional(),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nexport const ParseurSkipDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the parser/mailbox this document belongs to\").nullable(),\n result: z.string().describe(\"Parsed result string, if available\").nullable().optional(),\n status: z.string().describe(\"Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)\").nullable(),\n content: z.string().describe(\"Content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in sequence\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in sequence\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used, if any\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe(\"List of sample sets associated with the document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, if any\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total credits used for processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurSkipDocument_OcrPageSchema).describe(\"List of OCR pages in the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document\").nullable().optional(),\n status_source: z.string().describe(\"Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)\").nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"AI credits used for processing\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the document in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the document in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the document in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches the master template\").nullable(),\n original_document_url: z.string().describe(\"URL to the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Conventional credits used for processing\").nullable(),\n}).passthrough();\n\nexport const parseurSkipDocument: AppAction<\n typeof ParseurSkipDocumentInput,\n typeof ParseurSkipDocumentOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_SKIP_DOCUMENT\", {\n slug: \"parseur-skip-document\",\n name: \"Skip a document\",\n description: \"Tool to skip a document. Marks the document as skipped and returns the updated document with status 'SKIPPED'.\",\n input: ParseurSkipDocumentInput,\n output: ParseurSkipDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAC/I,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAU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AA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC7F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC/F,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpF,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/skip-document.d.ts
|
|
@@ -43,9 +45,7 @@ declare const ParseurSkipDocumentOutput: z.ZodObject<{
|
|
|
43
45
|
original_document_url: z.ZodNullable<z.ZodString>;
|
|
44
46
|
conventional_credits_used: z.ZodNullable<z.ZodNumber>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const parseurSkipDocument:
|
|
47
|
-
id: string;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
declare const parseurSkipDocument: AppAction<typeof ParseurSkipDocumentInput, typeof ParseurSkipDocumentOutput, typeof parseur.credential>;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { parseurSkipDocument };
|
|
51
51
|
//# sourceMappingURL=skip-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-document.d.cts","names":[],"sources":["../../src/actions/skip-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"skip-document.d.cts","names":[],"sources":["../../src/actions/skip-document.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/skip-document.d.ts
|
|
@@ -43,9 +45,7 @@ declare const ParseurSkipDocumentOutput: z.ZodObject<{
|
|
|
43
45
|
original_document_url: z.ZodNullable<z.ZodString>;
|
|
44
46
|
conventional_credits_used: z.ZodNullable<z.ZodNumber>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const parseurSkipDocument:
|
|
47
|
-
id: string;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
declare const parseurSkipDocument: AppAction<typeof ParseurSkipDocumentInput, typeof ParseurSkipDocumentOutput, typeof parseur.credential>;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { parseurSkipDocument };
|
|
51
51
|
//# sourceMappingURL=skip-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-document.d.mts","names":[],"sources":["../../src/actions/skip-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"skip-document.d.mts","names":[],"sources":["../../src/actions/skip-document.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-document.mjs","names":[],"sources":["../../src/actions/skip-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurSkipDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.\"),\n});\nconst ParseurSkipDocument_SampleSetItemSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in the set\").nullable(),\n}).passthrough();\nconst ParseurSkipDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image data for the OCR page\").nullable().optional(),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nexport const ParseurSkipDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the parser/mailbox this document belongs to\").nullable(),\n result: z.string().describe(\"Parsed result string, if available\").nullable().optional(),\n status: z.string().describe(\"Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)\").nullable(),\n content: z.string().describe(\"Content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in sequence\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in sequence\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used, if any\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe(\"List of sample sets associated with the document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, if any\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total credits used for processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurSkipDocument_OcrPageSchema).describe(\"List of OCR pages in the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document\").nullable().optional(),\n status_source: z.string().describe(\"Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)\").nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"AI credits used for processing\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the document in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the document in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the document in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches the master template\").nullable(),\n original_document_url: z.string().describe(\"URL to the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Conventional credits used for processing\").nullable(),\n}).passthrough();\n\nexport const parseurSkipDocument = action(\"PARSEUR_SKIP_DOCUMENT\", {\n slug: \"parseur-skip-document\",\n name: \"Skip a document\",\n description: \"Tool to skip a document. Marks the document as skipped and returns the updated document with status 'SKIPPED'.\",\n input: ParseurSkipDocumentInput,\n output: ParseurSkipDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"skip-document.mjs","names":[],"sources":["../../src/actions/skip-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 ParseurSkipDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier of the document to skip. Obtain this ID from list documents or document processing responses.\"),\n});\nconst ParseurSkipDocument_SampleSetItemSchema = z.object({\n name: z.string().describe(\"Name of the sample set\").nullable(),\n template_id: z.number().int().describe(\"ID of the template\").nullable(),\n sample_count: z.number().int().describe(\"Number of samples in the set\").nullable(),\n}).passthrough();\nconst ParseurSkipDocument_OcrPageSchema = z.object({\n image: z.record(z.string(), z.unknown()).describe(\"Image data for the OCR page\").nullable().optional(),\n position: z.number().int().describe(\"Position of the page in the document\").nullable(),\n included_in_range: z.boolean().describe(\"Whether this page is included in the processing range\").nullable(),\n}).passthrough();\nexport const ParseurSkipDocumentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the document\").nullable(),\n name: z.string().describe(\"Name of the document\").nullable(),\n parser: z.number().int().describe(\"ID of the parser/mailbox this document belongs to\").nullable(),\n result: z.string().describe(\"Parsed result string, if available\").nullable().optional(),\n status: z.string().describe(\"Status of the document (INCOMING, ANALYZING, PROGRESS, PARSEDOK, PARSEDKO, QUOTAEXC, SKIPPED, SPLIT, EXPORTKO, TRANSKO, INVALID)\").nullable(),\n content: z.string().describe(\"Content of the document\").nullable(),\n next_id: z.number().int().describe(\"ID of the next document in sequence\").nullable().optional(),\n prev_id: z.number().int().describe(\"ID of the previous document in sequence\").nullable().optional(),\n is_split: z.boolean().describe(\"Whether the document has been split\").nullable(),\n received: z.string().describe(\"ISO 8601 timestamp when the document was received\").nullable(),\n template: z.number().int().describe(\"ID of the template used, if any\").nullable().optional(),\n processed: z.string().describe(\"ISO 8601 timestamp when the document was processed\").nullable(),\n sample_set: z.array(ParseurSkipDocument_SampleSetItemSchema.nullable()).describe(\"List of sample sets associated with the document\").nullable().optional(),\n attached_to: z.number().int().describe(\"ID of the document this is attached to, if any\").nullable().optional(),\n is_ai_ready: z.boolean().describe(\"Whether the document is ready for AI processing\").nullable(),\n credits_used: z.number().int().describe(\"Total credits used for processing this document\").nullable(),\n is_ocr_ready: z.boolean().describe(\"Whether the document is ready for OCR processing\").nullable(),\n ocr_page_set: z.array(ParseurSkipDocument_OcrPageSchema).describe(\"List of OCR pages in the document\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the document can be split\").nullable(),\n ocr_ready_url: z.string().describe(\"URL to the OCR-ready version of the document\").nullable().optional(),\n status_source: z.string().describe(\"Source of the document status (AI, AUTO, CSV, METADATA, MANUAL, TEMPLATE, TRANSFORM)\").nullable().optional(),\n is_processable: z.boolean().describe(\"Whether the document can be processed\").nullable(),\n ai_credits_used: z.number().int().describe(\"AI credits used for processing\").nullable(),\n csv_download_url: z.string().describe(\"URL to download the document in CSV format\").nullable(),\n xls_download_url: z.string().describe(\"URL to download the document in XLS format\").nullable(),\n json_download_url: z.string().describe(\"URL to download the document in JSON format\").nullable(),\n match_master_template: z.boolean().describe(\"Whether the document matches the master template\").nullable(),\n original_document_url: z.string().describe(\"URL to the original document\").nullable(),\n conventional_credits_used: z.number().int().describe(\"Conventional credits used for processing\").nullable(),\n}).passthrough();\n\nexport const parseurSkipDocument: AppAction<\n typeof ParseurSkipDocumentInput,\n typeof ParseurSkipDocumentOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_SKIP_DOCUMENT\", {\n slug: \"parseur-skip-document\",\n name: \"Skip a document\",\n description: \"Tool to skip a document. Marks the document as skipped and returns the updated document with status 'SKIPPED'.\",\n input: ParseurSkipDocumentInput,\n output: ParseurSkipDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAC/I,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAA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QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC7F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC7F,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC/F,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACzG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACpF,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-download.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateCustomDownloadInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration to update\"),\n name: z.string().describe(\"Display name for the export configuration\").optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).default(\"PARSER\").describe(\"Type of export configuration. Use '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\").optional(),\n mailbox_id: z.string().describe(\"Unique identifier of the mailbox (parser) containing the export configuration\"),\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, used when type is 'PARSER_FIELD'\").optional(),\n}).describe(\"Request model for updating a custom download (export configuration) for a mailbox.\");\nexport const ParseurUpdateCustomDownloadOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration\").nullable(),\n name: z.string().describe(\"Display name of the export configuration\").nullable().optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).describe(\"Type of export configuration\").nullable(),\n items: z.array(z.string()).describe(\"List of field names included in the export\"),\n csv_download: z.string().describe(\"URL path for CSV download\").nullable(),\n xls_download: z.string().describe(\"URL path for Excel download\").nullable(),\n parser_field_id: z.string().describe(\"Parser field ID if type is 'PARSER_FIELD'\").nullable().optional(),\n parser_field_name: z.string().describe(\"Name of the parser field if applicable\").nullable().optional(),\n}).passthrough().describe(\"Response model for update custom download action.\");\n\nexport const parseurUpdateCustomDownload = action(\"PARSEUR_UPDATE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-update-custom-download\",\n name: \"Update custom download\",\n description: \"Tool to update a custom download (export configuration) for a mailbox. Use when you need to modify the field list, name, or export settings for an existing download configuration.\",\n input: ParseurUpdateCustomDownloadInput,\n output: ParseurUpdateCustomDownloadOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-custom-download.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-download.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 ParseurUpdateCustomDownloadInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration to update\"),\n name: z.string().describe(\"Display name for the export configuration\").optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).default(\"PARSER\").describe(\"Type of export configuration. Use '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\").optional(),\n mailbox_id: z.string().describe(\"Unique identifier of the mailbox (parser) containing the export configuration\"),\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, used when type is 'PARSER_FIELD'\").optional(),\n}).describe(\"Request model for updating a custom download (export configuration) for a mailbox.\");\nexport const ParseurUpdateCustomDownloadOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration\").nullable(),\n name: z.string().describe(\"Display name of the export configuration\").nullable().optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).describe(\"Type of export configuration\").nullable(),\n items: z.array(z.string()).describe(\"List of field names included in the export\"),\n csv_download: z.string().describe(\"URL path for CSV download\").nullable(),\n xls_download: z.string().describe(\"URL path for Excel download\").nullable(),\n parser_field_id: z.string().describe(\"Parser field ID if type is 'PARSER_FIELD'\").nullable().optional(),\n parser_field_name: z.string().describe(\"Name of the parser field if applicable\").nullable().optional(),\n}).passthrough().describe(\"Response model for update custom download action.\");\n\nexport const parseurUpdateCustomDownload: AppAction<\n typeof ParseurUpdateCustomDownloadInput,\n typeof ParseurUpdateCustomDownloadOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_UPDATE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-update-custom-download\",\n name: \"Update custom download\",\n description: \"Tool to update a custom download (export configuration) for a mailbox. Use when you need to modify the field list, name, or export settings for an existing download configuration.\",\n input: ParseurUpdateCustomDownloadInput,\n output: ParseurUpdateCustomDownloadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAChM,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,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AQ;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-custom-download.d.ts
|
|
@@ -26,15 +28,7 @@ declare const ParseurUpdateCustomDownloadOutput: z.ZodObject<{
|
|
|
26
28
|
parser_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
parser_field_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const parseurUpdateCustomDownload:
|
|
30
|
-
id: number;
|
|
31
|
-
mailbox_id: string;
|
|
32
|
-
name?: string | undefined;
|
|
33
|
-
type?: "PARSER" | "PARSER_FIELD" | undefined;
|
|
34
|
-
items?: string[] | undefined;
|
|
35
|
-
parser_field_id?: string | undefined;
|
|
36
|
-
parser_field_name?: string | undefined;
|
|
37
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
declare const parseurUpdateCustomDownload: AppAction<typeof ParseurUpdateCustomDownloadInput, typeof ParseurUpdateCustomDownloadOutput, typeof parseur.credential>;
|
|
38
32
|
//#endregion
|
|
39
33
|
export { parseurUpdateCustomDownload };
|
|
40
34
|
//# sourceMappingURL=update-custom-download.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-download.d.cts","names":[],"sources":["../../src/actions/update-custom-download.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-custom-download.d.cts","names":[],"sources":["../../src/actions/update-custom-download.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAShC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAWjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,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-custom-download.d.ts
|
|
@@ -26,15 +28,7 @@ declare const ParseurUpdateCustomDownloadOutput: z.ZodObject<{
|
|
|
26
28
|
parser_field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
parser_field_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const parseurUpdateCustomDownload:
|
|
30
|
-
id: number;
|
|
31
|
-
mailbox_id: string;
|
|
32
|
-
name?: string | undefined;
|
|
33
|
-
type?: "PARSER" | "PARSER_FIELD" | undefined;
|
|
34
|
-
items?: string[] | undefined;
|
|
35
|
-
parser_field_id?: string | undefined;
|
|
36
|
-
parser_field_name?: string | undefined;
|
|
37
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
declare const parseurUpdateCustomDownload: AppAction<typeof ParseurUpdateCustomDownloadInput, typeof ParseurUpdateCustomDownloadOutput, typeof parseur.credential>;
|
|
38
32
|
//#endregion
|
|
39
33
|
export { parseurUpdateCustomDownload };
|
|
40
34
|
//# sourceMappingURL=update-custom-download.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-download.d.mts","names":[],"sources":["../../src/actions/update-custom-download.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-custom-download.d.mts","names":[],"sources":["../../src/actions/update-custom-download.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAShC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAWjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-download.mjs","names":[],"sources":["../../src/actions/update-custom-download.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateCustomDownloadInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration to update\"),\n name: z.string().describe(\"Display name for the export configuration\").optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).default(\"PARSER\").describe(\"Type of export configuration. Use '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\").optional(),\n mailbox_id: z.string().describe(\"Unique identifier of the mailbox (parser) containing the export configuration\"),\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, used when type is 'PARSER_FIELD'\").optional(),\n}).describe(\"Request model for updating a custom download (export configuration) for a mailbox.\");\nexport const ParseurUpdateCustomDownloadOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration\").nullable(),\n name: z.string().describe(\"Display name of the export configuration\").nullable().optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).describe(\"Type of export configuration\").nullable(),\n items: z.array(z.string()).describe(\"List of field names included in the export\"),\n csv_download: z.string().describe(\"URL path for CSV download\").nullable(),\n xls_download: z.string().describe(\"URL path for Excel download\").nullable(),\n parser_field_id: z.string().describe(\"Parser field ID if type is 'PARSER_FIELD'\").nullable().optional(),\n parser_field_name: z.string().describe(\"Name of the parser field if applicable\").nullable().optional(),\n}).passthrough().describe(\"Response model for update custom download action.\");\n\nexport const parseurUpdateCustomDownload = action(\"PARSEUR_UPDATE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-update-custom-download\",\n name: \"Update custom download\",\n description: \"Tool to update a custom download (export configuration) for a mailbox. Use when you need to modify the field list, name, or export settings for an existing download configuration.\",\n input: ParseurUpdateCustomDownloadInput,\n output: ParseurUpdateCustomDownloadOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-custom-download.mjs","names":[],"sources":["../../src/actions/update-custom-download.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 ParseurUpdateCustomDownloadInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration to update\"),\n name: z.string().describe(\"Display name for the export configuration\").optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).default(\"PARSER\").describe(\"Type of export configuration. Use '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\").optional(),\n mailbox_id: z.string().describe(\"Unique identifier of the mailbox (parser) containing the export configuration\"),\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, used when type is 'PARSER_FIELD'\").optional(),\n}).describe(\"Request model for updating a custom download (export configuration) for a mailbox.\");\nexport const ParseurUpdateCustomDownloadOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the export configuration\").nullable(),\n name: z.string().describe(\"Display name of the export configuration\").nullable().optional(),\n type: z.enum([\"PARSER\", \"PARSER_FIELD\"]).describe(\"Type of export configuration\").nullable(),\n items: z.array(z.string()).describe(\"List of field names included in the export\"),\n csv_download: z.string().describe(\"URL path for CSV download\").nullable(),\n xls_download: z.string().describe(\"URL path for Excel download\").nullable(),\n parser_field_id: z.string().describe(\"Parser field ID if type is 'PARSER_FIELD'\").nullable().optional(),\n parser_field_name: z.string().describe(\"Name of the parser field if applicable\").nullable().optional(),\n}).passthrough().describe(\"Response model for update custom download action.\");\n\nexport const parseurUpdateCustomDownload: AppAction<\n typeof ParseurUpdateCustomDownloadInput,\n typeof ParseurUpdateCustomDownloadOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_UPDATE_CUSTOM_DOWNLOAD\", {\n slug: \"parseur-update-custom-download\",\n name: \"Update custom download\",\n description: \"Tool to update a custom download (export configuration) for a mailbox. Use when you need to modify the field list, name, or export settings for an existing download configuration.\",\n input: ParseurUpdateCustomDownloadInput,\n output: ParseurUpdateCustomDownloadOutput,\n});\n"],"mappings":";;;AA0BA,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;EACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EAChM,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC/G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAC1H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,oFAoBH;CACP,QApB+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,MAAM,EAAE,KAAK,CAAC,UAAU,cAAc,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;EAChF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-mailbox.cjs","names":["z","action"],"sources":["../../src/actions/update-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateMailboxInput = z.object({\n id: z.number().int().describe(\"The ID of the parser/mailbox to update\"),\n name: z.string().describe(\"The name of the parser\").optional(),\n ai_engine: z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\").optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document uploaded to this parser\").optional(),\n odd_pages: z.boolean().describe(\"Whether the parser is configured to process only odd page numbers in a document\").optional(),\n even_pages: z.boolean().describe(\"Whether the parser is configured to process only even page numbers in a document\").optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents. If set to 3, a 30-page document will be split into 10 files of 3 pages each\").optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser (enabled by default)\").optional(),\n page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"The range of pages set to be processed in the parser\").optional(),\n split_keywords: z.array(z.object({\n keyword: z.string().describe(\"Keyword to look for when splitting documents\"),\n is_before: z.boolean().describe(\"If true, split before the keyword; if false, split after the keyword\"),\n}).passthrough().describe(\"Keywords for document splitting.\")).describe(\"Keywords the parser will look for when splitting documents by page\").optional(),\n ai_instructions: z.string().describe(\"General AI instructions for this parser. Provide guidance for the AI engine on how to parse documents.\").optional(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored on servers before deletion (90 days is the default)\").optional(),\n decimal_separator: z.string().describe(\"Decimal separator to use for number parsing\").optional(),\n input_date_format: z.string().describe(\"Input date format for parsing dates\").optional(),\n allowed_extensions: z.array(z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\")).describe(\"List of file extensions to process. If not present, all extensions will be enabled.\").optional(),\n master_parser_slug: z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template slugs.\").optional(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled on this parser\").optional(),\n split_page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"Specific page ranges to capture when splitting. Can have multiple values, e.g., 1,3-5,(1)\").optional(),\n identification_status: z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status of the parser.\").optional(),\n attachments_only_override: z.boolean().describe(\"Use this to update whether the parser skips email processing and only processes attachments\").optional(),\n}).describe(\"Request parameters for updating a mailbox (parser) configuration.\\nOnly include fields you wish to change.\");\nconst ParseurUpdateMailbox_AiEngineSchema = z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\");\nconst ParseurUpdateMailbox_TableInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n}).passthrough().describe(\"Table configuration information.\");\nconst ParseurUpdateMailbox_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields assigned to the webhook\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration information.\");\nconst ParseurUpdateMailbox_DocumentStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported\").nullable(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable(),\n TRANSKO: z.number().int().describe(\"Files where Python post-processing failed to process\").nullable(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable(),\n INCOMING: z.number().int().describe(\"Files that have been received by the system but are awaiting processing\").nullable(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine\").nullable(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because user does not have enough credits\").nullable(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against system import parameters and mailbox settings\").nullable(),\n}).passthrough().describe(\"Breakdown of documents by processing status.\");\nexport const ParseurUpdateMailboxOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n secret: z.string().describe(\"Secret key for the parser\").nullable(),\n ai_engine: ParseurUpdateMailbox_AiEngineSchema.nullable().optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes instructions on\").nullable(),\n odd_pages: z.boolean().describe(\"Whether only odd page numbers are processed\").nullable().optional(),\n table_set: z.array(ParseurUpdateMailbox_TableInfoSchema).describe(\"List of configured tables\"),\n even_pages: z.boolean().describe(\"Whether only even page numbers are processed\").nullable().optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents\").nullable().optional(),\n webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of configured webhooks\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for the account\").nullable(),\n csv_download: z.string().describe(\"URL to download data as CSV\").nullable(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n xls_download: z.string().describe(\"URL to download data as XLS\").nullable(),\n can_transform: z.boolean().describe(\"Whether Python Post-Processing is enabled for this parser\").nullable(),\n json_download: z.string().describe(\"URL to download data as JSON\").nullable(),\n last_activity: z.string().describe(\"Timestamp of last activity\").nullable(),\n webhook_count: z.number().int().describe(\"The number of webhooks the parser has\").nullable().optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser\").nullable().optional(),\n document_count: z.number().int().describe(\"The number of documents in the parser\").nullable(),\n template_count: z.number().int().describe(\"The number of templates the parser has\").nullable().optional(),\n ai_instructions: z.string().describe(\"General AI instruction for this parser\").nullable().optional(),\n attachments_only: z.boolean().describe(\"Whether the parser skips email processing or not (read-only)\").nullable(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").nullable().optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored before deletion\").nullable().optional(),\n decimal_separator: z.string().describe(\"Decimal separator for number parsing\").nullable().optional(),\n allowed_extensions: z.array(z.string()).describe(\"List of file extensions to process. If not present, all extensions are enabled\").nullable().optional(),\n master_parser_name: z.string().describe(\"The name of this parser's master parser\").nullable().optional(),\n master_parser_slug: z.string().describe(\"Master parser template slug\").nullable().optional(),\n parser_object_count: z.number().int().describe(\"The total number of field and metadata outputs currently configured\").nullable(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled\").nullable().optional(),\n available_webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of available webhooks\"),\n identification_status: z.string().describe(\"Identification status of the parser\").nullable().optional(),\n document_per_status_count: ParseurUpdateMailbox_DocumentStatusCountSchema.nullable(),\n template_set_last_modified: z.string().describe(\"Timestamp when templates were last modified\").nullable().optional(),\n parser_object_set_last_modified: z.string().describe(\"Timestamp when parser objects were last modified\").nullable().optional(),\n}).passthrough().describe(\"Response model for update mailbox action containing the updated mailbox configuration.\");\n\nexport const parseurUpdateMailbox = action(\"PARSEUR_UPDATE_MAILBOX\", {\n slug: \"parseur-update-mailbox\",\n name: \"Update Mailbox\",\n description: \"Tool to update a mailbox (parser) configuration. Use when you need to modify mailbox settings such as name, AI engine, processing options, or document handling rules.\",\n input: ParseurUpdateMailboxInput,\n output: ParseurUpdateMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAMA,IAAAA,EAAE,O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AAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-mailbox.cjs","names":["z","action"],"sources":["../../src/actions/update-mailbox.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 ParseurUpdateMailboxInput = z.object({\n id: z.number().int().describe(\"The ID of the parser/mailbox to update\"),\n name: z.string().describe(\"The name of the parser\").optional(),\n ai_engine: z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\").optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document uploaded to this parser\").optional(),\n odd_pages: z.boolean().describe(\"Whether the parser is configured to process only odd page numbers in a document\").optional(),\n even_pages: z.boolean().describe(\"Whether the parser is configured to process only even page numbers in a document\").optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents. If set to 3, a 30-page document will be split into 10 files of 3 pages each\").optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser (enabled by default)\").optional(),\n page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"The range of pages set to be processed in the parser\").optional(),\n split_keywords: z.array(z.object({\n keyword: z.string().describe(\"Keyword to look for when splitting documents\"),\n is_before: z.boolean().describe(\"If true, split before the keyword; if false, split after the keyword\"),\n}).passthrough().describe(\"Keywords for document splitting.\")).describe(\"Keywords the parser will look for when splitting documents by page\").optional(),\n ai_instructions: z.string().describe(\"General AI instructions for this parser. Provide guidance for the AI engine on how to parse documents.\").optional(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored on servers before deletion (90 days is the default)\").optional(),\n decimal_separator: z.string().describe(\"Decimal separator to use for number parsing\").optional(),\n input_date_format: z.string().describe(\"Input date format for parsing dates\").optional(),\n allowed_extensions: z.array(z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\")).describe(\"List of file extensions to process. If not present, all extensions will be enabled.\").optional(),\n master_parser_slug: z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template slugs.\").optional(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled on this parser\").optional(),\n split_page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"Specific page ranges to capture when splitting. Can have multiple values, e.g., 1,3-5,(1)\").optional(),\n identification_status: z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status of the parser.\").optional(),\n attachments_only_override: z.boolean().describe(\"Use this to update whether the parser skips email processing and only processes attachments\").optional(),\n}).describe(\"Request parameters for updating a mailbox (parser) configuration.\\nOnly include fields you wish to change.\");\nconst ParseurUpdateMailbox_AiEngineSchema = z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\");\nconst ParseurUpdateMailbox_TableInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n}).passthrough().describe(\"Table configuration information.\");\nconst ParseurUpdateMailbox_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields assigned to the webhook\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration information.\");\nconst ParseurUpdateMailbox_DocumentStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported\").nullable(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable(),\n TRANSKO: z.number().int().describe(\"Files where Python post-processing failed to process\").nullable(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable(),\n INCOMING: z.number().int().describe(\"Files that have been received by the system but are awaiting processing\").nullable(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine\").nullable(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because user does not have enough credits\").nullable(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against system import parameters and mailbox settings\").nullable(),\n}).passthrough().describe(\"Breakdown of documents by processing status.\");\nexport const ParseurUpdateMailboxOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n secret: z.string().describe(\"Secret key for the parser\").nullable(),\n ai_engine: ParseurUpdateMailbox_AiEngineSchema.nullable().optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes instructions on\").nullable(),\n odd_pages: z.boolean().describe(\"Whether only odd page numbers are processed\").nullable().optional(),\n table_set: z.array(ParseurUpdateMailbox_TableInfoSchema).describe(\"List of configured tables\"),\n even_pages: z.boolean().describe(\"Whether only even page numbers are processed\").nullable().optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents\").nullable().optional(),\n webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of configured webhooks\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for the account\").nullable(),\n csv_download: z.string().describe(\"URL to download data as CSV\").nullable(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n xls_download: z.string().describe(\"URL to download data as XLS\").nullable(),\n can_transform: z.boolean().describe(\"Whether Python Post-Processing is enabled for this parser\").nullable(),\n json_download: z.string().describe(\"URL to download data as JSON\").nullable(),\n last_activity: z.string().describe(\"Timestamp of last activity\").nullable(),\n webhook_count: z.number().int().describe(\"The number of webhooks the parser has\").nullable().optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser\").nullable().optional(),\n document_count: z.number().int().describe(\"The number of documents in the parser\").nullable(),\n template_count: z.number().int().describe(\"The number of templates the parser has\").nullable().optional(),\n ai_instructions: z.string().describe(\"General AI instruction for this parser\").nullable().optional(),\n attachments_only: z.boolean().describe(\"Whether the parser skips email processing or not (read-only)\").nullable(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").nullable().optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored before deletion\").nullable().optional(),\n decimal_separator: z.string().describe(\"Decimal separator for number parsing\").nullable().optional(),\n allowed_extensions: z.array(z.string()).describe(\"List of file extensions to process. If not present, all extensions are enabled\").nullable().optional(),\n master_parser_name: z.string().describe(\"The name of this parser's master parser\").nullable().optional(),\n master_parser_slug: z.string().describe(\"Master parser template slug\").nullable().optional(),\n parser_object_count: z.number().int().describe(\"The total number of field and metadata outputs currently configured\").nullable(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled\").nullable().optional(),\n available_webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of available webhooks\"),\n identification_status: z.string().describe(\"Identification status of the parser\").nullable().optional(),\n document_per_status_count: ParseurUpdateMailbox_DocumentStatusCountSchema.nullable(),\n template_set_last_modified: z.string().describe(\"Timestamp when templates were last modified\").nullable().optional(),\n parser_object_set_last_modified: z.string().describe(\"Timestamp when parser objects were last modified\").nullable().optional(),\n}).passthrough().describe(\"Response model for update mailbox action containing the updated mailbox configuration.\");\n\nexport const parseurUpdateMailbox: AppAction<\n typeof ParseurUpdateMailboxInput,\n typeof ParseurUpdateMailboxOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_UPDATE_MAILBOX\", {\n slug: \"parseur-update-mailbox\",\n name: \"Update Mailbox\",\n description: \"Tool to update a mailbox (parser) configuration. Use when you need to modify mailbox settings such as name, AI engine, processing options, or document handling rules.\",\n input: ParseurUpdateMailboxInput,\n output: ParseurUpdateMailboxOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAY;EAAY;CAAY,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAi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,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/H,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,uBAAuBA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4BAA4B;CAC5G,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,2BAA2B,+CAA+C,SAAS;CACnF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wFAAwF;AAElH,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-mailbox.d.ts
|
|
@@ -163,41 +165,7 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
|
|
|
163
165
|
template_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
166
|
parser_object_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
167
|
}, z.core.$loose>;
|
|
166
|
-
declare const parseurUpdateMailbox:
|
|
167
|
-
id: number;
|
|
168
|
-
name?: string | undefined;
|
|
169
|
-
ai_engine?: "DISABLED" | "GCP_AI_1" | "GCP_AI_2" | "GCP_AI_2_5" | undefined;
|
|
170
|
-
force_ocr?: boolean | undefined;
|
|
171
|
-
odd_pages?: boolean | undefined;
|
|
172
|
-
even_pages?: boolean | undefined;
|
|
173
|
-
split_page?: number | undefined;
|
|
174
|
-
disable_deskew?: boolean | undefined;
|
|
175
|
-
page_range_set?: {
|
|
176
|
-
[x: string]: unknown;
|
|
177
|
-
start_index: number;
|
|
178
|
-
end_index?: number | undefined;
|
|
179
|
-
}[] | undefined;
|
|
180
|
-
split_keywords?: {
|
|
181
|
-
[x: string]: unknown;
|
|
182
|
-
keyword: string;
|
|
183
|
-
is_before: boolean;
|
|
184
|
-
}[] | undefined;
|
|
185
|
-
ai_instructions?: string | undefined;
|
|
186
|
-
default_timezone?: string | undefined;
|
|
187
|
-
retention_policy?: number | undefined;
|
|
188
|
-
decimal_separator?: string | undefined;
|
|
189
|
-
input_date_format?: string | undefined;
|
|
190
|
-
allowed_extensions?: ("bmp" | "csv" | "doc" | "docx" | "eml" | "gif" | "html" | "ics" | "jpg" | "mbox" | "msg" | "ods" | "odt" | "pdf" | "png" | "rtf" | "tif" | "txt" | "xhtml" | "xls" | "xlsm" | "xlsx" | "xml" | "zip")[] | undefined;
|
|
191
|
-
master_parser_slug?: "invoices" | "statements" | "job-application" | "leads" | "resume-cv" | "food-delivery" | "search-alerts" | "real-estate" | "work-order" | "financial-statement" | "utility" | "contact-list" | "delivery-notes" | "property-bookings" | "job-search" | "travel" | "automotive" | "payslip" | "event-ticketing" | undefined;
|
|
192
|
-
process_attachments?: boolean | undefined;
|
|
193
|
-
split_page_range_set?: {
|
|
194
|
-
[x: string]: unknown;
|
|
195
|
-
start_index: number;
|
|
196
|
-
end_index?: number | undefined;
|
|
197
|
-
}[] | undefined;
|
|
198
|
-
identification_status?: "REQUESTED" | "PROGRESS" | "COMPLETED" | "MANUAL" | undefined;
|
|
199
|
-
attachments_only_override?: boolean | undefined;
|
|
200
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
168
|
+
declare const parseurUpdateMailbox: AppAction<typeof ParseurUpdateMailboxInput, typeof ParseurUpdateMailboxOutput, typeof parseur.credential>;
|
|
201
169
|
//#endregion
|
|
202
170
|
export { parseurUpdateMailbox };
|
|
203
171
|
//# sourceMappingURL=update-mailbox.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-mailbox.d.cts","names":[],"sources":["../../src/actions/update-mailbox.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-mailbox.d.cts","names":[],"sources":["../../src/actions/update-mailbox.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2DzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwC1B,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-mailbox.d.ts
|
|
@@ -163,41 +165,7 @@ declare const ParseurUpdateMailboxOutput: z.ZodObject<{
|
|
|
163
165
|
template_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
166
|
parser_object_set_last_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
167
|
}, z.core.$loose>;
|
|
166
|
-
declare const parseurUpdateMailbox:
|
|
167
|
-
id: number;
|
|
168
|
-
name?: string | undefined;
|
|
169
|
-
ai_engine?: "DISABLED" | "GCP_AI_1" | "GCP_AI_2" | "GCP_AI_2_5" | undefined;
|
|
170
|
-
force_ocr?: boolean | undefined;
|
|
171
|
-
odd_pages?: boolean | undefined;
|
|
172
|
-
even_pages?: boolean | undefined;
|
|
173
|
-
split_page?: number | undefined;
|
|
174
|
-
disable_deskew?: boolean | undefined;
|
|
175
|
-
page_range_set?: {
|
|
176
|
-
[x: string]: unknown;
|
|
177
|
-
start_index: number;
|
|
178
|
-
end_index?: number | undefined;
|
|
179
|
-
}[] | undefined;
|
|
180
|
-
split_keywords?: {
|
|
181
|
-
[x: string]: unknown;
|
|
182
|
-
keyword: string;
|
|
183
|
-
is_before: boolean;
|
|
184
|
-
}[] | undefined;
|
|
185
|
-
ai_instructions?: string | undefined;
|
|
186
|
-
default_timezone?: string | undefined;
|
|
187
|
-
retention_policy?: number | undefined;
|
|
188
|
-
decimal_separator?: string | undefined;
|
|
189
|
-
input_date_format?: string | undefined;
|
|
190
|
-
allowed_extensions?: ("bmp" | "csv" | "doc" | "docx" | "eml" | "gif" | "html" | "ics" | "jpg" | "mbox" | "msg" | "ods" | "odt" | "pdf" | "png" | "rtf" | "tif" | "txt" | "xhtml" | "xls" | "xlsm" | "xlsx" | "xml" | "zip")[] | undefined;
|
|
191
|
-
master_parser_slug?: "invoices" | "statements" | "job-application" | "leads" | "resume-cv" | "food-delivery" | "search-alerts" | "real-estate" | "work-order" | "financial-statement" | "utility" | "contact-list" | "delivery-notes" | "property-bookings" | "job-search" | "travel" | "automotive" | "payslip" | "event-ticketing" | undefined;
|
|
192
|
-
process_attachments?: boolean | undefined;
|
|
193
|
-
split_page_range_set?: {
|
|
194
|
-
[x: string]: unknown;
|
|
195
|
-
start_index: number;
|
|
196
|
-
end_index?: number | undefined;
|
|
197
|
-
}[] | undefined;
|
|
198
|
-
identification_status?: "REQUESTED" | "PROGRESS" | "COMPLETED" | "MANUAL" | undefined;
|
|
199
|
-
attachments_only_override?: boolean | undefined;
|
|
200
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
168
|
+
declare const parseurUpdateMailbox: AppAction<typeof ParseurUpdateMailboxInput, typeof ParseurUpdateMailboxOutput, typeof parseur.credential>;
|
|
201
169
|
//#endregion
|
|
202
170
|
export { parseurUpdateMailbox };
|
|
203
171
|
//# sourceMappingURL=update-mailbox.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-mailbox.d.mts","names":[],"sources":["../../src/actions/update-mailbox.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-mailbox.d.mts","names":[],"sources":["../../src/actions/update-mailbox.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2DzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwC1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-mailbox.mjs","names":[],"sources":["../../src/actions/update-mailbox.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseurUpdateMailboxInput = z.object({\n id: z.number().int().describe(\"The ID of the parser/mailbox to update\"),\n name: z.string().describe(\"The name of the parser\").optional(),\n ai_engine: z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\").optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document uploaded to this parser\").optional(),\n odd_pages: z.boolean().describe(\"Whether the parser is configured to process only odd page numbers in a document\").optional(),\n even_pages: z.boolean().describe(\"Whether the parser is configured to process only even page numbers in a document\").optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents. If set to 3, a 30-page document will be split into 10 files of 3 pages each\").optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser (enabled by default)\").optional(),\n page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"The range of pages set to be processed in the parser\").optional(),\n split_keywords: z.array(z.object({\n keyword: z.string().describe(\"Keyword to look for when splitting documents\"),\n is_before: z.boolean().describe(\"If true, split before the keyword; if false, split after the keyword\"),\n}).passthrough().describe(\"Keywords for document splitting.\")).describe(\"Keywords the parser will look for when splitting documents by page\").optional(),\n ai_instructions: z.string().describe(\"General AI instructions for this parser. Provide guidance for the AI engine on how to parse documents.\").optional(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored on servers before deletion (90 days is the default)\").optional(),\n decimal_separator: z.string().describe(\"Decimal separator to use for number parsing\").optional(),\n input_date_format: z.string().describe(\"Input date format for parsing dates\").optional(),\n allowed_extensions: z.array(z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\")).describe(\"List of file extensions to process. If not present, all extensions will be enabled.\").optional(),\n master_parser_slug: z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template slugs.\").optional(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled on this parser\").optional(),\n split_page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"Specific page ranges to capture when splitting. Can have multiple values, e.g., 1,3-5,(1)\").optional(),\n identification_status: z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status of the parser.\").optional(),\n attachments_only_override: z.boolean().describe(\"Use this to update whether the parser skips email processing and only processes attachments\").optional(),\n}).describe(\"Request parameters for updating a mailbox (parser) configuration.\\nOnly include fields you wish to change.\");\nconst ParseurUpdateMailbox_AiEngineSchema = z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\");\nconst ParseurUpdateMailbox_TableInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n}).passthrough().describe(\"Table configuration information.\");\nconst ParseurUpdateMailbox_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields assigned to the webhook\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration information.\");\nconst ParseurUpdateMailbox_DocumentStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported\").nullable(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable(),\n TRANSKO: z.number().int().describe(\"Files where Python post-processing failed to process\").nullable(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable(),\n INCOMING: z.number().int().describe(\"Files that have been received by the system but are awaiting processing\").nullable(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine\").nullable(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because user does not have enough credits\").nullable(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against system import parameters and mailbox settings\").nullable(),\n}).passthrough().describe(\"Breakdown of documents by processing status.\");\nexport const ParseurUpdateMailboxOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n secret: z.string().describe(\"Secret key for the parser\").nullable(),\n ai_engine: ParseurUpdateMailbox_AiEngineSchema.nullable().optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes instructions on\").nullable(),\n odd_pages: z.boolean().describe(\"Whether only odd page numbers are processed\").nullable().optional(),\n table_set: z.array(ParseurUpdateMailbox_TableInfoSchema).describe(\"List of configured tables\"),\n even_pages: z.boolean().describe(\"Whether only even page numbers are processed\").nullable().optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents\").nullable().optional(),\n webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of configured webhooks\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for the account\").nullable(),\n csv_download: z.string().describe(\"URL to download data as CSV\").nullable(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n xls_download: z.string().describe(\"URL to download data as XLS\").nullable(),\n can_transform: z.boolean().describe(\"Whether Python Post-Processing is enabled for this parser\").nullable(),\n json_download: z.string().describe(\"URL to download data as JSON\").nullable(),\n last_activity: z.string().describe(\"Timestamp of last activity\").nullable(),\n webhook_count: z.number().int().describe(\"The number of webhooks the parser has\").nullable().optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser\").nullable().optional(),\n document_count: z.number().int().describe(\"The number of documents in the parser\").nullable(),\n template_count: z.number().int().describe(\"The number of templates the parser has\").nullable().optional(),\n ai_instructions: z.string().describe(\"General AI instruction for this parser\").nullable().optional(),\n attachments_only: z.boolean().describe(\"Whether the parser skips email processing or not (read-only)\").nullable(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").nullable().optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored before deletion\").nullable().optional(),\n decimal_separator: z.string().describe(\"Decimal separator for number parsing\").nullable().optional(),\n allowed_extensions: z.array(z.string()).describe(\"List of file extensions to process. If not present, all extensions are enabled\").nullable().optional(),\n master_parser_name: z.string().describe(\"The name of this parser's master parser\").nullable().optional(),\n master_parser_slug: z.string().describe(\"Master parser template slug\").nullable().optional(),\n parser_object_count: z.number().int().describe(\"The total number of field and metadata outputs currently configured\").nullable(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled\").nullable().optional(),\n available_webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of available webhooks\"),\n identification_status: z.string().describe(\"Identification status of the parser\").nullable().optional(),\n document_per_status_count: ParseurUpdateMailbox_DocumentStatusCountSchema.nullable(),\n template_set_last_modified: z.string().describe(\"Timestamp when templates were last modified\").nullable().optional(),\n parser_object_set_last_modified: z.string().describe(\"Timestamp when parser objects were last modified\").nullable().optional(),\n}).passthrough().describe(\"Response model for update mailbox action containing the updated mailbox configuration.\");\n\nexport const parseurUpdateMailbox = action(\"PARSEUR_UPDATE_MAILBOX\", {\n slug: \"parseur-update-mailbox\",\n name: \"Update Mailbox\",\n description: \"Tool to update a mailbox (parser) configuration. Use when you need to modify mailbox settings such as name, AI engine, processing options, or document handling rules.\",\n input: ParseurUpdateMailboxInput,\n output: ParseurUpdateMailboxOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,KAAK;EAAC;EAAY;EAAY;EAAY;CAAY,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC5H,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC9H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CAC9K,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACjH,gBAAgB,EAAE,MAAM,EAAE,OAAO;EACjC,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAA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AAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/H,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,uBAAuB,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,4BAA4B;EAC5G,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,2BAA2B,+CAA+C,SAAS;EACnF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,iCAAiC,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wFAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-mailbox.mjs","names":[],"sources":["../../src/actions/update-mailbox.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 ParseurUpdateMailboxInput = z.object({\n id: z.number().int().describe(\"The ID of the parser/mailbox to update\"),\n name: z.string().describe(\"The name of the parser\").optional(),\n ai_engine: z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\").optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document uploaded to this parser\").optional(),\n odd_pages: z.boolean().describe(\"Whether the parser is configured to process only odd page numbers in a document\").optional(),\n even_pages: z.boolean().describe(\"Whether the parser is configured to process only even page numbers in a document\").optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents. If set to 3, a 30-page document will be split into 10 files of 3 pages each\").optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser (enabled by default)\").optional(),\n page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"The range of pages set to be processed in the parser\").optional(),\n split_keywords: z.array(z.object({\n keyword: z.string().describe(\"Keyword to look for when splitting documents\"),\n is_before: z.boolean().describe(\"If true, split before the keyword; if false, split after the keyword\"),\n}).passthrough().describe(\"Keywords for document splitting.\")).describe(\"Keywords the parser will look for when splitting documents by page\").optional(),\n ai_instructions: z.string().describe(\"General AI instructions for this parser. Provide guidance for the AI engine on how to parse documents.\").optional(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored on servers before deletion (90 days is the default)\").optional(),\n decimal_separator: z.string().describe(\"Decimal separator to use for number parsing\").optional(),\n input_date_format: z.string().describe(\"Input date format for parsing dates\").optional(),\n allowed_extensions: z.array(z.enum([\"bmp\", \"csv\", \"doc\", \"docx\", \"eml\", \"gif\", \"html\", \"ics\", \"jpg\", \"mbox\", \"msg\", \"ods\", \"odt\", \"pdf\", \"png\", \"rtf\", \"tif\", \"txt\", \"xhtml\", \"xls\", \"xlsm\", \"xlsx\", \"xml\", \"zip\"]).describe(\"Allowed file extensions for document processing.\")).describe(\"List of file extensions to process. If not present, all extensions will be enabled.\").optional(),\n master_parser_slug: z.enum([\"invoices\", \"statements\", \"job-application\", \"leads\", \"resume-cv\", \"food-delivery\", \"search-alerts\", \"real-estate\", \"work-order\", \"financial-statement\", \"utility\", \"contact-list\", \"delivery-notes\", \"property-bookings\", \"job-search\", \"travel\", \"automotive\", \"payslip\", \"event-ticketing\"]).describe(\"Master parser template slugs.\").optional(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled on this parser\").optional(),\n split_page_range_set: z.array(z.object({\n end_index: z.number().int().describe(\"Ending page index (inclusive); null for open-ended range\").optional(),\n start_index: z.number().int().describe(\"Starting page index (inclusive)\"),\n}).passthrough().describe(\"Page range specification for processing or splitting.\")).describe(\"Specific page ranges to capture when splitting. Can have multiple values, e.g., 1,3-5,(1)\").optional(),\n identification_status: z.enum([\"REQUESTED\", \"PROGRESS\", \"COMPLETED\", \"MANUAL\"]).describe(\"Identification status of the parser.\").optional(),\n attachments_only_override: z.boolean().describe(\"Use this to update whether the parser skips email processing and only processes attachments\").optional(),\n}).describe(\"Request parameters for updating a mailbox (parser) configuration.\\nOnly include fields you wish to change.\");\nconst ParseurUpdateMailbox_AiEngineSchema = z.enum([\"DISABLED\", \"GCP_AI_1\", \"GCP_AI_2\", \"GCP_AI_2_5\"]).describe(\"AI engine options for the mailbox.\");\nconst ParseurUpdateMailbox_TableInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n}).passthrough().describe(\"Table configuration information.\");\nconst ParseurUpdateMailbox_WebhookInfoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the webhook\").nullable(),\n name: z.string().describe(\"Custom name of the webhook\").nullable().optional(),\n event: z.string().describe(\"Event type the webhook listens to\").nullable(),\n target: z.string().describe(\"Target URL for the webhook\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers sent with the webhook payload\").nullable().optional(),\n category: z.string().describe(\"Category of the webhook\").nullable(),\n parser_field_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of parser fields assigned to the webhook\").nullable().optional(),\n}).passthrough().describe(\"Webhook configuration information.\");\nconst ParseurUpdateMailbox_DocumentStatusCountSchema = z.object({\n SPLIT: z.number().int().describe(\"Files that were split into multiple documents\").nullable(),\n INVALID: z.number().int().describe(\"Files that were not processed because they are not supported\").nullable(),\n SKIPPED: z.number().int().describe(\"Files that were skipped because of a template\").nullable(),\n TRANSKO: z.number().int().describe(\"Files where Python post-processing failed to process\").nullable(),\n EXPORTKO: z.number().int().describe(\"Files where exporting the parsed data failed\").nullable(),\n INCOMING: z.number().int().describe(\"Files that have been received by the system but are awaiting processing\").nullable(),\n PARSEDKO: z.number().int().describe(\"Files where processing failed\").nullable(),\n PARSEDOK: z.number().int().describe(\"Files that have been processed and data is available for export\").nullable(),\n PROGRESS: z.number().int().describe(\"Files currently being processed by active AI engine\").nullable(),\n QUOTAEXC: z.number().int().describe(\"Files where processing was stopped because user does not have enough credits\").nullable(),\n ANALYZING: z.number().int().describe(\"Files being analyzed against system import parameters and mailbox settings\").nullable(),\n}).passthrough().describe(\"Breakdown of documents by processing status.\");\nexport const ParseurUpdateMailboxOutput = z.object({\n id: z.number().int().describe(\"The internal ID number for the parser\").nullable(),\n name: z.string().describe(\"The name of the parser\").nullable().optional(),\n secret: z.string().describe(\"Secret key for the parser\").nullable(),\n ai_engine: ParseurUpdateMailbox_AiEngineSchema.nullable().optional(),\n force_ocr: z.boolean().describe(\"Whether Parseur runs its own OCR on every document\").nullable().optional(),\n is_master: z.boolean().describe(\"Whether this is a master parser that passes instructions on\").nullable(),\n odd_pages: z.boolean().describe(\"Whether only odd page numbers are processed\").nullable().optional(),\n table_set: z.array(ParseurUpdateMailbox_TableInfoSchema).describe(\"List of configured tables\"),\n even_pages: z.boolean().describe(\"Whether only even page numbers are processed\").nullable().optional(),\n split_page: z.number().int().describe(\"Number of pages to use for splitting documents\").nullable().optional(),\n webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of configured webhooks\").nullable().optional(),\n account_uuid: z.string().describe(\"The Universally Unique Identifier for the account\").nullable(),\n csv_download: z.string().describe(\"URL to download data as CSV\").nullable(),\n email_prefix: z.string().describe(\"The email prefix for the parser\").nullable().optional(),\n xls_download: z.string().describe(\"URL to download data as XLS\").nullable(),\n can_transform: z.boolean().describe(\"Whether Python Post-Processing is enabled for this parser\").nullable(),\n json_download: z.string().describe(\"URL to download data as JSON\").nullable(),\n last_activity: z.string().describe(\"Timestamp of last activity\").nullable(),\n webhook_count: z.number().int().describe(\"The number of webhooks the parser has\").nullable().optional(),\n disable_deskew: z.boolean().describe(\"Whether deskew is disabled for this parser\").nullable().optional(),\n document_count: z.number().int().describe(\"The number of documents in the parser\").nullable(),\n template_count: z.number().int().describe(\"The number of templates the parser has\").nullable().optional(),\n ai_instructions: z.string().describe(\"General AI instruction for this parser\").nullable().optional(),\n attachments_only: z.boolean().describe(\"Whether the parser skips email processing or not (read-only)\").nullable(),\n default_timezone: z.string().describe(\"Default timezone for date parsing\").nullable().optional(),\n retention_policy: z.number().int().describe(\"How many days documents and data are stored before deletion\").nullable().optional(),\n decimal_separator: z.string().describe(\"Decimal separator for number parsing\").nullable().optional(),\n allowed_extensions: z.array(z.string()).describe(\"List of file extensions to process. If not present, all extensions are enabled\").nullable().optional(),\n master_parser_name: z.string().describe(\"The name of this parser's master parser\").nullable().optional(),\n master_parser_slug: z.string().describe(\"Master parser template slug\").nullable().optional(),\n parser_object_count: z.number().int().describe(\"The total number of field and metadata outputs currently configured\").nullable(),\n process_attachments: z.boolean().describe(\"Whether email attachment processing is enabled\").nullable().optional(),\n available_webhook_set: z.array(ParseurUpdateMailbox_WebhookInfoSchema).describe(\"List of available webhooks\"),\n identification_status: z.string().describe(\"Identification status of the parser\").nullable().optional(),\n document_per_status_count: ParseurUpdateMailbox_DocumentStatusCountSchema.nullable(),\n template_set_last_modified: z.string().describe(\"Timestamp when templates were last modified\").nullable().optional(),\n parser_object_set_last_modified: z.string().describe(\"Timestamp when parser objects were last modified\").nullable().optional(),\n}).passthrough().describe(\"Response model for update mailbox action containing the updated mailbox configuration.\");\n\nexport const parseurUpdateMailbox: AppAction<\n typeof ParseurUpdateMailboxInput,\n typeof ParseurUpdateMailboxOutput,\n typeof parseur.credential\n> = action(\"PARSEUR_UPDATE_MAILBOX\", {\n slug: \"parseur-update-mailbox\",\n name: \"Update Mailbox\",\n description: \"Tool to update a mailbox (parser) configuration. Use when you need to modify mailbox settings such as name, AI engine, processing options, or document handling rules.\",\n input: ParseurUpdateMailboxInput,\n output: ParseurUpdateMailboxOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,KAAK;EAAC;EAAY;EAAY;EAAY;CAAY,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC5H,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC9H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CAC9K,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACjH,gBAAgB,EAAE,MAAM,EAAE,OAAO;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