document-operations 1.1.95 → 1.1.97

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
@@ -131,7 +131,7 @@ type ResolvedDocumentOutput = WrittenDocumentOutput | InlineDocumentOutput;
131
131
  /**
132
132
  * Resolves output bytes against the hybrid DocumentOutput shape: writes to `outputPath` and reports the path plus byte length when one is given, otherwise returns the bytes inline as base64 (flagged `large: true` above `LARGE_RESULT_THRESHOLD_BYTES`, never truncated or refused).
133
133
  */
134
- declare function resolveDocumentOutput(bytes: Uint8Array<ArrayBuffer>, output: DocumentOutput): Promise<ResolvedDocumentOutput>;
134
+ declare function resolveDocumentOutput(bytes: Uint8Array<ArrayBuffer>, output: Readonly<DocumentOutput>): Promise<ResolvedDocumentOutput>;
135
135
  //#endregion
136
136
  //#region src/operations/compute-formula.d.ts
137
137
  declare const ComputeFormulaOutputSchema: z.ZodObject<{
@@ -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
- info: "info";
407
406
  warning: "warning";
407
+ info: "info";
408
408
  }>;
409
409
  code: z.ZodString;
410
410
  message: z.ZodString;
@@ -477,7 +477,7 @@ declare const convertDocumentOperation: {
477
477
  large?: true | undefined;
478
478
  };
479
479
  diagnostics: {
480
- severity: "info" | "warning";
480
+ severity: "warning" | "info";
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
- info: "info";
586
585
  warning: "warning";
586
+ info: "info";
587
587
  }>;
588
588
  code: z.ZodString;
589
589
  message: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -131,7 +131,7 @@ type ResolvedDocumentOutput = WrittenDocumentOutput | InlineDocumentOutput;
131
131
  /**
132
132
  * Resolves output bytes against the hybrid DocumentOutput shape: writes to `outputPath` and reports the path plus byte length when one is given, otherwise returns the bytes inline as base64 (flagged `large: true` above `LARGE_RESULT_THRESHOLD_BYTES`, never truncated or refused).
133
133
  */
134
- declare function resolveDocumentOutput(bytes: Uint8Array<ArrayBuffer>, output: DocumentOutput): Promise<ResolvedDocumentOutput>;
134
+ declare function resolveDocumentOutput(bytes: Uint8Array<ArrayBuffer>, output: Readonly<DocumentOutput>): Promise<ResolvedDocumentOutput>;
135
135
  //#endregion
136
136
  //#region src/operations/compute-formula.d.ts
137
137
  declare const ComputeFormulaOutputSchema: z.ZodObject<{
@@ -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
- info: "info";
407
406
  warning: "warning";
407
+ info: "info";
408
408
  }>;
409
409
  code: z.ZodString;
410
410
  message: z.ZodString;
@@ -477,7 +477,7 @@ declare const convertDocumentOperation: {
477
477
  large?: true | undefined;
478
478
  };
479
479
  diagnostics: {
480
- severity: "info" | "warning";
480
+ severity: "warning" | "info";
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
- info: "info";
586
585
  warning: "warning";
586
+ info: "info";
587
587
  }>;
588
588
  code: z.ZodString;
589
589
  message: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-operations",
3
- "version": "1.1.95",
3
+ "version": "1.1.97",
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.42",
86
- "document-outline.js": "3.10.19",
87
- "document-schema.js": "7.15.2",
88
- "documents.js": "14.4.32",
85
+ "document-compute.js": "1.6.44",
86
+ "document-outline.js": "3.10.21",
87
+ "document-schema.js": "7.15.3",
88
+ "documents.js": "14.4.34",
89
89
  "zod": "4.4.3"
90
90
  },
91
91
  "devDependencies": {
@@ -98,7 +98,7 @@
98
98
  "@vitest/coverage-v8": "4.1.11",
99
99
  "eslint": "10.8.1",
100
100
  "husky": "9.1.7",
101
- "odf.js": "11.1.8",
101
+ "odf.js": "11.1.9",
102
102
  "publint": "0.3.22",
103
103
  "semantic-release": "25.0.9",
104
104
  "tsdown": "0.22.14",