document-operations 1.1.50 → 1.1.51

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/index.d.ts CHANGED
@@ -3,13 +3,13 @@ import { z } from "zod";
3
3
  import { ContentBlock, ContentSection, DefinitionsTable, LayoutMetadata, SourceResidue } from "document-schema.js";
4
4
  //#region src/operation.d.ts
5
5
  /**
6
- * Carried alongside an operation's own input -- transport concerns an operation's own logic needs but that don't belong in its Zod input schema, since a caller (MCP tool args, a REST request body, a CLI flag set) never supplies them directly. Currently just an abort signal: MCP derives it from the tool call's own `ctx.mcpReq.signal`, document-cli from its own `--timeout`-derived controller, and a REST server would derive it from the incoming HTTP request's own abort event.
6
+ * Carried alongside an operation's own input — transport concerns an operation's own logic needs but that don't belong in its Zod input schema, since a caller (MCP tool args, a REST request body, a CLI flag set) never supplies them directly. Currently just an abort signal: MCP derives it from the tool call's own `ctx.mcpReq.signal`, document-cli from its own `--timeout`-derived controller, and a REST server would derive it from the incoming HTTP request's own abort event.
7
7
  */
8
8
  interface DocumentOperationContext {
9
9
  readonly signal?: AbortSignal;
10
10
  }
11
11
  /**
12
- * One document operation, complete enough for any of the three transports (MCP tool registration, a CLI command, a REST route) to expose it without redefining its shape or its behaviour: `inputSchema`/`outputSchema` are the single source of truth for validation and description text, and `run()` is the transport-agnostic implementation, throwing a plain (or documents.js's own typed) Error on failure rather than shaping any transport-specific result -- each transport decides for itself how to present a thrown error (MCP wraps it as an isError tool result, a REST route as a 4xx JSON body, a CLI command as a stderr message and a non-zero exit code).
12
+ * One document operation, complete enough for any of the three transports (MCP tool registration, a CLI command, a REST route) to expose it without redefining its shape or its behaviour: `inputSchema`/`outputSchema` are the single source of truth for validation and description text, and `run()` is the transport-agnostic implementation, throwing a plain (or documents.js's own typed) Error on failure rather than shaping any transport-specific result — each transport decides for itself how to present a thrown error (MCP wraps it as an isError tool result, a REST route as a 4xx JSON body, a CLI command as a stderr message and a non-zero exit code).
13
13
  */
