document-operations 1.1.11 → 1.1.13

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.cts CHANGED
@@ -336,7 +336,7 @@ declare const computeFormulaOperation: {
336
336
  path: string;
337
337
  } | {
338
338
  bytesBase64: string;
339
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
339
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
352
+ sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
353
353
  documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
354
354
  formulaCount: number;
355
355
  formulas: {
@@ -418,8 +418,8 @@ declare const ConvertDocumentOutputSchema: z.ZodObject<{
418
418
  }, z.core.$strip>]>;
419
419
  diagnostics: z.ZodArray<z.ZodObject<{
420
420
  severity: z.ZodEnum<{
421
- warning: "warning";
422
421
  info: "info";
422
+ warning: "warning";
423
423
  }>;
424
424
  code: z.ZodString;
425
425
  message: z.ZodString;
@@ -573,8 +573,8 @@ declare const convertDocumentOperation: {
573
573
  }, z.core.$strip>]>;
574
574
  diagnostics: z.ZodArray<z.ZodObject<{
575
575
  severity: z.ZodEnum<{
576
- warning: "warning";
577
576
  info: "info";
577
+ warning: "warning";
578
578
  }>;
579
579
  code: z.ZodString;
580
580
  message: z.ZodString;
@@ -596,9 +596,9 @@ declare const convertDocumentOperation: {
596
596
  path: string;
597
597
  } | {
598
598
  bytesBase64: string;
599
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
599
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
600
600
  };
601
- targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
601
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
614
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
615
615
  output: {
616
616
  path: string;
617
617
  byteLength: number;
@@ -621,7 +621,7 @@ declare const convertDocumentOperation: {
621
621
  large?: true | undefined;
622
622
  };
623
623
  diagnostics: {
624
- severity: "warning" | "info";
624
+ severity: "info" | "warning";
625
625
  code: string;
626
626
  message: string;
627
627
  pageIndex?: number | undefined;
@@ -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" | "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";
689
+ source: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
690
+ target: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
732
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
733
733
  };
734
734
  }, context?: DocumentOperationContext): Promise<import("documents.js").DocxExtras>;
735
735
  };
@@ -747,8 +747,8 @@ declare const documentCreateOperation: {
747
747
  odp: "odp";
748
748
  ods: "ods";
749
749
  odg: "odg";
750
- pdf: "pdf";
751
750
  markdown: "markdown";
751
+ pdf: "pdf";
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" | "odp" | "ods" | "odg" | "pdf" | "markdown";
766
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "markdown" | "pdf";
767
767
  output?: {
768
768
  outputPath?: string | undefined;
769
769
  } | undefined;
@@ -851,7 +851,7 @@ declare const documentAppendParagraphsOperation: {
851
851
  path: string;
852
852
  } | {
853
853
  bytesBase64: string;
854
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
854
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
855
855
  };
856
856
  targetFormat: "docx" | "odt" | "markdown";
857
857
  paragraphs: {
@@ -930,7 +930,7 @@ declare const fontsOperation: {
930
930
  path: string;
931
931
  } | {
932
932
  bytesBase64: string;
933
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
933
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1041
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
1042
1042
  };
1043
- targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1043
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1094
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1188
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
1189
1189
  };
1190
- targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1190
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1340
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1380
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1420
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1462
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1508
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1555
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1723
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1852
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1920
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
2008
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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: "italic" | "normal";
2044
+ style: "normal" | "italic";
2045
2045
  };
2046
2046
  sizePt: number;
2047
2047
  color: {
@@ -2207,7 +2207,7 @@ declare const pdfInspectOperation: {
2207
2207
  yPt: number;
2208
2208
  }][] | undefined;
2209
2209
  source?: {
2210
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
2210
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "odf" | "markdown" | "rtf" | "wpd" | "epub" | "pdf" | "odm" | "odb";
2211
2211
  xml: string;
2212
2212
  } | undefined;
2213
2213
  }[] | undefined;
@@ -2250,7 +2250,7 @@ declare const pdfInspectOperation: {
2250
2250
  structure?: LayoutStructureElement[] | undefined;
2251
2251
  form?: LayoutFormField[] | undefined;
2252
2252
  source?: Record<string, {
2253
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
2253
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "odf" | "markdown" | "rtf" | "wpd" | "epub" | "pdf" | "odm" | "odb";
2254
2254
  xml: string;
2255
2255
  }> | undefined;
2256
2256
  } | PdfInspectSummary>;
