document-operations 1.1.77 → 1.1.78
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.cjs +11 -3
- package/dist/index.d.cts +324 -548
- package/dist/index.d.ts +324 -548
- package/dist/index.js +11 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -17,12 +17,14 @@ interface DocumentOperation<In = unknown, Out = unknown> {
|
|
|
17
17
|
readonly description: string;
|
|
18
18
|
readonly inputSchema: z.ZodType<In>;
|
|
19
19
|
readonly outputSchema?: z.ZodType<Out>;
|
|
20
|
-
run(input: In, context?: DocumentOperationContext)
|
|
20
|
+
run: (input: In, context?: DocumentOperationContext) => Promise<Out>;
|
|
21
21
|
}
|
|
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
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
|
+
*
|
|
27
|
+
* The returned `run` re-validates `input` against `inputSchema` before calling the operation's own implementation, rather than passing the caller's argument straight through. This is not merely defensive: `run`'s own parameter is contravariant, so a caller-supplied `run(input: z.infer<InputSchema>, ...)` is only soundly assignable to `DocumentOperation<unknown, unknown>["run"]` (what `DOCUMENT_OPERATIONS` holds every operation as) if the exposed `run` genuinely accepts `unknown` — parsing here, rather than trusting whichever transport calls it to have validated first, is what actually makes that true. `inputSchema.parse` throws a ZodError for anything that does not conform, giving every transport (MCP, REST, the CLI) the same well-typed input, or the same failure, an external validation step would have produced anyway wherever one already existed.
|
|
26
28
|
*/
|
|
27
29
|
declare function defineOperation<InputSchema extends z.ZodType, OutputSchema extends z.ZodType>(operation: {
|
|
28
30
|
readonly name: string;
|
|
@@ -30,30 +32,30 @@ declare function defineOperation<InputSchema extends z.ZodType, OutputSchema ext
|
|
|
30
32
|
readonly description: string;
|
|
31
33
|
readonly inputSchema: InputSchema;
|
|
32
34
|
readonly outputSchema: OutputSchema;
|
|
33
|
-
run(input: z.infer<InputSchema>, context?: DocumentOperationContext)
|
|
35
|
+
run: (input: z.infer<InputSchema>, context?: DocumentOperationContext) => Promise<z.infer<OutputSchema>>;
|
|
34
36
|
}): {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<z.core.output<OutputSchema>>;
|
|
38
|
+
name: string;
|
|
39
|
+
title: string;
|
|
40
|
+
description: string;
|
|
41
|
+
inputSchema: InputSchema;
|
|
42
|
+
outputSchema: OutputSchema;
|
|
41
43
|
};
|
|
42
44
|
/**
|
|
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.
|
|
45
|
+
* 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, and why the returned `run` validates `input` against `inputSchema` itself.
|
|
44
46
|
*/
|
|
45
47
|
declare function defineOperationWithoutOutputSchema<InputSchema extends z.ZodType, Out>(operation: {
|
|
46
48
|
readonly name: string;
|
|
47
49
|
readonly title: string;
|
|
48
50
|
readonly description: string;
|
|
49
51
|
readonly inputSchema: InputSchema;
|
|
50
|
-
run(input: z.infer<InputSchema>, context?: DocumentOperationContext)
|
|
52
|
+
run: (input: z.infer<InputSchema>, context?: DocumentOperationContext) => Promise<Out>;
|
|
51
53
|
}): {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<Out>;
|
|
55
|
+
name: string;
|
|
56
|
+
title: string;
|
|
57
|
+
description: string;
|
|
58
|
+
inputSchema: InputSchema;
|
|
57
59
|
};
|
|
58
60
|
//#endregion
|
|
59
61
|
//#region src/registry.d.ts
|
|
@@ -204,10 +206,40 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
|
|
|
204
206
|
}, z.core.$strip>>;
|
|
205
207
|
}, z.core.$strip>;
|
|
206
208
|
declare const computeFormulaOperation: {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
210
|
+
sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
211
|
+
documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
|
|
212
|
+
formulaCount: number;
|
|
213
|
+
formulas: {
|
|
214
|
+
index: number;
|
|
215
|
+
locate: string;
|
|
216
|
+
outcome: {
|
|
217
|
+
status: "evaluated";
|
|
218
|
+
result: {
|
|
219
|
+
kind: "quantity";
|
|
220
|
+
magnitude: number;
|
|
221
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
222
|
+
} | {
|
|
223
|
+
kind: "interval";
|
|
224
|
+
min: number;
|
|
225
|
+
max: number;
|
|
226
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
227
|
+
};
|
|
228
|
+
} | {
|
|
229
|
+
status: "no-content";
|
|
230
|
+
} | {
|
|
231
|
+
status: "error";
|
|
232
|
+
errorType: string;
|
|
233
|
+
message: string;
|
|
234
|
+
};
|
|
235
|
+
sourcePath?: string | undefined;
|
|
236
|
+
latex?: string | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
}>;
|
|
239
|
+
name: string;
|
|
240
|
+
title: string;
|
|
241
|
+
description: string;
|
|
242
|
+
inputSchema: z.ZodObject<{
|
|
211
243
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
212
244
|
path: z.ZodString;
|
|
213
245
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -260,7 +292,7 @@ declare const computeFormulaOperation: {
|
|
|
260
292
|
}> & z.core.$partial, z.ZodNumber>;
|
|
261
293
|
}, z.core.$strip>]>>>;
|
|
262
294
|
}, z.core.$strip>;
|
|
263
|
-
|
|
295
|
+
outputSchema: z.ZodObject<{
|
|
264
296
|
sourceFormat: z.ZodEnum<{
|
|
265
297
|
docx: "docx";
|
|
266
298
|
pptx: "pptx";
|
|
@@ -331,53 +363,6 @@ declare const computeFormulaOperation: {
|
|
|
331
363
|
}, z.core.$strip>]>;
|
|
332
364
|
}, z.core.$strip>>;
|
|
333
365
|
}, z.core.$strip>;
|
|
334
|
-
run(input: {
|
|
335
|
-
source: {
|
|
336
|
-
path: string;
|
|
337
|
-
} | {
|
|
338
|
-
bytesBase64: string;
|
|
339
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
340
|
-
};
|
|
341
|
-
bindings?: Record<string, {
|
|
342
|
-
kind: "quantity";
|
|
343
|
-
magnitude: number;
|
|
344
|
-
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
345
|
-
} | {
|
|
346
|
-
kind: "interval";
|
|
347
|
-
min: number;
|
|
348
|
-
max: number;
|
|
349
|
-
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
350
|
-
}> | undefined;
|
|
351
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
352
|
-
sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
353
|
-
documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
|
|
354
|
-
formulaCount: number;
|
|
355
|
-
formulas: {
|
|
356
|
-
index: number;
|
|
357
|
-
locate: string;
|
|
358
|
-
outcome: {
|
|
359
|
-
status: "evaluated";
|
|
360
|
-
result: {
|
|
361
|
-
kind: "quantity";
|
|
362
|
-
magnitude: number;
|
|
363
|
-
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
364
|
-
} | {
|
|
365
|
-
kind: "interval";
|
|
366
|
-
min: number;
|
|
367
|
-
max: number;
|
|
368
|
-
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
369
|
-
};
|
|
370
|
-
} | {
|
|
371
|
-
status: "no-content";
|
|
372
|
-
} | {
|
|
373
|
-
status: "error";
|
|
374
|
-
errorType: string;
|
|
375
|
-
message: string;
|
|
376
|
-
};
|
|
377
|
-
sourcePath?: string | undefined;
|
|
378
|
-
latex?: string | undefined;
|
|
379
|
-
}[];
|
|
380
|
-
}>;
|
|
381
366
|
};
|
|
382
367
|
//#endregion
|
|
383
368
|
//#region src/operations/convert.d.ts
|
|
@@ -418,8 +403,8 @@ declare const ConvertDocumentOutputSchema: z.ZodObject<{
|
|
|
418
403
|
}, z.core.$strip>]>;
|
|
419
404
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
420
405
|
severity: z.ZodEnum<{
|
|
421
|
-
info: "info";
|
|
422
406
|
warning: "warning";
|
|
407
|
+
info: "info";
|
|
423
408
|
}>;
|
|
424
409
|
code: z.ZodString;
|
|
425
410
|
message: z.ZodString;
|
|
@@ -481,10 +466,34 @@ declare const ListDocumentConversionsOutputSchema: z.ZodObject<{
|
|
|
481
466
|
}, z.core.$strip>>;
|
|
482
467
|
}, z.core.$strip>;
|
|
483
468
|
declare const convertDocumentOperation: {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
469
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
470
|
+
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
471
|
+
output: {
|
|
472
|
+
path: string;
|
|
473
|
+
byteLength: number;
|
|
474
|
+
} | {
|
|
475
|
+
bytesBase64: string;
|
|
476
|
+
byteLength: number;
|
|
477
|
+
large?: true | undefined;
|
|
478
|
+
};
|
|
479
|
+
diagnostics: {
|
|
480
|
+
severity: "warning" | "info";
|
|
481
|
+
code: string;
|
|
482
|
+
message: string;
|
|
483
|
+
pageIndex?: number | undefined;
|
|
484
|
+
}[];
|
|
485
|
+
fontSubstitutions?: {
|
|
486
|
+
requestedFamily: string;
|
|
487
|
+
requestedBold: boolean;
|
|
488
|
+
requestedItalic: boolean;
|
|
489
|
+
reason: "missing-face" | "vendored-substitute";
|
|
490
|
+
resolvedFamily: string;
|
|
491
|
+
}[] | undefined;
|
|
492
|
+
}>;
|
|
493
|
+
name: string;
|
|
494
|
+
title: string;
|
|
495
|
+
description: string;
|
|
496
|
+
inputSchema: z.ZodObject<{
|
|
488
497
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
489
498
|
path: z.ZodString;
|
|
490
499
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -542,7 +551,7 @@ declare const convertDocumentOperation: {
|
|
|
542
551
|
onSubstitutionDiagnostics: z.ZodOptional<z.ZodBoolean>;
|
|
543
552
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
544
553
|
}, z.core.$strip>;
|
|
545
|
-
|
|
554
|
+
outputSchema: z.ZodObject<{
|
|
546
555
|
targetFormat: z.ZodEnum<{
|
|
547
556
|
docx: "docx";
|
|
548
557
|
pptx: "pptx";
|
|
@@ -573,8 +582,8 @@ declare const convertDocumentOperation: {
|
|
|
573
582
|
}, z.core.$strip>]>;
|
|
574
583
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
575
584
|
severity: z.ZodEnum<{
|
|
576
|
-
info: "info";
|
|
577
585
|
warning: "warning";
|
|
586
|
+
info: "info";
|
|
578
587
|
}>;
|
|
579
588
|
code: z.ZodString;
|
|
580
589
|
message: z.ZodString;
|
|
@@ -591,56 +600,19 @@ declare const convertDocumentOperation: {
|
|
|
591
600
|
resolvedFamily: z.ZodString;
|
|
592
601
|
}, z.core.$strip>>>;
|
|
593
602
|
}, z.core.$strip>;
|
|
594
|
-
run(input: {
|
|
595
|
-
source: {
|
|
596
|
-
path: string;
|
|
597
|
-
} | {
|
|
598
|
-
bytesBase64: string;
|
|
599
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
600
|
-
};
|
|
601
|
-
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
602
|
-
output?: {
|
|
603
|
-
outputPath?: string | undefined;
|
|
604
|
-
} | undefined;
|
|
605
|
-
fonts?: {
|
|
606
|
-
family: string;
|
|
607
|
-
bold: boolean;
|
|
608
|
-
italic: boolean;
|
|
609
|
-
bytesBase64: string;
|
|
610
|
-
}[] | undefined;
|
|
611
|
-
onSubstitutionDiagnostics?: boolean | undefined;
|
|
612
|
-
images?: Record<string, string> | undefined;
|
|
613
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
614
|
-
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
615
|
-
output: {
|
|
616
|
-
path: string;
|
|
617
|
-
byteLength: number;
|
|
618
|
-
} | {
|
|
619
|
-
bytesBase64: string;
|
|
620
|
-
byteLength: number;
|
|
621
|
-
large?: true | undefined;
|
|
622
|
-
};
|
|
623
|
-
diagnostics: {
|
|
624
|
-
severity: "info" | "warning";
|
|
625
|
-
code: string;
|
|
626
|
-
message: string;
|
|
627
|
-
pageIndex?: number | undefined;
|
|
628
|
-
}[];
|
|
629
|
-
fontSubstitutions?: {
|
|
630
|
-
requestedFamily: string;
|
|
631
|
-
requestedBold: boolean;
|
|
632
|
-
requestedItalic: boolean;
|
|
633
|
-
reason: "missing-face" | "vendored-substitute";
|
|
634
|
-
resolvedFamily: string;
|
|
635
|
-
}[] | undefined;
|
|
636
|
-
}>;
|
|
637
603
|
};
|
|
638
604
|
declare const listDocumentConversionsOperation: {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
605
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
606
|
+
conversions: {
|
|
607
|
+
source: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
608
|
+
target: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
609
|
+
}[];
|
|
610
|
+
}>;
|
|
611
|
+
name: string;
|
|
612
|
+
title: string;
|
|
613
|
+
description: string;
|
|
614
|
+
inputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
615
|
+
outputSchema: z.ZodObject<{
|
|
644
616
|
conversions: z.ZodArray<z.ZodObject<{
|
|
645
617
|
source: z.ZodEnum<{
|
|
646
618
|
docx: "docx";
|
|
@@ -684,20 +656,15 @@ declare const listDocumentConversionsOperation: {
|
|
|
684
656
|
}>;
|
|
685
657
|
}, z.core.$strip>>;
|
|
686
658
|
}, z.core.$strip>;
|
|
687
|
-
run(input: Record<string, never>, context?: DocumentOperationContext): Promise<{
|
|
688
|
-
conversions: {
|
|
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
|
-
}[];
|
|
692
|
-
}>;
|
|
693
659
|
};
|
|
694
660
|
//#endregion
|
|
695
661
|
//#region src/operations/docx-extras.d.ts
|
|
696
662
|
declare const docxExtrasOperation: {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
663
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<import("documents.js").DocxExtras>;
|
|
664
|
+
name: string;
|
|
665
|
+
title: string;
|
|
666
|
+
description: string;
|
|
667
|
+
inputSchema: z.ZodObject<{
|
|
701
668
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
702
669
|
path: z.ZodString;
|
|
703
670
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -724,28 +691,28 @@ declare const docxExtrasOperation: {
|
|
|
724
691
|
}>;
|
|
725
692
|
}, z.core.$strip>]>;
|
|
726
693
|
}, z.core.$strip>;
|
|
727
|
-
run(input: {
|
|
728
|
-
source: {
|
|
729
|
-
path: string;
|
|
730
|
-
} | {
|
|
731
|
-
bytesBase64: string;
|
|
732
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
733
|
-
};
|
|
734
|
-
}, context?: DocumentOperationContext): Promise<import("documents.js").DocxExtras>;
|
|
735
694
|
};
|
|
736
695
|
//#endregion
|
|
737
696
|
//#region src/operations/editor.d.ts
|
|
738
697
|
declare const documentCreateOperation: {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
698
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
699
|
+
path: string;
|
|
700
|
+
byteLength: number;
|
|
701
|
+
} | {
|
|
702
|
+
bytesBase64: string;
|
|
703
|
+
byteLength: number;
|
|
704
|
+
large?: true | undefined;
|
|
705
|
+
}>;
|
|
706
|
+
name: string;
|
|
707
|
+
title: string;
|
|
708
|
+
description: string;
|
|
709
|
+
inputSchema: z.ZodObject<{
|
|
743
710
|
format: z.ZodEnum<{
|
|
744
711
|
docx: "docx";
|
|
745
712
|
pptx: "pptx";
|
|
746
713
|
odt: "odt";
|
|
747
|
-
odp: "odp";
|
|
748
714
|
ods: "ods";
|
|
715
|
+
odp: "odp";
|
|
749
716
|
odg: "odg";
|
|
750
717
|
markdown: "markdown";
|
|
751
718
|
pdf: "pdf";
|
|
@@ -754,7 +721,7 @@ declare const documentCreateOperation: {
|
|
|
754
721
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
755
722
|
}, z.core.$strip>>;
|
|
756
723
|
}, z.core.$strip>;
|
|
757
|
-
|
|
724
|
+
outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
758
725
|
path: z.ZodString;
|
|
759
726
|
byteLength: z.ZodNumber;
|
|
760
727
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -762,12 +729,9 @@ declare const documentCreateOperation: {
|
|
|
762
729
|
byteLength: z.ZodNumber;
|
|
763
730
|
large: z.ZodOptional<z.ZodLiteral<true>>;
|
|
764
731
|
}, z.core.$strip>]>;
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
outputPath?: string | undefined;
|
|
769
|
-
} | undefined;
|
|
770
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
732
|
+
};
|
|
733
|
+
declare const documentAppendParagraphsOperation: {
|
|
734
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
771
735
|
path: string;
|
|
772
736
|
byteLength: number;
|
|
773
737
|
} | {
|
|
@@ -775,12 +739,10 @@ declare const documentCreateOperation: {
|
|
|
775
739
|
byteLength: number;
|
|
776
740
|
large?: true | undefined;
|
|
777
741
|
}>;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
readonly description: string;
|
|
783
|
-
readonly inputSchema: z.ZodObject<{
|
|
742
|
+
name: string;
|
|
743
|
+
title: string;
|
|
744
|
+
description: string;
|
|
745
|
+
inputSchema: z.ZodObject<{
|
|
784
746
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
785
747
|
path: z.ZodString;
|
|
786
748
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -838,7 +800,7 @@ declare const documentAppendParagraphsOperation: {
|
|
|
838
800
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
839
801
|
}, z.core.$strip>>;
|
|
840
802
|
}, z.core.$strip>;
|
|
841
|
-
|
|
803
|
+
outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
842
804
|
path: z.ZodString;
|
|
843
805
|
byteLength: z.ZodNumber;
|
|
844
806
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -846,51 +808,22 @@ declare const documentAppendParagraphsOperation: {
|
|
|
846
808
|
byteLength: z.ZodNumber;
|
|
847
809
|
large: z.ZodOptional<z.ZodLiteral<true>>;
|
|
848
810
|
}, z.core.$strip>]>;
|
|
849
|
-
run(input: {
|
|
850
|
-
source: {
|
|
851
|
-
path: string;
|
|
852
|
-
} | {
|
|
853
|
-
bytesBase64: string;
|
|
854
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
855
|
-
};
|
|
856
|
-
targetFormat: "docx" | "odt" | "markdown";
|
|
857
|
-
paragraphs: {
|
|
858
|
-
text?: string | undefined;
|
|
859
|
-
styleId?: string | undefined;
|
|
860
|
-
headingLevel?: number | undefined;
|
|
861
|
-
alignment?: "left" | "right" | "center" | "justify" | undefined;
|
|
862
|
-
runs?: {
|
|
863
|
-
text?: string | undefined;
|
|
864
|
-
bold?: boolean | undefined;
|
|
865
|
-
italic?: boolean | undefined;
|
|
866
|
-
strike?: boolean | undefined;
|
|
867
|
-
underline?: boolean | undefined;
|
|
868
|
-
fontFamily?: string | undefined;
|
|
869
|
-
sizePt?: number | undefined;
|
|
870
|
-
colorHex?: string | undefined;
|
|
871
|
-
hyperlink?: string | undefined;
|
|
872
|
-
code?: boolean | undefined;
|
|
873
|
-
}[] | undefined;
|
|
874
|
-
}[];
|
|
875
|
-
output?: {
|
|
876
|
-
outputPath?: string | undefined;
|
|
877
|
-
} | undefined;
|
|
878
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
879
|
-
path: string;
|
|
880
|
-
byteLength: number;
|
|
881
|
-
} | {
|
|
882
|
-
bytesBase64: string;
|
|
883
|
-
byteLength: number;
|
|
884
|
-
large?: true | undefined;
|
|
885
|
-
}>;
|
|
886
811
|
};
|
|
887
812
|
//#endregion
|
|
888
813
|
//#region src/operations/fonts.d.ts
|
|
889
814
|
declare const fontsOperation: {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
815
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
816
|
+
faces: {
|
|
817
|
+
family: string;
|
|
818
|
+
bold: boolean;
|
|
819
|
+
italic: boolean;
|
|
820
|
+
byteLength: number;
|
|
821
|
+
}[];
|
|
822
|
+
}>;
|
|
823
|
+
name: string;
|
|
824
|
+
title: string;
|
|
825
|
+
description: string;
|
|
826
|
+
inputSchema: z.ZodObject<{
|
|
894
827
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
895
828
|
path: z.ZodString;
|
|
896
829
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -917,7 +850,7 @@ declare const fontsOperation: {
|
|
|
917
850
|
}>;
|
|
918
851
|
}, z.core.$strip>]>;
|
|
919
852
|
}, z.core.$strip>;
|
|
920
|
-
|
|
853
|
+
outputSchema: z.ZodObject<{
|
|
921
854
|
faces: z.ZodArray<z.ZodObject<{
|
|
922
855
|
family: z.ZodString;
|
|
923
856
|
bold: z.ZodBoolean;
|
|
@@ -925,57 +858,44 @@ declare const fontsOperation: {
|
|
|
925
858
|
byteLength: z.ZodNumber;
|
|
926
859
|
}, z.core.$strip>>;
|
|
927
860
|
}, z.core.$strip>;
|
|
928
|
-
run(input: {
|
|
929
|
-
source: {
|
|
930
|
-
path: string;
|
|
931
|
-
} | {
|
|
932
|
-
bytesBase64: string;
|
|
933
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
934
|
-
};
|
|
935
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
936
|
-
faces: {
|
|
937
|
-
family: string;
|
|
938
|
-
bold: boolean;
|
|
939
|
-
italic: boolean;
|
|
940
|
-
byteLength: number;
|
|
941
|
-
}[];
|
|
942
|
-
}>;
|
|
943
861
|
};
|
|
944
862
|
declare const describeFontFileOperation: {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
863
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
864
|
+
family: string;
|
|
865
|
+
bold: boolean;
|
|
866
|
+
italic: boolean;
|
|
867
|
+
}>;
|
|
868
|
+
name: string;
|
|
869
|
+
title: string;
|
|
870
|
+
description: string;
|
|
871
|
+
inputSchema: z.ZodObject<{
|
|
949
872
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
950
873
|
path: z.ZodString;
|
|
951
874
|
}, z.core.$strip>, z.ZodObject<{
|
|
952
875
|
bytesBase64: z.ZodString;
|
|
953
876
|
}, z.core.$strip>]>;
|
|
954
877
|
}, z.core.$strip>;
|
|
955
|
-
|
|
878
|
+
outputSchema: z.ZodObject<{
|
|
956
879
|
family: z.ZodString;
|
|
957
880
|
bold: z.ZodBoolean;
|
|
958
881
|
italic: z.ZodBoolean;
|
|
959
882
|
}, z.core.$strip>;
|
|
960
|
-
run(input: {
|
|
961
|
-
source: {
|
|
962
|
-
path: string;
|
|
963
|
-
} | {
|
|
964
|
-
bytesBase64: string;
|
|
965
|
-
};
|
|
966
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
967
|
-
family: string;
|
|
968
|
-
bold: boolean;
|
|
969
|
-
italic: boolean;
|
|
970
|
-
}>;
|
|
971
883
|
};
|
|
972
884
|
//#endregion
|
|
973
885
|
//#region src/operations/from-package.d.ts
|
|
974
886
|
declare const fromPackageOperation: {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
887
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
888
|
+
path: string;
|
|
889
|
+
byteLength: number;
|
|
890
|
+
} | {
|
|
891
|
+
bytesBase64: string;
|
|
892
|
+
byteLength: number;
|
|
893
|
+
large?: true | undefined;
|
|
894
|
+
}>;
|
|
895
|
+
name: string;
|
|
896
|
+
title: string;
|
|
897
|
+
description: string;
|
|
898
|
+
inputSchema: z.ZodObject<{
|
|
979
899
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
980
900
|
path: z.ZodString;
|
|
981
901
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1025,7 +945,7 @@ declare const fromPackageOperation: {
|
|
|
1025
945
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
1026
946
|
}, z.core.$strip>>;
|
|
1027
947
|
}, z.core.$strip>;
|
|
1028
|
-
|
|
948
|
+
outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1029
949
|
path: z.ZodString;
|
|
1030
950
|
byteLength: z.ZodNumber;
|
|
1031
951
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1033,33 +953,34 @@ declare const fromPackageOperation: {
|
|
|
1033
953
|
byteLength: z.ZodNumber;
|
|
1034
954
|
large: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1035
955
|
}, z.core.$strip>]>;
|
|
1036
|
-
run(input: {
|
|
1037
|
-
source: {
|
|
1038
|
-
path: string;
|
|
1039
|
-
} | {
|
|
1040
|
-
bytesBase64: string;
|
|
1041
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1042
|
-
};
|
|
1043
|
-
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1044
|
-
output?: {
|
|
1045
|
-
outputPath?: string | undefined;
|
|
1046
|
-
} | undefined;
|
|
1047
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
1048
|
-
path: string;
|
|
1049
|
-
byteLength: number;
|
|
1050
|
-
} | {
|
|
1051
|
-
bytesBase64: string;
|
|
1052
|
-
byteLength: number;
|
|
1053
|
-
large?: true | undefined;
|
|
1054
|
-
}>;
|
|
1055
956
|
};
|
|
1056
957
|
//#endregion
|
|
1057
958
|
//#region src/operations/metadata.d.ts
|
|
1058
959
|
declare const metadataReadOperation: {
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
960
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
961
|
+
title?: string | undefined;
|
|
962
|
+
author?: string | undefined;
|
|
963
|
+
subject?: string | undefined;
|
|
964
|
+
keywords?: string[] | undefined;
|
|
965
|
+
creator?: string | undefined;
|
|
966
|
+
producer?: string | undefined;
|
|
967
|
+
createdIso?: string | undefined;
|
|
968
|
+
modifiedIso?: string | undefined;
|
|
969
|
+
lastPrintedIso?: string | undefined;
|
|
970
|
+
language?: string | undefined;
|
|
971
|
+
direction?: "ltr" | "rtl" | undefined;
|
|
972
|
+
publisher?: string | undefined;
|
|
973
|
+
contributor?: string | undefined;
|
|
974
|
+
rights?: string | undefined;
|
|
975
|
+
identifier?: string | undefined;
|
|
976
|
+
comments?: string | undefined;
|
|
977
|
+
company?: string | undefined;
|
|
978
|
+
manager?: string | undefined;
|
|
979
|
+
}>;
|
|
980
|
+
name: string;
|
|
981
|
+
title: string;
|
|
982
|
+
description: string;
|
|
983
|
+
inputSchema: z.ZodObject<{
|
|
1063
984
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1064
985
|
path: z.ZodString;
|
|
1065
986
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1086,39 +1007,20 @@ declare const metadataReadOperation: {
|
|
|
1086
1007
|
}>;
|
|
1087
1008
|
}, z.core.$strip>]>;
|
|
1088
1009
|
}, z.core.$strip>;
|
|
1089
|
-
run(input: {
|
|
1090
|
-
source: {
|
|
1091
|
-
path: string;
|
|
1092
|
-
} | {
|
|
1093
|
-
bytesBase64: string;
|
|
1094
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1095
|
-
};
|
|
1096
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
1097
|
-
title?: string | undefined;
|
|
1098
|
-
author?: string | undefined;
|
|
1099
|
-
subject?: string | undefined;
|
|
1100
|
-
keywords?: string[] | undefined;
|
|
1101
|
-
creator?: string | undefined;
|
|
1102
|
-
producer?: string | undefined;
|
|
1103
|
-
createdIso?: string | undefined;
|
|
1104
|
-
modifiedIso?: string | undefined;
|
|
1105
|
-
lastPrintedIso?: string | undefined;
|
|
1106
|
-
language?: string | undefined;
|
|
1107
|
-
direction?: "ltr" | "rtl" | undefined;
|
|
1108
|
-
publisher?: string | undefined;
|
|
1109
|
-
contributor?: string | undefined;
|
|
1110
|
-
rights?: string | undefined;
|
|
1111
|
-
identifier?: string | undefined;
|
|
1112
|
-
comments?: string | undefined;
|
|
1113
|
-
company?: string | undefined;
|
|
1114
|
-
manager?: string | undefined;
|
|
1115
|
-
}>;
|
|
1116
1010
|
};
|
|
1117
1011
|
declare const metadataWriteOperation: {
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1012
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
1013
|
+
path: string;
|
|
1014
|
+
byteLength: number;
|
|
1015
|
+
} | {
|
|
1016
|
+
bytesBase64: string;
|
|
1017
|
+
byteLength: number;
|
|
1018
|
+
large?: true | undefined;
|
|
1019
|
+
}>;
|
|
1020
|
+
name: string;
|
|
1021
|
+
title: string;
|
|
1022
|
+
description: string;
|
|
1023
|
+
inputSchema: z.ZodObject<{
|
|
1122
1024
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1123
1025
|
path: z.ZodString;
|
|
1124
1026
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1172,7 +1074,7 @@ declare const metadataWriteOperation: {
|
|
|
1172
1074
|
setSubject: z.ZodOptional<z.ZodString>;
|
|
1173
1075
|
setKeywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1174
1076
|
}, z.core.$strip>;
|
|
1175
|
-
|
|
1077
|
+
outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1176
1078
|
path: z.ZodString;
|
|
1177
1079
|
byteLength: z.ZodNumber;
|
|
1178
1080
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1180,29 +1082,6 @@ declare const metadataWriteOperation: {
|
|
|
1180
1082
|
byteLength: z.ZodNumber;
|
|
1181
1083
|
large: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1182
1084
|
}, z.core.$strip>]>;
|
|
1183
|
-
run(input: {
|
|
1184
|
-
source: {
|
|
1185
|
-
path: string;
|
|
1186
|
-
} | {
|
|
1187
|
-
bytesBase64: string;
|
|
1188
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1189
|
-
};
|
|
1190
|
-
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1191
|
-
output?: {
|
|
1192
|
-
outputPath?: string | undefined;
|
|
1193
|
-
} | undefined;
|
|
1194
|
-
setTitle?: string | undefined;
|
|
1195
|
-
setAuthor?: string | undefined;
|
|
1196
|
-
setSubject?: string | undefined;
|
|
1197
|
-
setKeywords?: string[] | undefined;
|
|
1198
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
1199
|
-
path: string;
|
|
1200
|
-
byteLength: number;
|
|
1201
|
-
} | {
|
|
1202
|
-
bytesBase64: string;
|
|
1203
|
-
byteLength: number;
|
|
1204
|
-
large?: true | undefined;
|
|
1205
|
-
}>;
|
|
1206
1085
|
};
|
|
1207
1086
|
//#endregion
|
|
1208
1087
|
//#region ../odf.js/dist/read-BcxAWBB5.d.ts
|
|
@@ -1302,10 +1181,11 @@ interface OdbReport {
|
|
|
1302
1181
|
//#region src/operations/odb.d.ts
|
|
1303
1182
|
declare function resolveOdbBytes(source: DocumentInput): Promise<Uint8Array<ArrayBuffer>>;
|
|
1304
1183
|
declare const odbTablesOperation: {
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1184
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<readonly import("documents.js").HsqldbTable[]>;
|
|
1185
|
+
name: string;
|
|
1186
|
+
title: string;
|
|
1187
|
+
description: string;
|
|
1188
|
+
inputSchema: z.ZodObject<{
|
|
1309
1189
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1310
1190
|
path: z.ZodString;
|
|
1311
1191
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1332,20 +1212,13 @@ declare const odbTablesOperation: {
|
|
|
1332
1212
|
}>;
|
|
1333
1213
|
}, z.core.$strip>]>;
|
|
1334
1214
|
}, z.core.$strip>;
|
|
1335
|
-
run(input: {
|
|
1336
|
-
source: {
|
|
1337
|
-
path: string;
|
|
1338
|
-
} | {
|
|
1339
|
-
bytesBase64: string;
|
|
1340
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1341
|
-
};
|
|
1342
|
-
}, context?: DocumentOperationContext): Promise<readonly import("documents.js").HsqldbTable[]>;
|
|
1343
1215
|
};
|
|
1344
1216
|
declare const odbFormsOperation: {
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1217
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<readonly OdbForm[]>;
|
|
1218
|
+
name: string;
|
|
1219
|
+
title: string;
|
|
1220
|
+
description: string;
|
|
1221
|
+
inputSchema: z.ZodObject<{
|
|
1349
1222
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1350
1223
|
path: z.ZodString;
|
|
1351
1224
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1372,20 +1245,13 @@ declare const odbFormsOperation: {
|
|
|
1372
1245
|
}>;
|
|
1373
1246
|
}, z.core.$strip>]>;
|
|
1374
1247
|
}, z.core.$strip>;
|
|
1375
|
-
run(input: {
|
|
1376
|
-
source: {
|
|
1377
|
-
path: string;
|
|
1378
|
-
} | {
|
|
1379
|
-
bytesBase64: string;
|
|
1380
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1381
|
-
};
|
|
1382
|
-
}, context?: DocumentOperationContext): Promise<readonly OdbForm[]>;
|
|
1383
1248
|
};
|
|
1384
1249
|
declare const odbReportsOperation: {
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1250
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<readonly OdbReport[]>;
|
|
1251
|
+
name: string;
|
|
1252
|
+
title: string;
|
|
1253
|
+
description: string;
|
|
1254
|
+
inputSchema: z.ZodObject<{
|
|
1389
1255
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1390
1256
|
path: z.ZodString;
|
|
1391
1257
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1412,20 +1278,13 @@ declare const odbReportsOperation: {
|
|
|
1412
1278
|
}>;
|
|
1413
1279
|
}, z.core.$strip>]>;
|
|
1414
1280
|
}, z.core.$strip>;
|
|
1415
|
-
run(input: {
|
|
1416
|
-
source: {
|
|
1417
|
-
path: string;
|
|
1418
|
-
} | {
|
|
1419
|
-
bytesBase64: string;
|
|
1420
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1421
|
-
};
|
|
1422
|
-
}, context?: DocumentOperationContext): Promise<readonly OdbReport[]>;
|
|
1423
1281
|
};
|
|
1424
1282
|
declare const odbQueryOperation: {
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1283
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<import("documents.js").SqlResultSet>;
|
|
1284
|
+
name: string;
|
|
1285
|
+
title: string;
|
|
1286
|
+
description: string;
|
|
1287
|
+
inputSchema: z.ZodObject<{
|
|
1429
1288
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1430
1289
|
path: z.ZodString;
|
|
1431
1290
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1454,22 +1313,13 @@ declare const odbQueryOperation: {
|
|
|
1454
1313
|
sql: z.ZodOptional<z.ZodString>;
|
|
1455
1314
|
query: z.ZodOptional<z.ZodString>;
|
|
1456
1315
|
}, z.core.$strip>;
|
|
1457
|
-
run(input: {
|
|
1458
|
-
source: {
|
|
1459
|
-
path: string;
|
|
1460
|
-
} | {
|
|
1461
|
-
bytesBase64: string;
|
|
1462
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1463
|
-
};
|
|
1464
|
-
sql?: string | undefined;
|
|
1465
|
-
query?: string | undefined;
|
|
1466
|
-
}, context?: DocumentOperationContext): Promise<import("documents.js").SqlResultSet>;
|
|
1467
1316
|
};
|
|
1468
1317
|
declare const odbToCsvOperation: {
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1318
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<ResolvedDocumentOutput>;
|
|
1319
|
+
name: string;
|
|
1320
|
+
title: string;
|
|
1321
|
+
description: string;
|
|
1322
|
+
inputSchema: z.ZodObject<{
|
|
1473
1323
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1474
1324
|
path: z.ZodString;
|
|
1475
1325
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1500,24 +1350,13 @@ declare const odbToCsvOperation: {
|
|
|
1500
1350
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
1501
1351
|
}, z.core.$strip>>;
|
|
1502
1352
|
}, z.core.$strip>;
|
|
1503
|
-
run(input: {
|
|
1504
|
-
source: {
|
|
1505
|
-
path: string;
|
|
1506
|
-
} | {
|
|
1507
|
-
bytesBase64: string;
|
|
1508
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1509
|
-
};
|
|
1510
|
-
table?: string | undefined;
|
|
1511
|
-
output?: {
|
|
1512
|
-
outputPath?: string | undefined;
|
|
1513
|
-
} | undefined;
|
|
1514
|
-
}, context?: DocumentOperationContext): Promise<ResolvedDocumentOutput>;
|
|
1515
1353
|
};
|
|
1516
1354
|
declare const odbToXlsxOperation: {
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1355
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<ResolvedDocumentOutput>;
|
|
1356
|
+
name: string;
|
|
1357
|
+
title: string;
|
|
1358
|
+
description: string;
|
|
1359
|
+
inputSchema: z.ZodObject<{
|
|
1521
1360
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1522
1361
|
path: z.ZodString;
|
|
1523
1362
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1547,17 +1386,6 @@ declare const odbToXlsxOperation: {
|
|
|
1547
1386
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
1548
1387
|
}, z.core.$strip>>;
|
|
1549
1388
|
}, z.core.$strip>;
|
|
1550
|
-
run(input: {
|
|
1551
|
-
source: {
|
|
1552
|
-
path: string;
|
|
1553
|
-
} | {
|
|
1554
|
-
bytesBase64: string;
|
|
1555
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1556
|
-
};
|
|
1557
|
-
output?: {
|
|
1558
|
-
outputPath?: string | undefined;
|
|
1559
|
-
} | undefined;
|
|
1560
|
-
}, context?: DocumentOperationContext): Promise<ResolvedDocumentOutput>;
|
|
1561
1389
|
};
|
|
1562
1390
|
//#endregion
|
|
1563
1391
|
//#region src/operations/odb-render-report.d.ts
|
|
@@ -1616,10 +1444,52 @@ declare const OdbRenderReportOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1616
1444
|
large: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1617
1445
|
}, z.core.$strip>]>;
|
|
1618
1446
|
declare const odbRenderReportOperation: {
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1447
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
1448
|
+
mathDiagnostics: {
|
|
1449
|
+
kind: "unsupported-element" | "approximated-element";
|
|
1450
|
+
detail: string;
|
|
1451
|
+
sourcePath?: string | undefined;
|
|
1452
|
+
}[];
|
|
1453
|
+
fontSubstitutions: {
|
|
1454
|
+
requestedFamily: string;
|
|
1455
|
+
requestedBold: boolean;
|
|
1456
|
+
requestedItalic: boolean;
|
|
1457
|
+
reason: "missing-face" | "vendored-substitute";
|
|
1458
|
+
resolvedFamily: string;
|
|
1459
|
+
}[];
|
|
1460
|
+
charSubstitutions: {
|
|
1461
|
+
from: string;
|
|
1462
|
+
to: string;
|
|
1463
|
+
pageIndex: number;
|
|
1464
|
+
}[];
|
|
1465
|
+
path: string;
|
|
1466
|
+
byteLength: number;
|
|
1467
|
+
} | {
|
|
1468
|
+
mathDiagnostics: {
|
|
1469
|
+
kind: "unsupported-element" | "approximated-element";
|
|
1470
|
+
detail: string;
|
|
1471
|
+
sourcePath?: string | undefined;
|
|
1472
|
+
}[];
|
|
1473
|
+
fontSubstitutions: {
|
|
1474
|
+
requestedFamily: string;
|
|
1475
|
+
requestedBold: boolean;
|
|
1476
|
+
requestedItalic: boolean;
|
|
1477
|
+
reason: "missing-face" | "vendored-substitute";
|
|
1478
|
+
resolvedFamily: string;
|
|
1479
|
+
}[];
|
|
1480
|
+
charSubstitutions: {
|
|
1481
|
+
from: string;
|
|
1482
|
+
to: string;
|
|
1483
|
+
pageIndex: number;
|
|
1484
|
+
}[];
|
|
1485
|
+
bytesBase64: string;
|
|
1486
|
+
byteLength: number;
|
|
1487
|
+
large?: true | undefined;
|
|
1488
|
+
}>;
|
|
1489
|
+
name: string;
|
|
1490
|
+
title: string;
|
|
1491
|
+
description: string;
|
|
1492
|
+
inputSchema: z.ZodObject<{
|
|
1623
1493
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1624
1494
|
path: z.ZodString;
|
|
1625
1495
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1661,7 +1531,7 @@ declare const odbRenderReportOperation: {
|
|
|
1661
1531
|
bytesBase64: z.ZodString;
|
|
1662
1532
|
}, z.core.$strip>>>;
|
|
1663
1533
|
}, z.core.$strip>;
|
|
1664
|
-
|
|
1534
|
+
outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1665
1535
|
mathDiagnostics: z.ZodArray<z.ZodObject<{
|
|
1666
1536
|
kind: z.ZodEnum<{
|
|
1667
1537
|
"unsupported-element": "unsupported-element";
|
|
@@ -1715,66 +1585,6 @@ declare const odbRenderReportOperation: {
|
|
|
1715
1585
|
byteLength: z.ZodNumber;
|
|
1716
1586
|
large: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1717
1587
|
}, z.core.$strip>]>;
|
|
1718
|
-
run(input: {
|
|
1719
|
-
source: {
|
|
1720
|
-
path: string;
|
|
1721
|
-
} | {
|
|
1722
|
-
bytesBase64: string;
|
|
1723
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1724
|
-
};
|
|
1725
|
-
targetFormat: "docx" | "odt" | "pdf";
|
|
1726
|
-
report?: string | undefined;
|
|
1727
|
-
output?: {
|
|
1728
|
-
outputPath?: string | undefined;
|
|
1729
|
-
} | undefined;
|
|
1730
|
-
fonts?: {
|
|
1731
|
-
family: string;
|
|
1732
|
-
bold: boolean;
|
|
1733
|
-
italic: boolean;
|
|
1734
|
-
bytesBase64: string;
|
|
1735
|
-
}[] | undefined;
|
|
1736
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
1737
|
-
mathDiagnostics: {
|
|
1738
|
-
kind: "unsupported-element" | "approximated-element";
|
|
1739
|
-
detail: string;
|
|
1740
|
-
sourcePath?: string | undefined;
|
|
1741
|
-
}[];
|
|
1742
|
-
fontSubstitutions: {
|
|
1743
|
-
requestedFamily: string;
|
|
1744
|
-
requestedBold: boolean;
|
|
1745
|
-
requestedItalic: boolean;
|
|
1746
|
-
reason: "missing-face" | "vendored-substitute";
|
|
1747
|
-
resolvedFamily: string;
|
|
1748
|
-
}[];
|
|
1749
|
-
charSubstitutions: {
|
|
1750
|
-
from: string;
|
|
1751
|
-
to: string;
|
|
1752
|
-
pageIndex: number;
|
|
1753
|
-
}[];
|
|
1754
|
-
path: string;
|
|
1755
|
-
byteLength: number;
|
|
1756
|
-
} | {
|
|
1757
|
-
mathDiagnostics: {
|
|
1758
|
-
kind: "unsupported-element" | "approximated-element";
|
|
1759
|
-
detail: string;
|
|
1760
|
-
sourcePath?: string | undefined;
|
|
1761
|
-
}[];
|
|
1762
|
-
fontSubstitutions: {
|
|
1763
|
-
requestedFamily: string;
|
|
1764
|
-
requestedBold: boolean;
|
|
1765
|
-
requestedItalic: boolean;
|
|
1766
|
-
reason: "missing-face" | "vendored-substitute";
|
|
1767
|
-
resolvedFamily: string;
|
|
1768
|
-
}[];
|
|
1769
|
-
charSubstitutions: {
|
|
1770
|
-
from: string;
|
|
1771
|
-
to: string;
|
|
1772
|
-
pageIndex: number;
|
|
1773
|
-
}[];
|
|
1774
|
-
bytesBase64: string;
|
|
1775
|
-
byteLength: number;
|
|
1776
|
-
large?: true | undefined;
|
|
1777
|
-
}>;
|
|
1778
1588
|
};
|
|
1779
1589
|
//#endregion
|
|
1780
1590
|
//#region src/operations/odm.d.ts
|
|
@@ -1787,10 +1597,18 @@ declare const OdmToPdfOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1787
1597
|
large: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1788
1598
|
}, z.core.$strip>]>;
|
|
1789
1599
|
declare const odmToPdfOperation: {
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1600
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
1601
|
+
path: string;
|
|
1602
|
+
byteLength: number;
|
|
1603
|
+
} | {
|
|
1604
|
+
bytesBase64: string;
|
|
1605
|
+
byteLength: number;
|
|
1606
|
+
large?: true | undefined;
|
|
1607
|
+
}>;
|
|
1608
|
+
name: string;
|
|
1609
|
+
title: string;
|
|
1610
|
+
description: string;
|
|
1611
|
+
inputSchema: z.ZodObject<{
|
|
1794
1612
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1795
1613
|
path: z.ZodString;
|
|
1796
1614
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1829,7 +1647,7 @@ declare const odmToPdfOperation: {
|
|
|
1829
1647
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
1830
1648
|
}, z.core.$strip>>;
|
|
1831
1649
|
}, z.core.$strip>;
|
|
1832
|
-
|
|
1650
|
+
outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1833
1651
|
path: z.ZodString;
|
|
1834
1652
|
byteLength: z.ZodNumber;
|
|
1835
1653
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1837,33 +1655,6 @@ declare const odmToPdfOperation: {
|
|
|
1837
1655
|
byteLength: z.ZodNumber;
|
|
1838
1656
|
large: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1839
1657
|
}, z.core.$strip>]>;
|
|
1840
|
-
run(input: {
|
|
1841
|
-
source: {
|
|
1842
|
-
path: string;
|
|
1843
|
-
} | {
|
|
1844
|
-
bytesBase64: string;
|
|
1845
|
-
};
|
|
1846
|
-
chapters: {
|
|
1847
|
-
href: string;
|
|
1848
|
-
source: {
|
|
1849
|
-
path: string;
|
|
1850
|
-
} | {
|
|
1851
|
-
bytesBase64: string;
|
|
1852
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1853
|
-
};
|
|
1854
|
-
}[];
|
|
1855
|
-
output: {
|
|
1856
|
-
outputPath?: string | undefined;
|
|
1857
|
-
};
|
|
1858
|
-
chaptersDir?: string | undefined;
|
|
1859
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
1860
|
-
path: string;
|
|
1861
|
-
byteLength: number;
|
|
1862
|
-
} | {
|
|
1863
|
-
bytesBase64: string;
|
|
1864
|
-
byteLength: number;
|
|
1865
|
-
large?: true | undefined;
|
|
1866
|
-
}>;
|
|
1867
1658
|
};
|
|
1868
1659
|
//#endregion
|
|
1869
1660
|
//#region src/operations/outline.d.ts
|
|
@@ -1882,10 +1673,11 @@ interface OutlineDocumentOutput {
|
|
|
1882
1673
|
readonly outline: OutlineChildJson[];
|
|
1883
1674
|
}
|
|
1884
1675
|
declare const outlineDocumentOperation: {
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1676
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<OutlineDocumentOutput>;
|
|
1677
|
+
name: string;
|
|
1678
|
+
title: string;
|
|
1679
|
+
description: string;
|
|
1680
|
+
inputSchema: z.ZodObject<{
|
|
1889
1681
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1890
1682
|
path: z.ZodString;
|
|
1891
1683
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1912,14 +1704,6 @@ declare const outlineDocumentOperation: {
|
|
|
1912
1704
|
}>;
|
|
1913
1705
|
}, z.core.$strip>]>;
|
|
1914
1706
|
}, z.core.$strip>;
|
|
1915
|
-
run(input: {
|
|
1916
|
-
source: {
|
|
1917
|
-
path: string;
|
|
1918
|
-
} | {
|
|
1919
|
-
bytesBase64: string;
|
|
1920
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
1921
|
-
};
|
|
1922
|
-
}, context?: DocumentOperationContext): Promise<OutlineDocumentOutput>;
|
|
1923
1707
|
};
|
|
1924
1708
|
//#endregion
|
|
1925
1709
|
//#region ../pdf-codec/dist/layout.d.ts
|
|
@@ -1969,46 +1753,7 @@ interface PdfInspectSummary {
|
|
|
1969
1753
|
readonly imagesByFormat: Record<string, number>;
|
|
1970
1754
|
}
|
|
1971
1755
|
declare const pdfInspectOperation: {
|
|
1972
|
-
|
|
1973
|
-
readonly title: string;
|
|
1974
|
-
readonly description: string;
|
|
1975
|
-
readonly inputSchema: z.ZodObject<{
|
|
1976
|
-
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1977
|
-
path: z.ZodString;
|
|
1978
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1979
|
-
bytesBase64: z.ZodString;
|
|
1980
|
-
format: z.ZodEnum<{
|
|
1981
|
-
docx: "docx";
|
|
1982
|
-
pptx: "pptx";
|
|
1983
|
-
xlsx: "xlsx";
|
|
1984
|
-
odt: "odt";
|
|
1985
|
-
odp: "odp";
|
|
1986
|
-
ods: "ods";
|
|
1987
|
-
odg: "odg";
|
|
1988
|
-
svg: "svg";
|
|
1989
|
-
odf: "odf";
|
|
1990
|
-
csv: "csv";
|
|
1991
|
-
markdown: "markdown";
|
|
1992
|
-
rtf: "rtf";
|
|
1993
|
-
doc: "doc";
|
|
1994
|
-
xls: "xls";
|
|
1995
|
-
ppt: "ppt";
|
|
1996
|
-
wpd: "wpd";
|
|
1997
|
-
epub: "epub";
|
|
1998
|
-
pdf: "pdf";
|
|
1999
|
-
}>;
|
|
2000
|
-
}, z.core.$strip>]>;
|
|
2001
|
-
full: z.ZodOptional<z.ZodBoolean>;
|
|
2002
|
-
}, z.core.$strip>;
|
|
2003
|
-
run(input: {
|
|
2004
|
-
source: {
|
|
2005
|
-
path: string;
|
|
2006
|
-
} | {
|
|
2007
|
-
bytesBase64: string;
|
|
2008
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "odp" | "ods" | "odg" | "svg" | "odf" | "csv" | "markdown" | "rtf" | "doc" | "xls" | "ppt" | "wpd" | "epub" | "pdf";
|
|
2009
|
-
};
|
|
2010
|
-
full?: boolean | undefined;
|
|
2011
|
-
}, context?: DocumentOperationContext): Promise<{
|
|
1756
|
+
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
2012
1757
|
formatVersion: 1;
|
|
2013
1758
|
metadata: {
|
|
2014
1759
|
title?: string | undefined;
|
|
@@ -2041,7 +1786,7 @@ declare const pdfInspectOperation: {
|
|
|
2041
1786
|
font: {
|
|
2042
1787
|
family: string;
|
|
2043
1788
|
weight: "bold" | "normal";
|
|
2044
|
-
style: "
|
|
1789
|
+
style: "normal" | "italic";
|
|
2045
1790
|
};
|
|
2046
1791
|
sizePt: number;
|
|
2047
1792
|
color: {
|
|
@@ -2208,7 +1953,7 @@ declare const pdfInspectOperation: {
|
|
|
2208
1953
|
yPt: number;
|
|
2209
1954
|
}][] | undefined;
|
|
2210
1955
|
source?: {
|
|
2211
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
1956
|
+
format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odm" | "odb" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd";
|
|
2212
1957
|
xml: string;
|
|
2213
1958
|
} | undefined;
|
|
2214
1959
|
}[] | undefined;
|
|
@@ -2251,10 +1996,41 @@ declare const pdfInspectOperation: {
|
|
|
2251
1996
|
structure?: LayoutStructureElement[] | undefined;
|
|
2252
1997
|
form?: LayoutFormField[] | undefined;
|
|
2253
1998
|
source?: Record<string, {
|
|
2254
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
1999
|
+
format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odm" | "odb" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd";
|
|
2255
2000
|
xml: string;
|
|
2256
2001
|
}> | undefined;
|
|
2257
2002
|
} | PdfInspectSummary>;
|
|
2003
|
+
name: string;
|
|
2004
|
+
title: string;
|
|
2005
|
+
description: string;
|
|
2006
|
+
inputSchema: z.ZodObject<{
|
|
2007
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
2008
|
+
path: z.ZodString;
|
|
2009
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2010
|
+
bytesBase64: z.ZodString;
|
|
2011
|
+
format: z.ZodEnum<{
|
|
2012
|
+
docx: "docx";
|
|
2013
|
+
pptx: "pptx";
|
|
2014
|
+
xlsx: "xlsx";
|
|
2015
|
+
odt: "odt";
|
|
2016
|
+
odp: "odp";
|
|
2017
|
+
ods: "ods";
|
|
2018
|
+
odg: "odg";
|
|
2019
|
+
svg: "svg";
|
|
2020
|
+
odf: "odf";
|
|
2021
|
+
csv: "csv";
|
|
2022
|
+
markdown: "markdown";
|
|
2023
|
+
rtf: "rtf";
|
|
2024
|
+
doc: "doc";
|
|
2025
|
+
xls: "xls";
|
|
2026
|
+
ppt: "ppt";
|
|
2027
|
+
wpd: "wpd";
|
|
2028
|
+
epub: "epub";
|
|
2029
|
+
pdf: "pdf";
|
|
2030
|
+
}>;
|
|
2031
|
+
}, z.core.$strip>]>;
|
|
2032
|
+
full: z.ZodOptional<z.ZodBoolean>;
|
|
2033
|
+
}, z.core.$strip>;
|
|
2258
2034
|
};
|
|
2259
2035
|
//#endregion
|
|
2260
2036
|
export { ComputeFormulaOutputSchema, ConvertDocumentOutputSchema, DOCUMENT_OPERATIONS, type DocumentInput, DocumentInputSchema, type DocumentOperation, type DocumentOperationContext, type DocumentOutput, DocumentOutputSchema, FontInputSchema, type InlineDocumentOutput, LARGE_RESULT_THRESHOLD_BYTES, ListDocumentConversionsOutputSchema, OdbRenderReportOutputSchema, OdmToPdfOutputSchema, type ResolvedDocumentInput, type ResolvedDocumentOutput, type WrittenDocumentOutput, computeFormulaOperation, convertDocumentOperation, defineOperation, defineOperationWithoutOutputSchema, describeFontFileOperation, documentAppendParagraphsOperation, documentCreateOperation, docxExtrasOperation, fontsOperation, fromPackageOperation, inferFormatFromExtension, listDocumentConversionsOperation, metadataReadOperation, metadataWriteOperation, odbFormsOperation, odbQueryOperation, odbRenderReportOperation, odbReportsOperation, odbTablesOperation, odbToCsvOperation, odbToXlsxOperation, odmToPdfOperation, outlineDocumentOperation, pdfInspectOperation, resolveDocumentInput, resolveDocumentOutput, resolveOdbBytes };
|