14
14
  interface DocumentOperation<In = unknown, Out = unknown> {
15
15
  readonly name: string;
@@ -22,7 +22,7 @@ interface DocumentOperation<In = unknown, Out = unknown> {
22
22
  /**
23
23
  * Builds a DocumentOperation whose input and output types are both inferred from real Zod schemas, so a call site never has to repeat `z.infer<typeof Schema>` itself. Use `defineOperationWithoutOutputSchema` instead for the rare operation whose original MCP tool registration declared no outputSchema at all.
24
24
  *
25
- * Deliberately returns the parameter object's own inferred literal type rather than an explicit `DocumentOperation<...>` return annotation. Zod 4's ZodType carries its own output type as one of three generic parameters (ZodType<Output, Input, Internals>), and TypeScript cannot prove, from inside this function body, that a generic `InputSchema extends z.ZodType` also extends `z.ZodType<z.infer<InputSchema>>` -- the two-step indirection through an abstract type parameter defeats it even though it is true for every concrete schema. Letting the literal's own type flow out instead sidesteps that: a caller's own concrete schema (e.g. `ConvertDocumentInputSchema`) is trivially assignable to `DocumentOperation<In, Out>`'s `z.ZodType<In>` field wherever that supertype is actually needed (the registry array below, or a future MCP/REST/CLI adapter parameter), because widening a CONCRETE schema's output type to line up is a normal covariant check, not the same self-referential generic one.
25
+ * Deliberately returns the parameter object's own inferred literal type rather than an explicit `DocumentOperation<...>` return annotation. Zod 4's ZodType carries its own output type as one of three generic parameters (ZodType<Output, Input, Internals>), and TypeScript cannot prove, from inside this function body, that a generic `InputSchema extends z.ZodType` also extends `z.ZodType<z.infer<InputSchema>>` — the two-step indirection through an abstract type parameter defeats it even though it is true for every concrete schema. Letting the literal's own type flow out instead sidesteps that: a caller's own concrete schema (e.g. `ConvertDocumentInputSchema`) is trivially assignable to `DocumentOperation<In, Out>`'s `z.ZodType<In>` field wherever that supertype is actually needed (the registry array below, or a future MCP/REST/CLI adapter parameter), because widening a CONCRETE schema's output type to line up is a normal covariant check, not the same self-referential generic one.
26
26
  */
27
27
  declare function defineOperation<InputSchema extends z.ZodType, OutputSchema extends z.ZodType>(operation: {
28
28
  readonly name: string;
@@ -40,7 +40,7 @@ declare function defineOperation<InputSchema extends z.ZodType, OutputSchema ext
40
40
  run(input: z.infer<InputSchema>, context?: DocumentOperationContext): Promise<z.infer<OutputSchema>>;
41
41
  };
42
42
  /**
43
- * The `defineOperation` counterpart for an operation with no output schema to infer from (the original MCP tool registration declared none) -- `Out` is inferred from `run`'s own return type instead. See `defineOperation`'s own comment for why this returns the parameter object's inferred literal type rather than an explicit `DocumentOperation<...>` annotation.
43
+ * The `defineOperation` counterpart for an operation with no output schema to infer from (the original MCP tool registration declared none) — `Out` is inferred from `run`'s own return type instead. See `defineOperation`'s own comment for why this returns the parameter object's inferred literal type rather than an explicit `DocumentOperation<...>` annotation.
44
44
  */
45
45
  declare function defineOperationWithoutOutputSchema<InputSchema extends z.ZodType, Out>(operation: {
46
46
  readonly name: string;
@@ -58,7 +58,7 @@ declare function defineOperationWithoutOutputSchema<InputSchema extends z.ZodTyp
58
58
  //#endregion
59
59
  //#region src/registry.d.ts
60
60
  /**
61
- * Every document operation this package defines, one entry per MCP tool/CLI command/REST route -- "the same registry as the MCP" a consumer that needs to enumerate every operation (rather than importing one by name) reaches for: an MCP server registers each entry as a tool, a REST server adds one route per entry, and a CLI can validate its own parsed flags against an entry's inputSchema before dispatching to its run().
61
+ * Every document operation this package defines, one entry per MCP tool/CLI command/REST route — "the same registry as the MCP" a consumer that needs to enumerate every operation (rather than importing one by name) reaches for: an MCP server registers each entry as a tool, a REST server adds one route per entry, and a CLI can validate its own parsed flags against an entry's inputSchema before dispatching to its run().
62
62
  */
63
63
  declare const DOCUMENT_OPERATIONS: readonly DocumentOperation[];
64
64
  //#endregion
@@ -113,7 +113,7 @@ declare const DocumentOutputSchema: z.ZodObject<{
113
113
  }, z.core.$strip>;
114
114
  type DocumentOutput = z.infer<typeof DocumentOutputSchema>;
115
115
  /**
116
- * Above this many bytes, an inline base64 result is flagged `large: true` so a caller/LLM can see the response is sizeable before deciding whether to consume it directly. Purely advisory: `resolveDocumentOutput` never truncates or refuses to return large bytes, it only flags them -- silently truncating a document would produce a corrupt file with no indication anything was lost. 5 MB is a reasonable default order of magnitude for "an LLM context probably wants to know before this lands inline", well under typical MCP stdio transport limits.
116
+ * Above this many bytes, an inline base64 result is flagged `large: true` so a caller/LLM can see the response is sizeable before deciding whether to consume it directly. Purely advisory: `resolveDocumentOutput` never truncates or refuses to return large bytes, it only flags them — silently truncating a document would produce a corrupt file with no indication anything was lost. 5 MB is a reasonable default order of magnitude for "an LLM context probably wants to know before this lands inline", well under typical MCP stdio transport limits.
117
117
  */
118
118
  declare const LARGE_RESULT_THRESHOLD_BYTES: number;
119
119
  interface WrittenDocumentOutput {
@@ -336,7 +336,7 @@ declare const computeFormulaOperation: {
336
336
  path: string;
337
337
  } | {
338
338
  bytesBase64: string;
339
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
339
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
340
340
  };
341
341
  bindings?: Record<string, {
342
342
  kind: "quantity";
@@ -349,7 +349,7 @@ declare const computeFormulaOperation: {
349
349
  dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
350
350
  }> | undefined;
351
351
  }, context?: DocumentOperationContext): Promise<{
352
- sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
352
+ sourceFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
353
353
  documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
354
354
  formulaCount: number;
355
355
  formulas: {
@@ -596,9 +596,9 @@ declare const convertDocumentOperation: {
596
596
  path: string;
597
597
  } | {
598
598
  bytesBase64: string;
599
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
599
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
600
600
  };
601
- targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
601
+ targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
602
602
  output?: {
603
603
  outputPath?: string | undefined;
604
604
  } | undefined;
@@ -611,7 +611,7 @@ declare const convertDocumentOperation: {
611
611
  onSubstitutionDiagnostics?: boolean | undefined;
612
612
  images?: Record<string, string> | undefined;
613
613
  }, context?: DocumentOperationContext): Promise<{
614
- targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
614
+ targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
615
615
  output: {
616
616
  path: string;
617
617
  byteLength: number;
@@ -686,8 +686,8 @@ declare const listDocumentConversionsOperation: {
686
686
  }, z.core.$strip>;
687
687
  run(input: Record<string, never>, context?: DocumentOperationContext): Promise<{
688
688
  conversions: {
689
- source: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
690
- target: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
689
+ source: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
690
+ target: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
691
691
  }[];
692
692
  }>;
693
693
  };
@@ -729,7 +729,7 @@ declare const docxExtrasOperation: {
729
729
  path: string;
730
730
  } | {
731
731
  bytesBase64: string;
732
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
732
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
733
733
  };
734
734
  }, context?: DocumentOperationContext): Promise<import("documents.js").DocxExtras>;
735
735
  };
@@ -744,11 +744,11 @@ declare const documentCreateOperation: {
744
744
  docx: "docx";
745
745
  pptx: "pptx";
746
746
  odt: "odt";
747
- ods: "ods";
748
747
  odp: "odp";
748
+ ods: "ods";
749
749
  odg: "odg";
750
- markdown: "markdown";
751
750
  pdf: "pdf";
751
+ markdown: "markdown";
752
752
  }>;
753
753
  output: z.ZodOptional<z.ZodObject<{
754
754
  outputPath: z.ZodOptional<z.ZodString>;
@@ -763,7 +763,7 @@ declare const documentCreateOperation: {
763
763
  large: z.ZodOptional<z.ZodLiteral<true>>;
764
764
  }, z.core.$strip>]>;
765
765
  run(input: {
766
- format: "docx" | "pptx" | "odt" | "ods" | "odp" | "odg" | "markdown" | "pdf";
766
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown";
767
767
  output?: {
768
768
  outputPath?: string | undefined;
769
769
  } | undefined;
@@ -817,8 +817,8 @@ declare const documentAppendParagraphsOperation: {
817
817
  headingLevel: z.ZodOptional<z.ZodNumber>;
818
818
  alignment: z.ZodOptional<z.ZodEnum<{
819
819
  left: "left";
820
- right: "right";
821
820
  center: "center";
821
+ right: "right";
822
822
  justify: "justify";
823
823
  }>>;
824
824
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -851,14 +851,14 @@ declare const documentAppendParagraphsOperation: {
851
851
  path: string;
852
852
  } | {
853
853
  bytesBase64: string;
854
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
854
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
855
855
  };
856
856
  targetFormat: "docx" | "odt" | "markdown";
857
857
  paragraphs: {
858
858
  text?: string | undefined;
859
859
  styleId?: string | undefined;
860
860
  headingLevel?: number | undefined;
861
- alignment?: "left" | "right" | "center" | "justify" | undefined;
861
+ alignment?: "left" | "center" | "right" | "justify" | undefined;
862
862
  runs?: {
863
863
  text?: string | undefined;
864
864
  bold?: boolean | undefined;
@@ -930,7 +930,7 @@ declare const fontsOperation: {
930
930
  path: string;
931
931
  } | {
932
932
  bytesBase64: string;
933
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
933
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
934
934
  };
935
935
  }, context?: DocumentOperationContext): Promise<{
936
936
  faces: {
@@ -1038,9 +1038,9 @@ declare const fromPackageOperation: {
1038
1038
  path: string;
1039
1039
  } | {
1040
1040
  bytesBase64: string;
1041
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1041
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1042
1042
  };
1043
- targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1043
+ targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1044
1044
  output?: {
1045
1045
  outputPath?: string | undefined;
1046
1046
  } | undefined;
@@ -1091,7 +1091,7 @@ declare const metadataReadOperation: {
1091
1091
  path: string;
1092
1092
  } | {
1093
1093
  bytesBase64: string;
1094
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1094
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1095
1095
  };
1096
1096
  }, context?: DocumentOperationContext): Promise<{
1097
1097
  title?: string | undefined;
@@ -1185,9 +1185,9 @@ declare const metadataWriteOperation: {
1185
1185
  path: string;
1186
1186
  } | {
1187
1187
  bytesBase64: string;
1188
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1188
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1189
1189
  };
1190
- targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1190
+ targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1191
1191
  output?: {
1192
1192
  outputPath?: string | undefined;
1193
1193
  } | undefined;
@@ -1337,7 +1337,7 @@ declare const odbTablesOperation: {
1337
1337
  path: string;
1338
1338
  } | {
1339
1339
  bytesBase64: string;
1340
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1340
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1341
1341
  };
1342
1342
  }, context?: DocumentOperationContext): Promise<readonly import("documents.js").HsqldbTable[]>;
1343
1343
  };
@@ -1377,7 +1377,7 @@ declare const odbFormsOperation: {
1377
1377
  path: string;
1378
1378
  } | {
1379
1379
  bytesBase64: string;
1380
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1380
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1381
1381
  };
1382
1382
  }, context?: DocumentOperationContext): Promise<readonly OdbForm[]>;
1383
1383
  };
@@ -1417,7 +1417,7 @@ declare const odbReportsOperation: {
1417
1417
  path: string;
1418
1418
  } | {
1419
1419
  bytesBase64: string;
1420
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1420
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1421
1421
  };
1422
1422
  }, context?: DocumentOperationContext): Promise<readonly OdbReport[]>;
