document-operations 1.1.4 → 1.1.5

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
@@ -172,9 +172,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
172
172
  kind: z.ZodLiteral<"quantity">;
173
173
  magnitude: z.ZodNumber;
174
174
  dimension: z.ZodRecord<z.ZodEnum<{
175
- time: "time";
176
175
  length: "length";
177
176
  mass: "mass";
177
+ time: "time";
178
178
  electricCurrent: "electricCurrent";
179
179
  thermodynamicTemperature: "thermodynamicTemperature";
180
180
  amountOfSubstance: "amountOfSubstance";
@@ -185,9 +185,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
185
185
  min: z.ZodNumber;
186
186
  max: z.ZodNumber;
187
187
  dimension: z.ZodRecord<z.ZodEnum<{
188
- time: "time";
189
188
  length: "length";
190
189
  mass: "mass";
190
+ time: "time";
191
191
  electricCurrent: "electricCurrent";
192
192
  thermodynamicTemperature: "thermodynamicTemperature";
193
193
  amountOfSubstance: "amountOfSubstance";
@@ -237,9 +237,9 @@ declare const computeFormulaOperation: {
237
237
  kind: z.ZodLiteral<"quantity">;
238
238
  magnitude: z.ZodNumber;
239
239
  dimension: z.ZodRecord<z.ZodEnum<{
240
- time: "time";
241
240
  length: "length";
242
241
  mass: "mass";
242
+ time: "time";
243
243
  electricCurrent: "electricCurrent";
244
244
  thermodynamicTemperature: "thermodynamicTemperature";
245
245
  amountOfSubstance: "amountOfSubstance";
@@ -250,9 +250,9 @@ declare const computeFormulaOperation: {
250
250
  min: z.ZodNumber;
251
251
  max: z.ZodNumber;
252
252
  dimension: z.ZodRecord<z.ZodEnum<{
253
- time: "time";
254
253
  length: "length";
255
254
  mass: "mass";
255
+ time: "time";
256
256
  electricCurrent: "electricCurrent";
257
257
  thermodynamicTemperature: "thermodynamicTemperature";
258
258
  amountOfSubstance: "amountOfSubstance";
@@ -300,9 +300,9 @@ declare const computeFormulaOperation: {
300
300
  kind: z.ZodLiteral<"quantity">;
301
301
  magnitude: z.ZodNumber;
302
302
  dimension: z.ZodRecord<z.ZodEnum<{
303
- time: "time";
304
303
  length: "length";
305
304
  mass: "mass";
305
+ time: "time";
306
306
  electricCurrent: "electricCurrent";
307
307
  thermodynamicTemperature: "thermodynamicTemperature";
308
308
  amountOfSubstance: "amountOfSubstance";
@@ -313,9 +313,9 @@ declare const computeFormulaOperation: {
313
313
  min: z.ZodNumber;
314
314
  max: z.ZodNumber;
315
315
  dimension: z.ZodRecord<z.ZodEnum<{
316
- time: "time";
317
316
  length: "length";
318
317
  mass: "mass";
318
+ time: "time";
319
319
  electricCurrent: "electricCurrent";
320
320
  thermodynamicTemperature: "thermodynamicTemperature";
321
321
  amountOfSubstance: "amountOfSubstance";
@@ -341,12 +341,12 @@ declare const computeFormulaOperation: {
341
341
  bindings?: Record<string, {
342
342
  kind: "quantity";
343
343
  magnitude: number;
344
- dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
344
+ dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
345
345
  } | {
346
346
  kind: "interval";
347
347
  min: number;
348
348
  max: number;
349
- dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
349
+ dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
350
350
  }> | undefined;
351
351
  }, context?: DocumentOperationContext): Promise<{
352
352
  sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
@@ -360,12 +360,12 @@ declare const computeFormulaOperation: {
360
360
  result: {
361
361
  kind: "quantity";
362
362
  magnitude: number;
363
- dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
363
+ dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
364
364
  } | {
365
365
  kind: "interval";
366
366
  min: number;
367
367
  max: number;
368
- dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
368
+ dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
369
369
  };
370
370
  } | {
371
371
  status: "no-content";
@@ -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;
@@ -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;
@@ -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
- center: "center";
821
820
  right: "right";
821
+ center: "center";
822
822
  justify: "justify";
823
823
  }>>;
824
824
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -858,7 +858,7 @@ declare const documentAppendParagraphsOperation: {
858
858
  text?: string | undefined;
859
859
  styleId?: string | undefined;
860
860
  headingLevel?: number | undefined;
861
- alignment?: "left" | "center" | "right" | "justify" | undefined;
861
+ alignment?: "left" | "right" | "center" | "justify" | undefined;
862
862
  runs?: {
863
863
  text?: string | undefined;
864
864
  bold?: boolean | undefined;
package/dist/index.d.ts CHANGED
@@ -172,9 +172,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
172
172
  kind: z.ZodLiteral<"quantity">;
173
173
  magnitude: z.ZodNumber;
174
174
  dimension: z.ZodRecord<z.ZodEnum<{
175
- time: "time";
176
175
  length: "length";
177
176
  mass: "mass";
177
+ time: "time";
178
178
  electricCurrent: "electricCurrent";
179
179
  thermodynamicTemperature: "thermodynamicTemperature";
180
180
  amountOfSubstance: "amountOfSubstance";
@@ -185,9 +185,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
185
185
  min: z.ZodNumber;
186
186
  max: z.ZodNumber;
187
187
  dimension: z.ZodRecord<z.ZodEnum<{
188
- time: "time";
189
188
  length: "length";
190
189
  mass: "mass";
190
+ time: "time";
191
191
  electricCurrent: "electricCurrent";
192
192
  thermodynamicTemperature: "thermodynamicTemperature";
193
193
  amountOfSubstance: "amountOfSubstance";
@@ -237,9 +237,9 @@ declare const computeFormulaOperation: {
237
237
  kind: z.ZodLiteral<"quantity">;
238
238
  magnitude: z.ZodNumber;
239
239
  dimension: z.ZodRecord<z.ZodEnum<{
240
- time: "time";
241
240
  length: "length";
242
241
  mass: "mass";
242
+ time: "time";
243
243
  electricCurrent: "electricCurrent";
244
244
  thermodynamicTemperature: "thermodynamicTemperature";
245
245
  amountOfSubstance: "amountOfSubstance";
@@ -250,9 +250,9 @@ declare const computeFormulaOperation: {
250
250
  min: z.ZodNumber;
251
251
  max: z.ZodNumber;
252
252
  dimension: z.ZodRecord<z.ZodEnum<{
253
- time: "time";
254
253
  length: "length";
255
254
  mass: "mass";
255
+ time: "time";
256
256
  electricCurrent: "electricCurrent";
257
257
  thermodynamicTemperature: "thermodynamicTemperature";
258
258
  amountOfSubstance: "amountOfSubstance";
@@ -300,9 +300,9 @@ declare const computeFormulaOperation: {
300
300
  kind: z.ZodLiteral<"quantity">;
301
301
  magnitude: z.ZodNumber;
302
302
  dimension: z.ZodRecord<z.ZodEnum<{
303
- time: "time";
304
303
  length: "length";
305
304
  mass: "mass";
305
+ time: "time";
306
306
  electricCurrent: "electricCurrent";
307
307
  thermodynamicTemperature: "thermodynamicTemperature";
308
308
  amountOfSubstance: "amountOfSubstance";
@@ -313,9 +313,9 @@ declare const computeFormulaOperation: {
313
313
  min: z.ZodNumber;
314
314
  max: z.ZodNumber;
315
315
  dimension: z.ZodRecord<z.ZodEnum<{
316
- time: "time";
317
316
  length: "length";
318
317
  mass: "mass";
318
+ time: "time";
319
319
  electricCurrent: "electricCurrent";
320
320
  thermodynamicTemperature: "thermodynamicTemperature";
321
321
  amountOfSubstance: "amountOfSubstance";
@@ -341,12 +341,12 @@ declare const computeFormulaOperation: {
341
341
  bindings?: Record<string, {
342
342
  kind: "quantity";
343
343
  magnitude: number;
344
- dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
344
+ dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
345
345
  } | {
346
346
  kind: "interval";
347
347
  min: number;
348
348
  max: number;
349
- dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
349
+ dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
350
350
  }> | undefined;
351
351
  }, context?: DocumentOperationContext): Promise<{
352
352
  sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
@@ -360,12 +360,12 @@ declare const computeFormulaOperation: {
360
360
  result: {
361
361
  kind: "quantity";
362
362
  magnitude: number;
363
- dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
363
+ dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
364
364
  } | {
365
365
  kind: "interval";
366
366
  min: number;
367
367
  max: number;
368
- dimension: Partial<Record<"length" | "time" | "mass" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
368
+ dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
369
369
  };
370
370
  } | {
371
371
  status: "no-content";
@@ -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;
@@ -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;
@@ -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
- center: "center";
821
820
  right: "right";
821
+ center: "center";
822
822
  justify: "justify";
823
823
  }>>;
824
824
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -858,7 +858,7 @@ declare const documentAppendParagraphsOperation: {
858
858
  text?: string | undefined;
859
859
  styleId?: string | undefined;
860
860
  headingLevel?: number | undefined;
861
- alignment?: "left" | "center" | "right" | "justify" | undefined;
861
+ alignment?: "left" | "right" | "center" | "justify" | undefined;
862
862
  runs?: {
863
863
  text?: string | undefined;
864
864
  bold?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-operations",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
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@11.6.0",
84
84
  "dependencies": {
85
- "document-compute.js": "1.5.7",
85
+ "document-compute.js": "1.5.8",
86
86
  "document-outline.js": "3.7.3",
87
87
  "document-schema.js": "7.11.1",
88
- "documents.js": "7.20.4",
88
+ "documents.js": "7.20.5",
89
89
  "zod": "4.4.3"
90
90
  },
91
91
  "devDependencies": {