package/dist/index.d.ts CHANGED
@@ -336,7 +336,7 @@ declare const computeFormulaOperation: {
336
336
  path: string;
337
337
  } | {
338
338
  bytesBase64: string;
339
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
339
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
352
+ sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
353
353
  documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
354
354
  formulaCount: number;
355
355
  formulas: {
@@ -418,8 +418,8 @@ declare const ConvertDocumentOutputSchema: z.ZodObject<{
418
418
  }, z.core.$strip>]>;
419
419
  diagnostics: z.ZodArray<z.ZodObject<{
420
420
  severity: z.ZodEnum<{
421
- warning: "warning";
422
421
  info: "info";
422
+ warning: "warning";
423
423
  }>;
424
424
  code: z.ZodString;
425
425
  message: z.ZodString;
@@ -573,8 +573,8 @@ declare const convertDocumentOperation: {
573
573
  }, z.core.$strip>]>;
574
574
  diagnostics: z.ZodArray<z.ZodObject<{
575
575
  severity: z.ZodEnum<{
576
- warning: "warning";
577
576
  info: "info";
577
+ warning: "warning";
578
578
  }>;
579
579
  code: z.ZodString;
580
580
  message: z.ZodString;
@@ -596,9 +596,9 @@ declare const convertDocumentOperation: {
596
596
  path: string;
597
597
  } | {
598
598
  bytesBase64: string;
599
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
599
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
600
600
  };
601
- targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
601
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
614
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
615
615
  output: {
616
616
  path: string;
617
617
  byteLength: number;
@@ -621,7 +621,7 @@ declare const convertDocumentOperation: {
621
621
  large?: true | undefined;
622
622
  };
623
623
  diagnostics: {
624
- severity: "warning" | "info";
624
+ severity: "info" | "warning";
625
625
  code: string;
626
626
  message: string;
627
627
  pageIndex?: number | undefined;
@@ -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" | "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";
689
+ source: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
690
+ target: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
732
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
733
733
  };
734
734
  }, context?: DocumentOperationContext): Promise<import("documents.js").DocxExtras>;
735
735
  };
@@ -747,8 +747,8 @@ declare const documentCreateOperation: {
747
747
  odp: "odp";
748
748
  ods: "ods";
749
749
  odg: "odg";
750
- pdf: "pdf";
751
750
  markdown: "markdown";
751
+ pdf: "pdf";
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" | "odp" | "ods" | "odg" | "pdf" | "markdown";
766
+ format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "markdown" | "pdf";
767
767
  output?: {
768
768
  outputPath?: string | undefined;
769
769
  } | undefined;
@@ -851,7 +851,7 @@ declare const documentAppendParagraphsOperation: {
851
851
  path: string;
852
852
  } | {
853
853
  bytesBase64: string;
854
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
854
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
855
855
  };
856
856
  targetFormat: "docx" | "odt" | "markdown";
857
857
  paragraphs: {
@@ -930,7 +930,7 @@ declare const fontsOperation: {
930
930
  path: string;
931
931
  } | {
932
932
  bytesBase64: string;
933
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
933
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1041
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
1042
1042
  };
1043
- targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1043
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1094
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1188
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
1189
1189
  };
1190
- targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1190
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1340
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1380
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1420
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1462
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1508
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1555
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1723
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1852
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
1920
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
2008
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
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: "italic" | "normal";
2044
+ style: "normal" | "italic";
2045
2045
  };
2046
2046
  sizePt: number;
2047
2047
  color: {
@@ -2207,7 +2207,7 @@ declare const pdfInspectOperation: {
2207
2207
  yPt: number;
2208
2208
  }][] | undefined;
2209
2209
  source?: {
2210
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
2210
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "odf" | "markdown" | "rtf" | "wpd" | "epub" | "pdf" | "odm" | "odb";
2211
2211
  xml: string;
2212
2212
  } | undefined;
2213
2213
  }[] | undefined;
@@ -2250,7 +2250,7 @@ declare const pdfInspectOperation: {
2250
2250
  structure?: LayoutStructureElement[] | undefined;
2251
2251
  form?: LayoutFormField[] | undefined;
2252
2252
  source?: Record<string, {
2253
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
2253
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "odf" | "markdown" | "rtf" | "wpd" | "epub" | "pdf" | "odm" | "odb";
2254
2254
  xml: string;
2255
2255
  }> | undefined;
2256
2256
  } | PdfInspectSummary>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-operations",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "The canonical set of document-conversion, editing, inspection, and .odb operations documents.js exposes -- one Zod input/output schema and one transport-agnostic run() function per operation, shared by document-mcp, document-cli, and a REST API server rather than each defining its own copy.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -82,10 +82,10 @@
82
82
  "license": "MIT",
83
83
  "packageManager": "pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c",
84
84
  "dependencies": {
85
- "document-compute.js": "1.5.14",
85
+ "document-compute.js": "1.5.16",
86
86
  "document-outline.js": "3.9.1",
87
87
  "document-schema.js": "7.11.3",
88
- "documents.js": "7.20.11",
88
+ "documents.js": "7.20.13",
89
89
  "zod": "4.4.3"
90
90
  },
91
91
  "devDependencies": {