1423
1423
  };
@@ -1459,7 +1459,7 @@ declare const odbQueryOperation: {
1459
1459
  path: string;
1460
1460
  } | {
1461
1461
  bytesBase64: string;
1462
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1462
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1463
1463
  };
1464
1464
  sql?: string | undefined;
1465
1465
  query?: string | undefined;
@@ -1505,7 +1505,7 @@ declare const odbToCsvOperation: {
1505
1505
  path: string;
1506
1506
  } | {
1507
1507
  bytesBase64: string;
1508
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1508
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1509
1509
  };
1510
1510
  table?: string | undefined;
1511
1511
  output?: {
@@ -1552,7 +1552,7 @@ declare const odbToXlsxOperation: {
1552
1552
  path: string;
1553
1553
  } | {
1554
1554
  bytesBase64: string;
1555
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1555
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1556
1556
  };
1557
1557
  output?: {
1558
1558
  outputPath?: string | undefined;
@@ -1720,7 +1720,7 @@ declare const odbRenderReportOperation: {
1720
1720
  path: string;
1721
1721
  } | {
1722
1722
  bytesBase64: string;
1723
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1723
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1724
1724
  };
1725
1725
  targetFormat: "docx" | "odt" | "pdf";
1726
1726
  report?: string | undefined;
@@ -1849,7 +1849,7 @@ declare const odmToPdfOperation: {
1849
1849
  path: string;
1850
1850
  } | {
1851
1851
  bytesBase64: string;
1852
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1852
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1853
1853
  };
1854
1854
  }[];
1855
1855
  output: {
@@ -1917,7 +1917,7 @@ declare const outlineDocumentOperation: {
1917
1917
  path: string;
1918
1918
  } | {
1919
1919
  bytesBase64: string;
1920
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
1920
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1921
1921
  };
1922
1922
  }, context?: DocumentOperationContext): Promise<OutlineDocumentOutput>;
