document-operations 1.1.153 → 1.1.155

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
@@ -174,9 +174,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
174
174
  kind: z.ZodLiteral<"quantity">;
175
175
  magnitude: z.ZodNumber;
176
176
  dimension: z.ZodRecord<z.ZodEnum<{
177
+ time: "time";
177
178
  length: "length";
178
179
  mass: "mass";
179
- time: "time";
180
180
  electricCurrent: "electricCurrent";
181
181
  thermodynamicTemperature: "thermodynamicTemperature";
182
182
  amountOfSubstance: "amountOfSubstance";
@@ -187,9 +187,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
187
187
  min: z.ZodNumber;
188
188
  max: z.ZodNumber;
189
189
  dimension: z.ZodRecord<z.ZodEnum<{
190
+ time: "time";
190
191
  length: "length";
191
192
  mass: "mass";
192
- time: "time";
193
193
  electricCurrent: "electricCurrent";
194
194
  thermodynamicTemperature: "thermodynamicTemperature";
195
195
  amountOfSubstance: "amountOfSubstance";
@@ -207,7 +207,7 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
207
207
  }, z.core.$strip>;
208
208
  declare const computeFormulaOperation: {
209
209
  run: (input: unknown, context?: DocumentOperationContext) => Promise<{
210
- sourceFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
210
+ sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
211
211
  documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
212
212
  formulaCount: number;
213
213
  formulas: {
@@ -218,12 +218,12 @@ declare const computeFormulaOperation: {
218
218
  result: {
219
219
  kind: "quantity";
220
220
  magnitude: number;
221
- dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
221
+ dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
222
222
  } | {
223
223
  kind: "interval";
224
224
  min: number;
225
225
  max: number;
226
- dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
226
+ dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
227
227
  };
228
228
  } | {
229
229
  status: "no-content";
@@ -269,9 +269,9 @@ declare const computeFormulaOperation: {
269
269
  kind: z.ZodLiteral<"quantity">;
270
270
  magnitude: z.ZodNumber;
271
271
  dimension: z.ZodRecord<z.ZodEnum<{
272
+ time: "time";
272
273
  length: "length";
273
274
  mass: "mass";
274
- time: "time";
275
275
  electricCurrent: "electricCurrent";
276
276
  thermodynamicTemperature: "thermodynamicTemperature";
277
277
  amountOfSubstance: "amountOfSubstance";
@@ -282,9 +282,9 @@ declare const computeFormulaOperation: {
282
282
  min: z.ZodNumber;
283
283
  max: z.ZodNumber;
284
284
  dimension: z.ZodRecord<z.ZodEnum<{
285
+ time: "time";
285
286
  length: "length";
286
287
  mass: "mass";
287
- time: "time";
288
288
  electricCurrent: "electricCurrent";
289
289
  thermodynamicTemperature: "thermodynamicTemperature";
290
290
  amountOfSubstance: "amountOfSubstance";
@@ -332,9 +332,9 @@ declare const computeFormulaOperation: {
332
332
  kind: z.ZodLiteral<"quantity">;
333
333
  magnitude: z.ZodNumber;
334
334
  dimension: z.ZodRecord<z.ZodEnum<{
335
+ time: "time";
335
336
  length: "length";
336
337
  mass: "mass";
337
- time: "time";
338
338
  electricCurrent: "electricCurrent";
339
339
  thermodynamicTemperature: "thermodynamicTemperature";
340
340
  amountOfSubstance: "amountOfSubstance";
@@ -345,9 +345,9 @@ declare const computeFormulaOperation: {
345
345
  min: z.ZodNumber;
346
346
  max: z.ZodNumber;
347
347
  dimension: z.ZodRecord<z.ZodEnum<{
348
+ time: "time";
348
349
  length: "length";
349
350
  mass: "mass";
350
- time: "time";
351
351
  electricCurrent: "electricCurrent";
352
352
  thermodynamicTemperature: "thermodynamicTemperature";
353
353
  amountOfSubstance: "amountOfSubstance";
@@ -403,8 +403,8 @@ declare const ConvertDocumentOutputSchema: z.ZodObject<{
403
403
  }, z.core.$strip>]>;
404
404
  diagnostics: z.ZodArray<z.ZodObject<{
405
405
  severity: z.ZodEnum<{
406
- warning: "warning";
407
406
  info: "info";
407
+ warning: "warning";
408
408
  }>;
409
409
  code: z.ZodString;
410
410
  message: z.ZodString;
@@ -467,7 +467,7 @@ declare const ListDocumentConversionsOutputSchema: z.ZodObject<{
467
467
  }, z.core.$strip>;
468
468
  declare const convertDocumentOperation: {
469
469
  run: (input: unknown, context?: DocumentOperationContext) => Promise<{
470
- targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
470
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
471
471
  output: {
472
472
  path: string;
473
473
  byteLength: number;
@@ -477,7 +477,7 @@ declare const convertDocumentOperation: {
477
477
  large?: true | undefined;
478
478
  };
479
479
  diagnostics: {
480
- severity: "warning" | "info";
480
+ severity: "info" | "warning";
481
481
  code: string;
482
482
  message: string;
483
483
  pageIndex?: number | undefined;
@@ -582,8 +582,8 @@ declare const convertDocumentOperation: {
582
582
  }, z.core.$strip>]>;
583
583
  diagnostics: z.ZodArray<z.ZodObject<{
584
584
  severity: z.ZodEnum<{
585
- warning: "warning";
586
585
  info: "info";
586
+ warning: "warning";
587
587
  }>;
588
588
  code: z.ZodString;
589
589
  message: z.ZodString;
@@ -604,8 +604,8 @@ declare const convertDocumentOperation: {
604
604
  declare const listDocumentConversionsOperation: {
605
605
  run: (input: unknown, context?: DocumentOperationContext) => Promise<{
606
606
  conversions: {
607
- source: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
608
- target: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
607
+ source: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
608
+ target: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
609
609
  }[];
610
610
  }>;
611
611
  name: string;
@@ -714,8 +714,8 @@ declare const documentCreateOperation: {
714
714
  odp: "odp";
715
715
  ods: "ods";
716
716
  odg: "odg";
717
- pdf: "pdf";
718
717
  markdown: "markdown";
718
+ pdf: "pdf";
719
719
  }>;
720
720
  output: z.ZodOptional<z.ZodObject<{
721
721
  outputPath: z.ZodOptional<z.ZodString>;
@@ -1953,7 +1953,7 @@ declare const pdfInspectOperation: {
1953
1953
  yPt: number;
1954
1954
  }][] | undefined;
1955
1955
  source?: {
1956
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
1956
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "odf" | "markdown" | "rtf" | "wpd" | "epub" | "pdf" | "odm" | "odb";
1957
1957
  xml: string;
1958
1958
  } | undefined;
1959
1959
  }[] | undefined;
@@ -1996,7 +1996,7 @@ declare const pdfInspectOperation: {
1996
1996
  structure?: LayoutStructureElement[] | undefined;
1997
1997
  form?: LayoutFormField[] | undefined;
1998
1998
  source?: Record<string, {
1999
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
1999
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "odf" | "markdown" | "rtf" | "wpd" | "epub" | "pdf" | "odm" | "odb";
2000
2000
  xml: string;
2001
2001
  }> | undefined;
2002
2002
  } | PdfInspectSummary>;
package/dist/index.d.ts CHANGED
@@ -174,9 +174,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
174
174
  kind: z.ZodLiteral<"quantity">;
175
175
  magnitude: z.ZodNumber;
176
176
  dimension: z.ZodRecord<z.ZodEnum<{
177
+ time: "time";
177
178
  length: "length";
178
179
  mass: "mass";
179
- time: "time";
180
180
  electricCurrent: "electricCurrent";
181
181
  thermodynamicTemperature: "thermodynamicTemperature";
182
182
  amountOfSubstance: "amountOfSubstance";
@@ -187,9 +187,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
187
187
  min: z.ZodNumber;
188
188
  max: z.ZodNumber;
189
189
  dimension: z.ZodRecord<z.ZodEnum<{
190
+ time: "time";
190
191
  length: "length";
191
192
  mass: "mass";
192
- time: "time";
193
193
  electricCurrent: "electricCurrent";
194
194
  thermodynamicTemperature: "thermodynamicTemperature";
195
195
  amountOfSubstance: "amountOfSubstance";
@@ -207,7 +207,7 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
207
207
  }, z.core.$strip>;
208
208
  declare const computeFormulaOperation: {
209
209
  run: (input: unknown, context?: DocumentOperationContext) => Promise<{
210
- sourceFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
210
+ sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
211
211
  documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
212
212
  formulaCount: number;
213
213
  formulas: {
@@ -218,12 +218,12 @@ declare const computeFormulaOperation: {
218
218
  result: {
219
219
  kind: "quantity";
220
220
  magnitude: number;
221
- dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
221
+ dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
222
222
  } | {
223
223
  kind: "interval";
224
224
  min: number;
225
225
  max: number;
226
- dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
226
+ dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
227
227
  };
228
228
  } | {
229
229
  status: "no-content";
@@ -269,9 +269,9 @@ declare const computeFormulaOperation: {
269
269
  kind: z.ZodLiteral<"quantity">;
270
270
  magnitude: z.ZodNumber;
271
271
  dimension: z.ZodRecord<z.ZodEnum<{
272
+ time: "time";
272
273
  length: "length";
273
274
  mass: "mass";
274
- time: "time";
275
275
  electricCurrent: "electricCurrent";
276
276
  thermodynamicTemperature: "thermodynamicTemperature";
277
277
  amountOfSubstance: "amountOfSubstance";
@@ -282,9 +282,9 @@ declare const computeFormulaOperation: {
282
282
  min: z.ZodNumber;
283
283
  max: z.ZodNumber;
284
284
  dimension: z.ZodRecord<z.ZodEnum<{
285
+ time: "time";
285
286
  length: "length";
286
287
  mass: "mass";
287
- time: "time";
288
288
  electricCurrent: "electricCurrent";
289
289
  thermodynamicTemperature: "thermodynamicTemperature";
290
290
  amountOfSubstance: "amountOfSubstance";
@@ -332,9 +332,9 @@ declare const computeFormulaOperation: {
332
332
  kind: z.ZodLiteral<"quantity">;
333
333
  magnitude: z.ZodNumber;
334
334
  dimension: z.ZodRecord<z.ZodEnum<{
335
+ time: "time";
335
336
  length: "length";
336
337
  mass: "mass";
337
- time: "time";
338
338
  electricCurrent: "electricCurrent";
339
339
  thermodynamicTemperature: "thermodynamicTemperature";
340
340
  amountOfSubstance: "amountOfSubstance";
@@ -345,9 +345,9 @@ declare const computeFormulaOperation: {
345
345
  min: z.ZodNumber;
346
346
  max: z.ZodNumber;
347
347
  dimension: z.ZodRecord<z.ZodEnum<{
348
+ time: "time";
348
349
  length: "length";
349
350
  mass: "mass";
350
- time: "time";
351
351
  electricCurrent: "electricCurrent";
352
352
  thermodynamicTemperature: "thermodynamicTemperature";
353
353
  amountOfSubstance: "amountOfSubstance";
@@ -403,8 +403,8 @@ declare const ConvertDocumentOutputSchema: z.ZodObject<{
403
403
  }, z.core.$strip>]>;
404
404
  diagnostics: z.ZodArray<z.ZodObject<{
405
405
  severity: z.ZodEnum<{
406
- warning: "warning";
407
406
  info: "info";
407
+ warning: "warning";
408
408
  }>;
409
409
  code: z.ZodString;
410
410
  message: z.ZodString;
@@ -467,7 +467,7 @@ declare const ListDocumentConversionsOutputSchema: z.ZodObject<{
467
467
  }, z.core.$strip>;
468
468
  declare const convertDocumentOperation: {
469
469
  run: (input: unknown, context?: DocumentOperationContext) => Promise<{
470
- targetFormat: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
470
+ targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
471
471
  output: {
472
472
  path: string;
473
473
  byteLength: number;
@@ -477,7 +477,7 @@ declare const convertDocumentOperation: {
477
477
  large?: true | undefined;
478
478
  };
479
479
  diagnostics: {
480
- severity: "warning" | "info";
480
+ severity: "info" | "warning";
481
481
  code: string;
482
482
  message: string;
483
483
  pageIndex?: number | undefined;
@@ -582,8 +582,8 @@ declare const convertDocumentOperation: {
582
582
  }, z.core.$strip>]>;
583
583
  diagnostics: z.ZodArray<z.ZodObject<{
584
584
  severity: z.ZodEnum<{
585
- warning: "warning";
586
585
  info: "info";
586
+ warning: "warning";
587
587
  }>;
588
588
  code: z.ZodString;
589
589
  message: z.ZodString;
@@ -604,8 +604,8 @@ declare const convertDocumentOperation: {
604
604
  declare const listDocumentConversionsOperation: {
605
605
  run: (input: unknown, context?: DocumentOperationContext) => Promise<{
606
606
  conversions: {
607
- source: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
608
- target: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "svg" | "odf" | "csv" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub";
607
+ source: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
608
+ target: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
609
609
  }[];
610
610
  }>;
611
611
  name: string;
@@ -714,8 +714,8 @@ declare const documentCreateOperation: {
714
714
  odp: "odp";
715
715
  ods: "ods";
716
716
  odg: "odg";
717
- pdf: "pdf";
718
717
  markdown: "markdown";
718
+ pdf: "pdf";
719
719
  }>;
720
720
  output: z.ZodOptional<z.ZodObject<{
721
721
  outputPath: z.ZodOptional<z.ZodString>;
@@ -1953,7 +1953,7 @@ declare const pdfInspectOperation: {
1953
1953
  yPt: number;
1954
1954
  }][] | undefined;
1955
1955
  source?: {
1956
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
1956
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "odf" | "markdown" | "rtf" | "wpd" | "epub" | "pdf" | "odm" | "odb";
1957
1957
  xml: string;
1958
1958
  } | undefined;
1959
1959
  }[] | undefined;
@@ -1996,7 +1996,7 @@ declare const pdfInspectOperation: {
1996
1996
  structure?: LayoutStructureElement[] | undefined;
1997
1997
  form?: LayoutFormField[] | undefined;
1998
1998
  source?: Record<string, {
1999
- format: "docx" | "pptx" | "odt" | "odp" | "ods" | "odg" | "pdf" | "markdown" | "xlsx" | "odf" | "rtf" | "wpd" | "epub" | "odm" | "odb";
1999
+ format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "odf" | "markdown" | "rtf" | "wpd" | "epub" | "pdf" | "odm" | "odb";
2000
2000
  xml: string;
2001
2001
  }> | undefined;
2002
2002
  } | PdfInspectSummary>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-operations",
3
- "version": "1.1.153",
3
+ "version": "1.1.155",
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.6.100",
85
+ "document-compute.js": "1.6.102",
86
86
  "document-outline.js": "3.10.56",
87
87
  "document-schema.js": "7.16.0",
88
- "documents.js": "14.4.90",
88
+ "documents.js": "14.4.92",
89
89
  "zod": "4.4.3"
90
90
  },
91
91
  "devDependencies": {