1923
1923
  };
@@ -2005,7 +2005,7 @@ declare const pdfInspectOperation: {
2005
2005
  path: string;
2006
2006
  } | {
2007
2007
  bytesBase64: string;
2008
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
2008
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
2009
2009
  };
2010
2010
  full?: boolean | undefined;
2011
2011
  }, context?: DocumentOperationContext): Promise<{
@@ -2041,7 +2041,7 @@ declare const pdfInspectOperation: {
2041
2041
  font: {
2042
2042
  family: string;
2043
2043
  weight: "bold" | "normal";
2044
- style: "normal" | "italic";
2044
+ style: "italic" | "normal";
2045
2045
  };
2046
2046
  sizePt: number;
2047
2047
  color: {
@@ -2208,7 +2208,7 @@ declare const pdfInspectOperation: {
2208
2208
  yPt: number;
2209
2209
  }][] | undefined;
2210
2210
  source?: {
2211
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odm" | "odb" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd";
2211
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
2212
2212
  xml: string;
2213
2213
  } | undefined;
2214
2214
  }[] | undefined;
@@ -2251,7 +2251,7 @@ declare const pdfInspectOperation: {
2251
2251
  structure?: LayoutStructureElement[] | undefined;
2252
2252
  form?: LayoutFormField[] | undefined;
2253
2253
  source?: Record<string, {
2254
- format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odm" | "odb" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd";
2254
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
2255
2255
  xml: string;
2256
2256
  }> | undefined;
2257
2257
  } | PdfInspectSummary>;